/* style.css — Soul Protocol Landing Page
 * Swiss/International Typographic Style: strict grid system,
 * asymmetric 2-column layout (marker + main), section numbering,
 * thin rules as structural elements, systematic 8px spacing,
 * left-aligned content, strong type hierarchy.
 * Hero section preserved (physics strings, bird, LED particles).
 */

/* ============================================
   FOUNDATIONS
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #EA580C;
  --orange-light: #F97316;
  --orange-dark: #C2410C;
  --gold: #FCD34D;
  --dark: #0C0C0C;
  --dark-surface: #141414;
  --light: #FAF9F6;
  --text: #1a1a1a;
  --text-muted: #666;
  --text-dim: #999;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --grid-gap: 32px;
  --marker-width: 100px;
  --container-max: 900px;
  --unit: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--light);
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   SWISS GRID SYSTEM
   ============================================ */

.grid-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--grid-gap);
}

.grid-row {
  display: grid;
  grid-template-columns: var(--marker-width) 1fr;
  gap: var(--grid-gap);
  align-items: start;
}

/* Left column: section number + tag */
.grid-col-marker {
  padding-top: 4px;
}

.section-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-tag {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.section-dark .section-tag {
  color: rgba(255,255,255,0.25);
}

/* Main column */
.grid-col-main {
  max-width: none;
}

/* Structural rule */
.rule {
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 32px 0;
  max-width: 80px;
}

.section-dark .rule {
  background: rgba(255,255,255,0.1);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.display-heading {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.section-dark .display-heading {
  color: #fff;
}

.display-heading code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: rgba(234,88,12,0.1);
  color: var(--orange-light);
  padding: 2px 10px;
  border-radius: 4px;
}

.section-light .display-heading code {
  background: rgba(234,88,12,0.07);
  color: var(--orange);
}

.body-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 480px;
}

.body-text.small {
  font-size: 14px;
  line-height: 1.7;
}

.body-text.dim {
  opacity: 0.6;
}

.section-dark .body-text {
  color: rgba(255,255,255,0.4);
}

.body-text em {
  color: var(--text);
  font-family: var(--serif);
  font-style: italic;
}

.section-dark .body-text em {
  color: rgba(255,255,255,0.7);
}

.body-text code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(234,88,12,0.07);
  color: var(--orange);
  padding: 1px 6px;
  border-radius: 3px;
  word-break: break-word;
}

.body-text a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(234,88,12,0.3);
  transition: border-color 0.15s;
}

.body-text a:hover {
  border-bottom-color: var(--orange);
}

/* ============================================
   HERO SECTION — preserved
   ============================================ */

#top-nav {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 20px;
  background: rgba(0,0,0,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2rem;
  border: 1px solid rgba(0,0,0,0.08);
}

.nav-link {
  color: rgba(0,0,0,0.5);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: rgba(0,0,0,0.85);
}

.nav-sep {
  color: rgba(0,0,0,0.2);
  font-size: 13px;
  user-select: none;
}

.nav-gh {
  display: flex;
  align-items: center;
}

#hero {
  position: relative;
  width: calc(100% - 32px);
  max-width: 1320px;
  height: 720px;
  margin: 48px auto 0;
  background: linear-gradient(160deg, #EA580C 0%, #DC5A10 40%, #C2410C 100%);
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0 80px;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

.bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(251,191,36,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: bg-pulse 6s ease-in-out infinite;
}

@keyframes bg-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

#soul-folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  flex-shrink: 0;
}

.folder-img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.folder-label {
  margin-top: 8px;
  padding: 6px 24px;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  color: rgba(255,255,255,0.9);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.folder-glow {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 140px;
  background: radial-gradient(circle, rgba(125,211,252,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: folder-breathe 3s ease-in-out infinite;
}

@keyframes folder-breathe {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

#connections {
  z-index: 5;
  pointer-events: none;
}

#platforms {
  display: flex;
  justify-content: center;
  gap: 50px;
  z-index: 10;
  flex-shrink: 0;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.platform-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  overflow: hidden;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.platform-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.platform-name {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

#benchmark {
  position: absolute;
  top: 60px;
  left: 36px;
  z-index: 15;
  width: 160px;
}

.bench-title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.bench-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.bench-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  width: 52px;
  flex-shrink: 0;
  text-align: right;
}

.bench-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}

.bench-bar {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(251,191,36,0.5), rgba(251,191,36,0.8));
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bench-value {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  width: 16px;
  flex-shrink: 0;
}

#file-tree {
  position: absolute;
  top: 60px;
  right: 40px;
  z-index: 15;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}

.ft-line { white-space: nowrap; }
.ft-indent { padding-left: 16px; }
.ft-indent2 { padding-left: 40px; }
.ft-icon { font-size: 14px; margin-right: 4px; }
.ft-folder { color: rgba(255,255,255,0.6); }
.ft-highlight {
  background: rgba(220,60,60,0.35);
  padding: 1px 8px;
  border-radius: 3px;
  color: rgba(255,255,255,0.9);
}
.ft-icon-file { color: rgba(255,255,255,0.4); font-size: 11px; margin-right: 6px; }
.ft-icon-dna { color: rgba(255,180,100,0.8); margin-right: 4px; }
.ft-comment { color: rgba(255,255,255,0.3); margin-left: 8px; font-size: 11px; }
.ft-did {
  margin-top: 10px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(251,191,36,0.4);
  background: rgba(251,191,36,0.1);
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.04em;
}

#bird {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 42px;
  z-index: 20;
  pointer-events: none;
  transform: translate(-80px, -40px);
}

.skeleton-icon { opacity: 0.8; filter: none; }
.skeleton-icon svg { display: block; width: 100%; height: 100%; }
.skeleton-name { color: rgba(255,255,255,0.5); font-style: italic; }

#tagline-main { display: none; }

#github-link {
  position: absolute;
  bottom: 28px;
  left: 40px;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  z-index: 15;
}

#tagline {
  position: absolute;
  bottom: 28px;
  right: 40px;
  color: #ffffff;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  z-index: 15;
  letter-spacing: 0.06em;
  word-spacing: 0.08em;
}

/* ============================================
   THREAD BRIDGE
   ============================================ */

.thread-bridge {
  height: 100px;
  background: var(--light);
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.thread-bridge::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--dark));
}

.thread-bridge svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.thread-line {
  animation: thread-drift 8s ease-in-out infinite alternate;
}

@keyframes thread-drift {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -60; }
}

/* ============================================
   SECTION BASE STYLES
   ============================================ */

.section-dark {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section-light {
  background: var(--light);
  color: var(--text);
  position: relative;
}

.section-threads {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   01 — PROBLEM
   ============================================ */

#problem {
  padding: 160px 0 140px;
}

.problem-statement {
  margin-bottom: 0;
}

.problem-word {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 400;
  line-height: 1.08;
  display: block;
  letter-spacing: -0.02em;
}

.problem-word.faded {
  color: rgba(255,255,255,0.2);
}

/* ============================================
   02 — SOLUTION
   ============================================ */

#solution {
  padding: 160px 0 120px;
}

/* Pipeline — Swiss grid columns */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-left: calc(var(--marker-width) + var(--grid-gap));
}

.pipeline-col {
  padding: 0 24px;
  border-left: 1px solid rgba(0,0,0,0.08);
}

.pipeline-col:first-child {
  padding-left: 0;
  border-left: none;
}

.pipeline-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.pipeline-rule {
  height: 1px;
  background: var(--orange);
  opacity: 0.25;
  margin-bottom: 16px;
  max-width: 32px;
}

.pipeline-col strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.pipeline-col span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.pipeline-thread-line {
  max-width: var(--container-max);
  margin: 40px auto 0;
  padding: 0 var(--grid-gap);
  padding-left: calc(var(--grid-gap) + var(--marker-width) + var(--grid-gap));
  overflow: hidden;
  height: 8px;
}

.pipeline-thread-line svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   03 — PROOF / STATS
   ============================================ */

#proof {
  padding: 160px 0 120px;
}

.stats-grid {
  max-width: none;
  margin-left: calc(var(--marker-width) + var(--grid-gap));
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 40px;
  padding: 24px 0;
}

.stat-rule {
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.stat-number {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  color: var(--orange-light);
  line-height: 1;
  letter-spacing: -0.03em;
  min-width: 160px;
  flex-shrink: 0;
}

.stat-meta {
  flex: 1;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}

.stat-context {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  line-height: 1.4;
}

.proof-link {
  margin-left: calc(var(--marker-width) + var(--grid-gap));
}

.proof-link a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange-light);
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border: 1px solid rgba(234,88,12,0.25);
  border-radius: 4px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.proof-link a:hover {
  background: rgba(234,88,12,0.08);
  border-color: rgba(234,88,12,0.4);
}

/* ============================================
   04 — GET STARTED
   ============================================ */

#start {
  padding: 140px 0 120px;
}

.terminal-wrap {
  max-width: 620px;
  margin-left: calc(var(--marker-width) + var(--grid-gap));
  margin-right: auto;
}

.terminal {
  background: #0D0D0D;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 20px 60px rgba(0,0,0,0.12),
    0 0 100px rgba(234,88,12,0.03);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  background: #1A1A1A;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }

.terminal-title {
  margin-left: 10px;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  font-weight: 500;
}

.terminal-body {
  padding: 24px 24px 28px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: #D4D4D4;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.terminal-line { white-space: nowrap; }
.terminal-line.dim { opacity: 0.3; }

.t-prompt {
  color: var(--orange-light);
  margin-right: 10px;
  user-select: none;
}

.t-cmd { color: #DCDCAA; }
.t-str { color: #CE9178; }
.t-kw { color: #C586C0; }
.t-output { color: #6A9955; }

/* ============================================
   05 — CTA
   ============================================ */

#cta {
  background: linear-gradient(160deg, #EA580C 0%, #DC5A10 40%, #C2410C 100%);
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

.cta-inner {
  position: relative;
  z-index: 2;
}

.cta-heading {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: var(--orange);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
}

.cta-install code {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  background: rgba(0,0,0,0.15);
  padding: 8px 18px;
  border-radius: 4px;
  display: inline-block;
}

.cta-threads {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  padding: 24px 0;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--grid-gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 15px;
  color: rgba(255,255,255,0.5);
}

.footer-sep {
  color: rgba(255,255,255,0.12);
  font-size: 13px;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-right a:hover {
  color: var(--orange-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- Tablet (769–1024px) ---- */
@media (max-width: 1024px) {
  #hero {
    height: 620px;
    padding: 50px 0 70px;
  }

  #benchmark {
    top: 50px;
    left: 20px;
    width: 140px;
  }

  #file-tree {
    top: 50px;
    right: 20px;
    font-size: 11px;
  }

  .ft-indent2 { padding-left: 28px; }

  #platforms {
    gap: 28px;
  }

  .platform-icon {
    width: 56px;
    height: 56px;
  }

  .platform-name {
    font-size: 13px;
  }

  .folder-img {
    width: 110px;
  }

  .folder-label {
    font-size: 14px;
    padding: 5px 18px;
  }

  #github-link {
    font-size: 12px;
    left: 20px;
    bottom: 20px;
  }

  #tagline {
    font-size: 14px;
    right: 20px;
    bottom: 20px;
  }

  .terminal-body {
    font-size: 12px;
  }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
  :root {
    --marker-width: 0px;
    --grid-gap: 24px;
  }

  /* -- Hero -- */
  #hero {
    height: auto;
    min-height: 620px;
    padding: 48px 0 72px;
    margin-top: 40px;
    border-radius: 12px;
    justify-content: flex-start;
  }

  #file-tree {
    display: none;
  }

  #benchmark {
    display: none;
  }

  #soul-folder {
    margin-bottom: 120px;
  }

  .folder-img {
    width: 72px;
  }

  .folder-label {
    font-size: 11px;
    padding: 3px 12px;
  }

  #platforms {
    flex-wrap: wrap;
    gap: 20px 28px;
    padding: 0 32px;
    justify-content: center;
  }

  .platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .platform-name {
    font-size: 11px;
  }

  #tagline {
    position: static;
    transform: none;
    font-size: 12px;
    text-align: center;
    margin-top: auto;
    order: 10;
  }

  #github-link {
    position: static;
    transform: none;
    font-size: 11px;
    text-align: center;
    color: rgba(255,255,255,0.35);
    margin-top: 4px;
    order: 11;
  }
  }

  /* -- Grid -- */
  .grid-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid-col-marker {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .section-num {
    margin-bottom: 0;
  }

  /* -- Typography -- */
  .display-heading {
    font-size: 32px;
  }

  .problem-word {
    font-size: 38px;
  }

  .body-text {
    font-size: 15px;
  }

  /* -- Sections -- */
  #problem, #solution, #proof, #start {
    padding: 80px 0 64px;
  }

  #cta {
    padding: 80px 0 64px;
  }

  .cta-heading {
    font-size: 32px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn-primary,
  .cta-actions .btn-ghost {
    text-align: center;
    justify-content: center;
  }

  /* -- Pipeline -- */
  .pipeline-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-left: 0;
  }

  .pipeline-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 16px;
  }

  .pipeline-col:first-child {
    border-top: none;
    padding-top: 0;
  }

  .pipeline-thread-line {
    display: none;
  }

  /* -- Stats -- */
  .stats-grid {
    margin-left: 0;
    max-width: 100%;
  }

  .stat-row {
    flex-direction: column;
    gap: 8px;
  }

  .stat-number {
    font-size: 40px;
    min-width: auto;
  }

  /* -- Terminal -- */
  .terminal-wrap {
    margin-left: 0;
    max-width: 100%;
  }

  .terminal-body {
    padding: 16px;
    font-size: 12px;
  }

  .cta-install code {
    font-size: 12px;
    padding: 6px 14px;
  }

  /* -- Proof -- */
  .proof-link {
    margin-left: 0;
  }

  /* -- Footer -- */
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-left {
    justify-content: center;
  }

  .footer-right {
    justify-content: center;
  }

  .thread-bridge {
    height: 60px;
  }
}

/* ---- Small phones (≤480px) ---- */
@media (max-width: 480px) {
  :root {
    --grid-gap: 16px;
  }

  #hero {
    min-height: 560px;
    padding: 40px 0 68px;
    margin-top: 48px;
    border-radius: 10px;
    width: calc(100% - 16px);
    gap: 24px;
  }

  #benchmark {
    top: 12px;
    left: 8px;
    width: 110px;
  }

  .bench-title {
    font-size: 8px;
    margin-bottom: 4px;
  }

  .bench-label {
    font-size: 7px;
    width: 38px;
  }

  .bench-value {
    font-size: 7px;
    width: 14px;
  }

  .bench-track {
    height: 3px;
  }

  .bench-row {
    gap: 3px;
    margin-bottom: 3px;
  }

  .folder-img {
    width: 76px;
  }

  .folder-label {
    font-size: 11px;
    padding: 3px 12px;
  }

  #platforms {
    gap: 14px 20px;
    padding: 0 20px;
  }

  .platform-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .platform-name {
    font-size: 9px;
  }

  #tagline {
    font-size: 10px;
  }

  #github-link {
    font-size: 9px;
  }

  .display-heading {
    font-size: 28px;
  }

  .problem-word {
    font-size: 32px;
  }

  .cta-heading {
    font-size: 28px;
  }

  .stat-number {
    font-size: 32px;
  }

  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-col:nth-child(2) {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 16px;
  }

  #problem, #solution, #proof, #start {
    padding: 64px 0 48px;
  }

  #cta {
    padding: 64px 0 48px;
  }

  .terminal-body {
    padding: 12px;
    font-size: 11px;
  }

  .cta-install code {
    font-size: 11px;
    padding: 5px 12px;
  }

  .body-text {
    font-size: 14px;
  }

  #github-link {
    font-size: 10px;
  }
}

/* ---- Small phones (≤420px) ---- */
@media (max-width: 420px) {
  #hero {
    margin-top: 52px;
  }

  #tagline {
    padding-top: 16px;
  }
}

/* ---- Extra small phones (≤320px) ---- */
@media (max-width: 320px) {
  #hero {
    margin-top: 56px;
  }

  #tagline {
    padding-top: 24px;
  }
}
