:root {
  --bg: #0a0e17;
  --bg-2: #0f1522;
  --surface: #121a2a;
  --surface-2: #182236;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e6eaf2;
  --muted: #9aa5b8;
  --accent: #5eead4;
  --accent-2: #6366f1;
  --accent-text: #0a0e17;
  --danger: #fb7185;
  --ok: #4ade80;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--accent); font-weight: 600; margin-bottom: 0.9em; }

/* a11y */
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-text); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.env-banner { background: #f59e0b; color: #1a1200; text-align: center; font-weight: 600; padding: 8px 12px; font-size: 0.9rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(10, 14, 23, 0.75); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; margin: 0; }
.brand-name span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; border: 1px solid var(--border); color: var(--text); background: var(--surface); cursor: pointer; font-size: 1rem; transition: transform .15s ease, background .15s ease, border-color .15s ease; font-family: inherit; }
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: rgba(148, 163, 184, 0.35); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #22d3ee 55%, var(--accent-2)); color: var(--accent-text); border: none; box-shadow: 0 8px 24px rgba(94, 234, 212, 0.18); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; color: var(--text) !important; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; letter-spacing: 0.04em; }
.center { text-align: center; margin-top: 36px; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* hero */
.hero { position: relative; padding: 88px 0 64px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 320px at 15% 10%, rgba(99, 102, 241, 0.22), transparent 60%),
  radial-gradient(520px 300px at 85% 30%, rgba(94, 234, 212, 0.14), transparent 60%),
  linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px) 0 0 / 100% 56px,
  linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px) 0 0 / 56px 100%;
  mask-image: linear-gradient(#000 60%, transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero-note { font-size: 0.9rem; color: var(--muted); }
.panel-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 20px 14px; }
.panel-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(148, 163, 184, 0.3); }
.panel-title { margin-left: auto; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.panel-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); }
.panel-list strong { display: block; font-size: 0.98rem; }
.panel-list small { color: var(--muted); font-size: 0.85rem; }
.pill { flex: none; font-size: 0.72rem; font-weight: 700; color: var(--accent); background: rgba(94, 234, 212, 0.1); border: 1px solid rgba(94, 234, 212, 0.25); padding: 3px 8px; border-radius: 999px; margin-top: 3px; }
.panel-foot { margin: 12px 0 0; font-size: 0.75rem; color: var(--muted); text-align: center; }

/* sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(99, 102, 241, 0.18); color: #c7d2fe; font-weight: 700; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.feature:hover { border-color: rgba(94, 234, 212, 0.35); transform: translateY(-2px); }
.feature-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(94, 234, 212, 0.1); margin-bottom: 16px; }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.status { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid; }
.status-dev { color: #fcd34d; border-color: rgba(252, 211, 77, 0.4); background: rgba(252, 211, 77, 0.08); }
.status-planned { color: var(--muted); border-color: var(--border); }
.disclaimer { margin: 32px 0 0; padding: 16px 18px; border-left: 3px solid var(--danger); background: rgba(251, 113, 133, 0.07); border-radius: 0 10px 10px 0; color: var(--text); font-size: 0.95rem; }

/* early access */
.ea-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ea-points { color: var(--muted); padding-left: 20px; }
.ea-points li { margin-bottom: 6px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.opt { color: var(--muted); font-weight: 400; }
.req { color: var(--accent); }
input[type="email"], input[type="text"] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.25); background: var(--bg); color: var(--text); font: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.18); }
input[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 0.82rem; color: var(--muted); margin: 6px 0 0; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.check label { font-weight: 400; font-size: 0.9rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; margin: 14px 0 6px; font-size: 0.95rem; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }
.form.done .field, .form.done button { display: none; }
.form.done .form-msg { font-size: 1.05rem; padding: 18px; border-radius: 12px; background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.3); }

/* faq */
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; align-content: start; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }

/* legal pages */
.legal { padding: 64px 0 80px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.todo { display: inline-block; background: rgba(252, 211, 77, 0.12); border: 1px dashed rgba(252, 211, 77, 0.5); color: #fcd34d; padding: 2px 8px; border-radius: 6px; font-size: 0.9em; }
.notice { padding: 14px 18px; border-radius: 10px; background: rgba(252, 211, 77, 0.08); border: 1px solid rgba(252, 211, 77, 0.35); color: var(--text); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature { transition: none; }
}

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .ea-grid, .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-links { justify-content: flex-start; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 60px 0; }
}
@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; }
  .hero-actions .btn { width: 100%; }
}
