/* ============================================================
   WALLY SYSTEMS — v2 design system
   Dark / futuristic. One accent (electric blue, no glow).
   Built against: taste-skill (anti-slop), motion-principles
   (Jakub polish + Jhey delight + Emil restraint), and the
   Impeccable audit (contrast >= 4.5:1, body >= 16px, no
   layout-thrash animation, no dark-glow, no bounce easing,
   clean heading hierarchy, line-length <= ~72ch).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* surfaces — deep, slightly blue-cooled near-black (never #000) */
  --bg:        #08090d;
  --bg-1:      #0c0e14;   /* elevated band */
  --bg-2:      #11141c;   /* card */
  --bg-3:      #161a24;   /* card hover / inset */
  --glass:     rgba(255,255,255,0.025);

  /* ink — all body text clears WCAG AA on --bg */
  --ink:       #f3f5fb;   /* ~18:1 */
  --ink-soft:  #b7bdcc;   /* ~10:1 */
  --ink-mute:  #888fa1;   /* ~5.2:1 — smallest text we allow */

  /* lines */
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.055);
  --line-str:  rgba(255,255,255,0.16);

  /* accent — brand electric blue. Fill uses --accent (white text = 6.6:1).
     Accent *text on dark* must use --accent-2 (8:1). Never glow it. */
  --accent:    #1f3cff;
  --accent-2:  #8aa2ff;   /* accent text/links on dark */
  --accent-3:  #3a55ff;   /* hover fill */
  --accent-ink:#ffffff;
  --accent-wash: rgba(31,60,255,0.10);

  /* type */
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --serif:   'Instrument Serif', 'Georgia', 'Times New Roman', serif;
  --sans:    'Geist', system-ui, -apple-system, sans-serif;
  --mono:    'Geist Mono', ui-monospace, 'SF Mono', monospace;

  /* radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 36px;

  /* motion */
  --out:   cubic-bezier(0.16, 1, 0.3, 1);     /* expo-out: reveals */
  --io:    cubic-bezier(0.65, 0, 0.35, 1);    /* in-out: state */
  --soft:  cubic-bezier(0.33, 1, 0.68, 1);    /* cubic-out: hovers */

  /* layout */
  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 56px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--accent); color: #fff; }

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

/* ---------- Ambient: grain + aurora (performance-safe, fixed layer) ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.fx-aurora {
  /* subtle, NOT a neon glow — low-opacity color fields that drift slowly */
  background:
    radial-gradient(58vw 48vh at 14% -8%, rgba(31,60,255,0.11), transparent 60%),
    radial-gradient(45vw 45vh at 96% 6%, rgba(80,120,255,0.07), transparent 55%),
    radial-gradient(50vw 50vh at 50% 112%, rgba(31,60,255,0.07), transparent 60%);
  filter: saturate(112%);
  animation: aurora 26s var(--io) infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); opacity: 0.9; }
  100% { transform: translate3d(0,-2.5%,0) scale(1.08); opacity: 1; }
}
.fx-grain {
  z-index: 1; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.fx-grid {
  z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120vw 90vh at 50% -10%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120vw 90vh at 50% -10%, #000 30%, transparent 75%);
}
main, footer, nav { position: relative; z-index: 2; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.measure { max-width: 64ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Type scale ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ''; width: 22px; height: 1px; background: var(--accent-2); opacity: 0.7;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.h-display {
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.h1 { font-size: clamp(38px, 5.6vw, 68px); letter-spacing: -0.03em; line-height: 1.0; }
.h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.025em; line-height: 1.05; }
.h3 { font-size: clamp(21px, 2.4vw, 27px); letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); line-height: 1.6; max-width: 56ch; }
.section-head.center .lead, .section-head.center p, .prob-solve p { margin-inline: auto; }
.eq { color: var(--accent-2); }
.serif-it { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; }
.serif-eq { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--accent-2); letter-spacing: 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; }
.section-head .kicker { margin-bottom: 20px; }
.section-head p { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 24px;
  border-radius: 100px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .25s var(--soft), background .25s var(--soft), border-color .25s var(--soft), color .25s var(--soft);
  white-space: nowrap; will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-3); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0) scale(0.985); }
.btn-ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-str); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0) scale(0.985); }
.btn-lg { padding: 18px 30px; font-size: 16px; }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d27b; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent-2); font-weight: 600; font-size: 15px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--soft); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gut);
  background: rgba(8,9,13,0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--io), background .4s var(--io), padding .4s var(--io);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(8,9,13,0.8); padding-block: 12px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 30px; width: auto; }
.brand-lock { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-word { font-family: var(--display); display: inline-flex; flex-direction: column; justify-content: center; line-height: 1; white-space: nowrap; }
.logo-word strong { color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: 0; }
.logo-word small { font-family: var(--sans); color: var(--ink-soft); font-weight: 500; font-size: 11px; letter-spacing: .02em; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  position: relative; padding: 9px 14px; border-radius: 100px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: color .2s var(--soft), background .2s var(--soft);
}
.nav-links a:hover { color: var(--ink); background: var(--glass); }
.nav-links a.active { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--accent-2); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center; transition: transform .3s var(--out);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .3s var(--io); }
.nav-burger span::before, .nav-burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform .3s var(--io), top .3s var(--io); }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }

/* mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(8,9,13,0.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: var(--gut);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--io), transform .35s var(--io), visibility .35s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { font-family: var(--display); font-size: clamp(30px, 8vw, 46px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); padding: 8px 0; }
.mobile-menu a.active { color: var(--accent-2); }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- Mega menu (desktop dropdown nav) ---------- */
.has-mega { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 5px; padding: 9px 14px; border-radius: 100px; font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: color .2s var(--soft), background .2s var(--soft); }
.nav-trigger:hover, .has-mega.open .nav-trigger, .nav-trigger.active { color: var(--ink); }
.nav-trigger:hover, .has-mega.open .nav-trigger { background: var(--glass); }
.nav-chev { width: 13px; height: 13px; opacity: .65; transition: transform .3s var(--io); }
.has-mega.open .nav-chev { transform: rotate(180deg); }

.nav-mega {
  position: fixed; top: 70px; left: 50%;
  width: min(680px, calc(100vw - 28px));
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.04) inset, 0 34px 80px -34px rgba(0,0,0,0.65);
  padding: 16px; z-index: 49;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--out), transform .28s var(--out), visibility .28s;
}
.has-mega.open .nav-mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }

.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mega-list { display: flex; flex-direction: column; gap: 4px; }
.mega-item { display: flex; gap: 13px; padding: 13px; border-radius: var(--r); transition: background .2s var(--soft); }
.mega-item:hover { background: var(--glass); }
.mega-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--accent-wash); display: grid; place-items: center; }
.mega-ico svg { width: 18px; height: 18px; color: var(--accent-2); }
.mega-tx { display: flex; flex-direction: column; gap: 3px; }
.mega-tx strong { font-size: 15px; color: var(--ink); font-weight: 600; }
.mega-tx small { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.mega-viz { position: relative; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; min-height: 158px; }
.mega-viz-card { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 8px; opacity: 0; transition: opacity .3s var(--soft); }
.mega-viz-card.active { opacity: 1; }
.mega-foot { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 9px 13px; font-size: 13.5px; font-weight: 600; color: var(--accent-2); border-radius: 100px; transition: background .2s var(--soft); }
.mega-foot:hover { background: var(--glass); }
.mega-foot svg { width: 15px; height: 15px; }
.mm-b { max-width: 86%; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; }
.mm-b.bot { background: var(--bg-3); border: 1px solid var(--line-2); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.mm-b.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.mm-mail-in { font-size: 12.5px; color: var(--ink-soft); }
.mm-mail-draft { background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px; font-size: 12.5px; color: var(--ink); line-height: 1.5; }
.mm-chip { font-family: var(--mono); font-size: 10.5px; color: var(--accent-2); display: block; margin-bottom: 5px; }
.mega-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mega-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .2s var(--soft), background .2s var(--soft), transform .2s var(--soft); }
.mega-card:hover { border-color: var(--line-str); background: var(--glass); transform: translateY(-2px); }
.mega-card strong { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.mega-card small { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .nav-mega { transition: opacity .01ms, visibility .01ms; } }

/* ---------- Floating contact pill ---------- */
.float-cta {
  position: fixed; left: clamp(16px, 4vw, 32px); bottom: clamp(16px, 4vw, 28px); z-index: 40;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border-radius: 100px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,0.7);
  transform: translateY(120%); opacity: 0;
  transition: transform .5s var(--out), opacity .5s var(--out), background .25s var(--soft);
}
.float-cta.show { transform: none; opacity: 1; }
.float-cta:hover { background: var(--accent-3); }
.float-cta .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }

/* ---------- Reveal on scroll ---------- */
/* Transform-only reveal: content stays fully opaque (accessible + never
   "invisible" to crawlers/audits that don't scroll); it just slides into place. */
.reveal { transform: translateY(22px); transition: transform .7s var(--out); will-change: transform; }
.reveal.in { transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
.reveal[data-d="5"] { transition-delay: .35s; }

/* ---------- Motion: spotlight cards + button sheen ---------- */
.cell, .case, .tcard, .incl-card, .principle, .price-card { position: relative; z-index: 0; }
.cell::before, .case::before, .tcard::before, .incl-card::before, .principle::before, .price-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  opacity: 0; transition: opacity .5s var(--soft);
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(31,60,255,0.20), transparent 72%);
}
.cell:hover::before, .case:hover::before, .tcard:hover::before, .incl-card:hover::before, .principle:hover::before, .price-card:hover::before { opacity: 1; }

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.42), transparent);
  transform: skewX(-20deg); pointer-events: none; transition: left .65s var(--out);
}
.btn-primary:hover::after { left: 130%; }

/* ---------- HERO ---------- */
.hero { padding-top: clamp(128px, 18vh, 200px); padding-bottom: clamp(60px, 9vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 13px 7px 11px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--glass);
  font-family: var(--mono); font-size: 13px; color: var(--ink-soft); letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.hero-tag b { color: var(--ink); font-weight: 600; }
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d27b; flex-shrink: 0; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 52ch; margin-bottom: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 34px; font-size: 14px; color: var(--ink-mute); font-family: var(--mono); letter-spacing: 0.02em; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-str); }

/* hero visual — spatial product card with subtle tilt */
.hero-viz { perspective: 1400px; }
.tilt { transform-style: preserve-3d; transition: transform .4s var(--soft); will-change: transform; }

.panel {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.05) inset, 0 40px 80px -40px rgba(0,0,0,0.8);
  overflow: hidden;
}
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.panel-bar .d { width: 10px; height: 10px; border-radius: 50%; background: var(--line-str); }
.panel-bar .url { margin-left: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-mute); }
.panel-bar .live { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--accent-2); display: inline-flex; align-items: center; gap: 7px; }
.panel-bar .live .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d27b; }

.dash { padding: 18px; }
.dash-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.dash-stat { background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 14px; }
.dash-stat .l { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.dash-stat .v { font-family: var(--display); font-size: 30px; font-weight: 700; margin-top: 6px; }
.dash-feed { background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px; }
.dash-feed-l { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.dash-feed-l .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d27b; }
.feed-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.feed-item:first-of-type { border-top: none; }
.feed-src { font-family: var(--mono); font-size: 11px; padding: 4px 8px; border-radius: 6px; height: fit-content; letter-spacing: 0.04em; }
.feed-src.mail { background: rgba(138,162,255,0.16); color: var(--accent-2); }
.feed-src.chat { background: rgba(52,210,123,0.16); color: #56e095; }
.feed-from { font-size: 13.5px; color: var(--ink-soft); }
.feed-msg { font-size: 14.5px; color: var(--ink); margin: 3px 0; }
.feed-reply { font-size: 13px; color: var(--accent-2); }
.feed-time { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }

/* ---------- EDITORIAL HERO + ORB (flagship) ---------- */
@property --lx { syntax: '<percentage>'; initial-value: 34%; inherits: false; }
@property --ly { syntax: '<percentage>'; initial-value: 27%; inherits: false; }
.hero-ed { text-align: center; padding-top: clamp(120px, 17vh, 188px); padding-bottom: clamp(40px, 6vw, 80px); position: relative; }
.hero-ed .hero-tag { margin-bottom: 28px; }
.hero-ed h1 { margin: 0 auto 26px; max-width: 16ch; }
.hero-ed .lead { margin: 0 auto 34px; max-width: 56ch; }
.hero-ed .cta-row { justify-content: center; }

/* the orb stage */
.orb-stage { position: relative; display: grid; place-items: center; margin-top: clamp(36px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 92px); perspective: 1100px; }
.orb-wrap { position: relative; width: clamp(280px, 42vw, 500px); aspect-ratio: 1; transform: translate(var(--tx,0px), var(--ty,0px)) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: transform .3s var(--soft); }
/* organic life: float + breathe + micro-wobble */
.orb-float { position: absolute; inset: 0; transform-origin: 50% 56%; animation: orb-life 6.5s cubic-bezier(0.45,0,0.35,1) infinite; will-change: transform; }
/* jelly: squash & stretch — silhouette wobbler mellem bred og høj */
@keyframes orb-life {
  0%   { transform: translateY(6px)   scaleX(1.000) scaleY(1.000); }
  16%  { transform: translateY(1px)   scaleX(1.060) scaleY(0.940); }
  32%  { transform: translateY(-8px)  scaleX(0.948) scaleY(1.060); }
  46%  { transform: translateY(-12px) scaleX(1.040) scaleY(0.965); }
  60%  { transform: translateY(-6px)  scaleX(0.970) scaleY(1.038); }
  74%  { transform: translateY(1px)   scaleX(1.026) scaleY(0.980); }
  88%  { transform: translateY(4px)   scaleX(0.990) scaleY(1.012); }
  100% { transform: translateY(6px)   scaleX(1.000) scaleY(1.000); }
}
/* breathing halo */
.orb-bloom { position: absolute; inset: -34%; border-radius: 50%; background: radial-gradient(circle, rgba(31,60,255,0.62), rgba(31,60,255,0.15) 45%, transparent 67%); filter: blur(52px); pointer-events: none; animation: bloom-breathe 6s ease-in-out infinite; }
@keyframes bloom-breathe { 0%,100% { transform: scale(0.93); opacity: 0.78; } 50% { transform: scale(1.09); opacity: 1; } }

.orb {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; isolation: isolate;
  clip-path: circle(50%);
  transition: --lx .28s linear, --ly .28s linear;
  background:
    radial-gradient(circle at var(--lx,34%) var(--ly,27%), #f3f6ff 0%, #c2cdff 9%, #7088ff 24%, #2c49ff 44%, #1830b0 64%, #0e1c66 80%, #070d33 92%, #04081f 100%);
  box-shadow:
    inset -30px -36px 80px rgba(3,5,22,0.92),
    inset 18px 20px 50px rgba(255,255,255,0.22);
}
/* iridescent liquid sheen — layer 1 (spins + hue shimmer) */
.orb::before {
  content: ''; position: absolute; inset: -12%; border-radius: 50%;
  background: conic-gradient(from 210deg at 58% 42%, rgba(120,200,255,0) 0deg, rgba(150,130,255,0.55) 70deg, rgba(80,255,220,0.35) 150deg, rgba(255,150,205,0.3) 230deg, rgba(120,180,255,0.45) 300deg, rgba(120,200,255,0) 360deg);
  mix-blend-mode: screen; opacity: 0.66;
  animation: orb-spin 11s linear infinite, orb-hue 13s ease-in-out infinite;
}
/* liquid sheen — layer 2 (counter-rotating, slower) */
.orb-flow {
  position: absolute; inset: -16%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 40deg at 42% 60%, rgba(90,160,255,0) 0deg, rgba(120,255,235,0.32) 90deg, rgba(160,120,255,0.36) 200deg, rgba(120,180,255,0.28) 300deg, rgba(90,160,255,0) 360deg);
  mix-blend-mode: screen; opacity: 0.66; filter: blur(12px);
  animation: orb-flow-move 13s ease-in-out infinite;
}
/* inner energy core — heartbeat */
.orb-core {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 42% 40%, rgba(185,210,255,0.55), rgba(120,150,255,0.16) 32%, transparent 56%);
  mix-blend-mode: screen; animation: orb-core 5.5s ease-in-out infinite;
}
@keyframes orb-core {
  0%   { opacity: 0.4;  transform: translate(0,0) scale(0.9); }
  35%  { opacity: 0.8;  transform: translate(7%,-4%) scale(1.06); }
  65%  { opacity: 0.7;  transform: translate(-5%,5%) scale(1.02); }
  100% { opacity: 0.4;  transform: translate(0,0) scale(0.9); }
}
/* drifting specular highlight — light playing on the surface */
.orb::after {
  content: ''; position: absolute; width: 34%; height: 25%; left: var(--hlx, 18%); top: var(--hly, 12%);
  background: radial-gradient(closest-side, rgba(255,255,255,0.95), rgba(255,255,255,0) 72%);
  border-radius: 50%; filter: blur(3px); transition: left .28s var(--soft), top .28s var(--soft);
}
@keyframes orb-spec {
  0%,100% { transform: translate(0,0) rotate(-18deg) scale(1); opacity: 0.95; }
  50%     { transform: translate(15%, 11%) rotate(-4deg) scale(0.85); opacity: 0.7; }
}
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-spin-rev { to { transform: rotate(-360deg); } }
@keyframes orb-hue { 0%,100% { filter: blur(8px) hue-rotate(-24deg); } 50% { filter: blur(8px) hue-rotate(26deg); } }
/* living rim light */
.orb-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: inset 0 -3px 9px rgba(255,255,255,0.2); animation: orb-rim 6s ease-in-out infinite; }
@keyframes orb-morph {
  0%,100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  20%     { border-radius: 61% 39% 46% 54% / 56% 46% 54% 44%; }
  40%     { border-radius: 42% 58% 59% 41% / 45% 57% 43% 55%; }
  60%     { border-radius: 56% 44% 41% 59% / 58% 43% 57% 42%; }
  80%     { border-radius: 46% 54% 57% 43% / 43% 55% 45% 57%; }
}
@keyframes orb-flow-move {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(-90deg) scale(1.1); }
  50%  { transform: rotate(-180deg) scale(1); }
  75%  { transform: rotate(-270deg) scale(1.12); }
  100% { transform: rotate(-360deg) scale(1); }
}
@keyframes orb-rim { 0%,100% { box-shadow: inset 0 -3px 9px rgba(255,255,255,0.16); } 50% { box-shadow: inset 0 -5px 16px rgba(255,255,255,0.34); } }

/* stats overlapping the orb base */
.orb-stats { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 14px; z-index: 3; }
.orb-stat { background: rgba(9,11,16,0.94); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 24px; text-align: center; min-width: 132px; box-shadow: 0 24px 48px -22px rgba(0,0,0,0.85); }
.orb-stat .v { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
.orb-stat .v .u { font-family: var(--mono); font-size: 0.5em; color: var(--accent-2); margin-left: 3px; }
.orb-stat .l { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }

@media (max-width: 640px) {
  .orb-stats { position: static; transform: none; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
  .orb-stat { min-width: 120px; flex: 1 1 40%; }
  .orb-stage { padding-bottom: 0; }
}

/* ---------- Marquee (customers) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll-x 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); font-size: clamp(18px, 2vw, 24px); font-weight: 600; color: var(--ink-soft); white-space: nowrap; letter-spacing: -0.01em; }
.marquee-track span.mut { color: var(--ink-mute); }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.eyebrow-c { text-align: center; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 28px; }

/* ---------- Stats strip (lines, not boxes) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--bg); padding: clamp(24px, 3vw, 38px) clamp(20px, 2.5vw, 32px); }
.stat .v { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.03em; line-height: 1; }
.stat .v .u { font-family: var(--mono); font-size: 0.34em; color: var(--accent-2); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.stat .l { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .stats.cols-3 { grid-template-columns: 1fr; } }

/* ---------- Problem list (zig instead of 3 cards) ---------- */
.prob-list { display: flex; flex-direction: column; }
.prob {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 3vw, 40px); align-items: center;
  padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line-2);
}
.prob:last-child { border-bottom: 1px solid var(--line-2); }
.prob-n { font-family: var(--mono); font-size: 14px; color: var(--accent-2); }
.prob h3 { margin-bottom: 8px; }
.prob p { color: var(--ink-soft); max-width: 52ch; font-size: 16px; }
.prob-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); border: 1px solid var(--line); border-radius: 100px; padding: 7px 13px; white-space: nowrap; }
.prob-solve { margin-top: clamp(40px, 6vw, 72px); text-align: center; }
.prob-solve h3 { font-size: clamp(24px, 3.4vw, 40px); max-width: 22ch; margin: 0 auto 14px; }
.prob-solve p { color: var(--ink-soft); }

/* ---------- Family (2 product cards) ---------- */
.family { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.fam-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 38px);
  transition: transform .45s var(--out), border-color .45s var(--out), background .45s var(--out);
  overflow: hidden;
}
.fam-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(80% 60% at 80% -10%, var(--accent-wash), transparent 60%); opacity: 0; transition: opacity .45s var(--out); }
.fam-card:hover { transform: translateY(-6px); border-color: var(--line-str); }
.fam-card:hover::after { opacity: 1; }
.fam-viz { height: 180px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-3); margin-bottom: 26px; overflow: hidden; position: relative; }
.fam-tag { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.fam-card h3 { font-size: clamp(24px, 2.8vw, 32px); margin: 12px 0 12px; }
.fam-card > p { color: var(--ink-soft); margin-bottom: 22px; font-size: 16px; }
.fam-list { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 1px; }
.fam-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--ink); }
.fam-list li svg { width: 17px; height: 17px; color: var(--accent-2); flex-shrink: 0; }
.fam-card .link-arrow { margin-top: auto; }

/* mini chat viz inside family card */
.mini-chat { padding: 18px; display: flex; flex-direction: column; gap: 9px; justify-content: center; height: 100%; }
.mini-b { max-width: 78%; padding: 9px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.4; }
.mini-b.l { background: var(--bg-1); border: 1px solid var(--line-2); color: var(--ink-soft); align-self: flex-start; border-bottom-left-radius: 4px; }
.mini-b.r { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.mini-mail { padding: 16px; display: flex; flex-direction: column; gap: 10px; height: 100%; justify-content: center; }
.mini-mail .mm-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.mini-mail .mm-chip { font-family: var(--mono); font-size: 11px; padding: 4px 9px; border-radius: 6px; background: rgba(138,162,255,0.16); color: var(--accent-2); }
.mini-mail .mm-draft { background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; font-size: 13px; color: var(--ink); line-height: 1.5; }

/* ---------- Bento (platform) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(168px, auto); gap: clamp(12px, 1.6vw, 20px); }
.cell {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 30px); position: relative; overflow: hidden;
  transition: transform .45s var(--out), border-color .45s var(--out);
}
.cell:hover { transform: translateY(-4px); border-color: var(--line-str); }
.cell h3 { font-size: 20px; margin-bottom: 8px; }
.cell p { color: var(--ink-soft); font-size: 15px; max-width: 42ch; }
.cell .cell-ico { width: 20px; height: 20px; color: var(--accent-2); margin-bottom: 14px; }
.cell-a { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; }
.cell-b { grid-column: span 2; grid-row: span 1; }
.cell-c { grid-column: span 2; grid-row: span 1; }
.cell-d { grid-column: span 2; grid-row: span 1; }
.cell-e { grid-column: span 4; grid-row: span 1; }
.cell-screen { margin-top: auto; border-radius: var(--r) var(--r) 0 0; border: 1px solid var(--line-2); border-bottom: none; overflow: hidden; margin: 18px -8px -30px 0; }
.cell-screen img { width: 100%; display: block; }
.mini-bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; margin-top: 16px; }
.mini-bars i { flex: 1; background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-radius: 4px 4px 0 0; transform: scaleY(var(--h, .5)); transform-origin: bottom; opacity: 0.85; }
.cell-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cell-tags span { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px; }

/* ---------- Integrations ---------- */
.intg { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.intg-cell { display: flex; align-items: center; gap: 13px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 13px 15px; transition: transform .35s var(--soft), border-color .35s var(--soft), box-shadow .35s var(--soft); }
.intg-cell:hover { transform: translateY(-3px); border-color: rgba(138,162,255,0.42); box-shadow: 0 14px 32px -18px rgba(0,0,0,0.55); }
.intg-ico { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid rgba(2,6,23,0.06); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 2px 10px rgba(2,6,23,0.22); }
.intg-ico img { width: 23px; height: 23px; display: block; }
.intg-tx { display: flex; flex-direction: column; min-width: 0; }
.intg-cell .n { font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em; }
.intg-cell .s { font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.intg-cell.accent { background: linear-gradient(135deg, rgba(31,60,255,0.13), rgba(31,60,255,0.03)); border-color: rgba(31,60,255,0.34); }
.intg-cell.accent .intg-ico { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(31,60,255,0.42); }
.intg-cell.accent .intg-ico svg { width: 20px; height: 20px; }
.intg-cell.accent .n { color: var(--accent-2); }
.intg-note { margin: 26px auto 0; max-width: 56ch; text-align: center; color: var(--ink-soft); font-size: 15px; }
.intg-note a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Trust / security (2-up, icon inline not stacked tile) ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.tcard { background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 38px); transition: transform .4s var(--out), border-color .4s var(--out); }
.tcard:hover { transform: translateY(-4px); border-color: var(--line-str); }
.tcard-h { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tcard-h svg { width: 26px; height: 26px; color: var(--accent-2); flex-shrink: 0; }
.tcard-h h3 { font-size: 22px; }
.tcard p { color: var(--ink-soft); font-size: 15.5px; max-width: 52ch; }
.tcard-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tcard-tags span { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; padding: 6px 11px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.badges span { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 100px; padding: 10px 18px; }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); }
.case { background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .4s var(--out), border-color .4s var(--out); }
.case:hover { transform: translateY(-5px); border-color: var(--line-str); }
.case-top { padding: 26px; border-bottom: 1px solid var(--line-2); background: rgba(255,255,255,0.022); }
.case-top .brand { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.case-top .seg { font-family: var(--mono); font-size: 12px; color: var(--accent-2); margin-top: 8px; letter-spacing: 0.04em; }
.case-body { padding: 24px 26px 26px; }
.case-body .ind { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.04em; }
.case-body .q { margin: 14px 0 20px; color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.case-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.case-foot .who { color: var(--ink-soft); }
.case-foot .st { display: inline-flex; align-items: center; gap: 7px; color: #56e095; font-family: var(--mono); font-size: 12.5px; }
.case-foot .st .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d27b; }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); position: relative; }
.tl-step { position: relative; padding-top: 28px; }
.tl-step::before { content: ''; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--line); }
.tl-step::after { content: ''; position: absolute; top: 1px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.tl-n { font-family: var(--mono); font-size: 13px; color: var(--accent-2); margin-bottom: 12px; }
.tl-step h3 { font-size: 20px; margin-bottom: 10px; }
.tl-step p { color: var(--ink-soft); font-size: 15px; max-width: 34ch; }
.tl-meta { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-mute); }

/* ---------- FAQ (grid-rows animation, no max-height thrash) ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; text-align: left; font-family: var(--display); font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: -0.01em; }
.faq-ico { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-ico::before, .faq-ico::after { content: ''; position: absolute; background: var(--accent-2); border-radius: 2px; transition: transform .35s var(--io); }
.faq-ico::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-ico::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--io); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; padding: 0 4px 26px; max-width: 62ch; }
.faq-a a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Big CTA ---------- */
.bigcta { text-align: center; }
.bigcta-inner { border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(48px, 8vw, 96px) var(--gut); background: radial-gradient(60% 80% at 50% 120%, var(--accent-wash), transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.bigcta h2 { margin: 18px auto 18px; max-width: 18ch; }
.bigcta p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 32px; }
.bigcta .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: clamp(28px, 4vw, 48px); }
.footer-brand .brand-lock { margin-bottom: 18px; }
.footer-brand p { color: var(--ink-soft); font-size: 15px; max-width: 34ch; }
.footer-col h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--ink-soft); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-mute); font-family: var(--mono); }
.footer-word { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(40px, 13vw, 168px); line-height: 0.9; color: transparent; -webkit-text-stroke: 1px var(--line-str); margin-top: 40px; text-align: center; white-space: nowrap; user-select: none; }

/* ---------- Page hero (subpages) ---------- */
.phero { padding-top: clamp(132px, 20vh, 210px); padding-bottom: clamp(20px, 4vw, 50px); }
.phero .kicker { margin-bottom: 22px; }
.phero h1 { margin-bottom: 22px; }
.phero .lead { max-width: 60ch; }

/* ---------- Email client (mail page) ---------- */
.email { max-width: 460px; }
.email-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.email-in { background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px; }
.email-in-h { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.email-av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.email-in-name { font-size: 14px; font-weight: 600; }
.email-in-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.email-in-c { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.email-draft { border: 1px solid var(--accent); border-radius: var(--r); padding: 16px; background: linear-gradient(180deg, var(--accent-wash), transparent); }
.email-draft-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.email-chip { font-family: var(--mono); font-size: 12px; color: var(--accent-2); display: inline-flex; align-items: center; gap: 7px; }
.email-saved { font-family: var(--mono); font-size: 12px; color: #56e095; }
.email-draft-b p { font-size: 14px; color: var(--ink); line-height: 1.55; margin-bottom: 9px; }
.email-acts { display: flex; gap: 9px; margin-top: 14px; }
.email-act { padding: 9px 16px; border-radius: 100px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); color: var(--ink-soft); }
.email-act.p { background: var(--accent); color: #fff; border-color: transparent; }

/* steps (mail "how it works") */
.steps { display: flex; flex-direction: column; gap: 4px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line-2); }
.step:first-child { border-top: none; }
.step-n { font-family: var(--mono); font-size: 14px; color: var(--accent-2); padding-top: 4px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; max-width: 52ch; }

.video-block { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; position: relative; background: var(--bg-2); }
.video-block video { width: 100%; display: block; }
.video-cap { padding: 16px 20px; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line-2); font-family: var(--mono); }

/* ---------- ROI calculator ---------- */
.roi { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.roi-ctrl { background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 38px); }
.roi-label { font-size: 14.5px; color: var(--ink-soft); }
.roi-count { font-family: var(--display); font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 22px; }
.roi-count .u { font-family: var(--mono); font-size: 0.28em; color: var(--ink-mute); margin-left: 8px; }
.roi-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 100px; background: var(--bg-3); outline: none; }
.roi-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg-2); cursor: pointer; transition: transform .2s var(--soft); }
.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.roi-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg-2); cursor: pointer; }
.roi-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.roi-presets button { padding: 11px 12px; border-radius: 100px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-soft); transition: all .25s var(--soft); }
.roi-presets button:hover { border-color: var(--line-str); color: var(--ink); }
.roi-presets button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.roi-out { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.roi-res { background: var(--bg); padding: clamp(22px, 3vw, 32px); }
.roi-res.big { grid-column: span 2; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.roi-res .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.roi-res .v { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; margin: 8px 0 4px; }
.roi-res.big .v { color: var(--accent-2); font-size: clamp(40px, 6vw, 68px); }
.roi-res .s { font-size: 14px; color: var(--ink-soft); }
.roi-summary { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--glass); }
.roi-summary p { font-size: 15.5px; color: var(--ink-soft); max-width: 60ch; }
.roi-summary strong { color: var(--ink); }

/* ---------- Chat demo (index) ---------- */
.chatdemo { max-width: 560px; margin-inline: auto; }
.chat-win { background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.chat-av { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.chat-title strong { display: block; font-size: 15px; }
.chat-title .st { font-size: 12.5px; color: var(--ink-mute); display: inline-flex; align-items: center; gap: 7px; }
.chat-title .st .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d27b; }
.chat-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.cbub { max-width: 80%; padding: 12px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.cbub.anim { animation: bub .45s var(--out) backwards; }
@keyframes bub { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cbub.bot { background: var(--bg-3); border: 1px solid var(--line-2); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 5px; }
.cbub.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.chat-sug { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 18px 18px; }
.chat-sug button { padding: 10px 15px; border-radius: 100px; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); transition: all .25s var(--soft); }
.chat-sug button:hover { border-color: var(--accent); color: var(--ink); }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-note { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-mute); }
.chat-note a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pricing ---------- */
.bill-wrap { display: flex; justify-content: center; margin-bottom: 48px; }
.bill { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 100px; background: var(--glass); }
.bill button { padding: 12px 22px; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 9px; transition: color .3s var(--soft); position: relative; }
.bill button.active { color: var(--bg); }
.bill button.active::before { content: ''; position: absolute; inset: 0; background: var(--ink); border-radius: 100px; z-index: -1; }
.bill .save { font-family: var(--mono); font-size: 10.5px; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 100px; letter-spacing: 0.04em; }
.bill button.active .save { background: var(--bg); color: var(--accent); }

[data-price] { display: none; }
[data-price].active { display: block; }
.tier .amt [data-price].active { display: inline-flex; align-items: baseline; gap: 4px; justify-content: flex-end; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); margin-bottom: 24px; }
.price-card { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 40px); transition: transform .4s var(--out), border-color .4s var(--out); }
.price-card:hover { transform: translateY(-5px); border-color: var(--line-str); }
.price-tag { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 22px; }
.tiers { display: flex; flex-direction: column; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.tier { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; background: var(--bg-1); }
.tier.feat { background: var(--bg-3); }
.tier .tn { font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 9px; }
.tier .pill { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 100px; }
.tier .tb { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.tier .amt { text-align: right; white-space: nowrap; }
.tier .num { font-family: var(--display); font-weight: 700; font-size: 21px; }
.tier.feat .num { color: var(--accent-2); }
.tier .un { font-size: 12px; color: var(--ink-mute); margin-left: 3px; }
.tier .cross { font-size: 13px; color: var(--ink-mute); text-decoration: line-through; margin-right: 6px; }
.price-amt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.price-amt .big { font-family: var(--display); font-weight: 700; font-size: 60px; letter-spacing: -0.04em; line-height: 1; }
.price-amt .suf { font-family: var(--mono); font-size: 13px; color: var(--ink-mute); }
.price-amt .cross { font-family: var(--mono); font-size: 15px; color: var(--ink-mute); text-decoration: line-through; }
.price-meta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); margin-bottom: 18px; }
.price-meta .badge { background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 5px; font-weight: 700; }
.price-note { display: flex; gap: 11px; padding: 14px 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13.5px; color: var(--ink); line-height: 1.5; margin-bottom: 20px; }
.price-note strong { color: var(--ink); }
.price-note a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 1px; margin-bottom: 26px; flex: 1; }
.price-feats li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.price-feats li:first-child { border-top: none; }
.price-feats svg { width: 16px; height: 16px; color: var(--accent-2); flex-shrink: 0; }
.price-cta { display: block; text-align: center; padding: 15px; border-radius: 100px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14.5px; transition: all .3s var(--soft); }
.price-cta:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.scale-card { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: clamp(24px, 3vw, 44px); align-items: center; padding: clamp(32px, 4vw, 50px); border: 1px solid var(--line-str); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--bg-2), var(--bg-1)); }
.scale-card h3 { font-size: clamp(26px, 3vw, 38px); margin: 8px 0 12px; }
.scale-card .price-tag { margin-bottom: 6px; }
.scale-card p { color: var(--ink-soft); font-size: 15px; max-width: 44ch; }
.scale-mid ul { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.scale-mid li { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-soft); }
.scale-mid li:first-child { border-top: none; }
.scale-mid svg { width: 15px; height: 15px; color: var(--accent-2); flex-shrink: 0; }
.scale-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.scale-price { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -0.03em; }

.incl { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 20px); }
.incl-card { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; background: var(--bg-1); transition: transform .35s var(--out), border-color .35s var(--out); }
.incl-card:hover { transform: translateY(-4px); border-color: var(--line-str); }
.incl-card svg { width: 22px; height: 22px; color: var(--accent-2); margin-bottom: 16px; }
.incl-card h3 { font-size: 18px; margin-bottom: 8px; }
.incl-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- About ---------- */
.story { max-width: 760px; margin-inline: auto; }
.story .kicker { margin-bottom: 22px; }
.story h2 { margin-bottom: 28px; }
.story-divider { width: 52px; height: 3px; background: var(--accent); border-radius: 3px; margin-bottom: 36px; }
.story p { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.7; color: var(--ink-soft); margin-bottom: 22px; max-width: 60ch; }
.story p strong { color: var(--ink); font-weight: 600; }
.team-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.team-dot { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; color: var(--ink-mute); transition: all .35s var(--out); }
.team-dot:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-4px); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); margin-top: 16px; }
.principle { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 36px); background: var(--bg-1); transition: transform .4s var(--out), border-color .4s var(--out); }
.principle:hover { transform: translateY(-5px); border-color: var(--line-str); }
.principle .pn { font-family: var(--mono); font-size: 13px; color: var(--accent-2); margin-bottom: 18px; }
.principle h3 { font-size: 21px; margin-bottom: 12px; }
.principle p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-viz { max-width: 520px; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .cell-a { grid-column: span 4; }
  .cell-e { grid-column: span 4; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .roi { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-burger { display: flex; }
  .stats { grid-template-columns: 1fr 1fr; }
  .family { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 32px; }
  .price-grid { grid-template-columns: 1fr; }
  .scale-card { grid-template-columns: 1fr; }
  .scale-right { align-items: flex-start; }
  .incl { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-a, .cell-b, .cell-c, .cell-d, .cell-e { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .cell-a, .cell-b, .cell-c, .cell-d, .cell-e { grid-column: span 1; }
  .prob { grid-template-columns: 1fr; gap: 10px; }
  .prob-tag { justify-self: start; }
  .roi-out { grid-template-columns: 1fr; }
  .roi-res.big { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Theme toggle button ---------- */
.theme-toggle { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); flex-shrink: 0; transition: color .2s var(--soft), border-color .2s var(--soft), background .2s var(--soft); }
.theme-toggle:hover { color: var(--ink); border-color: var(--line-str); background: var(--glass); }
.theme-toggle svg { width: 18px; height: 18px; }

/* ---------- LIGHT THEME ---------- */
html.light {
  --bg: #fbfbfd;
  --bg-1: #f2f4f8;
  --bg-2: #ffffff;
  --bg-3: #eceef4;
  --glass: rgba(12,18,40,0.04);
  --ink: #0b0e18;
  --ink-soft: #474c5e;
  --ink-mute: #6a7082;
  --line: rgba(12,18,45,0.10);
  --line-2: rgba(12,18,45,0.06);
  --line-str: rgba(12,18,45,0.18);
  --accent: #1f3cff;
  --accent-2: #1d39e6;
  --accent-wash: rgba(31,60,255,0.07);
}
html.light body { background: var(--bg); }
html.light .nav { background: rgba(255,255,255,0.72); }
html.light .nav.scrolled { background: rgba(255,255,255,0.88); }
html.light .mobile-menu { background: rgba(255,255,255,0.97); }
html.light .btn-ghost:hover { background: rgba(12,18,45,0.05); }
html.light .case-top { background: rgba(12,18,45,0.025); }
html.light .price-note { background: rgba(31,60,255,0.06); }
html.light .orb-stat { background: rgba(255,255,255,0.9); box-shadow: 0 18px 40px -22px rgba(20,30,80,0.28); }
html.light .panel { box-shadow: 0 1px 0 0 rgba(255,255,255,0.7) inset, 0 30px 64px -34px rgba(20,30,80,0.28); }
html.light .chat-win { box-shadow: 0 30px 64px -34px rgba(20,30,80,0.28); }
html.light .fx-aurora { opacity: 0.6; }
html.light .fx-grain { display: none; }
html.light .orb-bloom { opacity: 0.82; }
html.light .float-cta { box-shadow: 0 14px 34px -12px rgba(20,30,80,0.4); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .fx-aurora { animation: none; }
  .marquee-track { animation: none; transform: none; }
  .cbub { opacity: 1; transform: none; }
}
