/* ==========================================================================
   XIROVIA — Design tokens
   ========================================================================== */
:root {
  /* Color */
  --bg-void: #050508;
  --bg-elevated: #0c0c14;
  --bg-elevated-2: #12121c;
  --line: rgba(255,255,255,0.09);
  --line-soft: rgba(255,255,255,0.05);
  --text-primary: #f2f2f5;
  --text-secondary: #a6a6b3;
  --text-muted: #6b6b78;
  --accent-blue: #6e8bff;
  --accent-purple: #b07cff;
  --accent-grad: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));

  /* Type */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Layout */
  --max-w: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

html, body {
  background: var(--bg-void);
}

body {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ==========================================================================
   Persistent animated background system
   ========================================================================== */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Everything else sits above the canvas */
.nav, main, .footer {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.h2--large { font-size: clamp(36px, 6vw, 64px); }

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-secondary);
  max-width: 58ch;
  line-height: 1.65;
  margin-top: 18px;
}

.section__head { margin-bottom: 56px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-grad);
  color: #07070c;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(110,139,255,0.55); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text-primary);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.05); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,8,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav__logo { width: 26px; height: 26px; object-fit: contain; }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 14.5px;
  color: var(--text-secondary);
  transition: color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text-primary); }

.nav__cta { padding: 10px 20px; font-size: 14px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__toggle span { width: 20px; height: 1.5px; background: var(--text-primary); transition: transform .3s var(--ease), opacity .3s var(--ease); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--pad) 20px;
  border-top: 1px solid var(--line-soft);
}
.nav__mobile a { padding: 12px 4px; color: var(--text-secondary); font-size: 15px; }
.nav__mobile .btn { margin-top: 8px; justify-content: center; }
.nav__mobile.is-open { display: flex; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 100px;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}

.hero__inner--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  font-size: 14px;
  color: var(--accent-blue);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero__sub {
  margin: 26px auto 0;
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.65;
}

.hero__actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }

.hero__scroll {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 70px;
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@media (max-width: 900px) {
  .hero__inner { text-align: center; }
}

/* ==========================================================================
   Problem
   ========================================================================== */
.problem { padding: 120px 0; }
.problem__head { max-width: 640px; margin-bottom: 64px; }

.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.problem__item {
  background: rgba(12,12,20,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 34px 30px;
}
.problem__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.problem__item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}
.problem__item p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }

.problem__stakes {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stakes__item {
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 28px 26px;
}
.stakes__figure {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  margin-bottom: 12px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stakes__item p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.stakes__source {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 800px) {
  .problem__grid { grid-template-columns: 1fr; }
  .problem__stakes { grid-template-columns: 1fr; }
}

.problem__resolve {
  margin-top: 56px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 500;
  max-width: 46ch;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Solutions
   ========================================================================== */
.solutions { padding: 120px 0; }

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sol-card {
  position: relative;
  background: rgba(12,12,20,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.sol-card:hover { border-color: rgba(255,255,255,0.22); transform: translateY(-4px); }

.sol-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-blue);
  background: rgba(110,139,255,0.08);
  border: 1px solid rgba(110,139,255,0.18);
  margin-bottom: 22px;
}
.sol-card__icon svg { width: 20px; height: 20px; }

.sol-card__index {
  position: absolute;
  top: 34px; right: 30px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-muted);
}

.sol-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 500; margin-bottom: 12px; }
.sol-card__desc { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin-bottom: 22px; }

.sol-card__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.sol-card__list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}
.sol-card__list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-blue);
}

.sol-card__cta {
  margin-top: auto;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sol-card__cta span { transition: transform .3s var(--ease); }
.sol-card__cta:hover span { transform: translateX(3px); }

@media (max-width: 980px) {
  .solutions__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Demos
   ========================================================================== */
.demos { padding: 120px 0; }

.demo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.demo-tab {
  padding: 14px 6px;
  margin-right: 26px;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.demo-tab.is-active { color: var(--text-primary); border-color: var(--accent-blue); }

.demo-panel { display: none; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.demo-panel.is-active { display: grid; }

@media (max-width: 900px) {
  .demo-panel.is-active { grid-template-columns: 1fr; }
}

.demo-phone {
  background: rgba(12,12,20,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.demo-phone__header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--text-secondary);
}
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-blue); box-shadow: 0 0 10px var(--accent-blue); }

.demo-phone__body {
  flex: 1;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.demo-placeholder { color: var(--text-muted); font-size: 14.5px; }

.bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  animation: bubbleIn .4s var(--ease) both;
}
.bubble--caller {
  align-self: flex-end;
  background: rgba(255,255,255,0.08);
  border-bottom-right-radius: 4px;
}
.bubble--ai {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(110,139,255,0.16), rgba(176,124,255,0.14));
  border: 1px solid rgba(110,139,255,0.22);
  border-bottom-left-radius: 4px;
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.demo-phone__status {
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-purple);
  min-height: 20px;
}

.demo-controls__label { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; }
.demo-buttons { display: flex; flex-direction: column; gap: 10px; }
.demo-btn {
  text-align: left;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-size: 14.5px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.demo-btn:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }
.demo-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.demo-reset {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-reset:hover { color: var(--text-secondary); }

.demo-controls--center { display: flex; justify-content: center; margin-top: 40px; }

/* Automation viz */
.automation {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}
.auto-step {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  opacity: 0.3;
  transition: opacity .5s var(--ease);
}
.auto-step.is-active { opacity: 1; }
.auto-step:not(:last-child) {
  position: relative;
}
.auto-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px; top: 34px;
  width: 1px; height: 26px;
  background: var(--line);
}
.auto-step__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  flex-shrink: 0;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.auto-step.is-active .auto-step__dot {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue);
}
.auto-step__label { font-size: 15.5px; color: var(--text-secondary); }
.auto-step.is-active .auto-step__label { color: var(--text-primary); }

/* ==========================================================================
   Workflow
   ========================================================================== */
.workflow { padding: 120px 0; }

.workflow__list { max-width: 620px; }
.workflow__step {
  display: flex;
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}
.workflow__step:last-child { border-bottom: 1px solid var(--line-soft); }
.workflow__num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent-blue);
  padding-top: 2px;
  flex-shrink: 0;
  width: 30px;
}
.workflow__step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.workflow__step p { color: var(--text-secondary); font-size: 15px; }

/* ==========================================================================
   Industries
   ========================================================================== */
.industries { padding: 120px 0; }

.industries__primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.industry-card--main {
  background: rgba(12,12,20,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
}
.industry-card--main h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin-bottom: 14px; }
.industry-card--main p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.65; max-width: 42ch; }

.industries__future { margin-top: 44px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.industries__future-label { color: var(--text-muted); font-size: 14px; }
.industries__tags { display: flex; gap: 10px; flex-wrap: wrap; }
.industries__tags span {
  font-size: 13.5px;
  color: var(--text-secondary);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 16px;
}

@media (max-width: 760px) {
  .industries__primary { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Value
   ========================================================================== */
.value { padding: 120px 0; }
.value__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-md); overflow: hidden; }
.value-card { background: rgba(12,12,20,0.5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 40px 24px; display: flex; flex-direction: column; gap: 10px; }
.value-card__stat { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 600; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value-card__label { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 760px) {
  .value__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Why
   ========================================================================== */
.why { padding: 120px 0; }
.why__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why__stack { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.stack-item {
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14.5px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
}
.stack-plus { color: var(--text-muted); font-size: 14px; padding-left: 8px; }
.stack-result {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 100px;
  background: var(--accent-grad);
  color: #07070c;
}

@media (max-width: 860px) {
  .why__inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 120px 0; }
.about__inner { max-width: 620px; }
.about__principle {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  text-align: center;
}
.final-cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 400px at 50% 40%, rgba(110,139,255,0.16), transparent 65%);
  pointer-events: none;
}
.final-cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final-cta .lede { max-width: 40ch; margin-left: auto; margin-right: auto; }
.final-cta .hero__actions { justify-content: center; margin-top: 36px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--line-soft); padding: 72px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__logo { width: 24px; height: 24px; }
.footer__brand p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { color: var(--text-secondary); font-size: 14.5px; }
.footer__links a:hover { color: var(--text-primary); }

.footer__contact { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer__contact > a { color: var(--text-secondary); font-size: 14.5px; }
.footer__social { display: flex; gap: 16px; }
.footer__social a { color: var(--text-muted); font-size: 14px; }
.footer__social a:hover { color: var(--text-primary); }

.footer__bottom {
  border-top: 1px solid var(--line-soft);
  padding: 22px var(--pad);
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Futuristic enhancement layer
   ========================================================================== */

/* ---------- Blueprint grid overlay ---------- */
.blueprint-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(150,165,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,165,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 0%, transparent 75%);
  opacity: 0.6;
}

/* ---------- Film grain ---------- */
.grain {
  position: fixed;
  inset: -10%;
  width: 120%;
  height: 120%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(8) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0,0); }
  10% { transform: translate(-1%,-2%); }
  30% { transform: translate(2%,1%); }
  50% { transform: translate(-2%,2%); }
  70% { transform: translate(1%,-1%); }
  90% { transform: translate(-1%,1%); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}

/* ---------- Custom cursor ---------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 10px 2px rgba(110,139,255,0.7);
  pointer-events: none;
  z-index: 300;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), opacity .25s var(--ease);
  will-change: transform;
}
.cursor-dot.is-hovering {
  width: 34px; height: 34px;
  background: rgba(176,124,255,0.14);
  box-shadow: 0 0 0 1px rgba(176,124,255,0.5), 0 0 20px 4px rgba(176,124,255,0.35);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* ---------- Live status indicator ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 10px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-size: 12.5px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.status-pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6ef2a0;
  box-shadow: 0 0 8px #6ef2a0;
  animation: statusPulse 2.2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
@media (max-width: 1060px) { .status-pill { display: none; } }

/* ---------- Glass panels ---------- */
.sol-card, .industry-card--main, .demo-phone, .value-card, .stack-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
}
.sol-card::before, .industry-card--main::before, .demo-phone::before {
  content: "";
  position: absolute;
  top: 0; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  pointer-events: none;
}
.value-card { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005)); }

/* ---------- 3D tilt (JS sets --rx / --ry per card) ---------- */
.tilt {
  --rx: 0deg;
  --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .15s var(--ease);
  transform-style: preserve-3d;
}
.tilt:hover { transition: transform .05s linear; }

/* ---------- Magnetic buttons (JS sets --mx / --my) ---------- */
.magnetic {
  --mx: 0px;
  --my: 0px;
  transform: translate(var(--mx), var(--my));
  transition: transform .28s var(--ease);
}
.magnetic:hover { transition: transform .08s linear; }

/* ---------- Kinetic headline reveal ---------- */
.kinetic-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(10px);
  transition: opacity .6s var(--ease), filter .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--wi, 0) * 55ms);
}
.kinetic.is-revealed .kinetic-word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ---------- Scramble-in stat text ---------- */
.scramble { font-variant-numeric: tabular-nums; }

/* ---------- Typing indicator (demos) ---------- */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 4px 2px;
}
.typing-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBlink 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBlink {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* ---------- Asymmetric layout tweaks (margin, not transform — avoids fighting with .tilt) ---------- */
@media (min-width: 981px) {
  .solutions__grid > .sol-card:nth-child(2) { margin-top: -18px; margin-bottom: 18px; }
  .industries__primary .industry-card--main:first-child { margin-top: 14px; }
}
