:root { --bg: #0c0c0e; --fg: #f5f5f7; --muted: #a1a1aa; --line: #ffffff1a; --glass: #ffffff06; --a1: #d4d4d8; --a2: #d4d4d8; --a3: #a3b8a3; --a4: #d4d4d8; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.muted { color: var(--muted); }
.grad { color: var(--muted); }
@keyframes shine { to { background-position: 100% 0; } }

/* Ambient background */
.aurora { display: none; }
.aurora span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { background: radial-gradient(circle, var(--a1), transparent 60%); top: 0; left: 10%; }
.aurora span:nth-child(2) { background: radial-gradient(circle, var(--a2), transparent 60%); top: 10%; right: 0; animation-duration: 28s; animation-delay: -6s; }
.aurora span:nth-child(3) { background: radial-gradient(circle, var(--a4), transparent 62%); bottom: 0; left: 35%; opacity: .5; animation-duration: 34s; }
@keyframes drift { 50% { transform: translate(6vmax, 4vmax) scale(1.08); } 100% { transform: translate(-4vmax, 7vmax) scale(.95); } }
.grid-bg { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; background: none; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.light { background: var(--fg); color: #09090b; }
.btn.light:hover { background: #dedee2; }
.btn.glass { background: var(--glass); border-color: #ffffff1f; backdrop-filter: blur(12px); }
.btn.glass:hover { background: #ffffff14; border-color: #ffffff38; }
.btn.ghost { color: var(--muted); }
.btn.ghost:hover { color: var(--fg); }
.btn:disabled { opacity: .5; cursor: progress; transform: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px) saturate(160%); background: #05050799; border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.3px; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #09090b; background: var(--fg); }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-cta .btn { height: 36px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 96px 0 72px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid #ffffff1f; background: var(--glass); font-size: 13px; color: #d4d4dc; margin-bottom: 28px; transition: border-color .2s; }
.pill:hover { border-color: #ffffff40; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a3); box-shadow: 0 0 12px var(--a3); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; margin: 0 0 24px; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.035em; font-weight: 650; margin: 0 0 40px; }
h3 { font-size: 18px; letter-spacing: -.01em; font-weight: 600; margin: 0 0 8px; }
.lead { font-size: 18px; color: #b4b4c0; max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 13px; color: var(--muted); margin: 20px 0 0; }
.hero-visual { position: relative; }
.term { position: relative; border-radius: 12px; background: #111113; border: 1px solid var(--line); overflow: hidden; }
.hero-visual:hover .term { transform: perspective(1200px) rotateY(0) rotateX(0); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12px ui-monospace, Menlo, monospace; color: var(--muted); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ffffff1a; }
.term-bar span { margin-left: 10px; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--a3); }
.live em { width: 6px; height: 6px; border-radius: 50%; background: var(--a3); box-shadow: 0 0 10px var(--a3); animation: pulse 1.6s infinite; }
.term-body { padding: 20px 22px 24px; font: 13.5px/2 ui-monospace, "SF Mono", Menlo, monospace; }
.ln { white-space: nowrap; opacity: 1; }
.ln:nth-child(1) { animation-delay: .2s; } .ln:nth-child(2) { animation-delay: .5s; } .ln:nth-child(3) { animation-delay: .9s; } .ln:nth-child(4) { animation-delay: 1.2s; } .ln:nth-child(5) { animation-delay: 1.6s; } .ln:nth-child(6) { animation-delay: 1.9s; } .ln:nth-child(7) { animation-delay: 2.4s; }
@keyframes type { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.dim { color: var(--muted); }
.c-mute { color: #8b8b98; } .c-txt, .c-acc, .c-acc2, .c-acc3 { color: #d4d4d8; } .c-ok { color: var(--a3); }
.caret { display: inline-block; width: 8px; height: 16px; margin-left: 6px; vertical-align: -3px; background: var(--fg); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.orbit { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.orbit span { padding: 4px 10px; border-radius: 6px; font-size: 12px; color: #d4d4dc; border: 1px solid var(--line); }
.orbit span:nth-child(2) { animation-delay: -2s; } .orbit span:nth-child(3) { animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Marquee */
.marquee { display: none; }
.marquee-track { display: flex; gap: 32px; width: max-content; animation: scroll 40s linear infinite; font-size: 15px; font-weight: 500; color: #6b6b78; letter-spacing: -.01em; }
.marquee-track span:nth-child(even) { color: #3f3f4a; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 80px 0 0; }
.kicker { font: 600 12px/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--a2); margin: 0 0 18px; }
.bento { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-auto-rows: minmax(200px, auto); gap: 14px; }
.tile { position: relative; padding: 24px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), #8b5cf622, transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover { border-color: #ffffff2a; transform: translateY(-2px); }
.tile:hover::before { opacity: 0; }
.tile.tall { grid-row: span 2; display: flex; flex-direction: column; }
.tile p { color: var(--muted); margin: 0; font-size: 15px; }
.tile-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; margin-bottom: 16px; font-size: 18px; color: var(--fg); }
.stack { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 8px; }
.stack span { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0000004d; font: 13px ui-monospace, Menlo, monospace; color: #c9c9d3; display: flex; align-items: center; gap: 10px; }
.stack span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--a3); box-shadow: 0 0 10px var(--a3); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.steps li { padding: 24px; border-radius: 12px; border: 1px solid var(--line); position: relative; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 30px; width: 28px; text-align: center; color: #4a4a56; z-index: 1; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }
.step-n { display: block; font: 600 13px ui-monospace, Menlo, monospace; color: var(--a1); margin-bottom: 36px; }

/* Zero World */
.zw { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 40px; border-radius: 12px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); }
.zw h2 { margin-bottom: 20px; }
.zw-art { position: relative; height: 300px; display: grid; place-items: center; }
.zw-ring { position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 1px solid transparent; background: conic-gradient(from 0deg, var(--a2), transparent 30%, var(--a1) 60%, transparent 80%, var(--a2)) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); animation: spin 14s linear infinite; }
.zw-ring.r2 { width: 190px; height: 190px; animation-direction: reverse; animation-duration: 9s; opacity: .8; }
.zw-core { width: 112px; height: 112px; border-radius: 25px; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dl { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: #ffffff06; transition: border-color .2s, background .2s, transform .2s; }
.dl:hover { border-color: #ffffff38; background: #ffffff0d; transform: translateY(-2px); }
.dl b { display: block; font-weight: 600; }
.dl small { color: var(--muted); font-size: 13px; }
.os { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: #ffffff0d; flex: none; }
.arr { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #ffffff1f; color: var(--muted); font-size: 13px; transition: background .2s, color .2s; }
.dl:hover .arr { background: var(--fg); color: #09090b; }
.cli { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-radius: 16px; border: 1px solid var(--line); background: #00000066; font-size: 14px; overflow-x: auto; }
.cli code { white-space: nowrap; }
.mobile { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 14px; }
.mobile a { color: #d4d4dc; border-bottom: 1px solid #ffffff2a; }
.mobile a:hover { color: var(--fg); border-color: var(--fg); }

/* Access */
.access { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: center; }
.access h2 { margin-bottom: 20px; }
.card-glow { position: relative; border-radius: 12px; padding: 1px; background: var(--line); }
.auth { border-radius: 11px; background: #111113; padding: 28px; }
.auth h3 { font-size: 20px; margin-bottom: 4px; }
.auth form { display: grid; gap: 16px; margin-top: 22px; }
.auth label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.auth input, .auth select { height: 44px; width: 100%; padding: 0 14px; border-radius: 12px; border: 1px solid #ffffff1f; background: #ffffff08; outline: none; transition: border-color .15s, box-shadow .15s; }
.auth select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b8b98' stroke-width='1.5'%3E%3Cpath d='m5 6.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.auth select option { background: #0b0b10; }
.auth input:focus, .auth select:focus { border-color: var(--muted); box-shadow: 0 0 0 3px #ffffff14; }
.auth .row { display: flex; gap: 10px; }
.auth .row .btn { flex: 1; height: 44px; }
.notice { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.notice:empty { display: none; }
.notice.error { color: #fb7185; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { padding: 6px 12px; border-radius: 999px; font-size: 13px; border: 1px solid #ffffff1f; background: #ffffff0a; }
.chips:empty { display: none; }

/* Footer */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 80px; padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 13px; }
.foot nav { display: flex; gap: 24px; color: var(--muted); }
.foot nav a:hover { color: var(--fg); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero, .zw, .access { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; gap: 48px; }
  .term { transform: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.tall { grid-row: auto; grid-column: span 2; }
  .steps, .downloads { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .zw { padding: 36px; }
  .zw-art { height: 220px; }
  .section { padding-top: 88px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .bento, .steps, .downloads { grid-template-columns: 1fr; }
  .tile.tall { grid-column: auto; }
  #nav-access { display: none; }
  .zw { padding: 28px 22px; }
  .auth { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .ln { opacity: 1; } }
