:root { --bg: #05040b; --text: #eeedf7; --muted: #9b98b3; --line: #ffffff14; --violet: #8b5cf6; --violet-2: #a78bfa; --cyan: #22d3ee; --pink: #f472b6; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: var(--violet-2); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: #ffffff12; padding: 1px 6px; border-radius: 6px; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .28; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: var(--violet); top: -25vmax; left: -15vmax; }
.aurora i:nth-child(2) { background: var(--cyan); top: -10vmax; right: -25vmax; animation-duration: 28s; opacity: .18; }
.aurora i:nth-child(3) { background: var(--pink); bottom: -35vmax; left: 20vw; animation-duration: 34s; opacity: .12; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

/* nav */
#nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 14px clamp(16px, 4vw, 48px); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
#nav.scrolled { background: #07051099; backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; text-decoration: none; font-size: 17px; }
.logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #000; border: 1px solid #ffffff2a; box-shadow: 0 0 20px #8b5cf666; }
.links { flex: 1; display: flex; gap: 24px; justify-content: center; }
.links a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.links a:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 14px; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost { color: #fff; border: 1px solid #ffffff2e; background: #ffffff08; }
.btn-ghost:hover { background: #ffffff14; transform: translateY(-2px); }
.glow { box-shadow: 0 0 0 0 #a78bfa88, 0 10px 40px #8b5cf666; animation: glow 2.6s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 8px #a78bfa00, 0 10px 50px #8b5cf699; } }

/* hero */
.hero { text-align: center; padding: clamp(40px, 8vh, 90px) 20px 40px; max-width: 1200px; margin: 0 auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid #a78bfa55; background: #8b5cf614; font-size: 13.5px; color: #ddd6fe; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
h1 { font-size: clamp(38px, 6.4vw, 78px); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 14px; font-weight: 850; }
.grad { background: linear-gradient(90deg, #c4b5fd, #22d3ee, #f0abfc, #c4b5fd); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 300% 0; } }
.typed-line { font-size: clamp(19px, 2.4vw, 26px); color: #ddd6fe; margin: 0 0 12px; font-weight: 600; min-height: 1.6em; }
.caret { color: var(--violet-2); animation: blink 1s steps(1) infinite; margin-left: 2px; }
.sub { max-width: 720px; margin: 0 auto 28px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18.5px); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-video { position: relative; margin: 56px auto 0; max-width: 1080px; perspective: 1400px; }
.frame { position: relative; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid #ffffff22; box-shadow: 0 40px 120px #000, 0 0 90px #8b5cf640; }
.hero-video .frame { transform: rotateX(var(--tilt, 14deg)) scale(var(--sc, .94)); transform-origin: 50% 0; transition: transform .1s linear; }
.frame-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #110e1d; border-bottom: 1px solid #ffffff12; font-size: 12.5px; color: var(--muted); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 10px; }
.rec { color: #f87171; font-size: 11px; animation: blink 1.4s infinite; }
.frame video { display: block; width: 100%; aspect-ratio: 1280 / 760; object-fit: cover; background: #05030f; }
.speed-tag { position: absolute; right: 12px; bottom: 12px; font-size: 11.5px; color: #e9d5ff; background: #000a; border: 1px solid #ffffff22; padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.float { position: absolute; padding: 9px 14px; border-radius: 12px; background: #120e22e8; border: 1px solid #a78bfa55; font-size: 13.5px; box-shadow: 0 16px 40px #000a; backdrop-filter: blur(8px); animation: bob 5s ease-in-out infinite; white-space: nowrap; }
.f1 { left: -30px; top: 22%; } .f2 { right: -36px; top: 46%; animation-delay: -1.6s; } .f3 { left: 6%; bottom: -18px; animation-delay: -3.2s; font-family: ui-monospace, monospace; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #ffffff04; padding: 16px 0; margin-top: 70px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 46px; width: max-content; animation: scroll 38s linear infinite; }
.track span { white-space: nowrap; color: #cfcbe6; font-weight: 600; font-size: 15px; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* stats */
.stats { max-width: 1080px; margin: 70px auto 0; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 22px 12px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #ffffff08, transparent); }
.stat b { display: block; font-size: clamp(34px, 4.4vw, 50px); font-weight: 850; letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* sections */
.section { max-width: 1140px; margin: 0 auto; padding: 110px 20px 0; text-align: center; }
.section.narrow { max-width: 780px; text-align: left; }
.section.narrow h2, .section.narrow .kicker { text-align: center; }
.kicker { display: inline-block; color: var(--violet-2); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.section.narrow .kicker { display: block; }
h2 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 14px; }
.lead { color: var(--muted); max-width: 680px; margin: 0 auto 34px; }

/* gallery */
.gallery { max-width: 1040px; margin: 0 auto; }
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.tab { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid #ffffff22; background: #ffffff08; color: #ddd6fe; font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .2s, border-color .2s; }
.tab:hover { background: #ffffff12; }
.tab.active { background: #8b5cf622; border-color: #a78bfa99; color: #fff; }
.tab i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.frame.big { box-shadow: 0 30px 100px #000, 0 0 80px #22d3ee22; }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; text-align: left; }
.card { position: relative; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: #0c0a16cc; overflow: hidden; transition: transform .25s, border-color .25s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), #8b5cf62e, transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: #a78bfa55; }
.card:hover::before { opacity: 1; }
.card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: #ffffff0c; border: 1px solid #ffffff18; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* how */
.loop { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.loop-line { position: absolute; left: 0; right: 0; top: 18px; width: 100%; height: 60px; z-index: -1; }
.loop-line path { stroke: #ffffff18; stroke-width: 2; fill: none; }
.loop-line .dash { stroke: url(#none); stroke: var(--violet-2); stroke-dasharray: 8 14; animation: dash 1.2s linear infinite; opacity: .8; }
@keyframes dash { to { stroke-dashoffset: -44; } }
.node { padding: 26px 22px; border-radius: 18px; border: 1px solid var(--line); background: #0c0a16ee; text-align: left; }
.node b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; font-size: 18px; margin-bottom: 12px; box-shadow: 0 0 24px #8b5cf688; }
.node.active b { animation: pop .6s ease; }
@keyframes pop { 40% { transform: scale(1.25); } }
.node h4 { margin: 0 0 6px; font-size: 19px; }
.node p { margin: 0; color: var(--muted); font-size: 14.5px; }
.node.active { border-color: #a78bfa88; box-shadow: 0 0 40px #8b5cf633; }
.node { transition: border-color .4s, box-shadow .4s; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
.stack span { padding: 6px 13px; border-radius: 999px; border: 1px solid #ffffff1e; background: #ffffff08; font-size: 13.5px; color: #cfcbe6; }

/* faq */
details { border: 1px solid var(--line); border-radius: 14px; background: #0c0a16cc; margin-bottom: 10px; transition: border-color .2s; }
details[open] { border-color: #a78bfa55; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--violet-2); font-size: 20px; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* final */
.final { padding: 120px 20px 40px; }
.final-card { position: relative; max-width: 900px; margin: 0 auto; text-align: center; padding: 64px 24px; border-radius: 28px; background: #0b0816; overflow: hidden; isolation: isolate; }
.final-card::before { content: ""; position: absolute; inset: -2px; z-index: -2; background: conic-gradient(from var(--a, 0deg), var(--violet), var(--cyan), var(--pink), var(--violet)); animation: spin 6s linear infinite; }
.final-card::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: 27px; background: radial-gradient(600px 240px at 50% 0%, #2a1a55, #0b0816 70%); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.final-card h2 { font-size: clamp(32px, 5vw, 56px); }
.final-card p { color: var(--muted); margin: 0 0 26px; font-size: 18px; }
footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1140px; margin: 0 auto; padding: 40px 20px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .links { display: none; }
  #nav { justify-content: space-between; }
  .grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .loop { grid-template-columns: 1fr; }
  .loop-line { display: none; }
  .float { display: none; }
}
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
