:root {
  --ink: #1a1033;
  --ink-soft: #4a4363;
  --muted: #6e6886;
  --line: #e7e3f0;
  --paper: #ffffff;
  --paper-2: #f7f5fb;
  --night: #140b2b;
  --night-2: #1f1340;
  --orange: #f9b233;
  --pink: #ec1c9b;
  --purple: #7a0fc6;
  --grad: linear-gradient(120deg, #f9b233 0%, #ec1c9b 50%, #7a0fc6 100%);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); }
a:hover { color: var(--pink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20, 11, 43, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-head .brand img { height: 30px; width: auto; }
.site-head nav { display: flex; align-items: center; gap: 22px; }
.site-head nav a { color: #d9d3ea; text-decoration: none; font-size: 15px; }
.site-head nav a:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(236, 28, 155, 0.3); }
.btn-grad:hover { color: #fff; box-shadow: 0 10px 28px rgba(236, 28, 155, 0.4); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.site-head .btn { padding: 9px 18px; font-size: 14px; }
.site-head nav a.btn-ghost { color: #fff; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(122, 15, 198, 0.55), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(236, 28, 155, 0.35), transparent 60%),
    var(--night);
  color: #fff;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: #f6c9e6; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 6px 14px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 22px 0 18px; max-width: 14ch;
}
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: #d9d3ea; max-width: 58ch; margin: 0 0 32px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.flow {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.flow .step {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 20px;
}
.flow .num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); font-weight: 700; font-size: 15px; margin-bottom: 14px;
}
.flow h3 { margin: 0 0 6px; font-size: 18px; }
.flow p { margin: 0; color: #c9c2de; font-size: 15px; }

/* Sections */
section.block { padding: 88px 0; }
section.alt { background: var(--paper-2); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .kicker { color: var(--pink); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.01em; margin: 10px 0 12px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(249, 178, 51, .18), rgba(236, 28, 155, .18), rgba(122, 15, 198, .18));
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--purple); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
}
.checklist strong { color: var(--ink); }

.panel {
  background: var(--night); color: #fff; border-radius: 24px; padding: 32px;
  box-shadow: 0 30px 60px rgba(20, 11, 43, 0.25);
}
.panel .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
.panel .row:last-child { border-bottom: 0; }
.panel .row span:first-child { color: #c9c2de; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag.ok { background: rgba(46, 204, 113, .18); color: #7ee2a8; }
.tag.wait { background: rgba(249, 178, 51, .18); color: #ffd27a; }
.tag.no { background: rgba(236, 28, 155, .18); color: #ff8fcf; }

.cta-band {
  background: var(--night); color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center;
  background-image: radial-gradient(600px 300px at 50% 0%, rgba(236, 28, 155, .35), transparent 70%);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 12px; }
.cta-band p { color: #d9d3ea; margin: 0 auto 28px; max-width: 52ch; }

/* Footer */
.site-foot { background: var(--night); color: #bdb5d4; padding: 56px 0 36px; font-size: 14px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot img { height: 44px; width: auto; margin-bottom: 14px; }
.site-foot h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { color: #bdb5d4; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Legal pages */
.doc-hero { background: var(--night); color: #fff; padding: 64px 0 48px; }
.doc-hero h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 10px; letter-spacing: -0.01em; }
.doc-hero p { color: #d9d3ea; margin: 0; max-width: 62ch; }
.meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px;
}
.meta div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px; font-size: 14px; color: #d9d3ea; }
.meta b { display: block; color: #fff; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }

.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 56px 20px 88px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc b { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; counter-reset: toc; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--pink); }
.doc article { max-width: 760px; min-width: 0; }
.doc article section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.doc article section:last-child { border-bottom: 0; }
.doc h2 { font-size: 24px; margin: 0 0 14px; display: flex; gap: 12px; align-items: baseline; }
.doc h2 .n { font-size: 14px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-2); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); font-weight: 600; width: 32%; }
.note {
  background: var(--paper-2); border-left: 4px solid var(--pink); border-radius: 10px; padding: 16px 18px; margin: 16px 0; color: var(--ink-soft);
}

@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .site-foot .cols { grid-template-columns: 1fr; }
  .meta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-head nav a:not(.btn) { display: none; }
  .flow, .grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
  section.block { padding: 64px 0; }
  .cta-band { padding: 40px 22px; }
  td:first-child { width: auto; }
}

/* Early access, landing v2 */
.site-head .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pill-ea {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--grad);
}
.hero h1 { max-width: 18ch; }
.body-lg { font-size: 18px; color: var(--ink-soft); margin: 0 0 16px; }
.grid.two { grid-template-columns: 1fr 1fr; gap: 48px; }
.feature .kicker, .principles .kicker { color: var(--pink); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.feature h3 { font-size: clamp(22px, 3vw, 28px); line-height: 1.25; margin: 10px 0 12px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 17px; }
.principles { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.principles ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.principles li { background: var(--paper-2); border-radius: 16px; padding: 20px; color: var(--ink-soft); font-size: 15px; }
.principles b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.manifesto {
  color: #fff; padding: 110px 0; text-align: center;
  background:
    radial-gradient(700px 360px at 20% 0%, rgba(249, 178, 51, .22), transparent 60%),
    radial-gradient(700px 360px at 80% 100%, rgba(122, 15, 198, .5), transparent 60%),
    var(--night);
}
.manifesto .origin { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #f6c9e6; margin: 0 0 22px; }
.manifesto .story { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.5; max-width: 34ch; margin: 0 auto 36px; color: #ece7f7; }
.manifesto .close { font-size: clamp(30px, 5vw, 52px); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
.manifesto .close span { display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) {
  .grid.two { grid-template-columns: 1fr; gap: 36px; }
  .principles ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .principles ul { grid-template-columns: 1fr; }
  .pill-ea { font-size: 10px; padding: 2px 7px; }
  .manifesto { padding: 80px 0; }
}
