:root {
  --bg: #121315;
  --bg2: #16171a;
  --card: #1e1f23;
  --card2: #26272b;
  --stroke: rgba(255,255,255,.07);
  --text: #ececee;
  --muted: #9a9ba2;
  --cyan: #22d3ee;
  --cyan2: #0891b2;
  --gold: #d4af37;
  --gold2: #e9c963;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 18px;
  --maxw: 1180px;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.grad { background: linear-gradient(100deg, var(--cyan) 0%, #a78bfa 50%, var(--gold2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); font-weight: 600; margin-bottom: 14px; }
.eyebrow.gold { color: var(--gold); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #c3c4ca; max-width: 60ch; margin-top: 20px; }
.lead.small { font-size: 1.02rem; }

/* Background glow that drifts with scroll */
.bg-glow { position: fixed; inset: -20vh -10vw auto; height: 140vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40vw 40vw at calc(75% + var(--sx, 0px)) calc(18% + var(--sy, 0px)), rgba(34,211,238,.14), transparent 60%),
    radial-gradient(35vw 35vw at calc(15% - var(--sx, 0px)) 60%, rgba(168,85,247,.10), transparent 60%),
    radial-gradient(30vw 30vw at 60% 95%, rgba(212,175,55,.08), transparent 60%);
}
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--cyan), #a78bfa, var(--gold2)); }
main, .footer, .nav { position: relative; z-index: 1; }

/* Buttons */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 20px; border-radius: 999px; font: 600 .95rem var(--sans); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn.sm { --h: 36px; padding: 0 16px; font-size: .88rem; }
.btn.lg { --h: 52px; padding: 0 26px; font-size: 1rem; }
.btn.full { width: 100%; }
.btn.primary { background: linear-gradient(135deg, #2ee0f7, var(--cyan2)); color: #041014; box-shadow: 0 6px 24px rgba(34,211,238,.25); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(34,211,238,.38); }
.btn.ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: rgba(255,255,255,.14); }
.btn.ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.26); }
.btn:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }
.link { background: none; border: 0; color: var(--cyan); font: inherit; cursor: pointer; padding: 0; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, calc((100vw - var(--maxw)) / 2)); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(18,19,21,.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-color: var(--stroke); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.08rem; }
.brand b { color: var(--cyan); font-weight: 600; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .93rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-auth { display: flex; gap: 10px; }
.nav-auth > div { display: flex; gap: 10px; align-items: center; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan), #a78bfa); color: #071014; font-weight: 700; font-size: .85rem; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; margin-left: auto; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 6px auto; transition: transform .25s; }

/* Hero */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 8vh, 90px) 20px 60px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: calc(100vh - 72px); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 30px 0 0; color: var(--muted); font-size: .88rem; }
.hero-meta li::before { content: "●"; color: var(--cyan); font-size: .6rem; margin-right: 8px; vertical-align: 2px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.ring-wrap { position: relative; width: min(500px, 88vw); aspect-ratio: 1; transform: translateY(var(--hy, 0px)); }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(var(--rot, 0deg)); transition: transform .1s linear; filter: drop-shadow(0 0 40px rgba(34,211,238,.18)); }
.hero-icon { position: absolute; inset: 25%; width: 50%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.chip { position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 14px; background: rgba(30,31,35,.78); border: 1px solid var(--stroke); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 40px rgba(0,0,0,.4); animation: float 7s ease-in-out infinite; }
.chip .k { font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.chip .v { font-size: 1.05rem; font-weight: 700; color: var(--ok); }
.chip.c1 { top: 6%; left: -2%; animation-delay: -1s; }
.chip.c2 { top: 14%; right: -4%; animation-delay: -3s; }
.chip.c3 { bottom: 14%; left: -6%; animation-delay: -2s; }
.chip.c4 { bottom: 4%; right: 2%; animation-delay: -4s; }
.chip.c4 .v { color: var(--text); font-family: var(--sans); font-size: .95rem; }

/* Strip */
.strip { max-width: var(--maxw); margin: 0 auto 40px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; align-items: center; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.strip b { color: var(--text); font-weight: 600; }
.strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); opacity: .6; }

/* Sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 12vh, 130px) 20px; }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { position: relative; padding: 26px; border-radius: var(--radius); background: linear-gradient(180deg, var(--card), #1a1b1e); border: 1px solid var(--stroke); overflow: hidden; transition: transform .3s, border-color .3s; }
.feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(34,211,238,.12), transparent 50%); opacity: 0; transition: opacity .3s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.3); }
.feature:hover::before { opacity: 1; }
.ficon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; color: var(--cyan); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.2); margin-bottom: 18px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .94rem; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: var(--stroke); }
.timeline::after { content: ""; position: absolute; left: 23px; top: 10px; width: 2px; height: calc((100% - 20px) * var(--tl, 0)); background: linear-gradient(var(--cyan), #a78bfa, var(--gold2)); }
.timeline li { position: relative; display: flex; gap: 22px; align-items: flex-start; padding: 16px 20px 16px 0; }
.timeline .num { position: relative; z-index: 1; flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); border: 1px solid rgba(34,211,238,.35); font: 700 1rem var(--mono); color: var(--cyan); }
.timeline h3 { margin-bottom: 4px; }
.timeline p { color: var(--muted); }

/* Accuracy */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--ok); }
.stat .big { font-size: clamp(2.2rem, 4.2vw, 3.2rem); font-weight: 700; color: var(--ok); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--stroke); margin-bottom: 26px; }
.ba-h { font-weight: 600; margin-bottom: 14px; }
.ba-col ul { list-style: none; padding: 0; margin: 14px 0 0; }
.ba-col li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--stroke); color: var(--muted); font-size: .94rem; }
.ba-col li b { color: var(--text); font-weight: 600; }
.ba-col li b.ok { color: var(--ok); } .ba-col li b.warn { color: var(--warn); }
.swatch-white { height: 64px; border-radius: 12px; }
.swatch-white.before { background: linear-gradient(135deg, #e6efff, #d9e6ff); }
.swatch-white.after { background: linear-gradient(135deg, #ffffff, #f4f4f2); }
.ba-arrow { font-size: 2rem; color: var(--cyan); }
.patches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.patch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--stroke); }
.patch i { flex: 0 0 26px; height: 26px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.patch span { font-size: .78rem; color: var(--muted); line-height: 1.2; }
.patch b { display: block; font: 700 .85rem var(--mono); color: var(--ok); }
.note { color: var(--muted); font-size: .85rem; margin-top: 18px; }

/* Rooms */
.rooms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.room-cards { display: grid; gap: 14px; }
.room { display: grid; grid-template-columns: 52px 1fr auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 18px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--stroke); }
.room .ri { grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.04); font-size: 1.4rem; color: var(--cyan); }
.room small { color: var(--muted); }
.room .mono { grid-row: span 2; color: var(--text); font-weight: 700; }
.room.active { border-color: rgba(34,211,238,.45); background: linear-gradient(90deg, rgba(34,211,238,.10), var(--card)); }
.room.active b::after { content: "ACTIVE"; margin-left: 10px; font: 700 .65rem var(--sans); letter-spacing: .1em; color: var(--ok); }

/* Download */
.dl-card { display: grid; grid-template-columns: auto 1fr; gap: 32px; padding: clamp(26px, 4vw, 48px); border-radius: 26px; background: radial-gradient(600px circle at 0% 0%, rgba(34,211,238,.12), transparent 60%), var(--card); border: 1px solid rgba(34,211,238,.22); }
.dl-card > img { border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ver { font-size: .5em; color: var(--muted); font-weight: 500; vertical-align: middle; }
.lock-note { margin-top: 18px; color: var(--muted); font-size: .94rem; }
.welcome { margin: 18px 0 18px; font-size: 1.05rem; }
.dl-pending { margin-top: 12px; color: var(--warn); }
.install { margin-top: 26px; padding: 18px 20px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); }
.install summary { cursor: pointer; font-weight: 600; }
.install ol { margin: 12px 0 0; padding-left: 20px; color: #c3c4ca; display: grid; gap: 8px; }
code { font-family: var(--mono); font-size: .86em; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--cyan); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-logo { margin-bottom: 22px; }
.about .btn { margin-top: 26px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--stroke); }
.value h3 { color: var(--gold2); margin-bottom: 6px; font-size: 1.02rem; }
.value p { color: var(--muted); font-size: .92rem; }
.services { grid-column: 1 / -1; display: grid; gap: 8px; padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(212,175,55,.10), rgba(212,175,55,.02)); border: 1px solid rgba(212,175,55,.25); font-size: .94rem; color: #c3c4ca; }
.services b { color: var(--gold2); margin-right: 6px; }
.services .reg { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq details { padding: 18px 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--stroke); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 10px; }

/* Footer */
.footer { border-top: 1px solid var(--stroke); padding: 40px max(20px, calc((100vw - var(--maxw)) / 2)) 30px; background: var(--bg2); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-top nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.foot-top nav a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: .84rem; }
.dev a { color: var(--gold2); text-decoration: none; font-weight: 600; }
.dev a:hover { text-decoration: underline; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,6,8,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s; }
.modal-card { position: relative; width: min(440px, 100%); padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 120px rgba(0,0,0,.6); animation: pop .3s cubic-bezier(.2,.9,.3,1.2); }
.modal-card > img { border-radius: 14px; margin-bottom: 18px; }
.modal-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.3); margin-bottom: 22px; }
.tabs button { height: 36px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 .9rem var(--sans); cursor: pointer; }
.tabs button.on { background: var(--card2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.step h3 { font-size: 1.4rem; }
.sub { color: var(--muted); margin: 8px 0 20px; font-size: .94rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: .85rem; color: var(--muted); }
.field input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.25); color: var(--text); font: 500 1rem var(--sans); }
.field input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.err { color: #f87171; font-size: .88rem; min-height: 1.2em; margin-bottom: 10px; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.code-boxes input { height: 58px; text-align: center; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.3); color: var(--text); font: 700 1.5rem var(--mono); }
.code-boxes input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.resend { text-align: center; margin-top: 14px; color: var(--muted); font-size: .88rem; }
.done-tick { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #041014; background: var(--ok); margin-bottom: 16px; animation: pop .4s; }

/* 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; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: left; }
  .hero { padding-top: 30px; }
  .ring-wrap { width: min(360px, 78vw); margin-top: 10px; }
  .features { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .rooms-grid, .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { flex-wrap: wrap; gap: 10px; }
  .nav-links, .nav-auth { display: none; width: 100%; }
  .nav.open { background: rgba(18,19,21,.96); }
  .nav.open .nav-links { display: grid; gap: 4px; margin: 6px 0 0; }
  .nav.open .nav-links a { padding: 10px 2px; font-size: 1rem; }
  .nav.open .nav-auth { display: flex; padding: 8px 0 6px; }
  .nav.open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .features, .values { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); justify-self: center; }
  .dl-card { grid-template-columns: 1fr; }
  .chip.c1 { left: 0; } .chip.c2 { right: 0; } .chip.c3 { left: 0; } .chip.c4 { right: 0; }
  .chip { padding: 8px 10px; } .chip .v { font-size: .9rem; }
  .code-boxes input { height: 50px; font-size: 1.25rem; }
  .hero-cta .btn.lg { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-icon, .chip { animation: none; }
  .ring { transition: none; }
}
