/* ==========================================================================
   NeXGen GPT — Official site
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #04060c;
  --bg-2: #0b0f17;
  --surface: rgba(18, 24, 36, 0.55);
  --surface-solid: #121824;
  --surface-2: rgba(30, 38, 56, 0.6);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --dim: #64748b;

  --teal: #2dd4bf;
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --indigo: #6366f1;
  --indigo-2: #818cf8;
  --violet: #a855f7;
  --pink: #e879f9;
  --amber: #f59e0b;
  --green: #10b981;

  --grad: linear-gradient(115deg, #2dd4bf 0%, #22d3ee 22%, #6366f1 55%, #a855f7 80%, #e879f9 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(99, 102, 241, 0.16) 50%, rgba(168, 85, 247, 0.16));

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(129, 140, 248, 0.3), 0 20px 60px -10px rgba(99, 102, 241, 0.55);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --container: 1220px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main, .footer { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: rgba(99, 102, 241, 0.55); color: #fff; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 12px; background: var(--indigo); color: #fff; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.grad-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 8s linear infinite;
}
@keyframes grad-shift { to { background-position: 200% center; } }

/* ---------- Background layers ---------- */
#space {
  position: fixed; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  pointer-events: none;
}
.aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
}
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5;
  animation: float-orb 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #4f46e5; }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; right: -10vw; top: 10vh; background: #0891b2; animation-delay: -6s; opacity: .35; }
.aurora span:nth-child(3) { width: 34vw; height: 34vw; left: 30vw; bottom: -18vw; background: #9333ea; animation-delay: -12s; opacity: .3; }
@keyframes float-orb {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(.95); }
}
.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  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");
}

.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 62%);
  transform: translate3d(var(--cx, 50vw), var(--cy, 30vh), 0);
  transition: opacity .4s;
}

/* scroll progress */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 24px -6px rgba(99, 102, 241, .8); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand small { display: block; font-family: var(--font); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.brand .gpt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(148, 163, 184, .08); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); position: relative;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .35s var(--ease), opacity .2s;
}
.menu-btn::before { top: 15px; }
.menu-btn span { top: 21px; }
.menu-btn::after { top: 27px; }
.nav.open .menu-btn::before { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span { opacity: 0; }
.nav.open .menu-btn::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s, background .3s, border-color .3s;
  transform: translate(var(--bx), var(--by));
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  color: #fff; background: var(--grad); background-size: 160% auto;
  box-shadow: 0 10px 40px -10px rgba(99, 102, 241, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn-primary:hover { box-shadow: 0 16px 50px -8px rgba(99, 102, 241, 1), inset 0 1px 0 rgba(255, 255, 255, .3); background-position: right center; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { border: 1px solid var(--border-strong); background: rgba(148, 163, 184, .06); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(129, 140, 248, .6); background: rgba(99, 102, 241, .12); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

.btn-play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 16px; border-radius: 16px;
  background: #000; border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.btn-play:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .5); box-shadow: 0 16px 40px -12px rgba(34, 211, 238, .5); }
.btn-play svg { width: 30px; height: 30px; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-play small { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.btn-play strong { font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Generic sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; margin-bottom: 20px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(99, 102, 241, .08);
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #c7d2fe;
}
.eyebrow i {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .75rem;
  background: var(--grad); color: #fff;
}
.section-head h2, .h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
.section-head p { margin-top: 20px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: var(--radius);
}

/* ---------- Reveal animations (3D) ---------- */
[data-reveal] {
  opacity: 0;
  transform: perspective(1000px) translate3d(0, 60px, -40px) rotateX(14deg);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}
[data-reveal="left"] { transform: perspective(1000px) translate3d(-70px, 0, -40px) rotateY(-16deg); }
[data-reveal="right"] { transform: perspective(1000px) translate3d(70px, 0, -40px) rotateY(16deg); }
[data-reveal="zoom"] { transform: perspective(1000px) scale(.86) translateZ(-80px); }
[data-reveal].in { opacity: 1; transform: none; }

.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.split-words .w > span {
  display: inline-block; transform: translateY(105%) rotateX(-60deg); transform-origin: 50% 100%;
  transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms);
}
.split-words.in .w > span { transform: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  display: flex; align-items: center;
  overflow: hidden;
  perspective: 1200px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; margin-bottom: 28px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(15, 23, 42, .6);
  font-size: .86rem; color: #cbd5e1; backdrop-filter: blur(8px);
}
.hero-badge b {
  padding: 4px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--grad); color: #fff;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(16, 185, 129, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

.hero h1 { font-size: clamp(2.9rem, 7vw, 5.9rem); font-weight: 700; letter-spacing: -0.035em; }
.hero h1 .line { display: block; }
.rotator { position: relative; display: inline-grid; vertical-align: bottom; }
.rotator span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(60%) rotateX(-80deg); transform-origin: 50% 100%;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
  background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 6s linear infinite;
  padding-bottom: .08em;
}
.rotator span.on { opacity: 1; transform: none; }
.rotator span.off { opacity: 0; transform: translateY(-40%) rotateX(80deg); transform-origin: 50% 0; transition: opacity .25s ease-out, transform .6s var(--ease); }

.hero-lead { margin-top: 26px; max-width: 560px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); }
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 32px; margin-top: 52px; justify-content: start; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: .82rem; color: var(--dim); letter-spacing: .02em; }

/* 3D hero stage */
.stage {
  --rx: 0deg; --ry: 0deg;
  position: relative; height: min(720px, 82vh); min-height: 560px;
  display: grid; place-items: center;
  perspective: 1400px;
}
#neural {
  position: absolute; inset: -12% -20%; width: 140%; height: 124%;
  pointer-events: none; z-index: 0;
}
.stage-inner {
  position: relative; z-index: 1;
  transform-style: preserve-3d;
  transform: rotateX(calc(8deg + var(--rx))) rotateY(calc(-18deg + var(--ry)));
  transition: transform .9s var(--ease);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -16px; } }

.phone {
  --pw: 300px;
  position: relative; width: var(--pw); aspect-ratio: 610 / 1356;
  padding: 11px; border-radius: calc(var(--pw) * .16);
  background: linear-gradient(145deg, #3b4560, #10141f 40%, #1c2333);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .14),
    inset 0 0 0 5px #05070c,
    0 50px 100px -30px rgba(0, 0, 0, .9),
    0 0 80px -10px rgba(99, 102, 241, .45);
  transform-style: preserve-3d;
}
.phone::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(145deg, #2a3148, #0b0e16);
  transform: translateZ(-16px); box-shadow: 0 0 60px rgba(34, 211, 238, .25);
}
.phone::after {
  content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 12%; border-radius: 0 3px 3px 0;
  background: #2b3348; box-shadow: 0 90px 0 #2b3348;
}
.phone .screen {
  position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * .13);
  overflow: hidden; background: #f8fafc; transform: translateZ(1px);
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .28) 0%, transparent 32%, transparent 70%, rgba(255, 255, 255, .06));
}
.phone .notch {
  position: absolute; top: 2.2%; left: 50%; width: 26%; height: 3.2%; translate: -50% 0;
  border-radius: 99px; background: #05070c; z-index: 2;
}
.phone .screen.swap img { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease), transform 1.1s var(--ease); transform: scale(1.04); }
.phone .screen.swap img.on { opacity: 1; transform: none; }

/* floating cards around phone */
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(15, 20, 32, .72);
  border: 1px solid rgba(148, 163, 184, .2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
  white-space: nowrap; font-size: .88rem;
  animation: drift 6s ease-in-out infinite;
}
.float-card .ic {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; flex: none;
  background: var(--grad-soft); border: 1px solid rgba(148, 163, 184, .2);
}
.float-card b { display: block; font-weight: 600; font-size: .9rem; }
.float-card small { display: block; color: var(--muted); font-size: .76rem; }
.fc-1 { top: 8%; left: -38%; transform: translateZ(110px); animation-delay: -1s; }
.fc-2 { top: 34%; right: -46%; transform: translateZ(160px); animation-delay: -3s; }
.fc-3 { bottom: 20%; left: -46%; transform: translateZ(140px); animation-delay: -2s; }
.fc-4 { bottom: 4%; right: -30%; transform: translateZ(90px); animation-delay: -4s; }
@keyframes drift { 50% { translate: 0 -14px; } }
.lib-1 { top: 16%; right: 2%; transform: translateZ(120px); animation-delay: -2s; }
.lib-2 { bottom: 14%; left: 4%; transform: translateZ(100px); animation-delay: -4s; }

.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; border-radius: 3px; background: var(--grad); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(1) { animation-delay: -.2s; } .wave i:nth-child(2) { animation-delay: -.5s; }
.wave i:nth-child(3) { animation-delay: -.1s; } .wave i:nth-child(4) { animation-delay: -.7s; }
.wave i:nth-child(5) { animation-delay: -.35s; } .wave i:nth-child(6) { animation-delay: -.9s; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 22px; } }

.orbit {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px solid rgba(129, 140, 248, .22);
  transform-style: preserve-3d; pointer-events: none;
}
.orbit::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 18px 4px rgba(34, 211, 238, .8);
}
.orbit-1 { width: 560px; height: 560px; margin: -280px; transform: rotateX(72deg) translateZ(-30px); animation: spin 14s linear infinite; }
.orbit-2 { width: 700px; height: 700px; margin: -350px; transform: rotateX(72deg) rotateY(18deg); animation: spin 22s linear infinite reverse; border-style: dashed; border-color: rgba(168, 85, 247, .2); }
.orbit-2::before { background: var(--pink); box-shadow: 0 0 18px 4px rgba(232, 121, 249, .8); }
@keyframes spin { to { rotate: z 360deg; } }

/* perspective grid floor */
.floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%; z-index: 0;
  transform: perspective(500px) rotateX(70deg); transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(99, 102, 241, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, .35) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  animation: floor 3s linear infinite;
  pointer-events: none;
}
@keyframes floor { to { background-position: 0 64px; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
}
.scroll-hint i { width: 24px; height: 38px; border: 1.5px solid var(--border-strong); border-radius: 14px; position: relative; }
.scroll-hint i::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px;
  background: var(--cyan); animation: scroll-dot 1.8s var(--ease) infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; padding: 26px 0; overflow: hidden;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(34, 211, 238, .04), rgba(168, 85, 247, .06));
  transform: rotate(-2deg) scale(1.04);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--display); font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 600; white-space: nowrap; color: #cbd5e1;
}
.marquee-track span::after { content: "✦"; font-size: .8em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 34px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   FEATURES (tilt cards)
   ========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1400px; }
.tilt {
  --mx: 50%; --my: 50%; --tx: 0deg; --ty: 0deg;
  position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform .5s var(--ease), border-color .3s, box-shadow .4s;
}
.tilt:hover { border-color: rgba(129, 140, 248, .45); box-shadow: 0 30px 70px -25px rgba(99, 102, 241, .55); }
.tilt::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(129, 140, 248, .22), transparent 45%);
  transition: opacity .4s;
}
.tilt:hover::before { opacity: 1; }
.tilt > * { transform: translateZ(30px); }

.feature {
  padding: 28px 26px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 38, 56, .55), rgba(12, 17, 28, .55));
  border: 1px solid var(--border);
}
.feature .ic {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 22px;
  background: var(--c, rgba(99, 102, 241, .15)); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 12px 30px -10px var(--cg, rgba(99, 102, 241, .6));
  transform: translateZ(60px);
}
.feature h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   SHOWCASE blocks (text + phone)
   ========================================================================== */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.showcase.flip .show-media { order: -1; }
.show-copy h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; }
.show-copy > p { margin-top: 20px; color: var(--muted); font-size: 1.1rem; max-width: 520px; }
.check-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: #cbd5e1; }
.check-list li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3L17 8.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
    var(--grad);
  box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .8);
}
.check-list b { color: var(--text); font-weight: 600; }
.show-media { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: 620px; }
.show-media .phone { --pw: 290px; transform: rotateY(var(--sy, -14deg)) rotateX(6deg); transition: transform 1s var(--ease); }
.show-media:hover .phone { --sy: -4deg; }
.flip .show-media .phone { --sy: 14deg; }
.flip .show-media:hover .phone { --sy: 4deg; }
.show-media .halo {
  position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: conic-gradient(from 0deg, #22d3ee, #6366f1, #a855f7, #e879f9, #22d3ee);
  filter: blur(80px); opacity: .35; animation: spin 18s linear infinite;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(30, 38, 56, .5); font-size: .88rem; color: #cbd5e1;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.chip:hover { transform: translateY(-3px); border-color: rgba(129, 140, 248, .5); background: rgba(99, 102, 241, .14); }

/* live chat demo */
.chat-demo { position: absolute; z-index: 3; right: -4%; bottom: 6%; width: 330px; padding: 16px; border-radius: 22px; transform: translateZ(120px); background: rgba(10, 14, 24, .9); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(129, 140, 248, .25); }
.flip .chat-demo { right: auto; left: -4%; }
.chat-demo header { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); font-size: .86rem; }
.chat-demo header .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #c7d2fe, #a5f3fc); font-size: 1rem; }
.chat-demo header small { display: block; color: var(--green); font-size: .72rem; }
.chat-log {
  display: flex; flex-direction: column; gap: 10px; min-height: 230px; max-height: 230px; overflow: hidden; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 48px);
  mask-image: linear-gradient(to bottom, transparent, #000 48px);
}
.msg {
  max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .84rem; line-height: 1.5;
  animation: msg-in .5s var(--ease) both;
}
.msg.user { align-self: flex-end; background: #4f46e5; color: #fff; border-bottom-right-radius: 5px; }
.msg.ai { align-self: flex-start; background: #182234; border: 1px solid var(--border); border-bottom-left-radius: 5px; color: #e2e8f0; }
.msg.ai b { color: #a5b4fc; }
.msg .follow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.msg .follow span { padding: 3px 9px; border-radius: 99px; border: 1px solid rgba(129, 140, 248, .4); font-size: .72rem; color: #c7d2fe; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ==========================================================================
   ASSISTANTS 3D RING
   ========================================================================== */
.ring-scene {
  position: relative; height: 470px; perspective: 1600px;
  display: grid; place-items: center; touch-action: pan-y; cursor: grab; user-select: none;
}
.ring-scene:active { cursor: grabbing; }
.ring { position: relative; width: 250px; height: 330px; transform-style: preserve-3d; }
.ring-item {
  position: absolute; inset: 0;
  padding: 28px 24px; border-radius: 26px;
  background: linear-gradient(170deg, rgba(36, 46, 70, .85), rgba(10, 14, 24, .92));
  border: 1px solid var(--border-strong);
  display: flex; flex-direction: column;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: border-color .4s, box-shadow .4s, opacity .4s;
}
.ring-item.front { border-color: rgba(129, 140, 248, .7); box-shadow: 0 0 0 1px rgba(129, 140, 248, .4), 0 30px 80px -20px rgba(99, 102, 241, .8); }
.ring-item .emoji {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; margin-bottom: 20px;
  background: var(--grad-soft); border: 1px solid rgba(148, 163, 184, .2);
}
.ring-item h3 { font-size: 1.3rem; margin-bottom: 6px; }
.ring-item .tag { font-size: .8rem; font-weight: 600; color: #a5b4fc; margin-bottom: 14px; }
.ring-item p { font-size: .88rem; color: var(--muted); }
.ring-item .try { margin-top: auto; padding-top: 16px; font-size: .78rem; color: #cbd5e1; border-top: 1px dashed var(--border); }
.ring-item .try::before { content: "✦ "; color: var(--cyan); }
.ring-ctrl { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.ring-ctrl button {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--surface); transition: background .3s, transform .3s;
}
.ring-ctrl button:hover { background: rgba(99, 102, 241, .2); transform: scale(1.08); }
.ring-ctrl svg { width: 20px; height: 20px; }
.ring-shadow { position: absolute; bottom: 0; left: 50%; width: 70%; height: 60px; translate: -50% 0; border-radius: 50%; background: radial-gradient(ellipse, rgba(99, 102, 241, .35), transparent 70%); filter: blur(10px); }

/* ==========================================================================
   CREATE HUB
   ========================================================================== */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); margin-top: 30px; }
.tabs button { padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--muted); transition: color .3s, background .3s; }
.tabs button[aria-selected="true"] { color: #fff; background: var(--grad); box-shadow: 0 8px 24px -8px rgba(99, 102, 241, .8); }
.tab-panels { position: relative; margin-top: 22px; min-height: 196px; }
.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tab-panel[hidden] { display: none; }
.tab-panel.anim > * { animation: tool-in .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes tool-in { from { opacity: 0; transform: perspective(600px) rotateX(-40deg) translateY(20px); } }
.tool {
  display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px;
  border: 1px solid var(--border); background: rgba(18, 24, 36, .65);
  transition: transform .3s var(--ease), border-color .3s;
}
.tool:hover { transform: translateY(-3px); border-color: rgba(129, 140, 248, .45); }
.tool .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: rgba(236, 72, 153, .12); }
.tool b { display: block; font-size: .93rem; font-weight: 600; }
.tool small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; }

.trend-strip { position: absolute; z-index: 3; left: -2%; top: 10%; display: flex; flex-direction: column; gap: 14px; transform: translateZ(140px); }
.trend-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; animation: drift 6s ease-in-out infinite; }
.trend-card:nth-child(2) { animation-delay: -2s; margin-left: 40px; }
.trend-card:nth-child(3) { animation-delay: -4s; }
.trend-card .thumb { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.trend-card b { display: block; font-size: .86rem; }
.trend-card small { color: var(--muted); font-size: .74rem; }
.badge-hot { display: inline-block; padding: 2px 8px; margin-left: 6px; border-radius: 6px; background: #f97316; color: #fff; font-size: .64rem; font-weight: 700; vertical-align: 1px; }

/* ==========================================================================
   COVERFLOW GALLERY
   ========================================================================== */
.coverflow {
  position: relative; height: clamp(520px, 62vw, 700px);
  perspective: 1800px; touch-action: pan-y; user-select: none;
}
.cf-item {
  position: absolute; left: 50%; top: 0; width: clamp(240px, 26vw, 340px); aspect-ratio: 9 / 16;
  margin-left: calc(clamp(240px, 26vw, 340px) / -2);
  border-radius: 28px; overflow: hidden; cursor: pointer;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  transition: transform 1s var(--ease), opacity .8s, filter .8s;
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-box-reflect: below 12px linear-gradient(transparent 78%, rgba(255, 255, 255, .12));
}
.cf-item img { width: 100%; height: 100%; object-fit: cover; }
.cf-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .25), transparent 35%); pointer-events: none; }
.cf-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.cf-dots button { width: 10px; height: 10px; border-radius: 99px; background: var(--border-strong); transition: width .4s var(--ease), background .4s; }
.cf-dots button.on { width: 34px; background: var(--grad); }

/* ==========================================================================
   PRIVACY (gyroscope)
   ========================================================================== */
.privacy-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.gyro { position: relative; height: 480px; display: grid; place-items: center; perspective: 1000px; }
.gyro-core { position: relative; width: 300px; height: 300px; transform-style: preserve-3d; animation: gyro 20s linear infinite; }
.gyro-ring {
  position: absolute; inset: 0; border-radius: 50%; transform-style: preserve-3d;
  border: 2px solid rgba(129, 140, 248, .5);
  box-shadow: 0 0 30px rgba(99, 102, 241, .35), inset 0 0 30px rgba(34, 211, 238, .15);
}
.gyro-ring:nth-child(1) { transform: rotateX(70deg); animation: r1 9s linear infinite; }
.gyro-ring:nth-child(2) { transform: rotateY(70deg); animation: r2 12s linear infinite; inset: 20px; border-color: rgba(34, 211, 238, .5); }
.gyro-ring:nth-child(3) { transform: rotateX(30deg) rotateY(40deg); animation: r3 15s linear infinite; inset: 40px; border-color: rgba(232, 121, 249, .45); }
@keyframes r1 { to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes r2 { to { transform: rotateY(70deg) rotateX(360deg); } }
@keyframes r3 { to { transform: rotateX(30deg) rotateY(400deg); } }
@keyframes gyro { to { transform: rotateY(360deg); } }
.shield {
  position: absolute; width: 130px; height: 130px; display: grid; place-items: center;
  border-radius: 36px; font-size: 3.4rem;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .3), transparent 50%), var(--grad);
  box-shadow: 0 0 80px rgba(99, 102, 241, .7), inset 0 -10px 30px rgba(0, 0, 0, .25);
  animation: drift 5s ease-in-out infinite;
}
.shield svg { width: 64px; height: 64px; }
.priv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.priv-item { padding: 22px; border-radius: 20px; }
.priv-item .ic { font-size: 1.5rem; margin-bottom: 12px; }
.priv-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; font-family: var(--font); letter-spacing: 0; }
.priv-item p { font-size: .88rem; color: var(--muted); }

/* ==========================================================================
   LANGUAGE SPHERE
   ========================================================================== */
.lang-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sphere { position: relative; height: 480px; }
.sphere span {
  position: absolute; left: 50%; top: 50%;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  font-weight: 600; font-size: 1rem;
  background: rgba(18, 24, 36, .7); border: 1px solid rgba(129, 140, 248, .35);
  will-change: transform, opacity;
}
.sphere span:nth-child(3n) { border-color: rgba(34, 211, 238, .45); }
.sphere span:nth-child(3n+1) { border-color: rgba(232, 121, 249, .4); }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; perspective: 1400px; }
.plan { padding: 38px 34px; border-radius: var(--radius-lg); }
.plan.pro { position: relative; background: linear-gradient(170deg, rgba(79, 70, 229, .3), rgba(15, 20, 32, .85) 60%); border: 1px solid rgba(129, 140, 248, .5); }
.plan.pro::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, #22d3ee, #a855f7, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: border-spin 4s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes border-spin { to { --ang: 360deg; } }
.plan .tag { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan.pro .tag { color: #fcd34d; }
.plan h3 { font-size: 2.2rem; margin: 14px 0 6px; }
.plan .sub { color: var(--muted); font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 28px 0 30px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; font-size: .95rem; color: #cbd5e1; }
.plan li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: rgba(16, 185, 129, .15); color: var(--green); }
.plan li.no::before { content: "–"; background: rgba(148, 163, 184, .1); color: var(--dim); }
.plan li.no { color: var(--dim); }
.plan .btn { width: 100%; }
.plan-note { margin-top: 26px; text-align: center; font-size: .84rem; color: var(--dim); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; border: 1px solid var(--border); background: rgba(18, 24, 36, .55); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(129, 140, 248, .45); background: rgba(30, 38, 56, .55); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative;
  font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: rgba(99, 102, 241, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d2fe' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); }
.faq .ans a { color: #a5b4fc; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 90px); border-radius: 40px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(34, 211, 238, .25), transparent 50%),
              radial-gradient(120% 140% at 100% 100%, rgba(168, 85, 247, .3), transparent 50%),
              linear-gradient(160deg, #10162a, #0a0d18);
  border: 1px solid rgba(129, 140, 248, .3);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  perspective: 1400px;
}
.cta h2 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.cta p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.cta .hero-actions { margin-top: 30px; }
.cta-art { position: relative; justify-self: center; transform: rotateY(-16deg) rotateX(8deg); transform-style: preserve-3d; transition: transform 1s var(--ease); }
.cta:hover .cta-art { transform: rotateY(-6deg) rotateX(3deg); }
.cta-art .phone { --pw: 260px; }
.cta-art .icon-float {
  position: absolute; width: 96px; height: 96px; right: -48px; top: 8%; border-radius: 26px;
  transform: translateZ(80px); box-shadow: 0 20px 50px -10px rgba(99, 102, 241, .9);
  animation: drift 5s ease-in-out infinite;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; margin-top: 60px; padding: 70px 0 40px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(4, 6, 12, .85)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer p { color: var(--muted); font-size: .92rem; margin-top: 16px; max-width: 340px; }
.footer h4 { font-family: var(--font); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: #cbd5e1; font-size: .94rem; transition: color .25s; }
.footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--dim); }
.footer-bottom p { margin: 0; max-width: 760px; font-size: .8rem; color: var(--dim); }
.footer .big-word {
  font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 17vw, 15rem); line-height: .8; letter-spacing: -0.05em;
  text-align: center; margin-top: 50px; user-select: none;
  background: linear-gradient(180deg, rgba(148, 163, 184, .16), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   SUB PAGES (legal + support)
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--nav-h) + 80px) 0 70px; text-align: center; overflow: hidden; perspective: 1000px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
.page-hero p { margin: 20px auto 0; max-width: 640px; color: var(--muted); font-size: 1.1rem; }
.page-hero .meta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.page-hero .meta span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .82rem; color: #cbd5e1; }
.page-hero .floor { height: 70%; opacity: .6; }
.page-icon {
  width: 92px; height: 92px; margin: 0 auto 28px; border-radius: 26px;
  box-shadow: 0 24px 60px -12px rgba(99, 102, 241, .9);
  animation: icon-3d 8s ease-in-out infinite;
}
@keyframes icon-3d { 0%, 100% { transform: rotateY(-18deg) rotateX(8deg); } 50% { transform: rotateY(18deg) rotateX(-6deg) translateY(-8px); } }

.legal { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; padding-bottom: 60px; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); padding: 22px; border-radius: 20px; max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; }
.toc h4 { font-family: var(--font); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.toc ol { list-style: none; counter-reset: t; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: .86rem; color: var(--muted); line-height: 1.4; transition: background .25s, color .25s; }
.toc li { counter-increment: t; }
.toc a::before { content: counter(t, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--dim); font-size: .78rem; padding-top: 1px; }
.toc a:hover { color: var(--text); background: rgba(148, 163, 184, .06); }
.toc a.active { color: #fff; background: rgba(99, 102, 241, .16); }
.toc a.active::before { color: var(--cyan); }

.prose { min-width: 0; }
.prose .summary-card { padding: 26px 28px; border-radius: 22px; margin-bottom: 40px; background: var(--grad-soft); border: 1px solid rgba(129, 140, 248, .3); }
.prose .summary-card h2 { font-size: 1.2rem; margin: 0 0 12px; padding: 0; border: 0; }
.prose .summary-card ul { margin: 0; }
.prose section { padding: 8px 0 30px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 18px 0 18px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; gap: 14px; align-items: baseline; }
.prose h2 .n { font-size: .9rem; font-family: var(--font); font-weight: 600; color: var(--cyan); }
.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.prose p, .prose li { color: #cbd5e1; font-size: 1rem; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 14px 0; display: grid; gap: 8px; }
.prose li::marker { color: var(--indigo-2); }
.prose a { color: #a5b4fc; text-decoration: underline; text-decoration-color: rgba(165, 180, 252, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: #a5b4fc; }
.prose strong { color: var(--text); }
.prose .note { margin: 18px 0; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .07); color: #fde68a; font-size: .94rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; border-radius: 14px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: #cbd5e1; }
.prose th { background: rgba(30, 38, 56, .7); color: var(--text); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; margin: 18px 0; }
.table-wrap table { margin: 0; }

/* support */
.help-search { position: relative; max-width: 640px; margin: 34px auto 0; }
.help-search input {
  width: 100%; padding: 18px 22px 18px 56px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(15, 20, 32, .8); color: var(--text); font: inherit; font-size: 1.02rem;
  backdrop-filter: blur(10px); transition: border-color .3s, box-shadow .3s;
}
.help-search input:focus { outline: none; border-color: rgba(129, 140, 248, .7); box-shadow: 0 0 0 4px rgba(99, 102, 241, .2); }
.help-search svg { position: absolute; left: 22px; top: 50%; width: 20px; height: 20px; translate: 0 -50%; color: var(--muted); }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1400px; }
.help-card { padding: 26px; border-radius: 22px; display: block; }
.help-card .ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 18px; background: var(--grad-soft); border: 1px solid var(--border); }
.help-card h3 { font-size: 1.12rem; font-family: var(--font); font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.help-card p { color: var(--muted); font-size: .9rem; }
.help-card .go { display: inline-flex; margin-top: 14px; font-size: .86rem; font-weight: 600; color: #a5b4fc; }

.faq-group { margin-bottom: 44px; }
.faq-group > h3 { font-size: 1.3rem; margin: 0 0 18px; display: flex; gap: 12px; align-items: center; }
.faq-empty { display: none; text-align: center; color: var(--muted); padding: 30px; }

.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: stretch; }
.contact-card { padding: 34px; border-radius: 28px; position: relative; overflow: hidden; }
.contact-card .robot { width: 120px; height: 120px; border-radius: 32px; margin-bottom: 24px; box-shadow: 0 24px 60px -16px rgba(99, 102, 241, .9); animation: icon-3d 7s ease-in-out infinite; }
.contact-card h2 { font-size: 2rem; }
.contact-card p { color: var(--muted); margin-top: 12px; }
.contact-lines { display: grid; gap: 14px; margin-top: 26px; }
.contact-lines a, .contact-lines div { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: rgba(15, 20, 32, .5); font-size: .94rem; transition: border-color .3s; word-break: break-word; }
.contact-lines a:hover { border-color: rgba(129, 140, 248, .5); }
.contact-lines .ic { font-size: 1.2rem; }
.contact-lines small { display: block; color: var(--dim); font-size: .76rem; }

.form { padding: 34px; border-radius: 28px; display: grid; gap: 16px; }
.form h3 { font-size: 1.5rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: #cbd5e1; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: rgba(4, 6, 12, .55); color: var(--text); font: inherit; font-size: .95rem;
  transition: border-color .3s, box-shadow .3s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field select option { background: #121824; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(129, 140, 248, .7); box-shadow: 0 0 0 4px rgba(99, 102, 241, .18); }
.form .hint { font-size: .8rem; color: var(--dim); }

.steps { counter-reset: s; display: grid; gap: 12px; list-style: none; padding: 0; margin: 16px 0; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: rgba(99, 102, 241, .2); color: #c7d2fe; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 20px; perspective: 1000px; position: relative; overflow: hidden; }
.lost .code { font-family: var(--display); font-size: clamp(7rem, 26vw, 16rem); font-weight: 700; line-height: .9; letter-spacing: -0.06em; animation: icon-3d 6s ease-in-out infinite; }
.lost p { color: var(--muted); margin: 18px auto 30px; max-width: 460px; font-size: 1.1rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-1 { left: -22%; } .fc-3 { left: -28%; } .fc-2 { right: -26%; } .fc-4 { right: -14%; }
  .chat-demo { right: -2%; width: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 12px auto 12px; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; border-radius: 22px; background: rgba(10, 14, 24, .96); border: 1px solid var(--border);
    backdrop-filter: blur(20px); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-12px) scale(.98); pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
  }
  .nav-links a { padding: 13px 16px; font-size: 1rem; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .menu-btn { display: block; }
  .nav-cta .btn { display: none; }

  .hero { padding-bottom: 80px; }
  .hero-grid, .showcase, .privacy-wrap, .lang-wrap, .cta, .contact-wrap { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, auto); justify-content: center; gap: 26px 48px; }
  .stage { height: 600px; min-height: 0; }
  .showcase.flip .show-media { order: 0; }
  .show-copy { text-align: center; }
  .show-copy > p { margin-inline: auto; }
  .check-list { text-align: left; max-width: 520px; margin-inline: auto; }
  .chips, .tabs { justify-content: center; }
  .show-copy .tabs { display: flex; }
  .tab-panel { text-align: left; }
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: relative; top: 0; max-height: none; }
  .help-grid { grid-template-columns: 1fr 1fr; }
  .cta { text-align: center; }
  .cta .hero-actions { justify-content: center; }
  .cta-art { max-width: 560px; margin: 0 auto; }
  .scroll-hint { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: min(var(--container), 100% - 32px); }
  .feature-grid, .priv-grid, .help-grid, .pricing, .form .row { grid-template-columns: 1fr; }
  .stage { height: 540px; }
  .phone { --pw: 240px; }
  .show-media { min-height: 520px; }
  .show-media .phone { --pw: 240px; }
  .float-card { padding: 9px 12px 9px 9px; font-size: .78rem; gap: 9px; }
  .float-card .ic { width: 30px; height: 30px; font-size: .95rem; border-radius: 9px; }
  .float-card b { font-size: .78rem; } .float-card small { font-size: .68rem; }
  .fc-1 { left: -10%; top: 4%; } .fc-2 { right: -12%; } .fc-3 { left: -6%; } .fc-4 { right: -6%; bottom: 0; }
  .orbit-1 { width: 400px; height: 400px; margin: -200px; } .orbit-2 { width: 500px; height: 500px; margin: -250px; }
  .chat-demo { position: relative; right: auto; left: auto !important; bottom: auto; width: 100%; margin-top: -60px; transform: none; }
  .show-media.has-chat { display: flex; flex-direction: column; }
  .trend-strip { left: -6%; top: 4%; transform: translateZ(60px) scale(.82); transform-origin: left top; }
  .ring-scene { height: 400px; }
  .ring { width: 200px; height: 290px; }
  .ring-item { padding: 22px 18px; }
  .tab-panel { grid-template-columns: 1fr; }
  .sphere { height: 360px; }
  .sphere span { font-size: .85rem; }
  .gyro { height: 360px; } .gyro-core { width: 230px; height: 230px; }
  .footer-grid { grid-template-columns: 1fr; }
  .plan { padding: 30px 24px; }
  .cta { padding: 40px 22px; border-radius: 28px; }
  .cta-art .phone { --pw: 220px; }
  .cta-art .icon-float { width: 72px; height: 72px; right: -20px; border-radius: 20px; }
  .contact-card, .form { padding: 26px 20px; }
  .hero-stats { gap: 22px 36px; }
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split-words .w > span { opacity: 1; transform: none; }
}
