:root {
  --black: #000000;
  --near-black: #0A0A0A;
  --charcoal: #1A1A1A;
  --dark-gray: #2D2D2D;
  --mid-gray: #555555;
  --gray: #888888;
  --light-gray: #AAAAAA;
  --silver: #CCCCCC;
  --off-white: #F0F0F0;
  --pale: #F5F5F5;
  --white: #FFFFFF;
  /* Deck accent colors */
  --accent-orange: #FF4D00;
  --accent-lime: #CCFF00;
  --accent-purple: #9B30FF;
  --accent-blue: #00BFFF;
  --accent-pink: #FF1493;
  --accent-navy: #2C3E6B;
  --accent-teal: #1B6B93;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ===== SECTION THEMES ===== */
.section {
  position: relative;
  overflow: hidden;
}

.dark {
  background-color: var(--black);
  color: var(--white);
}

.light {
  background-color: var(--white);
  color: var(--black);
}

.dark h1,
.dark h2,
.dark h3 {
  color: var(--white);
}

.light h1,
.light h2,
.light h3 {
  color: var(--black);
}

/* ===== FULL-SECTION WAVE BACKGROUNDS ===== */
/* The wave+squiggle backgrounds from the deck fill the entire section */
.bg-full {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.light .bg-full {
  opacity: 1;
}

.dark .bg-full {
  filter: invert(1);
  opacity: 0.5;
}

/* ===== FIGURINE POSITIONING ===== */
.fig {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.dark .fig {
  filter: invert(1);
}

/* ===== Z-INDEX FOR CONTENT ===== */
.content {
  position: relative;
  z-index: 2;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--black);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--mid-gray);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--black);
}

.nav-cta {
  background: var(--black) !important;
  color: white !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  outline: none !important;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 50px;
  line-height: 1.12;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
}

em {
  font-style: italic;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.light .eyebrow {
  color: var(--gray);
}

.dark .eyebrow {
  color: var(--light-gray);
}

.body-lg {
  font-size: 20px;
  line-height: 1.8;
  font-weight: 300;
}

.light .body-lg {
  color: var(--mid-gray);
}

.dark .body-lg {
  color: var(--silver);
}

/* ===== BUTTONS ===== */
.btn-black {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: white;
  padding: 16px 36px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.25s;
  border: none;
  outline: none;
  cursor: pointer;
}

.btn-black:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--black);
  padding: 16px 36px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn-white:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn-outline-black {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--black);
  padding: 16px 36px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: all 0.25s;
}

.btn-outline-black:hover {
  border-color: var(--black);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: white;
  padding: 16px 36px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.25s;
}

.btn-outline-white:hover {
  border-color: white;
}

/* ===== ACCENT DOT BADGES ===== */
.accent-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}


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

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 70px;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  margin: 16px 0 40px;
}

.light .hero-tagline {
  color: var(--accent-navy);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-figure {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-figure img {
  max-height: 460px;
  width: auto;
}

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
}

.hero-stat .label {
  font-size: 12px;
  margin-top: 6px;
}

.light .hero-stat .label {
  color: var(--gray);
}

/* QUOTES */
.s-quotes {
  padding: 140px 0;
}

.quote-headline {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 72px;
  max-width: 700px;
}

.dark .quote-headline em {
  color: var(--light-gray);
}

.quotes-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.dark .quotes-row {
  background: rgba(255, 255, 255, 0.06);
}

.dark .qb {
  background: var(--black);
  padding: 40px 30px;
}

.dark .qb blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.65;
  color: var(--silver);
  margin-bottom: 20px;
}

.dark .qb cite {
  font-style: normal;
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* FORCES */
.s-forces {
  padding: 140px 0;
}

.forces-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  margin-bottom: 14px;
}

.light .forces-intro {
  color: var(--gray);
}

.forces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
}

.light .forces-grid {
  background: rgba(0, 0, 0, 0.06);
}

.force {
  padding: 52px 32px;
  position: relative;
}

.light .force {
  background: var(--white);
}

.force-num {
  font-family: var(--font-display);
  font-size: 110px;
  line-height: 1;
  position: absolute;
  top: 12px;
  right: 20px;
}

.light .force-num {
  color: rgba(0, 0, 0, 0.04);
}

.force h3 {
  position: relative;
  margin-bottom: 12px;
}

.force p {
  position: relative;
  font-size: 15px;
  line-height: 1.8;
}

.light .force p {
  color: var(--mid-gray);
}

/* MARKET */
.s-market {
  padding: 140px 0;
  text-align: center;
}

.market-number {
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.market-label {
  font-size: 20px;
  margin-top: 8px;
  margin-bottom: 52px;
  font-weight: 300;
}

.dark .market-label {
  color: var(--gray);
}

.market-segments {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 36px;
}

.market-seg .seg-val {
  font-family: var(--font-display);
  font-size: 38px;
}

.dark .market-seg .seg-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

.market-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  margin-top: 68px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.dark .market-kicker {
  color: var(--silver);
}

/* DEFINITION */
.s-def {
  padding: 160px 0;
}

.def-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 72px;
  align-items: center;
}

.s-def h2 {
  font-size: 52px;
  margin-bottom: 24px;
}

.def-not {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.light .def-not span {
  font-size: 14px;
  color: var(--gray);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.def-fig {
  display: flex;
  justify-content: center;
  position: relative;
}

.def-fig img {
  max-height: 380px;
  width: auto;
}

.tb {
  position: absolute;
  padding: 7px 12px;
  font-size: 10px;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.light .tb {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--mid-gray);
}

.tb.t1 {
  top: 8%;
  left: -80px;
}

.tb.t2 {
  top: 28%;
  right: -100px;
}

.tb.t3 {
  top: 48%;
  left: -60px;
}

.tb.t4 {
  top: 68%;
  right: -80px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 88px;
}

.light .pillars {
  background: rgba(0, 0, 0, 0.06);
}

.light .pi {
  background: var(--white);
  padding: 40px 24px;
  text-align: center;
}

.pi-icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.pi h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.light .pi p {
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.7;
}

/* TECH */
.s-tech {
  padding: 140px 0;
}

.tech-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 72px;
  position: relative;
}

.tech-flow::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 10%;
  right: 10%;
  height: 1px;
}

.dark .tech-flow::before {
  background: rgba(255, 255, 255, 0.1);
}

.tn-item {
  text-align: center;
  padding: 0 8px;
}

.tc {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 20px;
  position: relative;
  z-index: 2;
}

.tn-item h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.dark .tn-item p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.7;
}

.udg {
  margin-top: 72px;
  padding: 52px;
  text-align: center;
}

.dark .udg {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.udg h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 12px;
}

.dark .udg p {
  color: var(--gray);
}

/* PRODUCTS */
.s-prod {
  padding: 140px 0;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
}

.light .prod-grid {
  background: rgba(0, 0, 0, 0.06);
}

.pc {
  padding: 48px 32px;
}

.light .pc {
  background: white;
}

.light .pc.feat {
  background: var(--pale);
}

.pb {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}

.light .pb {
  color: var(--gray);
}

.pc h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}

.light .pc p {
  font-size: 14px;
  color: var(--mid-gray);
  line-height: 1.8;
  margin-bottom: 24px;
}

.pl {
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.light .pl {
  color: var(--black);
}

/* RIVERAI */
.s-rai {
  padding: 140px 0;
}

.rai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.fl {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fr {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.fi {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.dark .fi {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fr h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.dark .fr p {
  font-size: 13px;
  color: var(--gray);
}

.app-mock {
  padding: 22px;
}

.dark .app-mock {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.mock-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.dark .mock-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.d-r {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF5F57;
}

.d-y {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FEBC2E;
}

.d-g {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #28C840;
}

.ml {
  height: 9px;
  border-radius: 3px;
}

.dark .ml {
  background: rgba(255, 255, 255, 0.04);
}

.ml.s {
  width: 55%;
}

.ml.m {
  width: 75%;
}

.ml.l {
  width: 90%;
}

.ml.ac {
  height: 34px;
  border-radius: 6px;
}

.dark .ml.ac {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.ti {
  text-align: center;
  padding: 12px 6px;
}

.dark .ti {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dark .ti.act {
  border-color: var(--accent-blue);
}

.ti-n {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dark .ti-n {
  color: var(--gray);
}

.ti-p {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 2px 0;
}

.ti-d {
  font-size: 9px;
}

.dark .ti-d {
  color: var(--gray);
}

/* LANDSCAPE */
.s-land {
  padding: 140px 0;
}

.chart {
  margin-top: 72px;
  position: relative;
  height: 440px;
}

.light .chart {
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.ax {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.light .ax {
  color: var(--gray);
}

.ax-y {
  left: -100px;
  top: 50%;
  transform: rotate(-90deg) translateX(50%);
  white-space: nowrap;
}

.ax-x {
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
}

.pd {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.light .pd .dd {
  background: rgba(0, 0, 0, 0.15);
}

.pd .ll {
  font-size: 11px;
  white-space: nowrap;
}

.light .pd .ll {
  color: var(--gray);
}

.pd.riv .dd {
  width: 20px;
  height: 20px;
  background: var(--black);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.light .pd.riv .ll {
  color: var(--black);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* TRACTION */
.s-trac {
  padding: 140px 0;
}

.tl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
}

.dark .tl-grid {
  background: rgba(255, 255, 255, 0.06);
}

.dark .tl-col {
  background: var(--black);
  padding: 40px 28px;
}

.tl-lb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
}

.tl-lb.green {
  color: #5ac85a;
}

.tl-lb.wh {
  color: white;
}

.tl-lb.mu {
  color: var(--gray);
}

.dark .tl-i {
  font-size: 14px;
  color: var(--silver);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.6;
}

.tl-i:last-child {
  border-bottom: none;
}

.logos {
  display: flex;
  justify-content: center;
  gap: 52px;
  margin-top: 64px;
  padding-top: 40px;
}

.dark .logos {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lt {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.dark .lt {
  color: rgba(255, 255, 255, 0.12);
}

/* TEAM */
.s-team {
  padding: 140px 0;
}

.tm-cards {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1px;
  margin-top: 72px;
}

.light .tm-cards {
  background: rgba(0, 0, 0, 0.06);
}

.light .tm {
  background: white;
  padding: 40px 28px;
}

.tm-ini {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 16px;
}

.light .tm-ini {
  color: var(--gray);
}

.tm-role {
  font-size: 13px;
  margin-bottom: 12px;
}

.light .tm-role {
  color: var(--gray);
}

.tm-bio {
  font-size: 13px;
  line-height: 1.8;
}

.light .tm-bio {
  color: var(--mid-gray);
}

.tm-nums {
  display: flex;
  gap: 44px;
  margin-top: 40px;
  padding-top: 24px;
}

.light .tm-nums {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tn-n {
  font-family: var(--font-display);
  font-size: 32px;
}

.tn-l {
  font-size: 12px;
  margin-top: 4px;
}

.light .tn-l {
  color: var(--gray);
}

/* ECONOMICS */
.s-econ {
  padding: 140px 0;
  text-align: center;
}

.sp-bar {
  margin: 52px auto 0;
  max-width: 580px;
  display: flex;
  height: 64px;
}

.dark .sp-you {
  flex: 7;
  background: white;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}

.dark .sp-riv {
  flex: 3;
  background: var(--dark-gray);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
}

.sp-cap {
  font-size: 15px;
  margin-top: 16px;
}

.dark .sp-cap {
  color: var(--gray);
}

/* VIDEOS */
.s-vid {
  padding: 140px 0;
}

.vg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
}

.light .vg {
  background: rgba(0, 0, 0, 0.06);
}

.light .vc {
  background: white;
}

.vt {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.light .vt {
  background: var(--off-white);
}

.play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.light .play {
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.4);
}

.vi {
  padding: 20px 22px;
}

.vi h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.light .vi p {
  font-size: 13px;
  color: var(--mid-gray);
}

/* LETTER */
.s-letter {
  padding: 160px 0;
}

.let-inner {
  max-width: 600px;
  margin: 0 auto;
}

.let-inner p {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.9;
  margin-bottom: 22px;
}

.dark .let-inner p {
  color: var(--silver);
}

.let-sig {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  margin-top: 40px;
}

.let-role {
  font-size: 13px;
  margin-top: 6px;
}

.dark .let-role {
  color: var(--gray);
}

/* FINAL CTA */
.s-cta {
  padding: 160px 0;
  text-align: center;
}

.s-cta h2 {
  font-size: 56px;
  margin-bottom: 18px;
}

.s-cta .sub {
  font-size: 18px;
  margin-bottom: 40px;
  font-weight: 300;
}

.light .s-cta .sub {
  color: var(--mid-gray);
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.s-cta .tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  margin-top: 64px;
}

.light .s-cta .tag {
  color: var(--accent-navy);
}

/* FOOTER */
footer {
  padding: 64px 0 32px;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fg {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.fb {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
}

.ft {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
}

.fc h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.fc ul {
  list-style: none;
}

/* ===== EMAIL CAPTURE FORM ===== */
.email-capture-container {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  height: 52px;
  /* Fixed height to match buttons */
  overflow: hidden;
  background: transparent;
}

.light .hero .email-capture-container {
  background: var(--pale);
}

/* Contrast for light hero area */

.start-capture-btn {
  white-space: nowrap;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.4s ease;
  max-width: 300px;
  /* Base width */
  opacity: 1;
  overflow: hidden;
}

.start-capture-btn.btn-hidden {
  max-width: 0 !important;
  opacity: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border: none !important;
  margin: 0 !important;
  pointer-events: none;
}

.email-capture-form {
  display: flex;
  align-items: center;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  background: white;
  border: none;
}

.email-capture-form.form-visible {
  max-width: 400px;
  /* Width when expanded */
  opacity: 1;
}

.early-access-input {
  border: none;
  padding: 0 16px;
  height: 100%;
  min-width: 200px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  background: transparent;
  color: var(--black);
}

.early-access-input::placeholder {
  color: var(--gray);
}

.email-capture-form .btn-submit {
  margin: 0;
  border-radius: 0 !important;
  height: 100%;
  padding: 0 28px !important;
  background: var(--accent-orange);
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  border: none !important;
  color: white;
}

.start-capture-btn,
.early-access-input {
  border-radius: 0 !important;
}

.fc li {
  margin-bottom: 6px;
}

.fc a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 13px;
}

.fc a:hover {
  color: white;
}

.fbot {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray);
}

.tl-col {
  background: rgba(0, 0, 0, 0.9);
  padding: 40px 28px;
  color: white;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {

  /* --- Container --- */
  .container {
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* --- Nav --- */
  nav {
    padding: 0 20px;
    height: 64px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    padding: 20px 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    pointer-events: none;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links a {
    display: block;
    padding: 18px 24px;
    font-size: 15px;
  }

  .nav-links li:last-child {
    padding: 20px 24px;
    border-bottom: none;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* --- Typography --- */
  h1 {
    font-size: clamp(36px, 8vw, 70px);
  }

  h2 {
    font-size: clamp(28px, 6vw, 50px);
  }

  .body-lg {
    font-size: 17px;
    max-width: 100% !important;
  }

  /* --- Hero --- */
  .hero {
    padding: 100px 0 48px;
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-layout>div {
    max-width: calc(100vw - 40px);
    word-wrap: break-word;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 70px);
    margin-bottom: 16px;
  }

  .hero-figure {
    justify-content: center;
  }

  .hero-figure img {
    max-height: 280px;
  }

  .hero-tagline {
    font-size: 18px;
    margin: 12px 0 28px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

  .hero-ctas .btn-black,
  .hero-ctas .btn-outline-black {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-stats {
    gap: 24px;
    margin-top: 48px;
    flex-wrap: wrap;
  }

  /* --- Quotes --- */
  .s-quotes {
    padding: 80px 0;
  }

  .quote-headline {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 40px;
  }

  .quotes-row {
    grid-template-columns: 1fr;
  }

  .dark .qb {
    padding: 28px 20px;
  }

  /* --- Definition / About --- */
  .s-def {
    padding: 80px 0;
  }

  .def-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .s-def h2 {
    font-size: clamp(28px, 6vw, 52px);
  }

  .def-fig {
    justify-content: center;
  }

  .def-fig img {
    max-height: 260px;
  }

  .tb {
    display: none;
  }

  .pillars {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }

  /* --- Economics --- */
  .s-econ {
    padding: 80px 0;
  }

  .s-econ h2 {
    font-size: clamp(32px, 7vw, 50px);
  }

  .sp-bar {
    margin-top: 32px;
    height: 52px;
  }

  .dark .sp-you {
    font-size: 16px;
  }

  .dark .sp-riv {
    font-size: 13px;
  }

  /* --- RiverAI Flagship --- */
  .s-rai {
    padding: 80px 0;
  }

  .rai-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-mock {
    max-width: 400px;
    margin: 0 auto;
  }

  /* --- Traction / Progress --- */
  .s-trac {
    padding: 80px 0;
  }

  .tl-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  /* --- Letter --- */
  .s-letter {
    padding: 80px 0;
  }

  .let-inner p {
    font-size: 17px;
  }

  /* --- Final CTA --- */
  .s-cta {
    padding: 80px 0;
  }

  .s-cta h2 {
    font-size: clamp(28px, 7vw, 56px);
  }

  .cta-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cta-btns .btn-black,
  .cta-btns .btn-outline-black {
    width: auto;
    max-width: 360px;
    justify-content: center;
    text-align: center;
  }

  .s-cta .tag {
    margin-top: 40px;
    font-size: 18px;
  }

  /* --- Footer --- */
  .fg {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fbot {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* --- Email Capture --- */
  .email-capture-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .email-capture-form.form-visible {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .early-access-input {
    min-width: 0 !important;
    flex: 1 1 0%;
    font-size: 14px;
    width: 0;
    text-align: left;
    padding: 0 12px;
    color: black;
  }

  .start-capture-btn {
    width: 100%;
    justify-content: center;
    max-width: none;
  }

  .email-capture-form .btn-submit {
    white-space: nowrap;
    padding: 0 20px !important;
    flex-shrink: 0;
  }

  /* --- Decorative figures --- */
  .fig {
    opacity: 0.08 !important;
  }

  /* --- Forces grid --- */
  .forces-grid {
    grid-template-columns: 1fr;
  }

  .force-num {
    font-size: 70px;
  }

  /* --- Products grid --- */
  .prod-grid {
    grid-template-columns: 1fr;
  }

  /* --- Tech flow --- */
  .tech-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* --- Videos grid --- */
  .vg {
    grid-template-columns: 1fr;
  }

  /* --- Team cards --- */
  .tm-cards {
    grid-template-columns: 1fr;
  }

  /* --- Market segments --- */
  .market-segments {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .market-number {
    font-size: clamp(60px, 15vw, 140px);
  }

  /* --- Logos --- */
  .logos {
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {

  .hero-figure img {
    max-height: 200px;
  }

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

  .tech-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiers {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .let-inner p {
    font-size: 16px;
    line-height: 1.8;
  }

  .s-cta h2 {
    font-size: 28px;
  }

  .quote-headline {
    font-size: 22px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .dark .qb blockquote {
    font-size: 15px;
  }
}