/* 360Agents — Dark Neon × Technical
   Visual metaphor: neural network ↔ agentic lattice, quantum strings between */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Heebo:wght@300;400;500;700;800;900&family=Assistant:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Frank+Ruhl+Libre:wght@500;700;900&display=swap');

:root {
  /* Palette — Deep / Mature (default) */
  --bg: #0C1018;
  --bg-2: #141822;
  --surface: #1A1F2B;
  --surface-2: #232938;
  --rule: rgba(180, 188, 210, 0.08);
  --rule-strong: rgba(180, 188, 210, 0.16);
  --ink: #E0DACE;          /* warm parchment off-white */
  --ink-2: #A0A6B5;        /* muted slate */
  --muted: #5E6473;

  --primary: #2570DB;      /* deep neuron neon blue */
  --primary-soft: #1F58B0;
  --primary-ink: #FFFFFF;

  --accent: #BD4F66;       /* oxblood / wine — body usage */
  --accent-2: #4AA042;     /* deeper green */
  --neural-red: #E03450;   /* stronger red — for the brain cluster */
  --violet: #9F5CFF;       /* electric purple */

  /* Call-to-action green — the main "go" color, lights up on hover */
  --cta: #1AA516;
  --cta-hover: #25D11C;
  --cta-ink: #FFFFFF;
  --cta-glow: 0 0 24px rgba(26, 165, 22, 0.42), 0 0 56px rgba(26, 165, 22, 0.20);
  --cta-glow-soft: 0 0 10px rgba(26, 165, 22, 0.18);

  --glow: 0 0 20px rgba(37, 112, 219, 0.30);
  --glow-soft: 0 0 10px rgba(37, 112, 219, 0.18);

  /* Typography */
  --display: 'Heebo', 'Space Grotesk', system-ui, sans-serif;
  --sans: 'Assistant', 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --serif: 'Frank Ruhl Libre', Georgia, serif;

  /* Scale */
  --hero: clamp(56px, 11vw, 168px);
  --h1: clamp(40px, 6vw, 88px);
  --h2: clamp(32px, 4.4vw, 64px);
  --h3: clamp(22px, 2.2vw, 32px);
  --body: 17px;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1440px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion: 1;
}

/* Palette: Forest / Brass (alt) */
[data-palette="forest"] {
  --bg: #0E1410;
  --bg-2: #141C16;
  --surface: #1A2420;
  --surface-2: #232E28;
  --primary: #7A9479;       /* sage green */
  --primary-soft: #5A7458;
  --accent: #B89A5E;        /* brass */
  --accent-2: #C8A874;
  --violet: #6E5E84;
  --ink: #DDD6C6;
  --glow: 0 0 14px rgba(122, 148, 121, 0.16);
  --glow-soft: 0 0 8px rgba(122, 148, 121, 0.08);
}

/* Palette: Slate / Oxblood (alt) */
[data-palette="slate"] {
  --bg: #11141A;
  --bg-2: #181C24;
  --surface: #1F2430;
  --surface-2: #272D3C;
  --primary: #8A92A8;       /* cool muted slate */
  --primary-soft: #5E6678;
  --accent: #A85B6E;
  --accent-2: #B89A5E;
  --ink: #DAD8DD;
  --glow: 0 0 14px rgba(138, 146, 168, 0.14);
  --glow-soft: 0 0 8px rgba(138, 146, 168, 0.08);
}

/* Type vibe variants */
[data-type="grotesk"] { --display: 'Space Grotesk', sans-serif; }
[data-type="heebo"]   { --display: 'Heebo', sans-serif; }
[data-type="serif"]   { --display: 'Frank Ruhl Libre', serif; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 70% 40% at 50% -5%, color-mix(in srgb, var(--primary) 6%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 30% at 90% 25%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 70%);
}

/* Reusable */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  box-shadow: var(--glow-soft);
}

.display {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.025em;
}
[data-type="grotesk"] .display { font-weight: 700; letter-spacing: -0.04em; }
[data-type="serif"] .display { font-weight: 900; line-height: 0.92; }

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.rule { height: 1px; background: var(--rule-strong); width: 100%; }

/* Buttons */
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1.5px solid var(--cta);
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  cursor: pointer;
  transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--cta-glow-soft);
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: var(--cta-ink);
  box-shadow: var(--cta-glow);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--glow-soft);
}
.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn--accent:hover { background: transparent; color: var(--accent); }
.btn--blue {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
  box-shadow: var(--glow-soft);
}
.btn--blue:hover {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
  box-shadow: var(--glow);
}
.btn--contact {
  background: color-mix(in srgb, var(--surface-2) 86%, var(--primary));
  border-color: var(--rule-strong);
  color: var(--ink);
  box-shadow: none;
}
.btn--contact:hover {
  background: color-mix(in srgb, var(--surface-2) 72%, var(--primary));
  border-color: var(--primary);
  color: var(--ink);
  box-shadow: var(--glow-soft);
}
.btn--whatsapp {
  background: color-mix(in srgb, #25D366 88%, #07130d);
  border-color: color-mix(in srgb, #25D366 75%, #fff);
  color: #06130c;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.22);
}
.btn--whatsapp:hover {
  background: #25D366;
  border-color: #7BFFA9;
  color: #031108;
  box-shadow: 0 0 22px rgba(37, 211, 102, 0.55), 0 0 48px rgba(37, 211, 102, 0.28);
}
.btn .arrow {
  display: inline-block;
  transition: transform .3s var(--ease);
}
.btn:hover .arrow { transform: translateX(-4px); }

.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--ink-2);
}
.chip--filled { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip--accent { background: var(--accent); border-color: var(--accent); color: #fff; }

::selection { background: var(--primary); color: var(--primary-ink); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
[data-motion="off"] .reveal { opacity: 1; transform: none; transition: none; }

/* Marquee */
@keyframes marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes marquee-right {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
.marquee {
  overflow: hidden;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee::after { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  padding: 22px 0;
  animation: marquee-left 64s linear infinite;
  white-space: nowrap;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
[dir="rtl"] .marquee__track { animation-name: marquee-right; }
[dir="ltr"] .marquee__track { animation-name: marquee-left; }
[data-motion="off"] .marquee__track { animation: none; }
.marquee__item {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  padding-inline: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.marquee__sep {
  width: clamp(52px, 5.4vw, 86px);
  flex: 0 0 clamp(52px, 5.4vw, 86px);
  text-align: center;
  font-size: 18px;
  color: var(--primary);
  text-shadow: var(--glow-soft);
}


/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  transition: color .25s var(--ease);
}
.nav__link:hover { color: var(--primary); }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; right: 0;
  width: 0; height: 1.5px;
  background: var(--primary);
  box-shadow: var(--glow-soft);
  transition: width .3s var(--ease);
}
.nav__link:hover::after { width: 100%; }
@media (max-width: 820px) { .nav__links { display: none; } }

/* HERO */
.hero {
  position: relative;
  padding: clamp(40px, 8vw, 120px) 0 clamp(56px, 9vw, 140px);
  overflow: hidden;
  min-height: 92vh;
  --mx: 0;
  --my: 0;
  --sy: 0px;
  isolation: isolate;
}
.hero__bg-grid {
  position: absolute;
  inset: -40px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(120, 180, 255, 0.06) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(120, 180, 255, 0.06) 1px, transparent 1px) 0 0 / 80px 80px,
    radial-gradient(ellipse 60% 50% at 30% 50%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  transform:
    translate3d(calc(var(--mx) * -14px), calc(var(--my) * -14px + var(--sy) * 0.20), 0);
  will-change: transform;
}
.hero__graph-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform:
    translate3d(calc(var(--mx) * -42px), calc(var(--my) * -30px + var(--sy) * 0.45), 0);
  will-change: transform;
}
.hero__graph {
  position: absolute;
  inset: 0;
  opacity: 1;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Two soft pools of darkening BEHIND the text columns, but the center stays
     open so the brain↔AI system stays visible across the full width. */
  background:
    radial-gradient(ellipse 38% 48% at 18% 60%, color-mix(in srgb, var(--bg) 78%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, transparent 0%, transparent 70%, color-mix(in srgb, var(--bg) 60%, transparent) 100%);
  transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -6px), 0);
}
[dir="rtl"] .hero__shade {
  background:
    radial-gradient(ellipse 38% 48% at 82% 60%, color-mix(in srgb, var(--bg) 78%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, transparent 0%, transparent 70%, color-mix(in srgb, var(--bg) 60%, transparent) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
  position: relative;
  z-index: 3;
}
.hero__content {
  transform: translate3d(calc(var(--mx) * 18px), calc(var(--my) * 10px + var(--sy) * -0.12), 0);
  will-change: transform;
}
.hero__title {
  font-size: var(--hero);
  line-height: 0.9;
  margin: 0;
  letter-spacing: -0.035em;
  color: var(--ink);
  position: relative;
  /* Subtle text-shadow to lift it off the busy graph behind */
  text-shadow: 0 2px 24px rgba(12, 16, 24, 0.85), 0 0 60px rgba(12, 16, 24, 0.55);
}
.hero__title--he {
  /* Hebrew letters render visually larger at the same px size — scale to 70%
     so the wordmark sits comfortably and the brain stays visible. */
  font-size: calc(var(--hero) * 0.7);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.hero__title .ink-accent {
  color: var(--primary);
  text-shadow: 0 2px 24px rgba(12, 16, 24, 0.85);
}
.hero__title .ink-stroke {
  -webkit-text-stroke: 1.5px var(--primary);
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(3, 7, 15, 0.6));
}
.hero__title .ink-mind {
  color: var(--accent);
  text-shadow: 0 2px 24px rgba(12, 16, 24, 0.85);
}
.hero__sub {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(12, 16, 24, 0.7);
}
.hero__meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Reduced motion — kill parallax transforms */
@media (prefers-reduced-motion: reduce) {
  .hero__bg-grid, .hero__graph-wrap, .hero__shade, .hero__content { transform: none !important; }
}
[data-motion="off"] .hero__bg-grid,
[data-motion="off"] .hero__graph-wrap,
[data-motion="off"] .hero__shade,
[data-motion="off"] .hero__content { transform: none !important; }

/* Hero HUD readout */
.hero__hud {
  position: absolute;
  top: 50%;
  /* LTR: HUD on the right; RTL: on the left (same side as the visual) */
  right: var(--gutter);
  left: auto;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
  text-align: right;
}
[dir="rtl"] .hero__hud { right: auto; left: var(--gutter); text-align: left; }
.hero__hud .row {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--primary);
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__hud .row .v { color: var(--ink); }
.hero__hud .row .x { color: var(--accent); }
@media (max-width: 1100px) { .hero__hud { display: none; } }

/* Stats — styled to match Process: stroked numerals + colored top rule */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -1px 0 var(--primary), 0 -8px 24px -8px color-mix(in srgb, var(--primary) 35%, transparent);
  position: relative;
}
.stats__cell {
  padding: 32px 24px 40px;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  background: var(--bg);
}
.stats__cell:last-child { border-left: 0; }
.stats__num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2.4px var(--ink);
}
/* Per-cell stroke color (matches Process palette rhythm) */
.stats__cell:nth-child(1) .stats__num { -webkit-text-stroke-color: #E8B547; color: transparent; }
.stats__cell:nth-child(2) .stats__num { -webkit-text-stroke-color: #3B8AE8; color: transparent; }
.stats__cell:nth-child(3) .stats__num { -webkit-text-stroke-color: #E85577; color: transparent; }
.stats__cell:nth-child(4) .stats__num { -webkit-text-stroke-color: #3D8235; color: transparent; }
.stats__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__cell:nth-child(2) { border-left: 0; }
  .stats__cell:nth-child(1), .stats__cell:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* Section */
section { position: relative; }
.section { padding: clamp(64px, 10vw, 140px) 0; }
.section--bordered { border-top: 1px solid var(--rule); }
.section--surface { background: var(--bg-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: end;
}
.section__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--h2);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 12px 0 0;
  color: var(--ink);
}
.section__title .accent { color: var(--primary); }
.section__title .mind { color: var(--accent); }
.section__title .stroke { -webkit-text-stroke: 1.5px var(--primary); color: transparent; }
.section__sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 480px;
  align-self: end;
  margin: 0;
}
@media (max-width: 820px) { .section__head { grid-template-columns: 1fr; gap: 16px; } }

/* Services */
.svc {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.svc__card {
  grid-column: span 2;
  padding: 36px 28px 40px;
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  position: relative;
  background: transparent;
  transition: background .35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 340px;
  overflow: hidden;
}
.svc__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--primary) 8%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.svc__card:hover::before { opacity: 1; }
.svc__card:hover .svc__title { color: var(--primary); }
.svc__card:nth-child(3n) { border-left: 0; }
.svc__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.svc__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--primary);
  background: transparent;
  transition: all .25s var(--ease);
  position: relative;
}
.svc__icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--primary) 40%, transparent);
  opacity: 0;
  transition: opacity .35s var(--ease), transform .8s var(--ease);
}
.svc__card:hover .svc__icon {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-color: var(--primary);
  box-shadow: var(--glow-soft);
  transform: rotate(-8deg);
}
.svc__card:hover .svc__icon::after { opacity: 1; transform: rotate(60deg); }
.svc__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.svc__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.svc__tag {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc__tag::before {
  content: '';
  width: 14px; height: 1px;
  background: var(--primary);
}
@media (max-width: 1000px) {
  .svc { grid-template-columns: repeat(2, 1fr); }
  .svc__card { grid-column: span 1; border-left: 1px solid var(--rule); }
  .svc__card:nth-child(2n) { border-left: 0; }
}
@media (max-width: 600px) {
  .svc { grid-template-columns: 1fr; }
  .svc__card, .svc__card:nth-child(n) { grid-column: span 1; border-left: 0 !important; }
}

/* Agents */
.agents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) { .agents { grid-template-columns: 1fr; } }
.agent-card {
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  padding: 36px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.agent-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--glow-soft);
}
.agent-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 20%, transparent), transparent 70%);
  pointer-events: none;
}
.agent-card--dark::before {
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
}
.agent-card--dark { background: var(--surface-2); }
.agent-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  position: relative;
}
.agent-card__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.agent-card--dark .agent-card__title { color: var(--accent); }
.agent-card__sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 24px;
}
.agent-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}
.agent-card__list li {
  font-size: 14.5px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--rule-strong);
  color: var(--ink);
}
.agent-card__list li::before {
  content: '→';
  font-family: var(--mono);
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  transform: scaleX(-1);
}
.agent-card--dark .agent-card__list li::before { color: var(--accent); }
.agent-card__price {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--rule-strong);
  padding-top: 16px;
  color: var(--muted);
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -1px 0 var(--primary), 0 -8px 24px -8px color-mix(in srgb, var(--primary) 35%, transparent);
}
.process__step {
  padding: 32px 24px 40px;
  border-left: 1px solid var(--rule);
  position: relative;
}
.process__step:last-child { border-left: 0; }
.process__num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(72px, 9vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary);
  margin-bottom: 16px;
}
.process__step:nth-child(2) .process__num { -webkit-text-stroke-color: var(--accent); }
.process__step:nth-child(3) .process__num { -webkit-text-stroke-color: var(--violet); }
.process__step:nth-child(4) .process__num { -webkit-text-stroke-color: var(--accent-2); }
.process__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--ink);
}
.process__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process__step { border-bottom: 1px solid var(--rule); }
  .process__step:nth-child(2n) { border-left: 0; }
}

/* Why us */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.why__cell {
  padding: 36px 28px;
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  position: relative;
}
.why__cell:nth-child(3n) { border-left: 0; }
.why__cell h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  margin: 16px 0 8px;
  line-height: 1.1;
  color: var(--ink);
}
.why__cell p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.why__cell .marker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--primary);
}
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .why__cell { border-left: 0 !important; }
}

/* Live demo */
.demo {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
.demo__device {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px;
  position: relative;
  border: 1px solid var(--rule-strong);
  box-shadow: 0 20px 64px -16px rgba(0,0,0,0.6), 0 0 1px var(--primary);
  overflow: hidden;
}
.demo__device::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.6;
}
.demo__screen {
  background: var(--bg);
  border-radius: 8px;
  padding: 18px 18px 14px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  border: 1px solid var(--rule);
}
.demo__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}
.demo__topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-strong); }
.demo__topbar .dot.live {
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: blink 1.6s infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }
.demo__topbar .label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--muted);
  text-transform: uppercase; margin-right: auto;
}
.demo__msg {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 10px;
  max-width: 86%;
  animation: msg-in .5s var(--ease-out) both;
}
.demo__msg--user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--primary-ink);
  border-bottom-left-radius: 3px;
  font-weight: 500;
}
.demo__msg--bot {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--ink);
  border-bottom-right-radius: 3px;
  border: 1px solid var(--rule);
}
.demo__msg--bot .who {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 4px;
  text-transform: uppercase;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo__typing {
  display: inline-flex;
  gap: 4px;
  align-self: flex-start;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--rule);
}
.demo__typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  animation: bounce 1.2s infinite;
  box-shadow: var(--glow-soft);
}
.demo__typing span:nth-child(2) { animation-delay: 0.15s; }
.demo__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.demo__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.demo__pick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.demo__pick button {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
  transition: all .25s var(--ease);
}
.demo__pick button.active,
.demo__pick button:hover {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
  box-shadow: var(--glow-soft);
}
.demo__notes {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

/* Use cases */
.usecases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.usecase-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.usecase-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 65%, var(--rule));
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
}
.usecase-card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--primary);
}
.usecase-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  margin: 18px 0 10px;
}
.usecase-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 22px;
}
.usecase-card__link {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.usecases__all {
  margin-top: 28px;
}
@media (max-width: 900px) {
  .usecases__grid { grid-template-columns: 1fr; }
  .usecase-card { min-height: 0; }
}

/* Cases */
.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.case-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 32px 16px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background .3s var(--ease), padding .3s var(--ease);
  cursor: pointer;
}
.case-row::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 1px;
  background: var(--primary);
  box-shadow: var(--glow-soft);
  transition: width .5s var(--ease);
}
.case-row:hover::before { width: 100%; }
.case-row:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); padding-right: 28px; padding-left: 28px; }
.case-row__num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--primary);
}
.case-row__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.case-row__name .industry {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.case-row__before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.case-row__before, .case-row__after {
  font-size: 13.5px;
  line-height: 1.5;
}
.case-row__before { color: var(--muted); text-decoration: line-through; }
.case-row__after { color: var(--ink); font-weight: 500; }
.case-row__arrow {
  font-family: var(--mono);
  color: var(--primary);
  font-weight: 700;
  transform: scaleX(-1);
}
.case-row__metric {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 0.9;
  color: var(--primary);
  letter-spacing: -0.03em;
  text-align: left;
}
.case-row__metric .unit {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  display: block;
  margin-top: 4px;
  font-weight: 500;
  text-shadow: none;
}
.case-row__cta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
  transition: all .25s var(--ease);
}
.case-row:hover .case-row__cta {
  background: var(--primary); color: var(--primary-ink); border-color: var(--primary);
  box-shadow: var(--glow-soft);
}
@media (max-width: 900px) {
  .case-row { grid-template-columns: 60px 1fr; grid-auto-rows: auto; row-gap: 14px; }
  .case-row__metric { grid-column: 2; text-align: right; }
  .case-row__before-after { grid-column: 1 / -1; }
  .case-row__cta { grid-column: 1 / -1; justify-self: start; }
}

/* ROI */
.roi {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .roi { grid-template-columns: 1fr; } }
.roi__form { display: grid; gap: 22px; }
.roi__field { display: grid; gap: 8px; }
.roi__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.roi__value {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.roi__slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.roi__slider::-webkit-slider-runnable-track { height: 3px; background: var(--rule-strong); border-radius: 99px; }
.roi__slider::-moz-range-track { height: 3px; background: var(--rule-strong); border-radius: 99px; }
.roi__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  margin-top: -11px;
  cursor: grab;
  box-shadow: var(--glow-soft);
  transition: transform .2s var(--ease);
}
.roi__slider::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--bg);
  cursor: grab; box-shadow: var(--glow-soft);
}
.roi__slider:hover::-webkit-slider-thumb { transform: scale(1.1); }
.roi__result {
  background: var(--surface);
  border-radius: 8px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.5);
}
.roi__result::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.20;
  top: -120px; left: -120px;
}
.roi__result-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
}
.roi__result-big {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--ink);
  position: relative;
  margin-bottom: 8px;
}
.roi__result-big .unit {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--primary);
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-right: 8px;
  text-shadow: none;
}
.roi__result-sub {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 360px;
  position: relative;
}
.roi__breakdown {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}
.roi__breakdown-cell { border-top: 1px solid var(--rule-strong); padding-top: 10px; }
.roi__breakdown-cell .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.roi__breakdown-cell .v {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
}

/* Comparison */
.compare {
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.compare__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}
.compare__row:last-child { border-bottom: 0; }
.compare__row > div {
  padding: 18px 22px;
  border-left: 1px solid var(--rule);
  font-size: 14.5px;
  line-height: 1.5;
}
.compare__row > div:first-child { border-left: 0; }
.compare__row--head { background: var(--bg-2); color: var(--ink); }
.compare__row--head > div {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.compare__row--head .badge {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  text-transform: uppercase;
  box-shadow: var(--glow-soft);
}
.compare__cell--good { color: var(--ink); font-weight: 500; }
.compare__cell--bad { color: var(--muted); }
.compare__cell--good::before { content: '✓ '; color: var(--primary); font-weight: 800; }
.compare__cell--bad::before { content: '× '; color: var(--muted); font-weight: 800; }
.compare__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .compare__row { grid-template-columns: 1fr; }
  .compare__row > div { border-left: 0; border-bottom: 1px solid var(--rule); }
  .compare__row > div:last-child { border-bottom: 0; }
}

/* CTA */
.cta {
  background: var(--bg-2);
  color: var(--ink);
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--primary) 15%, transparent), transparent 50%),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%);
  pointer-events: none;
}
.cta__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  color: var(--ink);
  position: relative;
}
.cta__title .stroke { -webkit-text-stroke: 1.5px var(--primary); color: transparent; }
.cta__title .accent { color: var(--primary); }
.cta__row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* Footer */
.foot {
  background: var(--bg);
  color: var(--ink);
  padding: 60px 0 28px;
  border-top: 1px solid var(--rule);
}
.foot__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.foot__col .foot__heading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 14px;
}
.foot__col a, .foot__col p {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  margin: 0 0 8px;
}
.foot__col a:hover { color: var(--primary); }
.foot__refs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-3);
}
.foot__refs span {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot__refs a {
  color: var(--ink-2);
  text-decoration: none;
}
.foot__refs a:hover { color: var(--primary); }
.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 700px) {
  .foot__top { grid-template-columns: 1fr 1fr; }
}

/* Floating dock */
.dock {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.dock__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.2);
  transition: transform .3s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dock__btn:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--glow); }
.dock__btn--voice { background: linear-gradient(135deg, #FF4D8F 0%, var(--violet) 100%); color: #fff; border-color: transparent; box-shadow: 0 0 18px rgba(255, 77, 143, 0.30); }
.dock__btn--voice:hover { border-color: #FF4D8F; box-shadow: 0 0 28px rgba(255, 77, 143, 0.55), 0 0 56px rgba(159, 92, 255, 0.30); }
.dock__btn .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 var(--accent-2);
  animation: pulse 1.8s infinite;
}
.dock__btn--voice .pulse { background: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(197, 255, 74, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(197, 255, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(197, 255, 74, 0); }
}

/* Chat panel */
.chat {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: min(380px, calc(100vw - 56px));
  height: 560px;
  max-height: calc(100vh - 120px);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  box-shadow: 0 24px 64px -12px rgba(0,0,0,0.7), 0 0 32px -8px color-mix(in srgb, var(--primary) 20%, transparent);
  z-index: 90;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s var(--ease-out), opacity .25s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.chat.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat__head {
  padding: 14px 18px;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--rule);
}
.chat__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat__title .live {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: blink 1.6s infinite;
}
.chat__close {
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: all .25s var(--ease);
}
.chat__close:hover { background: var(--surface-2); color: var(--ink); border-color: var(--primary); }
.chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
}
.chat__msg {
  font-size: 14.5px;
  line-height: 1.55;
  padding: 11px 14px;
  border-radius: 12px;
  max-width: 85%;
  animation: msg-in .4s var(--ease-out) both;
  word-break: break-word;
}
.chat__msg--user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--primary-ink);
  border-bottom-left-radius: 3px;
  font-weight: 500;
}
.chat__msg--bot {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-bottom-right-radius: 3px;
}
.chat__suggested {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 12px;
  background: var(--surface);
}
.chat__suggested button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.chat__suggested button:hover {
  background: var(--primary); color: var(--primary-ink); border-color: var(--primary);
}
.chat__input-row {
  display: flex;
  border-top: 1px solid var(--rule);
  padding: 10px;
  gap: 8px;
  background: var(--surface);
}
.chat__input {
  flex: 1;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 14.5px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color .25s var(--ease);
}
.chat__input:focus { border-color: var(--primary); box-shadow: var(--glow-soft); }
.chat__input::placeholder { color: var(--muted); }
.chat__send {
  background: var(--primary);
  color: var(--primary-ink);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .25s var(--ease);
  box-shadow: var(--glow-soft);
}
.chat__send:hover { box-shadow: var(--glow); transform: scale(1.05); }
.chat__send:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

/* Voice overlay */
.voice-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.voice-overlay.open { opacity: 1; pointer-events: auto; }
.voice { text-align: center; color: var(--ink); max-width: 480px; padding: 24px; }
.voice__orb {
  width: 220px; height: 220px;
  border-radius: 50%;
  margin: 0 auto 32px;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--primary) 80%, white), color-mix(in srgb, var(--primary) 30%, var(--bg)));
  position: relative;
  display: grid;
  place-items: center;
  animation: orb 4s ease-in-out infinite;
  box-shadow: 0 0 80px -10px var(--primary), inset 0 0 40px color-mix(in srgb, var(--primary) 30%, transparent);
}
.voice__orb::before, .voice__orb::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--primary) 60%, transparent);
  animation: orb-ring 3s ease-out infinite;
}
.voice__orb::after { animation-delay: 1.2s; }
@keyframes orb {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes orb-ring {
  from { transform: scale(0.9); opacity: 0.8; }
  to { transform: scale(1.5); opacity: 0; }
}
.voice__orb svg { width: 64px; height: 64px; color: var(--bg); }
.voice__status {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.voice__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--ink);
}
.voice__desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 auto 28px;
  max-width: 380px;
}
.voice__row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.voice__waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 28px;
}
.voice__waveform span {
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
  box-shadow: var(--glow-soft);
}
.voice__waveform span:nth-child(1) { height: 12px; animation-delay: 0.0s; }
.voice__waveform span:nth-child(2) { height: 22px; animation-delay: 0.1s; }
.voice__waveform span:nth-child(3) { height: 32px; animation-delay: 0.2s; }
.voice__waveform span:nth-child(4) { height: 24px; animation-delay: 0.3s; }
.voice__waveform span:nth-child(5) { height: 14px; animation-delay: 0.4s; }
.voice__waveform span:nth-child(6) { height: 26px; animation-delay: 0.5s; }
.voice__waveform span:nth-child(7) { height: 18px; animation-delay: 0.6s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Logomark */
.logomark {
  width: 28px; height: 28px;
  display: inline-block;
  position: relative;
}
.logomark svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--primary) 35%, transparent)); }

/* Utility */
.muted { color: var(--muted); }

/* ─── Scroll Progress Bar ────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 200;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity .25s ease;
}
[dir="rtl"] .scroll-progress { transform-origin: right center; }

/* ─── Char reveal ────────────────────────────────────── */
.char-reveal { display: inline; }
.char-reveal .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em) rotateX(-30deg);
  transform-origin: 50% 100%;
  transition: opacity .55s var(--ease-out), transform .65s var(--ease-out);
  will-change: transform, opacity;
}
.char-reveal.in .ch {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}
[data-motion="off"] .char-reveal .ch {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ─── Case row scroll slide-in ───────────────────────── */
.cases.reveal .case-row {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[dir="rtl"] .cases.reveal .case-row {
  transform: translateX(40px);
}
.cases.reveal.in .case-row { opacity: 1; transform: translateX(0); }
.cases.reveal.in .case-row:nth-child(1) { transition-delay: 0ms; }
.cases.reveal.in .case-row:nth-child(2) { transition-delay: 120ms; }
.cases.reveal.in .case-row:nth-child(3) { transition-delay: 240ms; }
.cases.reveal.in .case-row:nth-child(4) { transition-delay: 360ms; }
.cases.reveal.in .case-row:nth-child(5) { transition-delay: 480ms; }
.cases.reveal.in .case-row:nth-child(6) { transition-delay: 600ms; }
[data-motion="off"] .cases.reveal .case-row {
  opacity: 1 !important; transform: none !important; transition: none !important;
}

/* ─── Service card stagger ────────────────────────────── */
.svc.reveal .svc__card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.svc.reveal.in .svc__card { opacity: 1; transform: translateY(0); }
.svc.reveal.in .svc__card:nth-child(1) { transition-delay: 0ms; }
.svc.reveal.in .svc__card:nth-child(2) { transition-delay: 80ms; }
.svc.reveal.in .svc__card:nth-child(3) { transition-delay: 160ms; }
.svc.reveal.in .svc__card:nth-child(4) { transition-delay: 240ms; }
.svc.reveal.in .svc__card:nth-child(5) { transition-delay: 320ms; }
.svc.reveal.in .svc__card:nth-child(6) { transition-delay: 400ms; }
[data-motion="off"] .svc.reveal .svc__card {
  opacity: 1 !important; transform: none !important; transition: none !important;
}

/* ─── Process step stagger ────────────────────────────── */
.process.reveal .process__step {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.process.reveal.in .process__step { opacity: 1; transform: translateY(0); }
.process.reveal.in .process__step:nth-child(1) { transition-delay: 0ms; }
.process.reveal.in .process__step:nth-child(2) { transition-delay: 100ms; }
.process.reveal.in .process__step:nth-child(3) { transition-delay: 200ms; }
.process.reveal.in .process__step:nth-child(4) { transition-delay: 300ms; }
[data-motion="off"] .process.reveal .process__step {
  opacity: 1 !important; transform: none !important; transition: none !important;
}

/* ─── Why cell stagger ────────────────────────────────── */
.why.reveal .why__cell {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.why.reveal.in .why__cell { opacity: 1; transform: translateY(0); }
.why.reveal.in .why__cell:nth-child(1) { transition-delay: 0ms; }
.why.reveal.in .why__cell:nth-child(2) { transition-delay: 80ms; }
.why.reveal.in .why__cell:nth-child(3) { transition-delay: 160ms; }
.why.reveal.in .why__cell:nth-child(4) { transition-delay: 240ms; }
.why.reveal.in .why__cell:nth-child(5) { transition-delay: 320ms; }
.why.reveal.in .why__cell:nth-child(6) { transition-delay: 400ms; }
[data-motion="off"] .why.reveal .why__cell {
  opacity: 1 !important; transform: none !important; transition: none !important;
}

/* ─── Stat number scroll-driven scale-in ───────────────── */
.stats .stats__cell .stats__num {
  display: inline-block;
  transition: transform .8s var(--ease-out);
  transform-origin: left center;
}
[dir="rtl"] .stats .stats__cell .stats__num { transform-origin: right center; }
