/* ============================================
   Harnessing Quantum 2026
   Quantum spec-sheet — brutalist-refined mono
   ============================================ */

:root {
  --bg:        #0b0b0b;
  --bg-1:      #111111;
  --bg-2:      #161616;
  --bg-3:      #1a1a1a;

  --line:      rgba(255, 255, 255, 0.10);
  --line-2:    rgba(255, 255, 255, 0.06);
  --line-3:    rgba(255, 255, 255, 0.18);
  --line-4:    rgba(255, 255, 255, 0.28);

  --ink:       #f5f5f5;
  --ink-2:     #d4d4d4;
  --ink-3:     #a3a3a3;
  --ink-4:     #737373;
  --ink-5:     #525252;
  --ink-6:     #383838;

  --accent:      #ffd84d;
  --accent-2:    #ffe687;
  --accent-soft: rgba(255, 216, 77, 0.08);
  --accent-line: rgba(255, 216, 77, 0.40);
  --accent-glow: rgba(255, 216, 77, 0.18);

  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Major Mono Display', 'JetBrains Mono', ui-monospace, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-pixel:   'Press Start 2P', ui-monospace, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;

  --radius: 2px;
}

* { box-sizing: border-box; }

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

/* Subtle film grain + vignette layered atop the canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255,216,77,0.04), transparent 60%),
    radial-gradient(120% 100% at 50% 110%, rgba(0,0,0,0.55), transparent 60%);
  z-index: 1;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

#lattice-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

::selection { background: var(--accent); color: #000; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: rgba(11, 11, 11, 0.72);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.brand-mark {
  display: inline-block;
  width: 11px;
  height: 11px;
  font-size: 0;
  line-height: 0;
  flex-shrink: 0;
  transform: translateY(-1px);
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0/3px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 8px 0/3px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 8px/3px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 8px 8px/3px 3px no-repeat;
}

.brand-name {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--ink-4);
  text-transform: uppercase;
  border: 1px solid var(--line-3);
  padding: 4px 7px;
  border-radius: var(--radius);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.nav-link {
  color: var(--ink-3);
  text-decoration: none;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  position: relative;
}

.lang-switch {
  display: flex;
  align-items: center;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--line-3);
}

.nav-link:hover { color: var(--ink); border-bottom-color: var(--ink-3); }
.nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-link.active::before {
  content: "";
  position: absolute;
  inset: -2px -6px -2px -6px;
  background: var(--accent-soft);
  z-index: -1;
}

.header-rule { height: 1px; background: var(--line); }

/* ============================================
   MAIN
   ============================================ */
main { padding: 56px 0 48px; min-height: 60vh; }
#main_content > *:first-child { margin-top: 0; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h1 {
  font-size: 34px;
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.02em;
  position: relative;
  animation: rise .65s .04s ease both;
}

h1::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 72px;
  height: 1px;
  background: var(--accent);
}

h2 {
  font-size: 21px;
  margin: 56px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  color: var(--ink);
  position: relative;
}

h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 36px;
  height: 1px;
  background: var(--accent);
}

h3 {
  font-size: 16px;
  margin: 30px 0 12px;
  color: var(--ink);
  letter-spacing: 0;
}

h3::before {
  content: "›";
  color: var(--accent);
  margin-right: 10px;
  font-weight: 700;
}

p, li { font-size: 15px; color: var(--ink-2); }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-5);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .15s ease, color .15s ease;
}

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

strong { color: var(--ink); font-weight: 600; }
em {
  color: var(--ink);
  font-style: normal;
  background: var(--accent-soft);
  padding: 0 5px;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--accent-line);
}

/* Lists */
ul { list-style: none; padding-left: 0; }
ul li {
  position: relative;
  padding-left: 26px;
  margin: 6px 0;
}
ul li::before {
  content: "▪";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--ink-5);
  font-size: 11px;
  line-height: 1.65;
}

ol { padding-left: 32px; }
ol li { margin: 6px 0; }
ol li::marker {
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: 10px;
}

/* Code */
code {
  background: var(--bg-2);
  color: var(--ink);
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
}

pre {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 20px 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink-2);
  font-size: 13px;
}

/* ============================================
   TABLES
   ============================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 32px;
  font-size: 14px;
  border-top: 1px solid var(--line-3);
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  border-bottom: 1px solid var(--line-3);
  padding-bottom: 14px;
  background: rgba(255,255,255,0.015);
}

td { color: var(--ink-2); }
tr:last-child td { border-bottom: none; }
tbody tr {
  transition: background .15s ease;
}
tbody tr:hover td {
  background: var(--accent-soft);
  color: var(--ink);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: transparent;
  color: var(--ink) !important;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line-3);
  border-radius: var(--radius);
  margin: 6px 8px 6px 0;
  transition: all .18s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,216,77,0.18) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .55s ease;
}
.btn:hover::before { transform: translateX(110%); }

.btn::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-4);
  transition: transform .18s ease, color .18s ease;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  background: var(--accent-soft);
}
.btn:hover::after { color: var(--accent); transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000 !important;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary::after { color: #000; }
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #000 !important;
  box-shadow: 0 0 0 6px var(--accent-glow);
}
.btn-primary:hover::after { color: #000; }

/* ============================================
   PIXEL CARD (spec sheet)
   ============================================ */
.pixel-card {
  background: linear-gradient(180deg, var(--bg-1) 0%, rgba(17,17,17,0.6) 100%);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  padding: 22px 24px;
  margin: 26px 0;
  border-radius: var(--radius);
  color: var(--ink-2);
  position: relative;
}

.pixel-card::before {
  content: "// READ ME";
  position: absolute;
  top: -9px;
  left: 14px;
  background: var(--bg);
  padding: 0 8px;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}

.pixel-card.alt { border-left-color: var(--ink-3); }
.pixel-card.alt::before { color: var(--ink-3); }

.pixel-card.warn { border-left-color: var(--ink-3); }
.pixel-card.warn::before { content: "// HEADS-UP"; color: var(--ink-3); }

/* ============================================
   CHALLENGE ISSUE LIST
   ============================================ */
.challenge-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.challenge-list-item,
.challenge-list-empty {
  background: rgba(17,17,17,0.62);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.challenge-list-title {
  color: var(--ink) !important;
  font-weight: 600;
  text-decoration: none;
}

.challenge-list-title:hover { color: var(--accent) !important; }

.challenge-list-meta {
  color: var(--ink-4);
  font-size: 12px;
  margin-top: 6px;
}

/* Blockquote */
blockquote {
  border-left: 2px solid var(--accent);
  margin: 28px 0;
  padding: 6px 0 6px 22px;
  color: var(--ink-3);
  font-style: normal;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.005em;
}
blockquote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 36px;
  line-height: 0.4;
  margin-bottom: 8px;
}

/* ============================================
   PLACEHOLDER + BADGES
   ============================================ */
.placeholder {
  display: inline-block;
  background: transparent;
  color: var(--ink-3);
  padding: 1px 7px;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px dashed var(--line-3);
  border-radius: var(--radius);
  vertical-align: 1px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 28px;
}
.badge {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: 7px 11px;
  border-radius: var(--radius);
}
.badge.is-accent { color: var(--accent); border-color: var(--accent-line); }

/* HR */
hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ============================================
   HERO (homepage)
   ============================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin: 8px 0 64px;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero-content { animation: rise .7s .05s ease both; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
  padding: 7px 12px;
  border: 1px solid var(--line-3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(44px, 6.6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  text-transform: lowercase;
  border: 0;
  padding: 0;
}
.hero-title::after { display: none; }
.hero-title .line { display: block; }
.hero-title .line.line-accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-title .line.line-accent::after {
  content: ".";
  color: var(--ink);
}

.hero-lede {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 0 28px;
}
.hero-lede em {
  background: var(--accent-soft);
  border-bottom-color: var(--accent-line);
  font-style: normal;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }

/* Hero spec card */
.hero-card {
  position: relative;
  align-self: start;
  background: linear-gradient(180deg, rgba(17,17,17,0.85), rgba(11,11,11,0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rise .7s .14s ease both;
  backdrop-filter: blur(4px);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255,216,77,0.10), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
  z-index: 1;
}
.hero-card-head .hero-card-id { color: var(--accent); }

.hero-card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px dashed var(--line-2);
  position: relative;
  z-index: 1;
}
.hero-card-row:last-of-type { border-bottom: 0; }

.kv-key {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-4);
}
.kv-val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  text-align: right;
  font-weight: 500;
}
.kv-val b {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  margin-right: 1px;
}
.kv-unit {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--ink-4);
  margin: 0 4px 0 1px;
  vertical-align: 2px;
}

/* hero card: time + location feature display */
.hero-card-feature {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
  border-bottom: 1px dashed var(--line-2);
  position: relative;
  z-index: 1;
}
.hero-card-feature:last-child { border-bottom: 0; }
.hero-card-feature .feat-key {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 10px;
}
.hero-card-feature .feat-val {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.hero-card-feature .feat-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 8px;
  text-transform: none;
  letter-spacing: 0;
}
.hero-card-feature.is-accent .feat-val { color: var(--accent); }

/* ============================================
   SECTION LABELS (small caps eyebrow)
   ============================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 36px 0 10px;
  padding-left: 0;
}

/* ============================================
   SPEC STRIP (key facts row)
   ============================================ */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0;
  margin: 0 0 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(17,17,17,0.55);
  backdrop-filter: blur(3px);
}
.spec-cell {
  padding: 18px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spec-cell:last-child { border-right: 0; }
.spec-cell .spec-key {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-4);
}
.spec-cell .spec-val {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.spec-cell.is-accent .spec-val { color: var(--accent); }

/* ============================================
   STEP LIST (numbered "how it works")
   ============================================ */
.step-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.step-list li {
  background: var(--bg);
  padding: 22px 22px 22px 22px;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step-list li::before { content: none; }
.step-list .step-num {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}
.step-list .step-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
}
.step-list .step-body {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ============================================
   TRACK GRID
   ============================================ */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0 36px;
}
.track-grid.track-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.track-grid.track-grid-compact .track-card { padding: 16px 16px 14px; }
.track-grid.track-grid-compact .track-glyph { font-size: 24px; margin: 0 0 10px; }
.track-grid.track-grid-compact .track-name { font-size: 14px; }
.track-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  position: relative;
  transition: border-color .18s ease, transform .18s ease;
  overflow: hidden;
}
.track-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: var(--ink-6);
  transition: background .18s ease;
}
.track-card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.track-card:hover::before { background: var(--accent); }

.track-card .track-num {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--ink-4);
  text-transform: uppercase;
}
.track-card .track-glyph {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  margin: 6px 0 14px;
  letter-spacing: -0.02em;
}
.track-card .track-name {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 4px;
}
.track-card .track-sub {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ============================================
   TIMELINE (program days)
   ============================================ */
.day-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
  margin: 24px 0 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.day-block:first-of-type { border-top: 0; padding-top: 8px; }
.day-block .day-tag {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.day-block .day-tag .day-num {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.day-block .day-content { padding-top: 4px; }
.day-block .day-content h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.day-block .day-content h3::before { display: none; }
.day-block table { margin-top: 14px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 32px 0 44px;
  background: rgba(11,11,11,0.6);
  position: relative;
  z-index: 2;
}

.foot-stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: center;
  align-items: baseline;
  white-space: nowrap;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-4);
}
.foot-stats span { color: var(--ink-3); }
.foot-stats .foot-sep { color: var(--ink-5); }
.foot-stats b {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  margin-right: 4px;
  letter-spacing: -0.02em;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

#main_content > * { animation: rise .55s ease both; }
#main_content > *:nth-child(1) { animation-delay: .04s; }
#main_content > *:nth-child(2) { animation-delay: .08s; }
#main_content > *:nth-child(3) { animation-delay: .12s; }
#main_content > *:nth-child(4) { animation-delay: .16s; }
#main_content > *:nth-child(5) { animation-delay: .2s; }
#main_content > *:nth-child(6) { animation-delay: .24s; }
#main_content > *:nth-child(7) { animation-delay: .28s; }
#main_content > *:nth-child(8) { animation-delay: .32s; }

/* ============================================
   CHINESE FONT SIZE ADJUSTMENTS
   Press Start 2P at 8-9px is illegible for CJK
   ============================================ */
html[lang="zh"] .site-nav { font-size: 11px; letter-spacing: .8px; }
html[lang="zh"] .brand-name { font-size: 12px; }
html[lang="zh"] .brand-tag { font-size: 10px; padding: 4px 7px; }
html[lang="zh"] .btn { font-size: 11px; }
html[lang="zh"] .section-label { font-size: 11px; }
html[lang="zh"] .foot-stats { font-size: 11px; letter-spacing: .8px; }
html[lang="zh"] .step-list .step-title { font-size: 11px; letter-spacing: 1px; }
html[lang="zh"] .day-block .day-tag { font-size: 11px; }
html[lang="zh"] th { font-size: 10px; }
html[lang="zh"] .badge { font-size: 11px; }
html[lang="zh"] .pixel-card::before { font-size: 10px; }
html[lang="zh"] .placeholder { font-size: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .step-list { grid-template-columns: 1fr; }
  .day-block { grid-template-columns: 1fr; gap: 14px; }
  .foot-stats { justify-content: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .container { padding: 0 22px; }
  .header-row { padding: 14px 22px; gap: 14px; }
  .brand-name { font-size: 10px; }
  .brand-tag { display: none; }
  .site-nav { font-size: 8px; gap: 2px 14px; }
  h1 { font-size: 26px; }
  h2 { font-size: 18px; }
  h3 { font-size: 15px; }
  th { font-size: 8px; }
  td, p, li { font-size: 14px; }
  .hero-title { font-size: 52px; }
  .hero-lede { font-size: 15px; }
  main { padding: 32px 0 32px; }
}
