:root {
  --bg: #070d14;
  --bg-alt: #0b1520;
  --panel: rgba(14, 24, 36, 0.88);
  --panel-strong: rgba(9, 16, 26, 0.94);
  --text: #eff7fb;
  --muted: #95aebb;
  --line: rgba(157, 196, 214, 0.16);
  --accent: #67e8f9;
  --accent-2: #facc15;
  --accent-3: #34d399;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(103, 232, 249, 0.13), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(250, 204, 21, 0.1), transparent 18%),
    radial-gradient(circle at 70% 52%, rgba(52, 211, 153, 0.08), transparent 18%),
    linear-gradient(180deg, #060b12 0%, #09111a 42%, #060b12 100%);
  font-family: "Space Grotesk", "IBM Plex Sans", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(250, 204, 21, 0.08), transparent 26%),
    radial-gradient(circle at 75% 35%, rgba(56, 189, 248, 0.08), transparent 22%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
}

.hero,
main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.docs {
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.docs-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 8px 0 16px;
}

.hero {
  padding: 24px 0 48px;
}

.nav,
.subnav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 15, 24, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav {
  justify-content: space-between;
  margin-top: 12px;
}

.subnav {
  margin: 12px 0 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.22);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(103, 232, 249, 0.14));
  color: #fff7d6;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f8fafc, #9ae6ff 44%, #fde68a 84%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a,
.subnav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.subnav a:hover {
  color: var(--text);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.78fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  padding: 106px 0 62px;
}

.hero-side {
  display: grid;
  gap: 18px;
  align-self: center;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.88rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.docs-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061018;
  border-color: transparent;
  font-weight: 700;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.03);
}

.button.mini {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-2);
  text-decoration: none;
}

.text-link:hover {
  color: var(--text);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 36px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.24), rgba(56, 189, 248, 0.22), transparent 76%);
  pointer-events: none;
}

.panel.alt {
  background: var(--panel-strong);
}

.footer-panel {
  margin-bottom: 48px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  margin: 28px 0 48px;
  padding: 28px 0 12px;
  border-top: 1px solid var(--line);
}

.docs-footer {
  margin-top: 22px;
}

.footer-brand p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.footer-links h4 {
  margin: 0 0 12px;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-links a {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.marquee-panel::after,
.premium-band::after,
.docs-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.12), transparent 68%);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.06;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 92px;
  height: 92px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.12), transparent 70%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 220, 229, 0.26);
  background: rgba(255, 255, 255, 0.045);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.docs-hero-grid .card {
  min-height: 180px;
}

.metric {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(255, 255, 255, 0.03);
}

.glass-card {
  backdrop-filter: blur(16px);
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.08), rgba(250, 204, 21, 0.04)),
    rgba(255, 255, 255, 0.035);
}

.spotlight-card {
  border-color: rgba(250, 204, 21, 0.22);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.11), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.clean-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

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

.card p,
.card li {
  color: var(--muted);
  line-height: 1.74;
}

.card ul,
.card ol {
  margin: 14px 0 0;
  padding-left: 18px;
}

.card pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line);
}

.card ol li + li,
.card ul li + li {
  margin-top: 6px;
}

code {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  color: #d6f5ff;
}

.muted {
  color: #7f99a4;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.in {
  animation: rise 0.55s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero-shell,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .docs-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 56px;
  }
}

@media (max-width: 860px) {
  .nav,
  .subnav {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links,
  .hero-points {
    gap: 8px;
  }
}
