/* ============================================================
   developers.tunelab.dev — Audio Intelligence Brutalism
   Navy base, electric blue accents, monospace-heavy, spectrogram motifs.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  /* Base palette — matches platform.css + consumer style.css */
  --bg-deep:        #08081a;
  --bg:             #0e0e24;
  --bg-mid:         #121030;
  --bg-code:        #050511;
  --bg-input:       #161630;

  /* Borders */
  --border:         rgba(96, 160, 255, 0.12);
  --border-bright:  rgba(96, 160, 255, 0.32);
  --border-hot:     rgba(96, 160, 255, 0.60);

  /* Text */
  --text:           #e8e8f0;
  --text-muted:     #8888aa;
  --text-dim:       #4a4862;

  /* Accents */
  --accent:         #60a0ff;
  --accent-hot:     #9ec5ff;
  --accent-glow:    rgba(96, 160, 255, 0.28);
  --warm:           #e8906a;

  /* States */
  --success:        #34d399;
  --warning:        #fbbf24;
  --danger:         #f87171;

  /* Syntax highlighting */
  --code-key:       #e8906a;
  --code-str:       #9ec584;
  --code-num:       #60a0ff;
  --code-comment:   #4a4862;
  --code-keyword:   #c78ed9;

  /* Layout */
  --nav-h:          64px;
  --sidebar-w:      272px;
  --content-max:    760px;
  --radius:         6px;
  --radius-lg:      12px;

  /* Fonts */
  --font-body:      'DM Sans', -apple-system, system-ui, sans-serif;
  --font-display:   'Barlow Condensed', -apple-system, system-ui, sans-serif;
  --font-mono:      'DM Mono', 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background atmospherics ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(96, 160, 255, 0.06), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(232, 144, 106, 0.04), transparent 50%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.25;
  mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
  z-index: 0;
}

/* ---------- Top navigation ---------- */

.docs-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(8, 8, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.docs-nav__inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.docs-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.docs-nav__brand-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.docs-nav__brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.docs-nav__brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-nav__links {
  display: flex;
  gap: 28px;
  flex: 1;
}

.docs-nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
}

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

.docs-nav__link--active {
  color: var(--accent);
}

.docs-nav__link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.docs-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.15s;
}

.docs-nav__cta:hover {
  background: var(--accent-hot);
  transform: translateY(-1px);
}

/* ---------- Main layout ---------- */

.docs-main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 48px;
  min-height: calc(100vh - var(--nav-h));
}

.docs-main--no-sidebar {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1200px;
}

/* ---------- Sidebar ---------- */

.docs-sidebar {
  padding: 40px 0 80px;
  border-right: 1px solid var(--border);
  margin-right: -16px;
  padding-right: 16px;
  position: sticky;
  top: var(--nav-h);
  align-self: start;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.docs-sidebar__section {
  margin-bottom: 28px;
}

.docs-sidebar__heading {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 10px;
  padding: 0 12px;
}

.docs-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}

.docs-sidebar__item:hover {
  color: var(--text);
  border-left-color: var(--border-bright);
}

.docs-sidebar__item--active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-glow), transparent);
}

.docs-sidebar__method {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.docs-sidebar__method--get  { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.docs-sidebar__method--post { background: rgba(96, 160, 255, 0.15); color: var(--accent); }

/* ---------- Content column ---------- */

.docs-content {
  padding: 48px 0 120px;
  max-width: var(--content-max);
}

.docs-content h1,
.docs-content h2,
.docs-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.15;
}

.docs-content h1 {
  font-size: 56px;
  margin: 0 0 16px;
}

.docs-content h2 {
  font-size: 32px;
  margin: 56px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.docs-content h3 {
  font-size: 22px;
  margin: 36px 0 12px;
}

.docs-content p {
  margin: 0 0 18px;
  color: var(--text);
}

.docs-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border-bright);
  transition: border-color 0.15s;
}

.docs-content a:hover {
  border-bottom-color: var(--accent);
}

.docs-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-code);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--warm);
}

.docs-content__lede {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 40px;
  max-width: 640px;
}

.docs-content ul {
  padding-left: 22px;
  margin: 0 0 18px;
}

.docs-content li {
  margin-bottom: 6px;
}

/* ---------- Code blocks ---------- */

.code-block {
  position: relative;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0;
  overflow: hidden;
}

.code-block__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
}

.code-block__dots {
  display: flex;
  gap: 6px;
}

.code-block__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
}

.code-block__dots span:nth-child(1) { background: #ff5f56; }
.code-block__dots span:nth-child(2) { background: #ffbd2e; }
.code-block__dots span:nth-child(3) { background: #27c93f; }

.code-block__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex: 1;
}

.code-block__copy {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}

.code-block__copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.code-block__copy--ok {
  border-color: var(--success);
  color: var(--success);
}

.code-block pre {
  margin: 0;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.code-block pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ---------- Callouts ---------- */

.callout {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  margin: 24px 0;
  font-size: 14.5px;
}

.callout--warn { border-left-color: var(--warning); }
.callout--danger { border-left-color: var(--danger); }
.callout--tip   { border-left-color: var(--success); }

.callout__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.callout--warn .callout__icon { color: var(--warning); }
.callout--danger .callout__icon { color: var(--danger); }
.callout--tip .callout__icon   { color: var(--success); }

/* ---------- Tables ---------- */

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.docs-content th,
.docs-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.docs-content th {
  background: var(--bg-mid);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.docs-content td {
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
}

.docs-content tr:last-child td { border-bottom: none; }

/* ---------- Landing page hero ---------- */

.hero {
  position: relative;
  padding: 100px 32px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border: 1px solid var(--border-bright);
  border-radius: 99px;
  background: var(--accent-glow);
  margin-bottom: 24px;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: var(--text);
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 4px;
  background: var(--accent);
  opacity: 0.3;
}

.hero__subtitle {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 36px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
}

.btn--primary:hover {
  background: var(--accent-hot);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Spectrogram strip at hero bottom */
.hero__spectrogram {
  margin-top: 72px;
  display: flex;
  gap: 2px;
  height: 48px;
  align-items: flex-end;
  opacity: 0.5;
}

.hero__spectrogram span {
  flex: 1;
  background: linear-gradient(to top, var(--accent), transparent);
  border-radius: 1px 1px 0 0;
  animation: spec 1.8s ease-in-out infinite;
}

@keyframes spec {
  0%, 100% { height: 15%; }
  50%      { height: 100%; }
}

.hero__spectrogram span:nth-child(3n)   { animation-delay: 0.15s; }
.hero__spectrogram span:nth-child(3n+1) { animation-delay: 0.35s; }
.hero__spectrogram span:nth-child(3n+2) { animation-delay: 0.55s; }
.hero__spectrogram span:nth-child(5n)   { animation-delay: 0.75s; }
.hero__spectrogram span:nth-child(7n)   { animation-delay: 1.1s; }

/* ---------- Feature grid ---------- */

.feature-grid {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 32px;
}

.feature-grid__heading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.feature-grid__title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  margin: 0 0 48px;
  max-width: 680px;
}

.feature-grid__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 900px) {
  .feature-grid__grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--bg-mid); }

.feature-card__icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Pricing ---------- */

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

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 48px var(--accent-glow);
}

.price-card__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.price-card__amount small {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

.price-card__credits {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  margin: 12px 0 20px;
}

.price-card__features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  font-size: 13.5px;
  color: var(--text-muted);
  flex: 1;
}

.price-card__features li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.price-card__features li:last-child { border-bottom: none; }

/* ---------- Footer ---------- */

.docs-footer {
  border-top: 1px solid var(--border);
  margin-top: 120px;
  padding: 48px 32px 56px;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.docs-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 800px) {
  .docs-footer__inner { grid-template-columns: 1fr 1fr; }
}

.docs-footer__brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.docs-footer__tagline {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
}

.docs-footer__col-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.docs-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
}

.docs-footer__list li { margin-bottom: 8px; }

.docs-footer__list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.docs-footer__list a:hover { color: var(--accent); }

/* ---------- Utilities ---------- */

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 3px;
  border: 1px solid var(--border-bright);
  color: var(--accent);
}

.badge--get  { color: var(--success); border-color: rgba(52, 211, 153, 0.4); }
.badge--post { color: var(--accent); border-color: rgba(96, 160, 255, 0.4); }

/* ============================================================
   Marketing page components
   Used by: /spotify-audio-features-alternative
   Kept generic so future comparison/migration pages can reuse.
   ============================================================ */

/* ---------- Code-block variants: dead (Spotify 410) + live (TuneLab 200) ---------- */

.code-block--dead {
  border-color: rgba(248, 113, 113, 0.28);
  background: #150a10;
}

.code-block--dead .code-block__header {
  background: #1b0b10;
  border-bottom-color: rgba(248, 113, 113, 0.22);
}

.code-block--dead .code-block__dots span {
  opacity: 0.35;
  filter: grayscale(0.6);
}

.code-block--dead pre code {
  color: rgba(232, 232, 240, 0.42);
}

.code-block--live {
  border-color: rgba(52, 211, 153, 0.32);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.05),
              0 16px 56px -24px rgba(52, 211, 153, 0.22);
}

.code-block--live .code-block__header {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.08), var(--bg-mid) 60%);
  border-bottom-color: rgba(52, 211, 153, 0.22);
}

/* Status pill in the header right-corner */
.code-block__status-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.code-block__status-pill--dead {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.code-block__status-pill--live {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.code-block__status-pill--live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  margin-right: 6px;
  animation: pulse 2s ease-in-out infinite;
  vertical-align: middle;
}

/* ---------- Hero response stack + "REPLACED BY" divider ---------- */

.hero__response-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__response-stack .code-block {
  margin: 0;
}

.hero__response-arrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 6px;
}

.hero__response-arrow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(96, 160, 255, 0.5) 30%,
    rgba(96, 160, 255, 0.5) 70%,
    transparent);
}

.hero__response-arrow-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.22em;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Metrics bar (full-width stat strip) ---------- */

.metrics-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(to bottom, var(--bg), var(--bg-mid));
  overflow: hidden;
}

.metrics-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 100%;
  opacity: 0.4;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
}

.metrics-bar__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.metrics-bar__stat {
  position: relative;
  text-align: center;
  padding: 0 8px;
}

.metrics-bar__stat + .metrics-bar__stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: var(--border-bright);
}

.metrics-bar__num {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  line-height: 0.95;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.metrics-bar__num-unit {
  font-size: 38px;
  opacity: 0.7;
  margin-left: 2px;
}

.metrics-bar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metrics-bar__crossed {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: var(--danger);
}

/* ---------- Side-by-side migration diff ---------- */

.migration-diff__intro {
  color: var(--text-muted);
  max-width: 720px;
  margin: -32px 0 40px;
  font-size: 16px;
  line-height: 1.6;
}

.migration-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.migration-diff__col {
  display: flex;
  flex-direction: column;
  min-width: 0; /* allow grid cell shrink, enables code overflow-x */
}

.migration-diff__col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.migration-diff__col-label--before {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.05);
  border-color: rgba(248, 113, 113, 0.22);
}

.migration-diff__col-label--after {
  color: var(--success);
  background: rgba(52, 211, 153, 0.05);
  border-color: rgba(52, 211, 153, 0.22);
}

.migration-diff__col .code-block {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.migration-diff__col:has(.migration-diff__col-label--before) .code-block {
  border-color: rgba(248, 113, 113, 0.22);
}

.migration-diff__col:has(.migration-diff__col-label--after) .code-block {
  border-color: rgba(52, 211, 153, 0.22);
}

.migration-diff__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.migration-diff__dot--dead {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  opacity: 0.6;
}

.migration-diff__dot--live {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

/* ---------- Final CTA band ---------- */

.cta-band {
  position: relative;
  max-width: 1280px;
  margin: 96px auto 120px;
  padding: 88px 32px;
  text-align: center;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at center top, rgba(96, 160, 255, 0.12), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg,
      transparent,
      transparent 48px,
      rgba(96, 160, 255, 0.025) 48px,
      rgba(96, 160, 255, 0.025) 49px);
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.cta-band__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--text);
}

.cta-band__subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 40px;
}

.cta-band__subtitle a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(96, 160, 255, 0.3);
}

.cta-band__subtitle a:hover { border-color: var(--accent); }

.cta-band__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cta-band__trust {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-band__trust-sep {
  color: var(--accent);
  opacity: 0.6;
}

/* Extra-large button variant for the final CTA */
.btn--xl {
  padding: 18px 30px;
  font-size: 15px;
}

/* ---------- Mobile ---------- */

@media (max-width: 800px) {
  .docs-nav__links { display: none; }
  .docs-main {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .docs-sidebar { display: none; }
  .docs-content { padding: 24px 0 80px; }
  .hero { padding: 48px 20px; }
  .hero__title { font-size: 54px; }
  .docs-content h1 { font-size: 40px; }
  .docs-content h2 { font-size: 26px; }
  .feature-grid__title { font-size: 32px; }

  /* Marketing page components on mobile */
  .metrics-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
    padding: 40px 20px;
  }
  .metrics-bar__num { font-size: 44px; }
  .metrics-bar__num-unit { font-size: 28px; }
  .metrics-bar__stat + .metrics-bar__stat::before { display: none; }

  .migration-diff { grid-template-columns: 1fr; gap: 32px; }

  .cta-band {
    margin: 64px 20px 80px;
    padding: 56px 24px;
    border-radius: var(--radius);
  }
  .cta-band__title { font-size: 40px; }
  .cta-band__subtitle { font-size: 16px; }

  .hero__response-arrow { padding: 14px 4px; }
  .hero__response-arrow-label { font-size: 9px; }
}
