:root {
  --bg: #0d0b14;
  --bg-soft: #14101f;
  --panel: #1a1526;
  --panel-2: #221b33;
  --line: #2e2545;
  --text: #ece9f5;
  --muted: #a49cbd;
  --accent: #9d7bff;
  --accent-2: #5ad2ff;
  --ok: #37d39b;
  --dev: #7aa6ff;
  --plan: #b39bff;
  --ext: #f0b45c;
  --no: #ff7a90;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #9fe4ff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--panel);
  color: var(--text);
  padding: .7rem 1rem;
  z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 11, 20, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem 0;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px rgba(157, 123, 255, .45);
}
.nav { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  display: block;
  padding: .45rem .7rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }

/* hero and page heads */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(157, 123, 255, .22), transparent 65%),
    radial-gradient(700px 380px at 88% 0%, rgba(90, 210, 255, .13), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.page-head {
  padding: clamp(2.4rem, 6vw, 4rem) 0 clamp(1.2rem, 3vw, 2rem);
  background: radial-gradient(700px 320px at 15% -20%, rgba(157, 123, 255, .16), transparent 65%);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  color: var(--accent-2);
  margin-bottom: .9rem;
}
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 68ch; }
.hero-note { color: var(--muted); font-size: .9rem; margin-top: 1.1rem; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }

.button {
  display: inline-block;
  padding: .7rem 1.15rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7f5cf5);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.button:hover { color: #fff; filter: brightness(1.08); }
.button--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.button--ghost:hover { background: var(--panel); color: var(--text); }

/* sections */
.section { padding: clamp(2.2rem, 5vw, 3.6rem) 0; border-bottom: 1px solid var(--line); }
.section--cta { background: linear-gradient(180deg, transparent, rgba(157, 123, 255, .07)); border-bottom: 0; }
.prose { color: var(--muted); max-width: 76ch; }

/* cards and grids */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.grid--two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: .5rem; }
.card-head h3 { margin: 0; }

/* badges */
.badge {
  display: inline-block;
  padding: .16rem .5rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.badge--ok { color: var(--ok); }
.badge--native { color: var(--accent-2); }
.badge--dev { color: var(--dev); }
.badge--plan { color: var(--plan); }
.badge--ext { color: var(--ext); }
.badge--no { color: var(--no); }

/* tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel); color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
tbody tr:last-child td { border-bottom: 0; }
td h3 { margin: 0 0 .25rem; font-size: 1rem; }
.row-title { font-size: 1rem; }
.muted, td .muted { color: var(--muted); }

/* lists */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; max-width: 80ch; }
.checklist li { padding-left: 1.5rem; position: relative; color: var(--muted); }
.checklist li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: .62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.checklist--no li::before { background: var(--no); }
.status-list { list-style: none; padding: 0; display: grid; gap: .5rem; max-width: 80ch; margin: 0; }
.status-list dt { font-weight: 650; }
.status-list dd { margin: 0 0 .6rem; color: var(--muted); }
.steps { color: var(--muted); max-width: 76ch; display: grid; gap: .55rem; padding-left: 1.3rem; }
.steps strong { color: var(--text); }

/* flow */
.flow { display: grid; gap: .6rem; margin-bottom: 1.4rem; }
.flow-step {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: .8rem 1rem;
}
.flow-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-2); margin-bottom: .2rem; }
.flow-step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* faq */
details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1rem;
  margin-bottom: .6rem;
  background: var(--bg-soft);
}
summary { cursor: pointer; font-weight: 600; }
summary::marker { color: var(--accent); }
details p { margin: .7rem 0 0; color: var(--muted); }

/* notice */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--ext);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin-top: 1.4rem;
}
.notice h2 { margin-top: 0; }

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: var(--panel-2);
  padding: .1rem .35rem;
  border-radius: 5px;
}

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.4rem 0 3rem; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { font-weight: 650; margin-bottom: .3rem; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-head { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .5rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-cols a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.footer-cols a:hover { color: var(--text); }
.muted { color: var(--muted); font-size: .9rem; }

@media (max-width: 560px) {
  .header-inner { gap: .6rem; }
  .nav a { padding: .4rem .5rem; font-size: .9rem; }
  th, td { padding: .7rem .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
