
: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 */
.hero {
  position: relative;
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 96px;
  background: #000000 url('../public/hero-visual.webp') no-repeat 80% 48% / auto 79%;
  color: var(--on-primary);
  overflow: hidden;
}
/* Subtle left-side fade so text stays readable */
.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, .hero-glow { display: none; }
.hero .container { width: 100%; }
.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-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(38px, 4.5vw, 52px);
  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: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px 16px; margin-top: 48px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.16);
}
.stat-val {
  font-size: 28px; font-variation-settings: "wght" 540;
  color: #4976ff; letter-spacing: -0.63px;
  line-height: 1.14;
}
.stat-val span { color: #4976ff; }
.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 {
  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: 'Inter var', 'Inter', 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: 'Inter var', 'Inter', 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: #4976ff; letter-spacing: -1.32px;
  line-height: 0.96; margin-bottom: 8px;
}
.proof-val span { color: #4976ff; }
.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: border-color 0.2s;
  cursor: default;
}
.j-card.dark { background: var(--canvas-soft); }
.j-card.accent {
  background: var(--buidl-blue); color: #ffffff;
  border-color: var(--buidl-blue);
}

/* ── Subtle border highlight on hover (matches USC cards) ── */
.j-card:hover, .fork-card:hover { border-color: rgba(255,255,255,0.32); }
.j-card.accent:hover { border-color: #7a9fff; }

.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: 'Inter var', 'Inter', 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: 'Inter var', 'Inter', sans-serif;
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.2px; color: var(--ink); margin-bottom: 8px;
}
.fork-card p { font-size: 14px; color: var(--ink-mute); line-height: 1.5; flex: 1; }
.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 grid — browser-window card style ─────────────────────── */
.tracks-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.track-card {
  background: var(--canvas-soft);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.track-card:hover {
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-2px);
}
.track-card-top {
  display: flex; justify-content: flex-end; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.track-card-dots { display: flex; gap: 8px; align-items: center; }
.track-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;
}
.track-dot--on { background: var(--ink-faint); border-color: var(--ink-faint); }
/* Inverted last card — white bg, dark text */
.track-card--invert { background: #ffffff; border-color: #ffffff; }
.track-card--invert:hover { border-color: #e0e0e0; }
.track-card--invert .track-card-top { border-bottom-color: rgba(0,0,0,0.1); }
.track-card--invert .track-dot { border-color: rgba(0,0,0,0.2); }
.track-card--invert .track-dot--on { background: #0C0E10; border-color: #0C0E10; }
.track-card--invert .track-card-name { color: #0C0E10; }
.track-card--invert .track-card-desc { color: #555e6e; }
.track-card--invert .track-card-tag { color: #4976FF; border-color: rgba(73,118,255,0.35); }
/* Dark content area */
.track-card-body {
  padding: 28px 22px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.track-card-name {
  font-family: 'Inter var', 'Inter', sans-serif;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin-bottom: 14px;
}
.track-card-desc {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 22px;
}
.track-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.track-card-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--buidl-blue);
  border: 1px solid rgba(73,118,255,0.35);
  padding: 4px 10px;
  border-radius: 9999px;
}
@media (max-width: 1023px) {
  .tracks-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tracks-list { grid-template-columns: 1fr; }
}

/* Ecosystem */
.eco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; }
.eco-card {
  background: none; border: none; border-radius: 0; padding: 0 48px;
}
.eco-card:first-child { padding-left: 0; border-right: 1px solid var(--hairline-dark); }
.eco-card:last-child  { padding-right: 0; }
.eco-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.eco-logo {
  width: 44px; height: 44px; border-radius: 10px;
  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; flex-shrink: 0;
}
.eco-card h3 {
  font-family: 'Inter var', 'Inter', sans-serif;
  font-size: 18px; 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.6; margin-bottom: 24px; }
.eco-card > p strong { color: var(--ink); font-variation-settings: "wght" 700; }
.eco-stat {
  padding: 0; background: none; border: none; border-radius: 0;
  font-family: inherit; font-variation-settings: "wght" 600;
  font-size: 28px; color: var(--ink); letter-spacing: -0.5px; margin-bottom: 16px;
}
.eco-stat span { color: var(--buidl-blue); }
.eco-stat small {
  display: block; font-size: 13px; color: var(--ink-mute);
  font-variation-settings: "wght" 460;
  letter-spacing: 0; margin-top: 2px;
}

/* 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: 'Inter var', 'Inter', 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; }

/* ── Tablet (≤1023px) ────────────────────────────────────────────── */
@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-list { grid-template-columns: repeat(2, 1fr); }
  .proof-inner { grid-template-columns: 1fr; gap: 40px; }
  .email-inner { grid-template-columns: 1fr; gap: 40px; }
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .j-grid, .j-grid2 { grid-template-columns: 1fr 1fr; }
  .j-fork { grid-template-columns: 1fr; }
  .usc-section, .how-section, .proof-section,
  .journey-section, .tracks-section, .eco-section,
  .email-section { padding: 96px 0; }
}

/* ── Tablet narrow (≤900px) ─────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* Hero: hide coin at narrow tablet — it overlaps content below ~900px */
  .hero-video { display: none; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: clamp(34px, 5vw, 54px); }
  .hero { padding: 120px 0 80px; }
}

/* ── Mobile (≤768px) ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  /* Hero — mobile: 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-video { display: none; }
  .hero-content { max-width: 100%; }
  /* Inline visual: full-width, centered, with desktop-matching dark tone */
  .hero-visual-mobile-wrap {
    display: block;
    position: relative;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-bottom: 28px;
  }
  /* Replicate the PC edge-fade tone: left, right, top and bottom dark vignette */
  .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 matching 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: 340px;
    object-fit: cover;
    object-position: 80% 48%;   /* match desktop bg-position — cube centred */
  }
  .hero h1 { font-size: clamp(28px, 8vw, 42px); 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,
  .email-section { padding: 56px 0; }

  /* Typography */
  .section-title { font-size: clamp(24px, 7vw, 32px); letter-spacing: -0.5px; }
  .section-sub { max-width: 100%; font-size: 16px; }
  .email-inner h2 { font-size: clamp(24px, 7vw, 32px); 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-card h3 { font-size: 18px; }
  .usc-bottom {
    flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 16px 18px;
  }

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

  /* Tracks — single column */
  .tracks-list { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .tracks-header { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 24px; }
  .track-card-body { padding: 22px 18px 24px; }
  .track-card-name { font-size: 20px; }

  /* Journey — single column */
  .j-grid, .j-grid2 { grid-template-columns: 1fr; }
  .j-fork { grid-template-columns: 1fr; }
  .j-card, .fork-card { padding: 22px; }
  .journey-header { margin-bottom: 36px; }

  /* Eco — single column on mobile */
  .eco-grid { grid-template-columns: 1fr; }
  .eco-card { padding: 0; border-right: none !important; padding-bottom: 40px; border-bottom: 1px solid var(--hairline-dark); }
  .eco-card:last-child { padding-bottom: 0; border-bottom: none; }

  /* Proof */
  .proof-inner { grid-template-columns: 1fr; gap: 36px; }
  .proof-val { font-size: 28px; }

  /* Email */
  .email-inner { grid-template-columns: 1fr; gap: 36px; }
  .email-card { padding: 24px; }

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

/* ── Small mobile (≤480px) ───────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 26px; }
  .section-title, .email-inner h2 { font-size: 22px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-val { font-size: 20px; }
  .proof-stats { grid-template-columns: 1fr; }
  .proof-val { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .usc-card-body { padding: 20px 16px 22px; }
  .j-card h3, .fork-card h4 { font-size: 17px; }

  .track-card-body { padding: 18px 16px 20px; }
}

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

/* ── Scroll reveal — initial hidden state (Motion.js animates in) ── */
.sr       { opacity: 0; transform: translateY(44px); }
.sr-scale { opacity: 0; transform: translateY(32px) scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .sr, .sr-scale { opacity: 1 !important; transform: none !important; }
}

/* ── Hero coin canvas (chroma-keyed video) ─────────────────────── */
.hero-video { display: none; }
.hero-video-overlay { display: none; }

/* ── 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;
}







/* ── Home-page overrides (after nav.css) ──
   !important needed because nav.css loads AFTER index.css and has
   `.floating-cta { display: none; }` as the default rule. */
.floating-cta { display: inline-flex !important; align-items: center; gap: 8px; }
