/* =========================================================================
   Theme tokens. Colours and fonts are injected from content config as
   :root variables (see render.js themeCSS). Everything derives from them.
   These defaults use :where() (zero specificity) so the injected theme
   always wins, wherever in the document it lands.
   ========================================================================= */
:where(:root) {
  --bg: #05060b;
  --surface: #0d1020;
  --text: #eef0ff;
  --muted: #9aa1c4;
  --primary: #7b5cff;
  --on-primary: #fff; /* text on primary/gradient fills; set per theme */
  --secondary: #22d3ee;
  --accent: #ff4fd8;
  --radius: 20px;
  --font-display: ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, sans-serif;

  --line: color-mix(in srgb, var(--text) 10%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 18%, transparent);
  --glass: color-mix(in srgb, var(--surface) 78%, transparent);
  --grad: linear-gradient(110deg, var(--primary), var(--secondary) 55%, var(--accent));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 12vw, 150px);
  --topbar: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em; margin: 0; font-weight: 600; }
p { margin: 0; }
strong { color: var(--text); font-weight: 600; }
::selection { background: color-mix(in srgb, var(--primary) 55%, transparent); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container--narrow { --container: 820px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.grad {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 8s ease-in-out infinite alternate;
}
@keyframes grad-shift { to { background-position: 100% 0; } }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* =========================================================================
   Background layers: WebGL canvas, CSS fallback, film grain, intro curtain
   ========================================================================= */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.4s var(--ease); pointer-events: none; }
#scene.is-on { opacity: 1; }
.bg-fallback {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 78% 30%, color-mix(in srgb, var(--primary) 45%, transparent), transparent 70%),
    radial-gradient(30vmax 30vmax at 62% 55%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(50vmax 40vmax at 10% 90%, color-mix(in srgb, var(--secondary) 18%, transparent), transparent 70%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
  transition: opacity 1.2s var(--ease);
}
.has-webgl .bg-fallback { opacity: 0; }
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.has-webgl.tier-high .grain, .has-webgl.tier-mid .grain { display: none; } /* grain is in the shader */
.curtain {
  position: fixed; inset: 0; z-index: 200; background: var(--bg); pointer-events: none;
  animation: curtain-fallback 0.6s 3s forwards;
}
.is-loaded .curtain { animation: curtain-out 0.9s var(--ease) 0.05s forwards; }
@keyframes curtain-out { to { opacity: 0; visibility: hidden; } }
@keyframes curtain-fallback { to { opacity: 0; visibility: hidden; } }

#app { position: relative; z-index: 2; }
main { position: relative; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--font-body); letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, border-color 0.3s;
  isolation: isolate; overflow: hidden;
}
.btn--primary {
  color: var(--on-primary);
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--primary) 70%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.btn--primary::after { /* shine sweep */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 4.5s 2s ease-in-out infinite;
}
.btn--primary:hover { box-shadow: 0 16px 44px -10px color-mix(in srgb, var(--primary) 90%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.3); background-position: 100% 0; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn--ghost { color: var(--text); border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 40%, transparent); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: color-mix(in srgb, var(--text) 40%, transparent); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn--small { --h: 40px; padding: 0 18px; font-size: 14px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--text) 6%, transparent); }
.btn--small:hover { background: var(--text); color: var(--bg); }
.btn--block { width: 100%; }
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:disabled { opacity: 0.6; pointer-events: none; }

/* =========================================================================
   Top bar: announcement + header + scroll progress
   ========================================================================= */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: transform 0.4s var(--ease); }
.announce { background: color-mix(in srgb, var(--primary) 18%, var(--bg)); border-bottom: 1px solid var(--line); font-size: 14px; transition: margin 0.4s var(--ease); }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; flex-wrap: wrap; padding-block: 6px; text-align: center; }
.announce__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 0 var(--secondary); animation: ping 2s infinite; }
.announce__link { font-weight: 600; color: var(--secondary); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); }
.topbar.is-scrolled .announce { margin-top: calc(-1 * var(--announce-h, 38px)); }
.header { transition: background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s; border-bottom: 1px solid transparent; }
.topbar.is-scrolled .header { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--topbar); transition: height 0.4s var(--ease); }
.topbar.is-scrolled .header__inner { height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--font-display); letter-spacing: -0.03em; }
.logo__mark { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--primary)); box-shadow: 0 0 24px color-mix(in srgb, var(--primary) 60%, transparent); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link { position: relative; padding: 8px 14px; font-size: 15px; color: var(--muted); border-radius: 999px; transition: color 0.25s, background-color 0.25s; }
.nav__link:hover, .nav__link.is-active { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__actions .btn { --h: 42px; padding: 0 20px; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); place-items: center; }
.burger .icon { width: 20px; height: 20px; }
.mobile-menu { position: fixed; inset: 0; z-index: 45; padding: 110px var(--gutter) 40px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(20px); display: flex; flex-direction: column; gap: 28px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu .nav__link { font: 600 32px/1.2 var(--font-display); color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }

/* =========================================================================
   Shared section pieces
   ========================================================================= */
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.5); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head.is-center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(34px, 5.2vw, 64px); }
.section__sub { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 600 13px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--secondary); }
.eyebrow--pill { padding: 8px 14px 8px 10px; border-radius: 999px; letter-spacing: 0.02em; text-transform: none; font-size: 14px; color: var(--text); border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(10px); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent), 0 30px 60px -30px rgb(0 0 0 / 0.6);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
[data-spotlight]::before { /* cursor-following light on cards */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 18%, transparent), transparent 45%);
}
[data-spotlight]:hover::before { opacity: 1; }
[data-spotlight]:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }

/* Reveal-on-scroll (only hidden once JS is running) */
.is-loaded .reveal { opacity: 0; transform: translate3d(0, 36px, 0); }
.is-loaded .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--topbar) + 56px) 0 96px; }
.hero__copy { max-width: 720px; }
.hero__title { font-size: clamp(42px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; margin-bottom: 24px; text-wrap: balance; }
.w { display: inline-block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; vertical-align: top; }
.w__i { display: inline-block; }
.is-loaded .w__i { transform: translate3d(0, 105%, 0) rotate(4deg); transform-origin: 0 100%; }
.is-ready .w__i { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(0.15s + var(--i) * 70ms); }
.rotator { position: relative; display: inline-grid; }
.rotator__word { grid-area: 1 / 1; white-space: nowrap; transition: transform 0.6s var(--ease), opacity 0.4s var(--ease); }
.rotator__word.is-entering { transform: translateY(100%); opacity: 0; }
.rotator__word.is-leaving { transform: translateY(-100%); opacity: 0; transition-duration: 0.45s, 0.25s; }
.hero__sub { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 590px; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__bullets { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.hero__bullets li { display: inline-flex; align-items: center; gap: 7px; }
.hero__bullets .icon { color: var(--secondary); width: 16px; height: 16px; }
.hero__proof { display: flex; align-items: center; gap: 16px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; margin-left: -10px; border-radius: 50%; display: grid; place-items: center;
  font: 600 12px/1 var(--font-body); color: #fff; border: 2px solid var(--bg);
  background: linear-gradient(135deg, hsl(calc(var(--k) * 55 + 220) 70% 58%), hsl(calc(var(--k) * 55 + 280) 70% 45%));
}
.avatars span:first-child { margin-left: 0; }
.stars { display: inline-flex; gap: 2px; color: color-mix(in srgb, var(--text) 25%, transparent); }
.stars .icon { width: 15px; height: 15px; }
.star.is-on { color: #fbbf24; fill: #fbbf24; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-strong); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: scroll-dot 2s var(--ease) infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* =========================================================================
   Logos marquee
   ========================================================================= */
.logos { padding-block: 30px 10px; }
.logos__title { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__dup { display: contents; }
.logo-item { padding: 0 clamp(26px, 4vw, 52px); font: 700 clamp(20px, 2.4vw, 28px)/1 var(--font-display); color: color-mix(in srgb, var(--text) 45%, transparent); white-space: nowrap; letter-spacing: -0.03em; transition: color 0.3s; }
.logo-item:hover { color: var(--text); }
.logo-item--1 { font-style: italic; font-weight: 500; }
.logo-item--2 { letter-spacing: 0.12em; text-transform: uppercase; font-size: clamp(15px, 1.7vw, 20px); }
.logo-item--3 { font-family: var(--font-body); font-weight: 800; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================================
   Stats
   ========================================================================= */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin-block: clamp(60px, 9vw, 110px) 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: clamp(26px, 3.5vw, 40px); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); }
.stat__num { font: 700 clamp(40px, 5vw, 62px)/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* =========================================================================
   Problem / solution compare
   ========================================================================= */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.compare__col { padding: clamp(26px, 3.5vw, 40px); height: 100%; }
.compare__col h3 { font-size: 22px; margin-bottom: 22px; }
.compare__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare__col li { display: flex; gap: 12px; align-items: flex-start; }
.compare__col li .icon { margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; }
.compare__col--bad { opacity: 0.85; }
.compare__col--bad li { color: var(--muted); }
.compare__col--bad .icon { color: #f87171; background: rgb(248 113 113 / 0.12); }
.compare__col--good { border-color: color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 20%, transparent), 0 30px 80px -30px color-mix(in srgb, var(--primary) 55%, transparent); }
.compare__col--good .icon { color: #34d399; background: rgb(52 211 153 / 0.14); }
.compare__vs { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font: 700 14px/1 var(--font-display); text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); background: var(--bg); }

/* =========================================================================
   Features bento
   ========================================================================= */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: clamp(26px, 3vw, 36px); min-height: 250px; display: flex; flex-direction: column; transform-style: preserve-3d; will-change: transform; }
.feature--wide { grid-column: span 2; }
.feature__icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: auto; border-radius: 14px;
  color: var(--on-primary); background: var(--grad); box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--primary) 80%, transparent);
  transform: translateZ(30px);
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 22px; margin: 28px 0 10px; }
.feature p { color: var(--muted); }
.feature__metric { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }

/* =========================================================================
   Offerings (products / menu / services)
   ========================================================================= */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -24px 0 40px; }
.tab { padding: 10px 18px; border-radius: 999px; font-size: 15px; color: var(--muted); border: 1px solid var(--line); transition: all 0.3s var(--ease); }
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab.is-active { color: var(--bg); background: var(--text); border-color: var(--text); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.offer-grid[data-items='4'] { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.offer { overflow: hidden; display: flex; flex-direction: column; }
.offer[hidden] { display: none; }
.offer__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--primary) 40%, transparent), transparent 60%), radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%), color-mix(in srgb, var(--surface) 80%, #000); }
.offer__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.offer:hover .offer__media img { transform: scale(1.06); }
.offer__orb { position: absolute; inset: 0; display: grid; place-items: center; }
.offer__orb .icon { width: 64px; height: 64px; color: var(--on-primary); padding: 22px; box-sizing: content-box; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgb(255 255 255 / 0.35), transparent 60%), var(--grad); box-shadow: 0 20px 60px -10px color-mix(in srgb, var(--primary) 80%, transparent), inset 0 -10px 30px rgb(0 0 0 / 0.25); transition: transform 0.8s var(--ease); }
.offer:hover .offer__orb .icon { transform: scale(1.08) rotate(-8deg); }
.badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; font: 600 12px/1 var(--font-body); letter-spacing: 0.02em; color: var(--bg); background: var(--text); }
.offer__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.offer__body h3 { font-size: 21px; }
.offer__body > p { color: var(--muted); font-size: 15px; }
.offer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.offer__price { display: flex; align-items: baseline; gap: 8px; font: 700 24px/1 var(--font-display); }
.offer__price s { font-size: 16px; color: var(--muted); font-weight: 500; }
.offer__price small { font-size: 13px; color: var(--muted); font-weight: 400; }

/* =========================================================================
   Process steps
   ========================================================================= */
.steps { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: clamp(28px, 4vw, 44px); }
.steps__line { position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.steps__line span { display: block; height: 100%; background: var(--grad); transform-origin: 50% 0; transform: scaleY(0); }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 26px; align-items: start; }
.step__num { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; font: 700 18px/1 var(--font-display); background: var(--bg); border: 1px solid var(--line-strong); box-shadow: 0 0 0 6px var(--bg); }
.step.is-in .step__num { border-color: transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.step h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 14px 0 8px; }
.step p { color: var(--muted); }

/* =========================================================================
   Testimonials
   ========================================================================= */
.quotes { columns: 3 300px; column-gap: 18px; }
.quote { break-inside: avoid; margin: 0 0 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.quote--feature blockquote { font: 500 clamp(20px, 2vw, 24px)/1.4 var(--font-display); letter-spacing: -0.015em; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.quote figcaption small { display: block; color: var(--muted); font-size: 13px; }
.quote__avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font: 600 14px/1 var(--font-body); color: var(--on-primary); background: var(--grad); }

/* =========================================================================
   Pricing
   ========================================================================= */
.billing { display: flex; align-items: center; justify-content: center; gap: 14px; margin: -20px 0 44px; font-size: 15px; color: var(--muted); }
.switch { position: relative; width: 56px; height: 30px; border-radius: 999px; background: color-mix(in srgb, var(--text) 14%, transparent); transition: background-color 0.3s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 0.3); transition: transform 0.4s var(--ease); }
.switch[aria-checked='true'] { background: var(--primary); }
.switch[aria-checked='true'] span { transform: translateX(26px); }
.save { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; color: #052e1c; background: #34d399; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: stretch; }
.plan { padding: 34px 30px; display: flex; flex-direction: column; gap: 18px; }
.plan h3 { font-size: 22px; }
.plan__desc { color: var(--muted); font-size: 15px; margin-top: -10px; }
.plan__price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; font: 700 54px/1 var(--font-display); letter-spacing: -0.04em; }
.plan__price s { font-size: 22px; color: var(--muted); font-weight: 500; margin-right: 8px; letter-spacing: 0; }
.plan__cur { font-size: 26px; align-self: flex-start; margin-top: 6px; }
.plan__price small { font: 400 15px/1 var(--font-body); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan__amt { display: inline-block; font-variant-numeric: tabular-nums; }
.plan__amt.is-flip { animation: flip 0.5s var(--ease); }
@keyframes flip { from { transform: translateY(40%); opacity: 0; filter: blur(4px); } }
.plan__features { list-style: none; padding: 20px 0 0; margin: 0; display: grid; gap: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.plan__features li { display: flex; gap: 10px; }
.plan__features .icon { color: var(--secondary); margin-top: 2px; width: 18px; height: 18px; }
.plan--hot { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--angle, 0deg), var(--primary), var(--secondary), var(--accent), var(--primary)) border-box; box-shadow: 0 40px 100px -40px color-mix(in srgb, var(--primary) 80%, transparent); animation: rotate-border 6s linear infinite; }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rotate-border { to { --angle: 360deg; } }
@media (min-width: 1000px) { .plan--hot { transform: scale(1.04); z-index: 1; } }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; font: 700 12px/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-primary); background: var(--grad); white-space: nowrap; box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--primary) 80%, transparent); }
.plans__note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }

/* =========================================================================
   Guarantee seal
   ========================================================================= */
.guarantee { display: flex; align-items: center; gap: clamp(24px, 5vw, 56px); padding: clamp(28px, 4vw, 48px); }
.guarantee h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 12px; }
.guarantee p { color: var(--muted); max-width: 620px; }
.seal { position: relative; flex: none; width: clamp(130px, 16vw, 170px); aspect-ratio: 1; }
.seal svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal text { font: 700 13px/1 var(--font-body); fill: var(--text); }
.seal__icon { position: absolute; inset: 26%; display: grid; place-items: center; border-radius: 50%; color: var(--on-primary); background: var(--grad); box-shadow: 0 0 40px color-mix(in srgb, var(--primary) 60%, transparent); }
.seal__icon .icon { width: 40%; height: 40%; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.8); background: var(--glass); backdrop-filter: blur(14px); transition: border-color 0.3s, background-color 0.3s; }
.faq__item[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; font: 600 18px/1.4 var(--font-display); letter-spacing: -0.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform 0.4s var(--ease); color: var(--secondary); }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__a { padding: 0 26px 24px; color: var(--muted); }
.faq__item[open] .faq__a { animation: faq-in 0.45s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }

/* =========================================================================
   Final CTA
   ========================================================================= */
.final-cta { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 9vw, 110px) clamp(24px, 5vw, 70px); border-radius: calc(var(--radius) * 1.6); border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(20px); isolation: isolate; }
.final-cta__glow { position: absolute; inset: -60%; z-index: -1; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--primary) 45%, transparent), transparent 30%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%, color-mix(in srgb, var(--secondary) 35%, transparent), transparent); filter: blur(60px); animation: spin 16s linear infinite; opacity: 0.8; }
.final-cta h2 { font-size: clamp(36px, 6vw, 76px); max-width: 900px; margin: 0 auto 20px; letter-spacing: -0.04em; }
.final-cta > p { color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); max-width: 620px; margin: 0 auto 36px; }
.final-cta .hero__ctas { justify-content: center; }
.final-cta__note { margin-top: 22px !important; font-size: 14px !important; margin-bottom: 0 !important; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.contact--solo { grid-template-columns: 1fr; max-width: 760px; }
.contact__details { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact__details li { display: flex; gap: 14px; align-items: center; }
.contact__details .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; color: var(--secondary); background: color-mix(in srgb, var(--secondary) 12%, transparent); }
.contact__details small { display: block; font-size: 13px; color: var(--muted); }
.contact__details a:hover { color: var(--secondary); }
.form { padding: clamp(24px, 3.5vw, 40px); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--text);
  background: color-mix(in srgb, var(--bg) 60%, transparent); border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color 0.25s, box-shadow 0.25s; color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
.field .is-invalid { border-color: #f87171; box-shadow: 0 0 0 4px rgb(248 113 113 / 0.15); }
.form__privacy { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.form__privacy .icon { width: 14px; height: 14px; }
.form__status { margin-top: 14px; font-size: 15px; text-align: center; min-height: 1px; }
.form__status.is-ok { color: #34d399; }
.form__status.is-error { color: #f87171; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { position: relative; padding-top: clamp(70px, 9vw, 110px); border-top: 1px solid var(--line); background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 85%, transparent) 30%); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.footer__brand p { color: var(--muted); margin: 16px 0 22px; max-width: 320px; font-size: 15px; }
.footer h4 { font: 600 14px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a, .social a { font-size: 15px; transition: color 0.25s; }
.footer__col a:hover, .social a:hover { color: var(--secondary); }
.social { display: flex !important; flex-wrap: wrap; gap: 8px 18px !important; }
.footer__word { font: 800 min(260px, calc((100vw - 2 * var(--gutter)) / (var(--len, 6) * 0.62)))/0.85 var(--font-display); letter-spacing: -0.06em; text-align: center; margin: 60px 0 -0.08em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--text) 16%, transparent); background: linear-gradient(to bottom, color-mix(in srgb, var(--text) 10%, transparent), transparent 80%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.footer__bottom { padding: 22px 0 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); position: relative; }

/* =========================================================================
   Overlays: sticky CTA, exit modal, custom cursor
   ========================================================================= */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none; transform: translateY(140%); transition: transform 0.5s var(--ease); }
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-on { transform: none; }

.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 0.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s; }
.modal__panel { position: relative; width: min(100%, 460px); padding: 40px 34px 30px; text-align: center; background: var(--surface); opacity: 0; transform: translateY(20px) scale(0.96); transition: all 0.4s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__panel h2 { font-size: 28px; margin-bottom: 12px; }
.modal__panel p { color: var(--muted); margin-bottom: 26px; }
.modal__panel .btn { width: 100%; }
.modal__icon { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 18px; color: var(--on-primary); background: var(--grad); }
.modal__icon .icon { width: 28px; height: 28px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.modal__close:hover { color: var(--text); background: var(--line); }
.modal__dismiss { margin-top: 14px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.cursor { position: fixed; top: 0; left: 0; z-index: 90; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 14%, transparent), transparent 65%); transition: opacity 0.5s, width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease); mix-blend-mode: screen; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 420px; height: 420px; margin: -210px 0 0 -210px; }

/* =========================================================================
   About + experience timeline
   ========================================================================= */
.about { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about--solo { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.about__photo { margin: 0; aspect-ratio: 1; max-width: 100%; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-strong); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__body .section__head { margin-bottom: 28px; }
.about__p { max-width: 65ch; margin-bottom: 18px; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { margin-bottom: 6px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.tl__when { padding-top: 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl h3 { font-size: 20px; }
.tl__org { margin: 4px 0 10px; font-size: 15px; color: color-mix(in srgb, var(--text) 75%, transparent); }
.tl__text { color: var(--muted); }
.tl__tag { margin-left: 8px; padding: 4px 8px; vertical-align: middle; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 11px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Caption for the 3D graphic, and the hover readout of data scenes */
.hero__caption { position: absolute; right: max(var(--gutter), calc((100% - var(--container)) / 2)); bottom: 88px; max-width: 320px; font-size: 12px; line-height: 1.5; text-align: right; color: var(--muted); }
.scene-tip { position: fixed; top: 0; left: 0; z-index: 30; padding: 8px 12px; border-radius: 8px; pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity 0.15s; font-size: 12px; line-height: 1.45; color: var(--text); background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); }
.scene-tip.is-on { opacity: 1; }
.scene-tip b { font-size: 16px; font-weight: 600; }

/* Short hero for text-first pages (resume, legal) */
.hero--compact { min-height: 0; padding-bottom: 8px; }
.hero__banner { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 260; object-fit: cover; margin: 0 0 34px; border-radius: var(--radius); border: 1px solid var(--line); }
.hero--compact .container { --container: 820px; } /* line up with narrow text sections */
.nav__link.is-current { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }

/* Copy chip: value + Copy button */
.copy-chip { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin-top: 22px; padding: 6px 6px 6px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 60%, transparent); font-size: 15px; }
.copy-chip__value { min-width: 0; overflow-wrap: anywhere; text-align: left; user-select: all; }
.copy-chip__action { padding: 7px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; color: var(--bg); background: var(--text); transition: opacity 0.2s; }
.copy-chip:hover .copy-chip__action { opacity: 0.85; }

/* Preset switcher, only present in the demo build (build.mjs --demo) */
.demo-switch {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 41;
  display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13px;
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.6);
}
.demo-switch__label { padding: 0 8px 0 10px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.demo-switch button { padding: 7px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: color 0.2s, background-color 0.2s; }
.demo-switch button:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.demo-switch button[aria-pressed='true'] { color: var(--bg); background: var(--text); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --topbar: 64px; }
  .nav, .header__actions > .btn { display: none; }
  .burger { display: grid; margin-left: auto; }
  .header__actions { margin-left: auto; }
  .hero { align-items: flex-end; padding-top: 44vh; padding-bottom: 90px; }
  .hero__copy { max-width: none; }
  .hero__scroll { display: none; }
  .compare { grid-template-columns: 1fr; }
  .compare__vs { margin: -10px auto; }
  .contact { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  .demo-switch { left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .demo-switch__label { display: none; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__photo { width: 160px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hero__caption { position: static; margin-top: 28px; max-width: none; text-align: left; }
  .guarantee { flex-direction: column; text-align: center; }
  /* backdrop blur is expensive over a live WebGL canvas on phones */
  .card, .stat, .faq__item, .final-cta { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--surface) 88%, transparent); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .feature--wide { grid-column: auto; }
  .form__grid { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .announce__inner { font-size: 13px; gap: 8px; }
  .footer__top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 18px; }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@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; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee__dup { display: none; }
}
