:root {
  color-scheme: dark;
  --bg: #120f08;
  --panel: #201a10;
  --panel-2: #2a2113;
  --text: #fff8e6;
  --muted: #c9b98a;
  --line: rgba(255, 209, 102, 0.19);
  --green: #ffd166;
  --yellow: #ffe082;
  --blue: #67d4ff;
  --coral: #ff8978;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 209, 102, 0.24), transparent 28rem),
    radial-gradient(circle at 86% 4%, rgba(103, 212, 255, 0.14), transparent 24rem),
    linear-gradient(135deg, #120f08 0%, #17130d 48%, #0d0b07 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 76%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 15, 8, 0.78);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.module-tabs,
.contact-card {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 8px;
  background: #2a2113;
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
}

.nav {
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.nav a,
.header-cta {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.header-cta {
  justify-self: end;
  border: 1px solid rgba(103, 212, 255, 0.34);
  border-radius: 999px;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(64px, 9vw, 116px) clamp(18px, 6vw, 84px) 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 30px;
  color: #efe1bd;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: #171006;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.install-panel,
.code-card,
.summary-card,
.test-card,
.module-layout,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 26, 16, 0.84);
  box-shadow: var(--shadow);
}

.install-panel {
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
}

.window-bar span:nth-child(2) {
  background: var(--yellow);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.window-bar strong {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

code {
  font-family: var(--mono);
}

.install-panel pre {
  padding: clamp(18px, 3vw, 30px);
  font-size: clamp(13px, 1.4vw, 16px);
}

.muted {
  color: var(--muted);
}

.success,
.test-status {
  color: var(--green);
}

.repl {
  padding: 0 clamp(18px, 3vw, 30px) 26px;
  font-family: var(--mono);
  font-size: 14px;
}

.repl p {
  margin-bottom: 8px;
}

.repl span {
  color: var(--blue);
}

.repl .output {
  color: var(--yellow);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 6vw, 84px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.metrics-strip article {
  padding: 24px;
  background: rgba(32, 26, 16, 0.82);
}

.metrics-strip strong {
  display: block;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: clamp(25px, 3vw, 42px);
}

.metrics-strip span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 6vw, 84px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.quickstart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 20px;
}

.code-card {
  padding: clamp(18px, 3vw, 32px);
  background: #141008;
}

.code-card code {
  color: #fff4d6;
  font-size: clamp(13px, 1.4vw, 15px);
}

.summary-card {
  padding: clamp(22px, 3vw, 34px);
  color: #eadfbd;
  font-size: 18px;
}

.summary-card p:last-child {
  margin-bottom: 0;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.test-card {
  min-height: 250px;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.test-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 209, 102, 0.5);
}

.test-status {
  display: inline-flex;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.test-card h3,
.release h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.test-card p,
.release p,
.release li,
.module-panel,
.contact-card {
  color: #e6dac0;
}

.timeline {
  border-top: 1px solid var(--line);
}

.release {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 56px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.release-meta {
  font-family: var(--mono);
}

.release-meta span {
  display: block;
  color: var(--green);
  font-weight: 800;
}

.release-meta strong {
  color: var(--text);
}

.release-body ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.current .release-meta span::after {
  content: " current";
  color: var(--yellow);
}

.module-layout {
  overflow: hidden;
  box-shadow: none;
}

.module-tabs {
  flex-wrap: wrap;
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.module-tab {
  flex: 1 1 170px;
  min-height: 48px;
  border: 0;
  background: rgba(32, 26, 16, 0.98);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 800;
}

.module-tab.active {
  background: rgba(255, 209, 102, 0.18);
  color: var(--text);
}

.module-panel {
  min-height: 320px;
  padding: clamp(22px, 4vw, 42px);
}

.module-panel pre {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141008;
  color: #fff4d6;
}

.module-panel h3 {
  color: var(--text);
  font-size: 28px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.skill-pills span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.1);
  color: #fff1c4;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 28px;
  align-items: center;
  padding-bottom: clamp(64px, 9vw, 110px);
}

.contact-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  box-shadow: none;
}

.contact-card p {
  margin: 0;
}

.contact-card a {
  color: var(--text);
  font-weight: 800;
  text-decoration-color: rgba(255, 209, 102, 0.72);
}

.tok-key {
  color: #ffd166;
  font-weight: 800;
}

.tok-str {
  color: #9df0c6;
}

.tok-num {
  color: #ffb86b;
}

.tok-fn {
  color: #67d4ff;
}

.tok-builtin {
  color: #f4a7ff;
}

.tok-param {
  color: #ffe7a3;
}

.tok-comment {
  color: #9c8f6f;
  font-style: italic;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .quickstart-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: clamp(46px, 16vw, 74px);
  }

  .install-panel pre,
  .code-card code,
  .module-panel pre {
    font-size: 12px;
  }

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

  .metrics-strip {
    margin-left: 16px;
    margin-right: 16px;
  }

  .release {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
