

:root {
  --primary: #0b1628;
  --primary-deep: #060d18;
  --violet-soft: #4976FF;   /* unified to buidl blue */
  --teal-deep: #111417;     /* email section bg */
  --teal-mid: #1a2132;      /* email card bg */
  --canvas: #0C0E10;        /* site-wide dark bg (buidl) */
  --canvas-soft: #111417;   /* elevated surface */
  --hairline: #1f2428;      /* dark border */
  --hairline-dark: #2a3440; /* border on dark */
  --ink: #F0EFEE;           /* near-white text */
  --ink-mute: #AAACAE;      /* buidl gray */
  --ink-faint: #6e7073;     /* dim gray */
  --on-primary: #ffffff;
  --on-dark-mute: rgba(255,255,255,0.72);
  --on-dark-faint: rgba(255,255,255,0.5);
  /* buidl design system */
  --buidl-blue: #4976FF;
  --buidl-gray: #AAACAE;
  --mono: 'Source Code Pro', 'Courier New', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-variation-settings: "wght" 460;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

section { position: relative; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* Buttons — defined in nav.css */

/* Section labels & titles (light) */
.section-label {
  font-family: inherit; font-variation-settings: "wght" 540;
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0; text-transform: none;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Tektur', 'Inter var', sans-serif;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 500;
  line-height: 1.1; letter-spacing: -0.5px;
  color: var(--ink); margin-bottom: 20px;
}
.section-sub {
  font-size: 18px; color: var(--ink-mute);
  max-width: 560px; line-height: 1.5;
  font-variation-settings: "wght" 460;
}

/* HERO — pure black */
.hero {
  display: flex; align-items: center;
  padding: 140px 0 64px;
  background: #000000;
  color: var(--on-primary);
  overflow: hidden;
}
.hero-grid { display: none; }
.hero .container { width: 100%; }
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-variation-settings: "wght" 540;
  font-size: 12px; color: var(--on-dark-mute);
  letter-spacing: 0; text-transform: none;
  margin-bottom: 28px; padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9999px;
  background: rgba(255,255,255,0.04);
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--violet-soft); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-family: 'Tektur', 'Inter var', sans-serif;
  font-size: clamp(40px, 5.9vw, 68px);
  font-weight: 500;
  line-height: 1.2; letter-spacing: 0;
  margin-bottom: 24px; color: var(--on-primary);
}
.hero h1 em {
  font-style: normal; color: var(--violet-soft);
  font-variation-settings: "wght" 540;
}
.hero-sub {
  font-size: 18px; color: var(--on-dark-mute);
  line-height: 1.5; max-width: 560px;
  margin-bottom: 40px;
  font-variation-settings: "wght" 460;
}
.hero-sub strong {
  color: var(--on-primary);
  font-variation-settings: "wght" 700;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ghost-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  font-family: inherit; font-variation-settings: "wght" 540;
  font-size: 14px; color: var(--violet-soft);
  letter-spacing: 0;
  transition: gap 0.2s;
}
.ghost-link:hover { gap: 12px; }
.hero-stats {
  display: flex; gap: 48px; margin-top: 72px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.16);
  flex-wrap: wrap;
}
.stat-val {
  font-size: 28px; font-variation-settings: "wght" 540;
  color: var(--on-primary); letter-spacing: -0.63px;
  line-height: 1.14;
}
.stat-val span { color: var(--violet-soft); }
.stat-lbl {
  font-size: 12px; color: var(--on-dark-mute);
  font-variation-settings: "wght" 540;
  letter-spacing: 0; margin-top: 4px;
}

/* Ticker — dark strip between hero and body */
.ticker-strip {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
  overflow: hidden; padding: 14px 0;
}
.ticker-track { display: flex; white-space: nowrap; animation: ticker 28s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 32px;
  font-family: inherit; font-variation-settings: "wght" 460;
  font-size: 13px; color: var(--ink-mute);
  flex-shrink: 0;
}
.ticker-item strong { color: var(--ink); font-variation-settings: "wght" 700; }
.tdot { width: 4px; height: 4px; border-radius: 50%; background: var(--hairline-dark); flex-shrink: 0; }

/* Dark sections — canvas-soft alternates give rhythm */
.usc-section, .how-section, .proof-section, .journey-section, .tracks-section, .eco-section {
  padding: 128px 0;
  background: var(--canvas);
}
.usc-section, .proof-section, .eco-section {
  background: var(--canvas-soft);
}
/* Tracks: ever so slightly different for white-inversion effect to land */
.tracks-section {
  overflow-x: clip;
  background: #0e1117;
}
.usc-header { margin-bottom: 64px; }

/* USC — buidl dot-card style */
.usc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; background: transparent; border: none;
  border-radius: 0; overflow: visible;
}
.usc-card {
  background: var(--canvas-soft);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s;
}
.usc-card:hover { border-color: rgba(255,255,255,0.32); }
.usc-card-top {
  display: flex; justify-content: flex-end; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.usc-dots { display: flex; gap: 8px; align-items: center; }
.usc-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.32);
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}
.usc-dot--on {
  background: var(--ink-faint);
  border-color: var(--ink-faint);
}
.usc-card-body { padding: 28px 24px 32px; flex: 1; }
.usc-card h3 {
  font-family: 'Tektur', sans-serif;
  font-size: 22px; font-weight: 600;
  line-height: 1.15; letter-spacing: -0.2px;
  color: var(--ink); margin-bottom: 14px;
}
.usc-card p {
  font-size: 14px; color: var(--ink-mute);
  line-height: 1.6; font-variation-settings: "wght" 460;
}
.usc-card p strong { color: var(--ink); font-variation-settings: "wght" 700; }
/* Inverted card — white bg, dark text */
.usc-card--invert {
  background: #ffffff;
  border-color: #ffffff;
}
.usc-card--invert:hover { border-color: #e0e0e0; }
.usc-card--invert .usc-card-top {
  border-bottom-color: rgba(0,0,0,0.1);
}
.usc-card--invert .usc-dot {
  border-color: rgba(0,0,0,0.2);
}
.usc-card--invert .usc-dot--on {
  background: #0C0E10; border-color: #0C0E10;
}
.usc-card--invert h3 { color: #0C0E10; }
.usc-card--invert p { color: #555e6e; }
.usc-card--invert p strong { color: #0C0E10; }
.usc-bottom {
  margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  background: var(--canvas-soft); border: 1px solid var(--hairline-dark);
  border-radius: 12px; gap: 16px; flex-wrap: wrap;
}
.usc-code {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 13px; color: var(--ink-mute);
}
.usc-code span { color: var(--primary); font-weight: 600; }

/* How */
.how-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 48px; position: relative;
}
.how-steps::before {
  content: ''; position: absolute; top: 28px; left: 28px; right: calc(25% - 46px);
  height: 1px; background: var(--hairline-dark);
}
.how-step { padding: 0; }
.how-num {
  width: 56px; height: 56px; border-radius: 9999px;
  background: var(--canvas-soft); border: 1px solid var(--hairline-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; font-variation-settings: "wght" 600;
  font-size: 16px; color: var(--buidl-blue);
  margin-bottom: 20px; position: relative; z-index: 1;
}
.how-step h3 {
  font-family: 'Tektur', sans-serif;
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.3px; color: var(--ink); margin-bottom: 10px;
}
.how-step p { font-size: 14px; color: var(--ink-mute); line-height: 1.5; }
.how-step p strong { color: var(--ink); font-variation-settings: "wght" 700; }
.how-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; color: var(--buidl-blue);
  background: transparent; border: 1px solid var(--buidl-blue);
  padding: 4px 10px; border-radius: 9999px;
  margin-top: 12px; letter-spacing: 0.02em;
}

/* Proof */
.proof-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.proof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.proof-stat {
  padding: 24px;
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: 12px;
}
.proof-val {
  font-size: 36px; font-variation-settings: "wght" 540;
  color: var(--ink); letter-spacing: -1.32px;
  line-height: 0.96; margin-bottom: 8px;
}
.proof-val span { color: var(--buidl-blue); }
.proof-lbl {
  font-size: 13px; color: var(--ink-mute);
  font-variation-settings: "wght" 460;
  font-family: inherit;
}
.proof-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--buidl-blue); color: #ffffff;
  border: none;
  padding: 6px 14px; border-radius: 9999px;
  font-family: inherit; font-variation-settings: "wght" 540;
  font-size: 12px; letter-spacing: 0; text-transform: none;
  margin-bottom: 20px;
}
.proof-tl { margin-top: 24px; }
.tl-item { display: flex; gap: 20px; padding-bottom: 24px; position: relative; }
.tl-item::before {
  content: ''; position: absolute; left: 15px; top: 32px; bottom: 0;
  width: 1px; background: var(--hairline-dark);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 9999px;
  background: var(--canvas-soft); border: 1px solid var(--hairline-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; font-variation-settings: "wght" 600;
  font-size: 12px; color: var(--buidl-blue);
}
.tl-content h4 {
  font-size: 16px; font-variation-settings: "wght" 540;
  letter-spacing: -0.135px; color: var(--ink); margin-bottom: 4px;
}
.tl-content p { font-size: 14px; color: var(--ink-mute); line-height: 1.5; }
.tl-content p strong { color: var(--buidl-blue); font-variation-settings: "wght" 700; }
.credal-link {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-variation-settings: "wght" 540;
  font-size: 14px; color: var(--ink);
  border: 1px solid var(--hairline-dark);
  padding: 10px 18px; border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.credal-link:hover { background: var(--canvas-soft); border-color: var(--ink-faint); }

/* Journey */
.journey-header { text-align: center; margin-bottom: 56px; }
.journey-header .section-sub { margin: 0 auto; }
.j-grid, .j-grid2 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; background: transparent; border: none; border-radius: 0; overflow: visible;
}
.j-fork {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 16px; background: transparent; border: none; overflow: visible;
}
.j-grid2 { margin-top: 16px; }
.j-card, .fork-card {
  background: var(--canvas); padding: 28px;
  border: 1px solid var(--hairline); border-radius: 12px;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
  cursor: default;
}
.j-card.dark { background: var(--canvas-soft); }
.j-card.accent {
  background: var(--buidl-blue); color: #ffffff;
  border-color: var(--buidl-blue);
}

/* ── Black ↔ White inversion on hover ── */
.j-card:hover, .fork-card:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
}
/* Accent (blue) card keeps its colour — just brightens slightly */
.j-card.accent:hover {
  background: #5a87ff !important;
  border-color: #5a87ff !important;
}
.j-card.accent:hover .j-step { color: rgba(255,255,255,0.7) !important; }
.j-card.accent:hover h3  { color: #ffffff !important; }
.j-card.accent:hover p   { color: rgba(255,255,255,0.85) !important; }
.j-card.accent:hover p strong { color: #ffffff !important; }
.j-card.accent:hover .j-cta  { color: #ffffff !important; }
/* all text children go dark */
.j-card:hover .j-step,
.j-card:hover h3,
.j-card:hover p,
.j-card:hover p strong {
  color: #0C0E10 !important;
}
.j-card:hover .j-cta {
  color: var(--buidl-blue) !important; /* keep blue on white card */
  gap: 10px;
}
.fork-card:hover h4,
.fork-card:hover p {
  color: #0C0E10 !important;
}
.fork-card:hover .fork-cta.open {
  color: var(--buidl-blue) !important; /* keep blue */
  gap: 10px;
}
.fork-card:hover .fork-cta.comp {
  color: #333333 !important;
  gap: 10px;
}
.fork-card:hover .fork-badge {
  background: rgba(0,0,0,0.07) !important;
  color: #333 !important;
  border-color: rgba(0,0,0,0.18) !important;
}

.j-step {
  font-family: inherit; font-variation-settings: "wght" 540;
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0; text-transform: none;
  margin-bottom: 12px;
  display: inline-block;
  transition: color 0.22s;
}
.j-step::before { display: none; }
.j-card.accent .j-step { color: var(--violet-soft); }
.j-card h3 {
  font-family: 'Tektur', sans-serif;
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.3px; line-height: 1.1;
  color: var(--ink); margin-bottom: 10px;
  transition: color 0.22s;
}
.j-card.accent h3 { color: var(--on-primary); }
.j-card p { font-size: 14px; color: var(--ink-mute); line-height: 1.5; font-variation-settings: "wght" 460; transition: color 0.22s; }
.j-card.accent p { color: var(--on-dark-mute); }
.j-card p strong { color: var(--ink); font-variation-settings: "wght" 700; transition: color 0.22s; }
.j-card.accent p strong { color: var(--on-primary); }
.j-cta {
  margin-top: 20px;
  font-family: inherit; font-variation-settings: "wght" 540;
  font-size: 14px; color: var(--buidl-blue); letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s, color 0.22s;
}
.j-card.accent .j-cta { color: #ffffff; }

.fork-card { display: flex; flex-direction: column; }
.fork-badge {
  display: inline-block;
  font-family: inherit; font-variation-settings: "wght" 540;
  font-size: 11px; letter-spacing: 0; text-transform: none;
  padding: 4px 10px; border-radius: 9999px;
  margin-bottom: 14px; align-self: flex-start;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}
.fork-badge.comp { background: var(--canvas-soft); color: var(--ink-mute); border: 1px solid var(--hairline-dark); }
.fork-badge.open { background: var(--buidl-blue); color: #ffffff; border: 1px solid var(--buidl-blue); }
.fork-card h4 {
  font-family: 'Tektur', sans-serif;
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.2px; color: var(--ink); margin-bottom: 8px;
  transition: color 0.22s;
}
.fork-card p { font-size: 14px; color: var(--ink-mute); line-height: 1.5; flex: 1; transition: color 0.22s; }
.fork-cta {
  margin-top: 16px;
  font-family: inherit; font-variation-settings: "wght" 540;
  font-size: 14px; letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.22s, gap 0.2s;
}
.fork-cta.comp { color: var(--ink-mute); }
.fork-cta.open { color: var(--buidl-blue); }

/* Tracks — buidl-style full-width rows */
.tracks-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 0; flex-wrap: wrap; gap: 16px;
  padding-bottom: 40px;
}
/* Tracks section — btn already works, title colors from global --ink */
.tracks-list { border-top: 1px solid var(--hairline-dark); }
.track-row {
  position: relative;
  display: flex; align-items: center;
  justify-content: space-between; gap: 48px;
  padding: 52px 0;
  border-bottom: 1px solid var(--hairline-dark);
  overflow: visible;
  transition: background 0.4s ease, padding 0.4s ease;
  background: transparent;
}
.track-row:hover {
  background: #ffffff;
  padding: 52px 40px;
  margin: 0 -40px;
}
/* Floating wireframe — appears left, over track name */
.track-float {
  position: absolute;
  left: 40px; top: 50%;
  width: 210px; height: 210px;
  opacity: 0;
  transform: translateY(-50%) rotate(20deg) scale(0.88);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none; z-index: 20;
  border-radius: 10px; overflow: hidden;
}
.track-row:hover .track-float {
  opacity: 1;
  transform: translateY(-50%) rotate(0deg) scale(1);
}
/* Large track name */
.track-name-xl {
  font-family: 'Tektur', sans-serif;
  font-size: clamp(44px, 5.6vw, 72px);
  font-weight: 500; line-height: 1; letter-spacing: -1px;
  color: var(--on-primary); flex: 0 0 36%; width: 36%;
  transition: color 0.4s;
}
.track-row:hover .track-name-xl { color: var(--ink); }
/* Track meta */
.track-meta { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.track-tags-row { display: flex; flex-wrap: wrap; gap: 8px; }
.track-tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em;
  color: var(--buidl-blue); border: 1px solid var(--buidl-blue);
  padding: 4px 12px; border-radius: 9999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.track-row:hover .track-tag { background: var(--buidl-blue); color: #fff; border-color: var(--buidl-blue); }
.track-desc-row {
  font-size: 15px; color: var(--on-dark-mute); line-height: 1.55;
  max-width: 520px; font-variation-settings: "wght" 460;
  transition: color 0.4s;
}
.track-row:hover .track-desc-row { color: var(--ink-mute); }
@media (max-width: 767px) {
  .track-row { flex-direction: column; gap: 20px; padding: 36px 0; }
  .track-row:hover { padding: 36px 0; }
  .track-name-xl { font-size: 40px; width: 100%; }
  .track-float { display: none; }
}

/* Ecosystem */
.eco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.eco-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 32px;
  transition: border-color 0.2s, background 0.2s;
}
.eco-card:hover { border-color: var(--buidl-blue); background: var(--canvas); }
.eco-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.eco-logo {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--canvas-soft); color: var(--on-primary);
  border: 1px solid var(--hairline-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; font-variation-settings: "wght" 600;
  font-size: 22px;
}
.eco-card h3 {
  font-family: 'Tektur', sans-serif;
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.3px; color: var(--ink); margin-bottom: 2px;
}
.eco-sub { font-size: 13px; color: var(--ink-mute); font-family: inherit; }
.eco-card > p { font-size: 15px; color: var(--ink-mute); line-height: 1.5; margin-bottom: 20px; }
.eco-card > p strong { color: var(--ink); font-variation-settings: "wght" 700; }
.eco-stat {
  padding: 16px 20px;
  background: var(--canvas-soft); border: 1px solid var(--hairline);
  border-radius: 12px;
  font-family: inherit; font-variation-settings: "wght" 540;
  font-size: 22px; color: var(--ink); letter-spacing: -0.4px; margin-bottom: 20px;
}
.eco-stat span { color: var(--buidl-blue); }
.eco-stat small {
  display: block; font-size: 12px; color: var(--ink-mute);
  font-variation-settings: "wght" 460;
  letter-spacing: 0; margin-top: 4px;
}

/* Closing dark band */
.email-section {
  background: var(--teal-deep);
  color: var(--on-primary);
  padding: 128px 0;
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
}
.email-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.email-label {
  font-family: inherit; font-variation-settings: "wght" 540;
  font-size: 12px; color: var(--on-dark-mute);
  letter-spacing: 0; text-transform: none;
  margin-bottom: 16px;
}
.email-inner h2 {
  font-family: 'Tektur', 'Inter var', sans-serif;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 500;
  color: var(--on-primary);
  letter-spacing: -0.5px; line-height: 1.1;
  margin-bottom: 20px;
}
.email-inner h2 em { font-style: normal; color: var(--violet-soft); }
.email-sub {
  font-size: 18px; color: var(--on-dark-mute);
  line-height: 1.5; max-width: 480px; margin-bottom: 28px;
  font-variation-settings: "wght" 460;
}
.email-perks { display: flex; flex-direction: column; gap: 10px; }
.email-perk {
  display: flex; align-items: center; gap: 10px;
  font-family: inherit; font-variation-settings: "wght" 460;
  font-size: 14px; color: var(--on-dark-mute);
  letter-spacing: 0;
}
.email-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-soft); flex-shrink: 0; }
.email-card {
  background: var(--canvas);
  border: 1px solid var(--hairline-dark);
  border-radius: 16px; padding: 32px;
}
.email-card-tag { display: none; }
.email-card h3 {
  font-family: 'Tektur', sans-serif;
  font-size: 22px; font-weight: 500;
  color: var(--on-primary); letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.email-card > p {
  font-size: 14px; color: var(--on-dark-mute);
  font-family: inherit; margin-bottom: 20px;
}
.email-form { display: flex; flex-direction: column; gap: 10px; }
.email-input {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline-dark);
  border-radius: 6px; padding: 12px 14px;
  color: var(--on-primary);
  font-family: inherit; font-variation-settings: "wght" 460;
  font-size: 15px; outline: none;
  transition: border-color 0.2s; width: 100%;
}
.email-input::placeholder { color: var(--on-dark-faint); }
.email-input:focus { border-color: var(--buidl-blue); }
.email-submit {
  background: var(--buidl-blue); color: #ffffff;
  border: none; border-radius: 8px;
  padding: 14px;
  font-family: inherit; font-variation-settings: "wght" 700;
  font-size: 16px; letter-spacing: 0;
  cursor: pointer; transition: background 0.2s; width: 100%;
}
.email-submit:hover { background: #3a67f5; }
.email-note {
  font-family: inherit; font-variation-settings: "wght" 460;
  font-size: 12px; color: var(--on-dark-faint);
  line-height: 1.4; margin-top: 14px; letter-spacing: 0;
}

/* Footer */
footer { background: var(--canvas-soft); border-top: 1px solid var(--hairline-dark); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-logo {
  font-family: inherit; font-variation-settings: "wght" 600;
  font-size: 18px; color: var(--ink); letter-spacing: -0.02em;
}
.footer-brand-logo svg path { fill: var(--ink-faint); }
.footer-col h4 {
  font-family: inherit; font-variation-settings: "wght" 600;
  font-size: 13px; color: var(--ink);
  letter-spacing: 0; text-transform: none;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.footer-col li { list-style: none; }
.footer-col a {
  font-family: inherit; font-variation-settings: "wght" 460;
  font-size: 14px; color: var(--ink-mute);
  transition: color 0.2s; text-decoration: none;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-bottom-left { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-copy {
  font-family: inherit; font-variation-settings: "wght" 460;
  font-size: 13px; color: var(--ink-faint); letter-spacing: 0;
}
.footer-email {
  font-family: inherit; font-variation-settings: "wght" 460;
  font-size: 13px; color: var(--ink-mute);
  transition: color 0.2s; text-decoration: none;
}
.footer-email:hover { color: var(--ink); }
.footer-socials { display: flex; gap: 16px; }
.footer-social { color: var(--ink-mute); transition: color 0.2s; display: flex; align-items: center; }
.footer-social:hover { color: var(--ink); }
.footer-social svg { width: 18px; height: 18px; }

@media (max-width: 1023px) {
  /* Nav: hamburger at tablet — full wordmark stays visible */

  .usc-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .how-steps::before { display: none; }
  .tracks-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-inner, .email-inner, .eco-grid { grid-template-columns: 1fr; gap: 40px; }
  .j-grid, .j-grid2 { grid-template-columns: 1fr; }
  .j-fork { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Mobile (≤768px) ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* Nav — logo + burger only */
  nav { top: 8px; left: 8px; right: 8px; width: auto; transform: none; padding: 10px 16px; border-radius: 0; }
  /* Logo: hide full wordmark, show symbol mark */
  /* Floating CTA */

  /* Hero */
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); letter-spacing: -0.5px; line-height: 1.15; }
  .hero-sub { font-size: 16px; max-width: 100%; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .ghost-link { margin-top: 16px; }

  /* Hero stats — 2 × 2 grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 40px;
    border-top: none;
    padding-top: 0;
  }
  .hero-stats > div {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .hero-stats > div:nth-child(odd) {
    padding-right: 20px;
    border-right: 1px solid rgba(255,255,255,0.12);
  }
  .hero-stats > div:nth-child(even) { padding-left: 20px; }
  .stat-val { font-size: 22px; }

  /* Section padding */
  .usc-section, .how-section, .proof-section,
  .journey-section, .tracks-section, .eco-section { padding: 60px 0; }
  .email-section { padding: 60px 0; }

  /* Section titles / subs */
  .section-title { font-size: 28px; letter-spacing: -0.5px; }
  .section-sub { max-width: 100%; font-size: 16px; }
  .email-inner h2 { font-size: 28px; letter-spacing: -0.5px; }
  .email-sub { font-size: 16px; max-width: 100%; }

  /* USC */
  .usc-grid { grid-template-columns: 1fr; }
  .usc-header { margin-bottom: 32px; }
  .usc-bottom {
    flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 16px 18px;
  }

  /* How — single column */
  .how-steps { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }

  /* Tracks header */
  .tracks-header { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 24px; }

  /* Journey */
  .journey-header { margin-bottom: 36px; }

  /* Footer */
  footer { padding: 48px 0 24px; }
}

/* ── Small mobile (≤480px) ───────────────────────────────────────── */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .email-inner h2 { font-size: 24px; }
  .j-card, .fork-card { padding: 22px; }
  .usc-card-body { padding: 22px 18px 24px; }
  .eco-card { padding: 24px; }
}

/* ── Animation initial states (set before framer-motion fires) ─── */
.hero .hero-tag,
.hero h1,
.hero-sub,
.hero-actions,
.hero-stats > div { opacity: 0; }
.floating-cta { opacity: 0; }

/* ── Hero video background ──────────────────────────────────────── */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0; pointer-events: none;
}
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* left-heavy gradient keeps headline readable */
  background:
    linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.38) 60%, rgba(0,0,0,0.52) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}

/* ── Typewriter animation ───────────────────────────────────────── */
.tw-char {
  opacity: 0;
  display: inline;
  animation: tw-appear 0.001s forwards;
}
@keyframes tw-appear { to { opacity: 1; } }
.cursor-blink {
  display: inline-block;
  width: 0.12em; height: 0.85em;
  background: var(--on-primary);
  vertical-align: middle;
  margin-left: 3px;
  opacity: 0;
  animation: cursor-fade-in 0.05s forwards, cursor-blink-anim 1.3s step-end infinite;
}
@keyframes cursor-fade-in { to { opacity: 1; } }
@keyframes cursor-blink-anim {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}

/* ── Track section overflow ─────────────────────────────────────── */
.tracks-section .container { overflow: visible; }

/* ── mono / buidl-blue accents ──────────────────────────────────── */
.usc-code {
  font-family: var(--mono);
  font-size: 12.5px; color: var(--buidl-gray);
  letter-spacing: 0;
}
.usc-code span { color: var(--buidl-blue); font-weight: 500; }
.hero-tag {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.02em;
}
.hero-tag::before { background: var(--buidl-blue); }



/* Inline-style override cleanup — buttons inside light sections shouldn't keep
   the old monospace look */
section .btn-primary, section .btn-secondary,
.usc-bottom .btn-primary, .proof-section .btn-primary {
  font-family: inherit;
  font-variation-settings: "wght" 600;
  letter-spacing: 0;
}






/* ── Page-specific styles ─────────────────────────────────────── */

section { position: relative; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.floating-cta { display: none !important; }
.section-label { font-family: var(--mono); font-size: 11px; color: var(--buidl-blue); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 4vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: #fff; margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--ink-mute); max-width: 560px; line-height: 1.7; }
.breadcrumb { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.08em; margin-bottom: 28px; display: flex; align-items: center; gap: 8px; }
.breadcrumb span { color: var(--buidl-blue); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 96px;
  background: #000000 url('../public/hero-usc.webp') no-repeat 80% 48% / auto 79%;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    #000000 30%,
    rgba(0,0,0,0.75) 55%,
    rgba(0,0,0,0.1) 80%,
    transparent 100%
  );
  z-index: 0;
}
/* hero is fixed 1080px — no wide-desktop image override needed */
.hero-grid { display: none; }
.hero-glow { display: none; }
.hero-content { position: relative; z-index: 1; max-width: 520px; }
/* Mobile visual — hidden by default, shown on small screens */
.hero-visual-mobile-wrap { display: none; }
.hero-visual-mobile { display: block; width: 100%; }
.hero h1 { font-size: clamp(38px, 4.5vw, 52px); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 24px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--buidl-blue); }
.hero-sub { font-size: 18px; color: var(--ink-mute); line-height: 1.7; max-width: 620px; margin-bottom: 40px; }
.hero-sub strong { color: var(--ink); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* PROBLEM */
/* PROBLEM vs SOLUTION — mac-window dot-card style */
.problem-section { padding: 128px 0; border-top: 1px solid var(--hairline); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.problem-card {
  background: var(--canvas-soft);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s;
}
.problem-card:hover { border-color: rgba(255,255,255,0.28); }
/* top bar */
.problem-card-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.problem-card-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; display: inline-block;
}
.problem-card.bad .problem-card-label  { background: rgba(156,163,175,0.08); color: #9ca3af; border: 1px solid rgba(156,163,175,0.2); }
.problem-card.good .problem-card-label { background: rgba(73,118,255,0.08); color: var(--buidl-blue); border: 1px solid rgba(73,118,255,0.25); }
.problem-card-dots { display: flex; gap: 8px; align-items: center; }
.problem-card-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.24); background: transparent;
}
.problem-card.bad  .problem-card-dot--on { background: rgba(156,163,175,0.35); border-color: #9ca3af; }
.problem-card.good .problem-card-dot--on { background: rgba(73,118,255,0.55); border-color: var(--buidl-blue); }
/* body */
.problem-body { padding: 28px 24px 32px; flex: 1; }
.problem-card h3 {
  font-family: 'Tektur', sans-serif;
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 600;
  line-height: 1.15; letter-spacing: -0.2px;
  color: var(--ink); margin-bottom: 24px;
}
/* list rows */
.problem-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.problem-list li { display: flex; align-items: flex-start; }
.problem-list-inner { display: flex; flex-direction: column; gap: 3px; }
.problem-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; display: inline-block; line-height: 1.5;
}
.problem-card.bad  .problem-label { background: rgba(156,163,175,0.08); color: #9ca3af; border: 1px solid rgba(156,163,175,0.2); }
.problem-card.good .problem-label { background: rgba(73,118,255,0.08); color: var(--buidl-blue); border: 1px solid rgba(73,118,255,0.25); }
.problem-text { font-size: 13px; color: var(--ink-mute); line-height: 1.6; }

/* SPEED BENCHMARK */
.speed-section { padding: 128px 0; border-top: 1px solid var(--hairline); }
.speed-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: center; }
.speed-row { margin-bottom: 20px; }
.speed-row-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.speed-name { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.05em; }
.speed-val { font-family: var(--mono); font-size: 12px; font-weight: 700; }
.speed-val.bad { color: #9ca3af; }
.speed-val.med { color: #f59e0b; }
.speed-val.good { color: var(--buidl-blue); }
.speed-track { height: 10px; background: #111820; border-radius: 4px; overflow: hidden; }
.speed-fill { height: 100%; border-radius: 4px; }
.speed-fill.red     { background: #4b5563; width: 100%; }
.speed-fill.darkred { background: #374151; width: 100%; }
.speed-fill.amber   { background: #f59e0b; width: 40%; }
.speed-fill.green { background: var(--buidl-blue); width: 5%; }
.speed-note { font-family: var(--mono); font-size: 11px; color: #374151; margin-top: 16px; letter-spacing: 0.04em; }

/* HOW IT WORKS */
.how-section { padding: 128px 0; border-top: 1px solid var(--hairline); }
.how-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-bottom: 72px; }
.how-props { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.how-prop { display: flex; flex-direction: column; gap: 4px; }
.how-prop h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.how-prop p { font-size: 13px; color: var(--ink-mute); line-height: 1.6; }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.how-steps::before { content: ''; position: absolute; top: 28px; left: 28px; right: calc(25% - 46px); height: 1px; background: linear-gradient(90deg, transparent, rgba(73,118,255,0.25) 20%, rgba(73,118,255,0.25) 80%, transparent); }
.how-step { padding: 0 20px; }
.how-num { width: 56px; height: 56px; border-radius: 50%; background: var(--canvas-soft); border: 1px solid rgba(73,118,255,0.25); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; color: var(--buidl-blue); font-weight: 700; margin-bottom: 24px; position: relative; z-index: 1; }
.how-step h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.how-step p { font-size: 13px; color: var(--ink-mute); line-height: 1.65; }
.how-step p strong { color: var(--ink); }
.how-tag { display: inline-block; font-family: var(--mono); font-size: 10px; color: var(--ink-mute); background: #111820; border: 1px solid var(--hairline); padding: 3px 8px; border-radius: 4px; margin-top: 10px; letter-spacing: 0.04em; }

/* USE CASES */
.usecases-section { padding: 128px 0; border-top: 1px solid var(--hairline); }
.usecases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }
.usecase-card { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: 8px; padding: 32px; transition: border-color 0.2s, background 0.2s; }
.usecase-card:hover { border-color: rgba(255,255,255,0.14); background: #111820; }
.usecase-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--buidl-blue); background: rgba(73,118,255,0.08); border: 1px solid rgba(73,118,255,0.25); padding: 3px 10px; border-radius: 4px; display: inline-block; margin-bottom: 16px; }
.usecase-card h3 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.usecase-card p { font-size: 14px; color: var(--ink-mute); line-height: 1.7; margin-bottom: 16px; }
.usecase-examples { display: flex; flex-wrap: wrap; gap: 6px; }
.usecase-ex { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); background: #111820; border: 1px solid var(--hairline); padding: 3px 8px; border-radius: 4px; letter-spacing: 0.03em; }

/* TESTNET */
.testnet-section { padding: 128px 0; border-top: 1px solid var(--hairline); }
.testnet-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.testnet-steps { display: flex; flex-direction: column; gap: 0; margin-top: 40px; }
.testnet-step { display: flex; gap: 20px; padding-bottom: 28px; position: relative; }
.testnet-step::before { content: ''; position: absolute; left: 15px; top: 36px; bottom: 0; width: 1px; background: var(--hairline); }
.testnet-step:last-child::before { display: none; }
.testnet-num { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: rgba(73,118,255,0.08); border: 1px solid rgba(73,118,255,0.25); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: var(--buidl-blue); font-weight: 700; }
.testnet-step h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.testnet-step p { font-size: 13px; color: var(--ink-mute); line-height: 1.6; }
.testnet-step p strong { color: var(--buidl-blue); }
.testnet-card { background: var(--canvas-soft); border: 1px solid rgba(73,118,255,0.25); border-radius: 8px; padding: 40px; }
.testnet-card-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--buidl-blue); background: rgba(73,118,255,0.08); border: 1px solid rgba(73,118,255,0.25); padding: 4px 10px; border-radius: 4px; display: inline-block; margin-bottom: 20px; }
.testnet-card h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.testnet-card p { font-size: 14px; color: var(--ink-mute); line-height: 1.7; margin-bottom: 28px; }
.testnet-card p strong { color: var(--ink); }
.testnet-actions { display: flex; flex-direction: row; gap: 12px; }
.discord-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; flex: 1; background: #5865f2; color: #fff; padding: 20px 16px; border-radius: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.03em; transition: opacity 0.2s; }
.discord-btn:hover { opacity: 0.88; }
.github-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; flex: 1; background: #111820; border: 1px solid rgba(255,255,255,0.14); color: var(--ink); padding: 20px 16px; border-radius: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; transition: border-color 0.2s; }
.github-btn:hover { border-color: rgba(73,118,255,0.25); }
.testnet-note { font-family: var(--mono); font-size: 11px; color: #374151; margin-top: 16px; letter-spacing: 0.04em; }

/* PROGRAMS */
.programs-section { padding: 128px 0; border-top: 1px solid var(--hairline); }
.programs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.program-card { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: 8px; padding: 40px; display: flex; flex-direction: column; transition: border-color 0.2s; }
.program-card:hover { border-color: rgba(255,255,255,0.14); }
.program-card.featured { border-color: rgba(73,118,255,0.25); }
.program-badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; display: inline-block; margin-bottom: 20px; align-self: flex-start; }
.program-badge.ceip { background: rgba(73,118,255,0.08); color: var(--buidl-blue); border: 1px solid rgba(73,118,255,0.25); }
.program-badge.buidl { background: rgba(59,130,246,0.08); color: #3b82f6; border: 1px solid rgba(59,130,246,0.2); }
.program-card h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.program-card p { font-size: 14px; color: var(--ink-mute); line-height: 1.7; margin-bottom: 24px; flex: 1; }
.program-card p strong { color: var(--ink); }
.program-perks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.program-perks li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-mute); }
.program-perks li::before { content: '→'; font-family: var(--mono); color: var(--buidl-blue); font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.program-perks li strong { color: var(--ink); }

/* FINAL CTA */
.final-cta { padding: 128px 0; border-top: 1px solid var(--hairline); text-align: center; position: relative; overflow: hidden; }
.final-cta-glow { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; background: radial-gradient(ellipse, rgba(73,118,255,0.04) 0%, transparent 70%); pointer-events: none; }
.final-cta h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.1; max-width: 700px; margin: 0 auto 20px; }
.final-cta h2 em { font-style: normal; color: var(--buidl-blue); }
.final-cta p { font-size: 16px; color: var(--ink-mute); max-width: 480px; margin: 0 auto 40px; line-height: 1.7; }
.final-cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; width: 100%; max-width: 360px; margin: 0 auto; }
.final-cta-actions a { width: 100%; text-align: center; justify-content: center; }

/* FOOTER */
footer { background: var(--canvas-soft); border-top: 1px solid var(--hairline-dark); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-logo { font-family: inherit; font-variation-settings: "wght" 600; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.footer-brand-logo svg path { fill: var(--ink-faint); }
.footer-col h4 { font-family: inherit; font-variation-settings: "wght" 600; font-size: 13px; color: var(--ink); letter-spacing: 0; text-transform: none; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.footer-col li { list-style: none; }
.footer-col a { font-family: inherit; font-variation-settings: "wght" 460; font-size: 14px; color: var(--ink-mute); transition: color 0.2s; text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--hairline-dark); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-bottom-left { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-copy { font-family: inherit; font-variation-settings: "wght" 460; font-size: 13px; color: var(--ink-faint); letter-spacing: 0; }
.footer-email { font-family: inherit; font-variation-settings: "wght" 460; font-size: 13px; color: var(--ink-mute); transition: color 0.2s; text-decoration: none; }
.footer-email:hover { color: var(--ink); }
.footer-socials { display: flex; gap: 16px; }
.footer-social { color: var(--ink-mute); transition: color 0.2s; display: flex; align-items: center; }
.footer-social:hover { color: var(--ink); }
.footer-social svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

  /* External-link icon */
  

/* ── Page-specific mobile overrides (≤768px) ────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  footer { padding: 48px 0 24px; }
  /* Hero — mobile: inline visual on top, text below */
  .hero { padding: 64px 0 56px; min-height: auto; background-image: none !important; }
  .hero::before { background: none !important; }
  .hero::after  { background: none !important; }
  .hero-content { max-width: 100%; }
  .hero-visual-mobile-wrap {
    display: block;
    position: relative;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-bottom: 28px;
  }
  .hero-visual-mobile-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      /* Left: heavy black fade matching desktop ::before */
      linear-gradient(to right, #000000 0%, rgba(0,0,0,0.75) 30%, rgba(0,0,0,0.1) 60%, transparent 85%),
      /* Right edge: black fade matching desktop nav.css ::after */
      linear-gradient(to left,  black 0%, transparent 30%),
      /* Top edge */
      linear-gradient(to bottom, black 0%, transparent 16%),
      /* Bottom edge */
      linear-gradient(to top,    black 0%, transparent 30%);
    pointer-events: none;
  }
  .hero-visual-mobile {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: 62% 40%;
  }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); letter-spacing: -0.5px; line-height: 1.15; }
  .hero-sub { font-size: 15px; line-height: 1.65; }
  .section-title { font-size: 30px; }
  /* Section padding reduction on mobile */
  .problem-section, .speed-section, .usecases-section, .testnet-section, .programs-section, .final-cta { padding: 64px 0; }
  .problem-grid { grid-template-columns: 1fr; }
  .speed-inner { grid-template-columns: 1fr; gap: 40px; }
  /* Visual-first: speed chart sits above text label on mobile */
  .speed-inner > div:last-child { order: -1; }
  .how-intro { grid-template-columns: 1fr; gap: 40px; }
  .how-steps { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .usecases-grid { grid-template-columns: 1fr; }
  .testnet-inner { grid-template-columns: 1fr; gap: 40px; }
  /* Visual-first: testnet CTA card sits above steps on mobile */
  .testnet-inner > div:last-child { order: -1; }
  .programs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .how-steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 28px; }
}

