/*
 * Premium Light Editorial Design System
 * Inspired by Stripe · Linear · Apple Education · Wealthfront
 * Typography: Plus Jakarta Sans + Instrument Serif
 */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  /* Canvas & Surfaces */
  --bg-canvas:         #fdfdfd;
  --bg-surface:        #ffffff;
  --bg-surface-subtle: #f8fafc;

  /* Text */
  --text-main:         #0f172a;
  --text-muted:        #475569;
  --text-faint:        #94a3b8;

  /* Borders */
  --border-sharp:      1px solid rgba(15, 23, 42, 0.08);
  --border-medium:     1px solid rgba(15, 23, 42, 0.14);

  /* Brand */
  --brand-indigo:      #4f46e5;
  --brand-indigo-lt:   rgba(79, 70, 229, 0.06);
  --brand-indigo-ring: rgba(79, 70, 229, 0.18);
  --brand-emerald:     #059669;
  --brand-emerald-lt:  rgba(5, 150, 105, 0.06);
  --brand-emerald-ring:rgba(5, 150, 105, 0.18);

  /* Typography */
  --font-sans:   'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:  'Instrument Serif', 'Playfair Display', Georgia, serif;
  --font-mono:   ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --container:   1120px;
  --section-gap: 7rem;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   30px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition:    all 0.45s var(--ease-out-expo);
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.625;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY SCALE
───────────────────────────────────────────── */
h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

/* ─────────────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: var(--section-gap) 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  background: transparent;
  transition: var(--transition);
}

#navbar.scrolled {
  padding: 1rem 0;
  background: rgba(253, 253, 253, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-sharp);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-indigo);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover { color: var(--text-main); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.active-link {
  color: var(--text-main);
  font-weight: 600;
}
.nav-links a.active-link::after {
  width: 100%;
  background: var(--brand-indigo);
}

.finance-page .nav-links a.active-link::after {
  background: var(--brand-emerald);
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-indigo {
  background: var(--brand-indigo);
  color: #fff;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25),
              0 4px 12px rgba(79, 70, 229, 0.15);
}
.btn-indigo:hover {
  background: #3d35c7;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3),
              0 8px 20px rgba(79, 70, 229, 0.2);
}

.btn-emerald {
  background: var(--brand-emerald);
  color: #fff;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.25),
              0 4px 12px rgba(5, 150, 105, 0.15);
}
.btn-emerald:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3),
              0 8px 20px rgba(5, 150, 105, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: var(--border-medium);
}
.btn-ghost:hover {
  background: var(--bg-surface-subtle);
  border-color: rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   HERO — INDEX PAGE
───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  background:
    radial-gradient(ellipse 80% 50% at 90% 20%, rgba(79, 70, 229, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(5, 150, 105, 0.03) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-indigo);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 5px 12px;
  background: var(--brand-indigo-lt);
  border: 1px solid var(--brand-indigo-ring);
  border-radius: 100px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.75rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Visual Cards */
.hero-visual {
  position: relative;
  height: 420px;
}

.hero-terminal {
  position: absolute;
  top: 0;
  left: 0;
  right: 15%;
  background: #f1f5f9;
  border: var(--border-sharp);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #334155;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04),
              0 1px 3px rgba(15, 23, 42, 0.04);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: var(--border-sharp);
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.t-dot-r { background: #ef4444; opacity: 0.6; }
.t-dot-y { background: #f59e0b; opacity: 0.6; }
.t-dot-g { background: #22c55e; opacity: 0.6; }

.t-label {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--text-faint);
}

.code-kw   { color: #7c3aed; font-weight: 600; }
.code-fn   { color: #1d4ed8; }
.code-str  { color: #059669; }
.code-cm   { color: #94a3b8; font-style: italic; }

.hero-chart {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 20%;
  background: var(--bg-surface);
  border: var(--border-sharp);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05),
              0 2px 6px rgba(15, 23, 42, 0.04);
}

.chart-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.chart-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-emerald);
  background: var(--brand-emerald-lt);
  border: 1px solid var(--brand-emerald-ring);
  padding: 2px 8px;
  border-radius: 100px;
}

.bar-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
}

.bar {
  flex: 1;
  background: #e2e8f0;
  border-radius: 4px 4px 0 0;
  height: 0;
  transition: height 1.6s var(--ease-out-expo);
}
.bar.loaded { background: var(--brand-emerald); }

/* ─────────────────────────────────────────────
   ABOUT SECTION — INDEX PAGE
───────────────────────────────────────────── */
.about-section {
  background: var(--bg-surface-subtle);
  border-top: var(--border-sharp);
  border-bottom: var(--border-sharp);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 6rem;
  align-items: start;
}

.founder-card {
  background: var(--bg-surface);
  border: var(--border-sharp);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.founder-avatar {
  width: 64px;
  height: 64px;
  background: var(--brand-indigo-lt);
  border: 2px solid var(--brand-indigo-ring);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-indigo);
  margin-bottom: 1.5rem;
}

.founder-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-indigo);
  display: block;
  margin-bottom: 1rem;
}

.founder-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: var(--border-sharp);
  padding-top: 1rem;
  margin-top: 1rem;
}

.about-copy h2 {
  margin-bottom: 1.25rem;
}

.about-copy p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-copy strong {
  color: var(--text-main);
  font-weight: 600;
}

.metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.metric-tile {
  background: var(--bg-surface);
  border: var(--border-sharp);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}

.metric-tile:hover {
  border-color: rgba(15, 23, 42, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--brand-indigo);
}

.metric-tile.emerald .metric-num { color: var(--brand-emerald); }

.metric-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────
   PROGRAM GATEWAYS — INDEX PAGE
───────────────────────────────────────────── */
.programs-section {
  background: var(--bg-canvas);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 { margin-bottom: 0.75rem; }

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.gateway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.gateway-card {
  background: var(--bg-surface);
  border: var(--border-sharp);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.015);
}

.gateway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}

.gateway-card.py-track::before { background: var(--brand-indigo); opacity: 0; }
.gateway-card.fn-track::before { background: var(--brand-emerald); opacity: 0; }

.gateway-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.gateway-card.py-track:hover {
  border-color: var(--brand-indigo-ring);
}
.gateway-card.py-track:hover::before { opacity: 1; }

.gateway-card.fn-track:hover {
  border-color: var(--brand-emerald-ring);
}
.gateway-card.fn-track:hover::before { opacity: 1; }

.gateway-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface-subtle);
  border: var(--border-sharp);
  padding: 4px 10px;
  border-radius: 6px;
}

.gateway-card h3 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.gateway-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 2rem;
}

.gateway-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  align-self: flex-start;
  padding: 0.65rem 1.4rem;
  border: var(--border-medium);
  border-radius: 100px;
  transition: var(--transition);
}

.gateway-link:hover {
  background: var(--bg-surface-subtle);
  transform: translateX(3px);
}

/* ─────────────────────────────────────────────
   CONTACT SECTION — INDEX PAGE
───────────────────────────────────────────── */
.contact-section {
  background: var(--bg-surface-subtle);
  border-top: var(--border-sharp);
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-surface);
  border: var(--border-sharp);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.contact-card h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.contact-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.contact-card.py-card .contact-val:hover  { color: var(--brand-indigo); }
.contact-card.fn-card .contact-val:hover { color: var(--brand-emerald); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer {
  background: var(--bg-canvas);
  border-top: var(--border-sharp);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ─────────────────────────────────────────────
   SUBPAGE SHARED — PYTHON & FINANCE
───────────────────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 3rem;
  padding: 0.5rem 1rem;
  border: var(--border-sharp);
  border-radius: 100px;
  background: var(--bg-surface);
  transition: var(--transition);
}

.back-btn:hover {
  color: var(--text-main);
  border-color: rgba(15, 23, 42, 0.14);
  transform: translateX(-3px);
}

.subpage-hero {
  padding-top: 9rem;
  padding-bottom: 4rem;
  background: var(--bg-surface-subtle);
  border-bottom: var(--border-sharp);
}

.subpage-header {
  max-width: 720px;
}

.track-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.track-badge.indigo {
  color: var(--brand-indigo);
  background: var(--brand-indigo-lt);
  border: 1px solid var(--brand-indigo-ring);
}

.track-badge.emerald {
  color: var(--brand-emerald);
  background: var(--brand-emerald-lt);
  border: 1px solid var(--brand-emerald-ring);
}

.subpage-hero h1 { margin-bottom: 1.25rem; }

.subpage-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

.cta-block {
  background: var(--bg-surface);
  border: var(--border-sharp);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  margin-top: 6rem;
}

.cta-block h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.cta-block p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ─────────────────────────────────────────────
   PYTHON PAGE — VERTICAL TIMELINE (COLLISION-FREE)
───────────────────────────────────────────── */
.timeline-section { background: var(--bg-canvas); }

.timeline-wrap {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
}

/*
  2-COLUMN GRID APPROACH — THE FIX
  Col 1: month label (fixed width, right-aligned)
  Col 2: dot + connector track (narrow, centered)  ← line runs here
  Col 3: content card (flexible)
*/
.tl-item {
  display: grid;
  grid-template-columns: 100px 48px 1fr;
  gap: 0;
  position: relative;
  align-items: start;
}

/* Vertical connecting line — ONLY in col 2, full height */
.tl-item:not(:last-child) .tl-track::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 28px;
  bottom: -2.5rem;  /* matches the gap between items */
  width: 1px;
  background: rgba(15, 23, 42, 0.08);
}

.tl-track {
  display: flex;
  justify-content: center;
  padding-top: 6px;
  position: relative;
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.15);
  background: var(--bg-canvas);
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

/* When parent item is hovered — dot activates */
.tl-item:hover .tl-dot {
  border-color: var(--brand-indigo);
  background: var(--brand-indigo);
  box-shadow: 0 0 0 4px var(--brand-indigo-lt);
}

/* Animated progress state (JS adds .active) */
.tl-dot.active {
  border-color: var(--brand-indigo);
  background: var(--brand-indigo);
}

.tl-label {
  padding-top: 4px;
  padding-right: 1.25rem;
  text-align: right;
}

.tl-month {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-indigo);
  white-space: nowrap;
  display: block;
}

.tl-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.08);
  letter-spacing: -0.05em;
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.tl-card {
  background: var(--bg-surface);
  border: var(--border-sharp);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  transition: var(--transition);
}

.tl-item:hover .tl-card {
  border-color: rgba(79, 70, 229, 0.18);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.tl-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tl-card-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.tl-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-surface-subtle);
  border: var(--border-sharp);
  padding: 2px 8px;
  border-radius: 100px;
  flex-shrink: 0;
}

.tl-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   FINANCE PAGE — BENTO GRID
───────────────────────────────────────────── */
.bento-section { background: var(--bg-canvas); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-surface);
  border: var(--border-sharp);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
  border-color: rgba(5, 150, 105, 0.2);
}

.bento-card.wide { grid-column: span 2; }

/* Wide card interior: 2-col split */
.bento-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  height: 100%;
  align-items: stretch;
}

.bento-content {
  display: flex;
  flex-direction: column;
}

.bento-visual {
  background: var(--bg-surface-subtle);
  border: var(--border-sharp);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.bento-idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-emerald);
  background: var(--brand-emerald-lt);
  border: 1px solid var(--brand-emerald-ring);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.bento-session {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
  display: block;
}

.bento-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}

.bento-card p.desc {
  font-size: 0.935rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

/* Editorial takeaway */
.takeaway {
  border-left: 2px solid var(--brand-emerald);
  padding: 0.85rem 1.1rem;
  background: var(--brand-emerald-lt);
  border-radius: 0 8px 8px 0;
  margin-top: 1.5rem;
}

.takeaway-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-emerald);
  display: block;
  margin-bottom: 0.3rem;
}

.takeaway p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Spreadsheet Mock ── */
.sheet-mock {
  width: 100%;
  font-size: 0.78rem;
}

.sheet-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: var(--border-sharp);
}

.sheet-filename {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}

.sheet-tabs {
  display: flex;
  gap: 4px;
}

.s-tab {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  border: var(--border-sharp);
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.s-tab.on {
  color: var(--brand-emerald);
  background: var(--brand-emerald-lt);
  border-color: var(--brand-emerald-ring);
}

.sheet-row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr;
  padding: 7px 10px;
  border-radius: 6px;
  gap: 0.5rem;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.sheet-row.head {
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding-bottom: 6px;
  border-bottom: var(--border-sharp);
  border-radius: 0;
}

.sheet-row.hi {
  background: var(--brand-emerald-lt);
  border: 1px solid var(--brand-emerald-ring);
  color: var(--text-main);
  font-weight: 500;
}

.sheet-row.hi .pct { color: var(--brand-emerald); font-weight: 700; }

.pct, .amt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.amt { text-align: right; }

/* ── Roadmap Mini Timeline ── */
.road-track {
  width: 100%;
  position: relative;
  padding: 2rem 0;
}

.road-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  transform: translateY(-50%);
}

.road-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.road-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100px;
}

.rn-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.18);
  background: var(--bg-surface-subtle);
  margin-bottom: 0.65rem;
  transition: var(--transition);
}

.road-node.lit .rn-dot {
  border-color: var(--brand-emerald);
  background: var(--brand-emerald);
  box-shadow: 0 0 0 4px var(--brand-emerald-lt);
}

.rn-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.rn-sub {
  font-size: 0.62rem;
  color: var(--text-faint);
  margin-top: 2px;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────
   SCROLL REVEAL ANIMATIONS
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* ─────────────────────────────────────────────
   RESPONSIVE — TABLET & MOBILE
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid        { grid-template-columns: 1fr; gap: 4rem; }
  .hero h1          { font-size: 2.75rem; }
  .hero-sub         { max-width: 100%; }
  .hero-btns        { justify-content: flex-start; }
  .hero-visual      { height: auto; }
  .hero-terminal    { position: relative; top: auto; left: auto; right: auto; }
  .hero-chart       { position: relative; bottom: auto; left: auto; right: auto; margin-top: 1rem; }

  .about-grid       { grid-template-columns: 1fr; gap: 3rem; }
  .bento-inner      { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --section-gap: 5rem; }

  .nav-links        { display: none; }

  .hero-grid        { text-align: center; }
  .hero-btns        { justify-content: center; }
  .hero-sub         { margin-inline: auto; }

  .gateway-grid     { grid-template-columns: 1fr; }
  .contact-cards    { grid-template-columns: 1fr; max-width: 400px; }
  .metrics-row      { grid-template-columns: 1fr; }
  .footer-inner     { flex-direction: column; gap: 1rem; text-align: center; }

  /* Timeline: stack to single column on mobile */
  .tl-item {
    grid-template-columns: 48px 1fr;
  }
  .tl-label { display: none; }
  .tl-item:not(:last-child) .tl-track::after {
    bottom: -2rem;
  }
  .tl-card { margin-bottom: 2rem; }

  /* Bento: all single column */
  .bento-grid       { grid-template-columns: 1fr; }
  .bento-card.wide  { grid-column: span 1; }
  .bento-inner      { grid-template-columns: 1fr; gap: 1.5rem; }
  .bento-card       { padding: 2rem; }

  .cta-block        { padding: 2.5rem 1.75rem; }
  .cta-block h3     { font-size: 1.75rem; }
}
