:root {
  --text: #ffe6fb;
  --background: #1a0520;
  --surface: #2d0b3a;
  --muted: #c77db5;
  --border: #5a1a6e;
  --danger: #ff5c8a;
  --tint: #ff2bd6;
  --on-tint: #1a0520;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --logo-bg: #241236;
  --radius: 16px;
  --max: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--tint);
  font-weight: 700;
}

a:hover {
  color: #ff7ae6;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--tint);
  color: var(--on-tint);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 40;
}

.skip:focus {
  top: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(26, 5, 32, 0.72);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--logo-bg);
}

.fm {
  color: var(--tint);
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--tint);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
}

main {
  overflow-x: hidden;
}

section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 8px;
  scroll-margin-top: 88px;
}

.hero {
  position: relative;
  text-align: center;
  padding-top: 56px;
}

.hero-glow {
  position: absolute;
  inset: -40px auto auto 50%;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--tint) 28%, transparent), transparent 68%);
  pointer-events: none;
}

.hero-mark {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 22px;
}

.hero-mark img {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 10px auto 0;
  border-radius: 42px;
  background: var(--logo-bg);
  box-shadow: 0 0 40px color-mix(in srgb, var(--tint) 35%, transparent);
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1.5px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  border-radius: 50%;
  animation: spin 14s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 12px #fb7185;
}

.badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 auto 16px;
  max-width: 100%;
  font-size: clamp(2rem, 6vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.7px;
}

.hero h1 .title-line {
  display: block;
}

.lede,
.section-lede {
  margin: 0 auto 28px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--on-tint);
  text-decoration: none;
  font-weight: 800;
}

.btn:hover {
  color: var(--on-tint);
  filter: brightness(1.08);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  color: var(--tint);
}

.eq {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 6px;
  height: 42px;
  margin: 36px auto 0;
}

.eq span {
  width: 6px;
  border-radius: 99px;
  background: linear-gradient(to top, var(--tint), var(--cyan));
  animation: eq 1.1s ease-in-out infinite;
}

.eq span:nth-child(1) { height: 14px; animation-delay: 0s; }
.eq span:nth-child(2) { height: 28px; animation-delay: 0.12s; }
.eq span:nth-child(3) { height: 18px; animation-delay: 0.24s; }
.eq span:nth-child(4) { height: 36px; animation-delay: 0.08s; }
.eq span:nth-child(5) { height: 22px; animation-delay: 0.3s; }
.eq span:nth-child(6) { height: 30px; animation-delay: 0.18s; }
.eq span:nth-child(7) { height: 16px; animation-delay: 0.05s; }

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 28px;
}

.strip article,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.strip h2,
.card h3,
.kicker {
  margin: 0 0 8px;
}

.strip h2,
.card h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.kicker {
  color: var(--tint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

section > h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.stack p {
  margin: 0;
  color: var(--muted);
}

.stack .btn {
  width: fit-content;
}

.card ol,
.card p {
  color: var(--muted);
}

.card ol {
  margin: 0;
  padding-left: 1.15rem;
}

.card li + li {
  margin-top: 8px;
}

.card + .card {
  margin-top: 14px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 16px 16px 16px 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.steps li strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--on-tint);
  font-weight: 800;
  display: grid;
  place-items: center;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: var(--gold);
}

.warn {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--border));
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  color: #ffd0df;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.tab {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tab.is-active {
  background: var(--tint);
  color: var(--on-tint);
  border-color: var(--tint);
}

.code-block {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #140318;
}

.code-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--surface) 80%, black);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.copy {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.copy:hover,
.copy.is-copied {
  color: var(--tint);
  border-color: var(--tint);
}

pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  white-space: pre;
  font-size: 0.78rem;
  line-height: 1.45;
}

pre code {
  color: #ffe6fb;
}

.is-hidden {
  display: none;
}

footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 48px auto 0;
  padding: 28px 0 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--logo-bg);
}

.footer-brand p,
footer p {
  margin: 0;
}

.footer-brand strong {
  color: var(--text);
  font-size: 1.1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px;
    border-radius: 10px;
  }

  .strip {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .hero h1 .title-line {
    white-space: normal;
  }
}

@media (min-width: 721px) {
  .hero h1 .title-line {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orbit,
  .eq span {
    animation: none;
  }
}
