/* ==========================================================================
   Lightning CX — styles
   ========================================================================== */

:root {
  --bg: #070b1a;
  --bg-alt: #0b1124;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e8ecf8;
  --muted: #9aa4c4;
  --accent: #22d3ee;
  --accent-2: #7c3aed;
  --accent-3: #f5c518;
  --grad: linear-gradient(120deg, #22d3ee 0%, #6d7bff 55%, #a855f7 100%);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --bg: #f6f8ff;
  --bg-alt: #eaefff;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-2: #ffffff;
  --border: rgba(15, 23, 60, 0.12);
  --text: #0f1636;
  --muted: #53608a;
  --accent: #0891b2;
  --accent-2: #6d28d9;
  --accent-3: #b88900;
  --grad: linear-gradient(120deg, #0891b2 0%, #4f46e5 55%, #9333ea 100%);
  --shadow: 0 20px 50px -25px rgba(30, 41, 100, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
h1, h2, h3, h4 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container--narrow { width: min(820px, 92%); }
.skip-link { position: fixed; left: 12px; top: -60px; background: var(--accent); color: #001018; padding: 8px 14px; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip-link:focus { top: 12px; text-decoration: none; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 150; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; justify-content: center;
  padding: 0.75rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad); color: #04101c; box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.7); }
html[data-theme="light"] .btn--primary { color: #fff; box-shadow: 0 10px 30px -12px rgba(79, 70, 229, 0.6); }
.btn--primary:hover { box-shadow: 0 14px 40px -10px rgba(109, 123, 255, 0.85); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--lg { padding: 0.95rem 1.7rem; font-size: 1rem; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn .play { width: 16px; height: 16px; fill: currentColor; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sun { display: none; }
html[data-theme="light"] .i-sun { display: block; }
html[data-theme="light"] .i-moon { display: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100; transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--border); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.3rem; color: var(--text); text-decoration: none !important; letter-spacing: -0.02em; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.brand__bolt { width: 26px; height: 26px; fill: var(--accent-3); filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.7)); animation: zap 4s infinite; }
@keyframes zap { 0%, 90%, 100% { transform: none; filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.6)); } 93% { transform: scale(1.2) rotate(-6deg); filter: drop-shadow(0 0 16px rgba(245, 197, 24, 1)); } 96% { transform: scale(1); } }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; position: relative; transition: color 0.2s; text-decoration: none; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad); transition: width 0.3s var(--ease); }
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a:not(.btn):hover::after, .nav__links a.active::after { width: 100%; }
.nav__links .btn { color: #04101c; }
html[data-theme="light"] .nav__links .btn { color: #fff; }
.nav__tools { display: flex; gap: 0.5rem; }
.nav__burger { display: none; }
.nav__burger span { display: block; width: 18px; height: 2px; background: currentColor; margin: 2px 0; transition: transform 0.3s, opacity 0.3s; border-radius: 2px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1rem; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in.tilt { transition: border-color 0.3s, box-shadow 0.3s, transform 0.18s ease-out; transition-delay: 0s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 2rem) 0 4rem; overflow: hidden; isolation: isolate; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__glow { position: absolute; z-index: -1; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; right: -15%; top: -20%; background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 60%); filter: blur(30px); pointer-events: none; }
html[data-theme="light"] .hero__glow { background: radial-gradient(circle, rgba(79, 70, 229, 0.2), transparent 60%); }
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero .lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 580px; margin-block: 1.2rem 2rem; }
.typed-wrap { white-space: nowrap; }
.caret { color: var(--accent); animation: blink 1s steps(1) infinite; font-weight: 300; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 2rem; color: var(--muted); font-size: 0.9rem; }
.hero__badges li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__badges svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.hero__visual { position: relative; display: grid; place-items: center; }
.live-card { width: min(420px, 100%); border-radius: 22px; padding: 1.3rem; background: color-mix(in srgb, var(--surface-2) 70%, transparent); border: 1px solid var(--border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow), 0 0 80px -30px rgba(109, 123, 255, 0.7); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
.live-card__head { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.live-card__time { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 #34d399; animation: ping 1.6s infinite; }
.live-steps { display: grid; gap: 0.6rem; }
.live-steps li { display: grid; grid-template-columns: 38px 1fr 18px; align-items: center; gap: 0.8rem; padding: 0.65rem 0.8rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); opacity: 0.35; transform: translateX(10px); transition: all 0.5s var(--ease); }
.live-steps li.on { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.live-steps li i { font-style: normal; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, transparent); font-size: 1.1rem; }
.live-steps b { display: block; font-size: 0.92rem; }
.live-steps small { color: var(--muted); font-size: 0.78rem; }
.live-steps em { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); transition: all 0.3s; }
.live-steps li.on em { background: #34d399; border-color: #34d399; box-shadow: 0 0 10px #34d399; }
.live-card__foot { display: flex; align-items: center; gap: 0.7rem; margin-top: 1rem; font-size: 0.8rem; color: var(--muted); }
.meter { flex: 1; height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; }
.meter div { height: 100%; width: 10%; background: linear-gradient(90deg, #f87171, #fbbf24, #34d399); background-size: 300% 100%; transition: width 1s var(--ease); border-radius: 6px; }
.live-card__foot b { color: var(--text); min-width: 56px; text-align: right; }
.float-chip { position: absolute; padding: 0.45rem 0.9rem; font-size: 0.8rem; font-weight: 600; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.float-chip--a { top: 4%; right: -2%; animation: floaty 5s ease-in-out infinite reverse; }
.float-chip--b { bottom: -4%; left: 4%; animation: floaty 6s ease-in-out infinite; color: var(--accent); }
.scroll-hint { position: absolute; bottom: 1.4rem; left: 50%; translate: -50% 0; width: 24px; height: 38px; border: 2px solid var(--border); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: var(--accent); border-radius: 3px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-alt); padding: 1.1rem 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: scrollx 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.7rem; white-space: nowrap; }
.marquee__track span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 10px var(--c, var(--accent)); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { padding: 3.5rem 0 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 4vw, 3rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card { position: relative; padding: 1.8rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s ease-out; display: flex; flex-direction: column; overflow: hidden; transform-style: preserve-3d; }
.card::before, .model::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.card:hover::before, .model:hover::before { opacity: 1; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-2) 22%, transparent)); border: 1px solid var(--border); }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card ul { margin-bottom: 1.2rem; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.card li { padding-left: 1.3rem; position: relative; }
.card li::before { content: "⚡"; position: absolute; left: 0; font-size: 0.75rem; top: 0.15em; }
.card__link { margin-top: auto; font-weight: 600; font-size: 0.92rem; }

/* ---------- Platform explorer ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 1.5rem; }
.tab { padding: 0.65rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.55rem; transition: all 0.25s var(--ease); color: var(--muted); }
.tab i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.tab:hover { color: var(--text); border-color: var(--c); }
.tab[aria-selected="true"] { color: var(--text); background: color-mix(in srgb, var(--c) 18%, transparent); border-color: var(--c); box-shadow: 0 8px 24px -12px var(--c); transform: translateY(-2px); }
.panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 24px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; animation: panelIn 0.5s var(--ease); }
.panel::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -150px; background: radial-gradient(circle, var(--c), transparent 65%); opacity: 0.22; pointer-events: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.panel__tag { color: var(--c); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.panel h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-block: 0.3rem 0.6rem; }
.panel__tagline { font-size: 1.1rem; font-weight: 500; }
.panel__summary { color: var(--muted); }
.panel__caps { display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }
.panel__caps li { display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; font-size: 0.94rem; opacity: 0; animation: capIn 0.5s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 100ms); }
@keyframes capIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.panel__caps svg { width: 20px; height: 20px; fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.panel__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.4rem; }
.panel__chips span { padding: 0.25rem 0.7rem; font-size: 0.78rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.panel__links { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- Flow ---------- */
.flow { margin-top: 3.5rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(160deg, color-mix(in srgb, var(--accent-2) 10%, var(--surface)), var(--surface)); }
.flow__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.flow__head p { color: var(--muted); margin: 0; }
.flow__head h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.flow__track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; margin-bottom: 1.5rem; }
.flow__track::before { content: ""; position: absolute; left: 8.33%; right: 8.33%; top: 32px; height: 3px; background: var(--border); border-radius: 3px; }
.flow__line { position: absolute; left: 8.33%; top: 32px; height: 3px; width: 0; background: var(--grad); border-radius: 3px; transition: width 0.7s var(--ease); box-shadow: 0 0 14px var(--accent); }
.flow__node { position: relative; z-index: 1; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 0 0.3rem; text-align: center; color: var(--muted); }
.flow__node .bubble { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--bg); border: 2px solid var(--border); transition: all 0.4s var(--ease); }
.flow__node:hover .bubble { border-color: var(--accent); transform: translateY(-3px); }
.flow__node.done .bubble { border-color: var(--accent); }
.flow__node.active { color: var(--text); }
.flow__node.active .bubble { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--bg)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 26px color-mix(in srgb, var(--accent) 60%, transparent); transform: scale(1.1); }
.flow__node span.t { font-size: 0.8rem; font-weight: 600; line-height: 1.3; }
.flow__detail { padding: 1.2rem 1.4rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--accent); min-height: 92px; }
.flow__detail b { display: block; margin-bottom: 0.2rem; font-family: "Space Grotesk", sans-serif; }
.flow__detail p { margin: 0; color: var(--muted); }
.flow__detail .step { font-size: 0.75rem; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Finder ---------- */
.finder { max-width: 820px; margin-inline: auto; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.finder__bar { height: 5px; background: var(--border); }
.finder__bar div { height: 100%; width: 0; background: var(--grad); transition: width 0.5s var(--ease); }
.finder__body { padding: clamp(1.4rem, 4vw, 2.6rem); min-height: 360px; animation: panelIn 0.4s var(--ease); }
.finder__step { color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.finder__q { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0.4rem 0 1.4rem; }
.finder__opts { display: grid; gap: 0.7rem; }
.opt { text-align: left; padding: 1rem 1.2rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); cursor: pointer; display: flex; gap: 0.9rem; align-items: center; transition: all 0.25s var(--ease); }
.opt:hover { border-color: var(--accent); transform: translateX(4px); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.opt .ico { font-size: 1.4rem; }
.opt b { display: block; font-size: 1rem; }
.opt small { color: var(--muted); }
.finder__nav { display: flex; justify-content: space-between; margin-top: 1.4rem; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0.4rem 0; font-weight: 500; }
.link-btn:hover { color: var(--accent); }
.result h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.result__match { display: grid; gap: 0.8rem; margin: 1.2rem 0; }
.match { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; align-items: center; }
.match b { font-size: 0.95rem; }
.match .bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--border); overflow: hidden; }
.match .bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--grad); transition: width 1s var(--ease); }
.result__plan { margin: 1.2rem 0; padding: 1.1rem 1.3rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.result__plan h4 { font-size: 1rem; margin-bottom: 0.6rem; }
.result__plan ol { counter-reset: n; display: grid; gap: 0.5rem; }
.result__plan li { counter-increment: n; padding-left: 2rem; position: relative; font-size: 0.93rem; color: var(--muted); }
.result__plan li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #04101c; font-weight: 700; font-size: 0.75rem; display: grid; place-items: center; }
.result__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- ROI ---------- */
.roi { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.roi__inputs, .roi__result { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 24px; border: 1px solid var(--border); background: var(--surface); }
.roi__inputs { display: grid; gap: 1.6rem; align-content: start; }
.range span { display: flex; justify-content: space-between; margin-bottom: 0.6rem; font-size: 0.95rem; }
.range output { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--border) var(--p, 50%)); outline-offset: 6px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); transition: transform 0.2s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.roi__result { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--accent-2) 12%, var(--surface))); }
.roi__big small, .roi__split small { color: var(--muted); display: block; font-size: 0.82rem; }
.roi__big strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.roi__big span { color: #34d399; font-weight: 600; font-size: 0.95rem; }
.roi__split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1.5rem 0; }
.roi__split div { padding: 0.9rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.roi__split b { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; }
.bars { display: grid; gap: 0.7rem; margin-bottom: 1.2rem; }
.bars div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 0.8rem; font-size: 0.85rem; color: var(--muted); }
.bars i { display: block; height: 14px; border-radius: 8px; background: var(--muted); opacity: 0.55; width: 100%; transition: width 0.6s var(--ease); }
.bars .bar--accent { background: var(--grad); opacity: 1; }
.fine { font-size: 0.76rem; color: var(--muted); }

/* ---------- Resources ---------- */
.res-controls { display: grid; gap: 1rem; margin-bottom: 1.2rem; }
.search { position: relative; }
.search svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; padding: 0.95rem 1rem 0.95rem 2.9rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 0.86rem; font-weight: 500; color: var(--muted); transition: all 0.2s; }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--grad); color: #04101c; border-color: transparent; font-weight: 600; }
html[data-theme="light"] .chip[aria-pressed="true"] { color: #fff; }
.chips--small .chip { font-size: 0.8rem; padding: 0.35rem 0.8rem; }
.res-controls__row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.res-controls select { padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.85rem; }
.res-controls select option { color: #111; }
#resSaved { margin-left: auto; }
.res-count { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.8rem; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.res { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.3rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; animation: panelIn 0.4s var(--ease) backwards; }
.res:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: var(--shadow); }
.res__top { display: flex; align-items: center; gap: 0.5rem; padding-right: 1.9rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.res__plat { color: var(--c); display: inline-flex; align-items: center; gap: 0.4rem; }
.res__plat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.res__type { margin-left: auto; padding: 0.15rem 0.55rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.res h3 { font-size: 1.05rem; margin: 0.2rem 0; padding-right: 2rem; }
.res p { color: var(--muted); font-size: 0.88rem; margin: 0; flex: 1; }
.res__foot { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-top: 0.6rem; }
.res__foot a { font-weight: 600; }
.res__level::before { content: "●"; margin-right: 0.35rem; color: var(--lvl); }
.res__star { position: absolute; right: 0.9rem; top: 0.95rem; background: none; border: 0; cursor: pointer; font-size: 1.25rem; color: var(--muted); transition: transform 0.2s, color 0.2s; line-height: 1; }
.res__star:hover { transform: scale(1.25); color: var(--accent-3); }
.res__star[aria-pressed="true"] { color: var(--accent-3); }
.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--border); border-radius: 16px; }

/* Checklist */
.checklist { margin-top: 4rem; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 24px; border: 1px solid var(--border); background: var(--surface); }
.checklist__intro p { color: var(--muted); }
.gauge { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0; }
.gauge svg { width: 110px; height: 110px; transform: rotate(-90deg); flex: none; }
.gauge circle { fill: none; stroke-width: 10; }
.gauge__bg { stroke: var(--border); }
.gauge__fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 0.8s var(--ease), stroke 0.4s; }
.gauge strong { font-family: "Space Grotesk", sans-serif; font-size: 2rem; display: block; line-height: 1; }
.gauge small { color: var(--muted); }
.checklist__items { display: grid; gap: 0.5rem; align-content: start; }
.checklist__group { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0.8rem 0 0.1rem; }
.checklist__group:first-child { margin-top: 0; }
.check { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.7rem 0.9rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-size: 0.92rem; transition: all 0.2s; }
.check:hover { border-color: var(--accent); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border); display: grid; place-items: center; transition: all 0.25s var(--ease); margin-top: 1px; }
.check .box svg { width: 14px; height: 14px; stroke: #04101c; stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transform: scale(0); transition: transform 0.25s var(--ease); }
.check input:checked + .box { background: var(--grad); border-color: transparent; }
.check input:checked + .box svg { transform: scale(1); }
.check input:checked ~ .txt { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: t; position: relative; }
.timeline li { position: relative; padding: 1.5rem 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); cursor: default; transition: all 0.4s var(--ease); outline-offset: 4px; }
.timeline li p { color: var(--muted); font-size: 0.88rem; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s var(--ease); }
.timeline li b { color: var(--text); }
.timeline li.active, .timeline li:hover, .timeline li:focus { transform: translateY(-6px); border-color: var(--accent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); box-shadow: var(--shadow); }
.timeline li.active p, .timeline li:hover p, .timeline li:focus p { max-height: 220px; opacity: 1; margin-top: 0.4rem; }
.timeline__n { font-family: "Space Grotesk", sans-serif; font-size: 2.2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; line-height: 1; margin-bottom: 0.5rem; }
.timeline h3 { margin-bottom: 0; }
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.model { position: relative; overflow: hidden; padding: 1.5rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); transition: border-color 0.3s, transform 0.2s ease-out; }
.model:hover { border-color: var(--accent); }
.model h4 { font-size: 1.1rem; }
.model p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; }
.faq__item { border-radius: 14px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: border-color 0.3s; }
.faq__item.open { border-color: var(--accent); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq__q::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform 0.3s var(--ease); line-height: 1; }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq__item.open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.section--cta { background: radial-gradient(900px 400px at 85% 0%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%), radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--bg-alt); }
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.contact__copy p { color: var(--muted); font-size: 1.05rem; }
.contact__list { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.contact__list li { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); }
.contact__list svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.form { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 24px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 80%, transparent); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; }
.form input, .form select, .form textarea { padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); font-weight: 400; transition: border-color 0.2s, box-shadow 0.2s; width: 100%; }
.form select option { color: #111; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.form .invalid { border-color: #f87171 !important; }
.form textarea { resize: vertical; }
.form__status { margin: 0; min-height: 1.4em; font-size: 0.9rem; }
.form__status.ok { color: #34d399; }
.form__status.err { color: #f87171; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer__tag { color: var(--muted); max-width: 320px; margin-top: 0.8rem; font-size: 0.92rem; }
.footer h5 { margin: 0 0 0.8rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.footer__grid a:not(.brand) { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.45rem; }
.footer__grid a:not(.brand):hover { color: var(--accent); }
.footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: grid; gap: 0.5rem; color: var(--muted); font-size: 0.78rem; }

/* ---------- Floating UI ---------- */
.to-top { position: fixed; right: 22px; bottom: 98px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; z-index: 90; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all 0.3s var(--ease); font-size: 1.1rem; backdrop-filter: blur(10px); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--accent); }

.chat-fab { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; z-index: 95; background: var(--grad); display: grid; place-items: center; box-shadow: 0 12px 34px -8px rgba(109, 123, 255, 0.8); transition: transform 0.3s var(--ease); }
.chat-fab:hover { transform: scale(1.08) rotate(-6deg); }
.chat-fab svg { width: 26px; height: 26px; fill: #04101c; }
html[data-theme="light"] .chat-fab svg { fill: #fff; }
.chat-fab__ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ringout 2.4s infinite; pointer-events: none; }
@keyframes ringout { to { transform: scale(1.7); opacity: 0; } }
.chat { position: fixed; right: 22px; bottom: 92px; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100svh - 120px)); z-index: 96; display: flex; flex-direction: column; border-radius: 20px; background: var(--bg-alt); border: 1px solid var(--border); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); overflow: hidden; animation: chatIn 0.35s var(--ease); }
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.chat__head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.1rem; background: var(--grad); color: #04101c; }
html[data-theme="light"] .chat__head { color: #fff; }
.chat__head small { display: block; opacity: 0.8; font-size: 0.75rem; }
.chat__head button { background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: inherit; line-height: 1; }
.chat__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 0.65rem 0.9rem; border-radius: 14px; font-size: 0.9rem; animation: msgIn 0.3s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg--bot { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg--me { background: var(--grad); color: #04101c; border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 500; }
html[data-theme="light"] .msg--me { color: #fff; }
.msg--typing { display: flex; gap: 4px; padding: 0.85rem 1rem; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dots 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 50% { transform: translateY(-5px); opacity: 0.5; } }
.chat__quick { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.7rem; }
.chat__quick button { padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; font-size: 0.8rem; transition: all 0.2s; }
.chat__quick button:hover { background: var(--accent); color: #04101c; }
.chat__form { display: flex; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid var(--border); }
.chat__form input { flex: 1; padding: 0.65rem 0.9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); }
.chat__form input:focus { outline: none; border-color: var(--accent); }
.chat__form button { width: 42px; border-radius: 50%; border: 0; background: var(--grad); cursor: pointer; color: #04101c; font-size: 1rem; }

/* ---------- Simple pages (privacy / 404) ---------- */
.page { padding: calc(var(--nav-h) + 3rem) 0 5rem; min-height: 80vh; }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page h2 { font-size: 1.4rem; margin-top: 2rem; }
.page p, .page li { color: var(--muted); }
.page ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.notfound { text-align: center; display: grid; place-items: center; gap: 0.5rem; }
.notfound .big { font-family: "Space Grotesk", sans-serif; font-size: clamp(5rem, 18vw, 10rem); line-height: 1; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 1rem; }
  .cards, .res-grid { grid-template-columns: repeat(2, 1fr); }
  .panel, .roi, .checklist, .contact { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li p { max-height: none; opacity: 1; margin-top: 0.4rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__burger { display: grid; }
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem 4% 1.2rem; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform 0.4s var(--ease); max-height: calc(100svh - var(--nav-h)); overflow-y: auto; }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 0.8rem; border: 0; }
  .flow__track { grid-template-columns: 1fr; gap: 0.8rem; }
  .flow__track::before, .flow__line { display: none; }
  .flow__node { flex-direction: row; text-align: left; gap: 1rem; padding: 0.4rem; border-radius: 14px; }
  .flow__node .bubble { width: 52px; height: 52px; flex: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards, .res-grid, .models { grid-template-columns: 1fr; }
  .form__row, .roi__split { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .typed-wrap { white-space: normal; }
  .footer__grid { grid-template-columns: 1fr; }
  .bars div { grid-template-columns: 90px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
