:root {
  --midnight: #070d20;
  --deep: #0e1b40;
  --panel: #101f4a;
  --line: rgba(124, 164, 255, 0.22);
  --sapphire: #2f6bff;
  --ice: #e8f1ff;
  --mist: #9cc4ff;
  --amber: #f2b84b;
  --display: "Segoe UI Variable Display", "Segoe UI", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", ui-monospace, Consolas, Menlo, monospace;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(60rem 40rem at 78% -8%, rgba(47, 107, 255, 0.28), transparent 60%),
    var(--midnight);
  color: var(--ice);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
code, pre { font-family: var(--mono); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.6rem 1rem; background: var(--ice); color: var(--midnight); border-radius: 0.5rem;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--mist); outline-offset: 3px; border-radius: 0.35rem; }

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

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(72rem, 100%); margin-inline: auto; padding: 1.25rem var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-gem { width: 2.2rem; height: auto; }
.brand span {
  font: 600 1.15rem/1 var(--display); letter-spacing: 0.32em; text-transform: uppercase;
}
.top nav { display: flex; gap: clamp(0.9rem, 2.4vw, 1.8rem); font-size: 0.95rem; }
.top nav a { color: var(--mist); text-decoration: none; padding: 0.25rem 0; border-bottom: 1px solid transparent; }
.top nav a:hover { color: var(--ice); border-bottom-color: var(--mist); }

/* ---------- hero ---------- */
.hero {
  width: min(72rem, 100%); margin-inline: auto; padding: clamp(1.5rem, 5vw, 4rem) var(--gutter) clamp(3rem, 8vw, 6rem);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0 clamp(2rem, 5vw, 4.5rem); align-items: center;
  grid-template-areas: "copy gem" "chips gem";
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-gem { grid-area: gem; }
.facet-chips { grid-area: chips; align-self: start; }
.eyebrow {
  font: 600 0.78rem/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--mist);
  margin-bottom: 1.1rem;
}
h1 {
  font: 600 clamp(3rem, 8.4vw, 6rem)/1.04 var(--display); letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 10%, var(--mist) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 1.5rem; max-width: 34rem; color: #c3d6f7; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0 1.4rem; border-radius: 999px;
  font: 600 0.98rem/1 var(--body); text-decoration: none; border: 1px solid transparent;
}
.btn[hidden] { display: none; }
.btn-primary { background: var(--sapphire); color: #fff; }
.btn-primary:hover { background: #4a80ff; }
.btn-soon { background: rgba(47, 107, 255, 0.16); border-color: var(--line); color: var(--mist); cursor: default; }
.btn-ghost { border-color: var(--line); color: var(--ice); }
.btn-ghost:hover { border-color: var(--mist); }

.facet-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; max-width: 36rem; }
.facet-chips button {
  font: 500 0.88rem/1 var(--body); color: var(--mist); background: transparent; cursor: pointer;
  padding: 0.55rem 0.9rem; border-radius: 999px; border: 1px solid var(--line);
}
.facet-chips button:hover { color: var(--ice); border-color: var(--mist); }
.facet-chips button[aria-pressed="true"] { background: var(--ice); color: var(--midnight); border-color: var(--ice); }

/* ---------- the gem ---------- */
.hero-gem { display: grid; gap: 1.5rem; justify-items: center; }
.gem { width: min(100%, 31rem); height: auto; overflow: visible; filter: drop-shadow(0 1.5rem 3rem rgba(47, 107, 255, 0.35)); }

.facet { stroke: var(--midnight); stroke-width: 3; stroke-linejoin: round; cursor: pointer; opacity: 0.9; transition: opacity 0.2s, filter 0.2s; }
.f-tickets { fill: #4f86ff; }
.f-mod { fill: #9cc4ff; }
.f-raid { fill: #d6e7ff; }
.f-logs { fill: #7fb2ff; }
.f-automod { fill: #3a74ff; }
.f-antilink { fill: #2a5ce0; }
.f-welcome { fill: #4a82ff; }
.f-party { fill: #2f6bff; }
.f-roles { fill: #1b3fa8; }
.facet:hover { opacity: 0.95; }
.facet.is-active { opacity: 1; filter: brightness(1.05) drop-shadow(0 0 0.8rem rgba(156, 196, 255, 0.7)); stroke: var(--ice); stroke-width: 4; }

.details {
  width: min(100%, 31rem); min-height: 11.5rem; padding: 1.4rem 1.5rem;
  background: linear-gradient(180deg, rgba(16, 31, 74, 0.9), rgba(14, 27, 64, 0.9));
  border: 1px solid var(--line); border-radius: 1.1rem;
}
.detail + .detail { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.detail h2 { font: 600 1.3rem/1.2 var(--display); }
.detail p { margin-top: 0.55rem; color: #c3d6f7; font-size: 1rem; }
.detail code {
  display: inline-block; margin-top: 0.9rem; padding: 0.35rem 0.7rem; border-radius: 0.5rem;
  background: var(--midnight); border: 1px solid var(--line); color: var(--mist); font-size: 0.88rem;
}
/* With scripting, only the chosen facet is shown; without it, every facet is listed. */
.js .detail { display: none; }
.js .detail.is-active { display: block; margin-top: 0; padding-top: 0; border-top: 0; }

/* One entrance: the facets catch the light in turn. */
@keyframes catch { from { opacity: 0; transform: translateY(0.6rem); } }
.js .facet { animation: catch 0.55s ease backwards; }
.js .facet:nth-child(1) { animation-delay: 0.05s; }
.js .facet:nth-child(2) { animation-delay: 0.12s; }
.js .facet:nth-child(3) { animation-delay: 0.19s; }
.js .facet:nth-child(4) { animation-delay: 0.26s; }
.js .facet:nth-child(5) { animation-delay: 0.33s; }
.js .facet:nth-child(6) { animation-delay: 0.40s; }
.js .facet:nth-child(7) { animation-delay: 0.47s; }
.js .facet:nth-child(8) { animation-delay: 0.54s; }
.js .facet:nth-child(9) { animation-delay: 0.61s; }

/* ---------- bands ---------- */
.band { padding: clamp(3.5rem, 8vw, 6rem) 0; background: linear-gradient(180deg, rgba(14, 27, 64, 0.65), rgba(7, 13, 32, 0)); border-top: 1px solid var(--line); }
.band h2, .setup h2 { font: 600 clamp(1.8rem, 4.2vw, 2.7rem)/1.15 var(--display); max-width: 44rem; text-wrap: balance; }
.band-lede { margin-top: 1.1rem; max-width: 40rem; color: #c3d6f7; }

.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 3rem; position: relative; }
.step { position: relative; padding: 1.6rem 1.3rem 0 0; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--line);
}
.step-1::before { background: #5b86e6; }
.step-2::before { background: var(--amber); }
.step-3::before { background: #ff6b6b; }
.step::after {
  content: ""; position: absolute; top: -0.4rem; left: 0; width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: var(--midnight); border: 3px solid var(--mist);
}
.step-1::after { border-color: #5b86e6; }
.step-2::after { border-color: var(--amber); }
.step-3::after { border-color: #ff6b6b; }
.step .level { display: block; font: 600 0.75rem/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); }
.step h3 { margin-top: 0.7rem; font: 600 1.35rem/1.2 var(--display); }
.step p { margin-top: 0.5rem; color: #c3d6f7; font-size: 0.98rem; }

.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); color: #c3d6f7; }
.promises li { position: relative; padding-left: 1.4rem; font-size: 0.98rem; }
.promises li::before { content: ""; position: absolute; left: 0; top: 0.62rem; width: 0.55rem; height: 0.55rem; background: var(--sapphire); transform: rotate(45deg); }
.promises code, .setup code:not(pre code) { font-size: 0.88em; color: var(--mist); }

/* ---------- setup ---------- */
.setup { padding-block: clamp(3.5rem, 8vw, 6rem); }
.setup-steps { display: grid; gap: 2.2rem; margin-top: 2.2rem; max-width: 44rem; counter-reset: s; }
.setup-steps > li { padding-left: 3.2rem; position: relative; counter-increment: s; }
.setup-steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -0.1rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--mist); color: var(--mist); font: 600 0.95rem/1 var(--display);
}
.setup-steps h3 { font: 600 1.2rem/1.3 var(--display); }
.setup-steps p { margin-top: 0.4rem; color: #c3d6f7; }
.setup-steps pre {
  margin-top: 0.8rem; padding: 1rem 1.2rem; overflow-x: auto; border-radius: 0.8rem;
  background: var(--deep); border: 1px solid var(--line); color: var(--ice); font-size: 0.92rem; line-height: 1.7;
}

/* ---------- coming soon ---------- */
.band-soft { background: linear-gradient(180deg, rgba(16, 31, 74, 0.55), rgba(7, 13, 32, 0.2)); }
.soon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.2rem; }
.soon { padding: 1.6rem; border: 1px dashed rgba(156, 196, 255, 0.4); border-radius: 1.1rem; background: rgba(7, 13, 32, 0.5); }
.tag { display: inline-block; padding: 0.25rem 0.65rem; border-radius: 999px; background: rgba(242, 184, 75, 0.14); color: var(--amber); font: 600 0.72rem/1.2 var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
.soon h3 { margin-top: 0.9rem; font: 600 1.35rem/1.2 var(--display); }
.soon p { margin-top: 0.5rem; color: #c3d6f7; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--mist); font-size: 0.92rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; }
.foot a { color: var(--ice); }

/* ---------- long text pages (privacy, 404) ---------- */
.doc { width: min(46rem, 100%); margin-inline: auto; padding: 2rem var(--gutter) 5rem; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; }
.doc h2 { margin-top: 2.6rem; font: 600 1.35rem/1.25 var(--display); }
.doc p, .doc li { margin-top: 0.8rem; color: #c3d6f7; }
.doc ul { margin-top: 0.8rem; }
.doc li { position: relative; padding-left: 1.3rem; }
.doc li::before { content: ""; position: absolute; left: 0; top: 0.7rem; width: 0.5rem; height: 0.5rem; background: var(--sapphire); transform: rotate(45deg); }
.doc .updated { margin-top: 1rem; font-size: 0.92rem; color: var(--mist); }

/* ---------- small screens ---------- */
@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "gem" "chips"; gap: 1.5rem 0; }
  .hero-copy { align-self: auto; }
  .gem { width: min(78%, 22rem); }
  .ladder { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 2rem 2rem; }
  .step::before { top: 0; bottom: 0; left: 0.4rem; right: auto; width: 3px; height: auto; }
  .step::after { top: 0.15rem; left: 0; }
  .promises, .soon-grid { grid-template-columns: 1fr; }
}
@media (max-width: 36rem) {
  .top nav a:nth-child(-n+2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .facet { animation: none; }
  .facet { transition: none; }
}

/* ---------- radio ---------- */
.radio .eyebrow { margin-top: 1rem; }
.radio h2 { margin-top: 2.6rem; font: 600 1.35rem/1.25 var(--display); }
.radio p { margin-top: 0.8rem; color: #c3d6f7; }
.radio-card {
  margin-top: 2rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(16, 31, 74, 0.9), rgba(14, 27, 64, 0.9));
}
.radio-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem; border-radius: 999px;
  font: 600 0.78rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(156, 196, 255, 0.12); color: var(--mist);
}
.pill::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; opacity: 0.6; }
.pill[data-live="true"] { background: rgba(255, 107, 107, 0.16); color: #ff8a8a; }
.pill[data-live="true"]::before { opacity: 1; }
.count { margin: 0; color: var(--mist); font-size: 0.95rem; }
.radio .now { margin: 1.2rem 0 1.4rem; font: 600 clamp(1.4rem, 4vw, 1.9rem)/1.25 var(--display); color: var(--ice); overflow-wrap: anywhere; }
.tune { font-size: 1.05rem; min-height: 3.2rem; padding: 0 2.2rem; cursor: pointer; border: 0; }
.controls { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem 1rem; align-items: center; }
.controls meter { grid-column: 1 / -1; width: 100%; height: 0.6rem; }
.controls input[type="range"] { width: 100%; accent-color: var(--sapphire); }
.radio .note { margin-top: 1.2rem; font-size: 0.95rem; color: var(--mist); }

.studio .field { display: grid; gap: 0.5rem; margin: 0 0 1.4rem; padding: 0; border: 0; }
.studio label, .studio legend { font: 600 0.95rem/1.3 var(--display); color: var(--ice); padding: 0; }
.studio label.inline { display: flex; gap: 0.6rem; align-items: center; font: 400 0.95rem/1.4 var(--body); color: #c3d6f7; }
.studio input[type="text"], .studio input[type="password"] {
  width: 100%; min-height: 2.8rem; padding: 0 1rem; border-radius: 0.7rem; border: 1px solid var(--line);
  background: var(--midnight); color: var(--ice); font: 400 1rem var(--body);
}
.studio input[type="text"]:focus-visible, .studio input[type="password"]:focus-visible { border-color: var(--mist); }
.studio-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0.4rem 0 1.4rem; }
.studio-actions .btn { cursor: pointer; border: 1px solid transparent; }
.studio-actions .btn-ghost { border-color: var(--line); background: transparent; color: var(--ice); }
.studio .btn[hidden] { display: none; }
.studio meter { width: 100%; height: 0.7rem; }
.status { margin-top: 1rem; font-size: 0.98rem; }
.status[data-kind="live"] { color: #8fe3b4; }
.status[data-kind="warn"] { color: var(--amber); }
.status[data-kind="error"] { color: #ff8a8a; }
.radio .count strong { color: var(--ice); }

.radio-teaser { padding-block: clamp(3rem, 7vw, 5rem); }
.radio-teaser h2 { font: 600 clamp(1.8rem, 4.2vw, 2.7rem)/1.15 var(--display); max-width: 40rem; text-wrap: balance; }
.radio-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin: 1.4rem 0 1.6rem; color: #c3d6f7; }
