/* VONK 2027 · /info Technical & Functional Architecture Showcase
   Self-hosted OFL fonts: Schibsted Grotesk + Inter (tabular-nums).
   Blueprint (Deep Azul + Crown Gold) & Workbench palettes matching the game. */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/SchibstedGrotesk-VF.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-VF.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root,
[data-theme="blueprint"] {
  --bg-deep: #071021;
  --bg-surface: #0D1B36;
  --bg-elevated: #14264A;
  --bg-card: #10203F;
  --bg-tint: rgba(147, 197, 253, 0.08);
  --grid-line: rgba(77, 163, 255, 0.07);
  --border: rgba(147, 197, 253, 0.2);
  --border-strong: rgba(229, 179, 57, 0.55);
  --text: #F4F7FC;
  --text-muted: #A6B8D6;
  --gold: #E5B339;
  --gold-deep: #A67916;
  --gold-soft: rgba(229, 179, 57, 0.14);
  --gold-ink: #0B162C;
  --accent: #4DA3FF;
  --ok: #4ADE80;
  --shadow: 0 18px 44px rgba(2, 8, 23, 0.5);
}

[data-theme="workbench"] {
  --bg-deep: #ECE6D8;
  --bg-surface: #F7F4EC;
  --bg-elevated: #FFFFFF;
  --bg-card: #F3EEE2;
  --bg-tint: rgba(20, 48, 94, 0.06);
  --grid-line: rgba(20, 48, 94, 0.06);
  --border: rgba(20, 48, 94, 0.16);
  --border-strong: rgba(154, 103, 8, 0.55);
  --text: #132240;
  --text-muted: #4D6082;
  --gold: #9A6708;
  --gold-deep: #6C4704;
  --gold-soft: rgba(154, 103, 8, 0.12);
  --gold-ink: #FFFFFF;
  --accent: #1D5EC4;
  --ok: #15803D;
  --shadow: 0 14px 32px rgba(19, 34, 64, 0.12);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

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

  .btn,
  .info-nav a {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Topbar */
.info-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg-surface) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-hex {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

.info-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.info-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 140ms ease;
}

.info-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: 600 0.88rem/1 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.btn:hover {
  border-color: var(--border-strong);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
}

.btn-gold:hover {
  background: color-mix(in srgb, var(--gold) 90%, #ffffff);
  border-color: var(--gold);
  color: var(--gold-ink);
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.btn.is-active {
  background: var(--gold-soft);
  border-color: var(--border-strong);
  color: var(--gold);
}

/* Hero */
.hero {
  padding: 64px 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 16px;
  max-width: 18ch;
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 68ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-ctas .btn {
  min-height: 46px;
  padding: 0 22px;
  font-size: 0.96rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-value {
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

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

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}

.section h2 {
  margin: 0 0 12px;
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section-lead {
  margin: 0;
  max-width: 72ch;
  color: var(--text-muted);
  font-size: 1rem;
}

.subhead {
  margin: 34px 0 14px;
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

/* Live Micro-Bench */
.microbench {
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.microbench-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.microbench-title {
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.microbench-sub {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.microbench-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.microbench-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  background: var(--bg-deep);
}

.microbench-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.microbench-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.metric-cell {
  background: var(--bg-card);
  padding: 12px 14px;
}

.metric-k {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.metric-v {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* 6-Step Substep Pipeline */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pipe-card {
  padding: 20px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.pipe-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.pipe-card h4 {
  margin: 0 0 8px;
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
}

.pipe-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Spec Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec-val {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* 24-Part Catalog */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.part-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.part-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.part-swatch {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.part-title {
  margin: 0;
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.part-cat-pill {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold);
}

.part-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex: 1;
}

.part-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.part-chip {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text);
}

/* Pillars (UX, AI, Audio) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pillar-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.pillar-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pillar-card h3 {
  margin: 0 0 14px;
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
}

.pillar-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pillar-list li + li {
  margin-top: 9px;
}

/* Privacy Cards & Schema */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.privacy-card {
  padding: 22px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.privacy-card h3 {
  margin: 0 0 8px;
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
}

.privacy-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.schema-box {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
}

.schema-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}

.schema-line {
  display: block;
  padding: 6px 10px;
  margin-top: 6px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  overflow-x: auto;
}

/* Verification Gate */
.gate-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.gate-card {
  padding: 18px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.gate-count {
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--ok);
  line-height: 1.1;
}

.gate-card h4 {
  margin: 8px 0 6px;
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
}

.gate-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.live-tally {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.live-tally strong {
  color: var(--gold);
  font-family: 'Schibsted Grotesk', 'Inter', sans-serif;
  font-size: 1.05rem;
}

/* Footer */
.info-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-blurb {
  margin: 0;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 980px) {
  .info-nav {
    display: none;
  }

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

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

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

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .section {
    padding: 38px 0;
  }

  .header-inner {
    gap: 8px;
  }

  .header-actions .btn {
    padding: 0 10px;
    font-size: 0.8rem;
  }

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

  .pipeline-grid,
  .parts-grid,
  .pillars-grid,
  .privacy-grid,
  .gate-list {
    grid-template-columns: 1fr;
  }

  .spec-table th,
  .spec-table td {
    padding: 10px 12px;
    font-size: 0.84rem;
  }
}
