:root {
  --bg: #08080a;
  --surface: #0f0f12;
  --surface-2: #141418;
  --surface-3: #1a1a1f;
  --border: #25252b;
  --border-subtle: #1a1a1f;
  --text: #f0f0f2;
  --text-secondary: #9d9da6;
  --text-tertiary: #5f5f6b;
  --accent: #c9a84c;
  --accent-soft: rgba(201, 168, 76, 0.1);
  --accent-glow: rgba(201, 168, 76, 0.04);
  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.1);
  --purple: #a78bfa;
  --amber: #fbbf24;
  --rose: #fb7185;
  --blue: #60a5fa;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

/* ============ NAV ============ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2.5rem; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8, 8, 10, 0.8);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-logo { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: var(--text-tertiary); text-decoration: none; font-size: 0.8rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--text) !important; color: var(--bg) !important; padding: 0.38rem 0.95rem; border-radius: 6px; font-weight: 600 !important; }

/* ============ LAYOUT ============ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 8rem 0; }
.divider { height: 1px; background: var(--border-subtle); }

/* ============ TYPOGRAPHY ============ */
.label {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent); font-weight: 600; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.label::before { content: ''; width: 20px; height: 1px; background: var(--accent); }

h2.display {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 500;
  line-height: 1.18; letter-spacing: -0.03em; margin-bottom: 1.2rem;
}
h2.display em { font-style: italic; font-weight: 300; color: var(--text-secondary); }

.subtitle {
  font-size: 1.08rem; color: var(--text-secondary); line-height: 1.72;
  max-width: 640px;
}

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--text); color: var(--bg);
  padding: 0.75rem 1.8rem; border-radius: 8px;
  font-weight: 600; font-size: 0.88rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,255,255,0.1); }

.btn-ghost {
  color: var(--text-secondary); font-size: 0.88rem; text-decoration: none;
  font-weight: 500; transition: color 0.2s; display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-ghost:hover { color: var(--text); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: 11rem;
  padding-bottom: 4rem;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--green-soft); border: 1px solid rgba(74,222,128,0.15);
  border-radius: 100px; padding: 0.4rem 1.1rem;
  font-size: 0.76rem; color: var(--green); font-weight: 600;
  margin-bottom: 2.5rem;
  animation: fadeDown 0.6s ease both;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.hero h1 {
  font-family: var(--font-display); font-size: 4rem; font-weight: 500;
  line-height: 1.1; letter-spacing: -0.035em; margin-bottom: 1.8rem;
  max-width: 700px;
  animation: fadeUp 0.7s ease both;
}
.hero h1 em { font-style: italic; font-weight: 300; }

.hero-text {
  font-size: 1.15rem; color: var(--text-secondary); line-height: 1.75;
  max-width: 580px; margin-bottom: 2.8rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-actions {
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-stats {
  display: flex; gap: 3.5rem; margin-top: 5rem; padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  animation: fadeUp 0.7s 0.35s ease both;
}
.hero-stat-val {
  font-family: var(--font-display); font-size: 2rem; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem; color: var(--text-tertiary); margin-top: 0.4rem;
}


/* ============================================================
   THE INSIGHT
   ============================================================ */
.insight {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.insight-text h2 { margin-bottom: 1.5rem; }
.insight-prose { color: var(--text-secondary); font-size: 1rem; line-height: 1.8; }
.insight-prose p + p { margin-top: 1rem; }
.insight-prose strong { color: var(--text); font-weight: 600; }

.demo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.demo-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.demo-method {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--green);
}
.demo-path {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-tertiary);
}
.demo-body {
  padding: 1.5rem 1.4rem;
  font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.85;
  color: var(--text-secondary);
}
.demo-body .k { color: var(--blue); }
.demo-body .s { color: var(--amber); }
.demo-body .n { color: var(--purple); }
.demo-body .b { color: var(--rose); }

.demo-insight {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--border);
  background: var(--accent-glow);
}
.demo-insight p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }
.demo-insight strong { color: var(--accent); }


/* ============================================================
   DISCOVERIES — THE WINE-WORLD HOOK
   ============================================================ */
.discoveries {
  position: relative;
  overflow: hidden;
}
.discoveries::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(167,139,250,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.disc-header {
  text-align: center;
  margin-bottom: 4rem;
}
.disc-header .label { justify-content: center; }
.disc-header .label::before { display: none; }
.disc-header h2.display { margin: 0 auto; max-width: 700px; }
.disc-header .subtitle { margin: 0 auto; text-align: center; max-width: 600px; }

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

.disc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem 2.5rem;
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.disc-card:hover { border-color: rgba(255,255,255,0.08); }

.disc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.disc-card:nth-child(1)::before { background: linear-gradient(90deg, var(--accent), transparent 80%); }
.disc-card:nth-child(2)::before { background: linear-gradient(90deg, var(--purple), transparent 80%); }
.disc-card:nth-child(3)::before { background: linear-gradient(90deg, var(--amber), transparent 80%); }
.disc-card:nth-child(4)::before { background: linear-gradient(90deg, var(--rose), transparent 80%); }

.disc-region {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 1.2rem; font-weight: 600;
}
.disc-card:nth-child(1) .disc-region { color: var(--accent); }
.disc-card:nth-child(2) .disc-region { color: var(--purple); }
.disc-card:nth-child(3) .disc-region { color: var(--amber); }
.disc-card:nth-child(4) .disc-region { color: var(--rose); }

.disc-stat {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 600;
  line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.8rem;
}

.disc-card h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  margin-bottom: 0.8rem; line-height: 1.35;
}

.disc-card p {
  color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7;
}

.disc-card .disc-source {
  margin-top: 1.2rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--text-tertiary); letter-spacing: 0.02em;
}

/* full-width discovery */
.disc-full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.disc-full .disc-text { }
.disc-full .disc-visual {
  display: flex; flex-direction: column; gap: 0;
}

.slope-row {
  display: grid;
  grid-template-columns: 120px 1fr 70px;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.slope-row:last-child { border-bottom: none; }

.slope-name {
  font-size: 0.82rem; font-weight: 600;
}
.slope-class {
  font-family: var(--font-mono); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 0.15rem;
}
.slope-gc .slope-class { color: var(--accent); }
.slope-pc .slope-class { color: var(--purple); }
.slope-v .slope-class { color: var(--text-tertiary); }

.slope-bar-wrap {
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}
.slope-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.slope-gc .slope-bar { background: var(--accent); }
.slope-pc .slope-bar { background: var(--purple); }
.slope-v .slope-bar { background: var(--text-tertiary); opacity: 0.5; }

.slope-elev {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-tertiary); text-align: right;
}

.disc-footnote {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-tertiary);
  font-style: italic;
  font-family: var(--font-display);
}


/* ============================================================
   GEOLOGICAL TIMELINE
   ============================================================ */
.timeline-section { position: relative; overflow: hidden; }
.timeline-section::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 15%, var(--border) 85%, transparent);
}

.timeline-header { text-align: center; margin-bottom: 5rem; position: relative; }
.timeline-header .label { justify-content: center; }
.timeline-header .label::before { display: none; }
.timeline-header h2.display { margin: 0 auto; }
.timeline-header .subtitle { margin: 0 auto; text-align: center; }

.timeline-eras { display: flex; flex-direction: column; gap: 0; position: relative; }

.era-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: start;
  min-height: 220px;
}

.era-content {
  padding: 2rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
}
.era-content::after {
  content: ''; position: absolute; top: 2.5rem; width: 30px; height: 1px; background: var(--border);
}
.era-row:nth-child(odd) .era-content { grid-column: 1; }
.era-row:nth-child(odd) .era-content::after { right: -30px; }
.era-row:nth-child(even) .era-content { grid-column: 3; }
.era-row:nth-child(even) .era-content::after { left: -30px; }

.era-dot {
  grid-column: 2;
  display: flex; justify-content: center; padding-top: 2.2rem;
  position: relative; z-index: 2;
}
.era-dot span {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg); position: relative;
}
.era-dot span::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; }
.era-row:nth-child(1) .era-dot span::after { background: var(--purple); }
.era-row:nth-child(2) .era-dot span::after { background: var(--amber); }
.era-row:nth-child(3) .era-dot span::after { background: var(--rose); }

.era-age-tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; margin-bottom: 0.8rem;
}
.era-row:nth-child(1) .era-age-tag { color: var(--purple); }
.era-row:nth-child(2) .era-age-tag { color: var(--amber); }
.era-row:nth-child(3) .era-age-tag { color: var(--rose); }

.era-content h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 0.4rem; }
.era-content .era-type { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 1.2rem; }
.era-content .era-desc { color: var(--text-tertiary); font-size: 0.85rem; line-height: 1.65; margin-bottom: 1.3rem; }

.era-metrics { display: flex; gap: 1.5rem; }
.era-metric { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-tertiary); }
.era-metric strong {
  display: block; font-family: var(--font-display); font-size: 1.15rem;
  color: var(--text); font-weight: 600; margin-bottom: 0.15rem;
}
.era-link {
  display: block; margin-top: 1.2rem;
  font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.2s;
}
.era-link:hover { color: var(--text); }

.pipeline-box {
  margin-top: 4rem; padding: 2.5rem 3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  text-align: center;
}
.pipeline-box h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; margin-bottom: 0.8rem; }
.pipeline-box h3 em { font-style: italic; font-weight: 300; color: var(--text-secondary); }
.pipeline-box p { color: var(--text-tertiary); font-size: 0.92rem; max-width: 560px; margin: 0 auto 1.8rem; line-height: 1.7; }

.pipeline-domains { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.pipeline-domain {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-tertiary);
  padding: 0.45rem 1rem; border: 1px dashed var(--border); border-radius: 8px; transition: all 0.3s;
}
.pipeline-domain:hover { border-color: var(--accent); color: var(--accent); }


/* ============================================================
   API SECTION
   ============================================================ */
.data-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3.5rem;
}


/* ============================================================
   WHAT YOU CAN BUILD
   ============================================================ */
.build-cards { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 1.2rem; }

.build-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 2.8rem 3rem;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start;
  transition: border-color 0.3s;
}
.build-card:hover { border-color: rgba(255,255,255,0.08); }

.build-card-label {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 1rem;
}
.build-card:nth-child(1) .build-card-label { color: var(--green); }
.build-card:nth-child(2) .build-card-label { color: var(--purple); }
.build-card:nth-child(3) .build-card-label { color: var(--amber); }

.build-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; line-height: 1.3; }
.build-card-text { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.75; }

.build-card-demo {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.build-card-demo-header {
  padding: 0.7rem 1.2rem; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500;
}
.build-card-demo-body { padding: 1.2rem 1.4rem; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.build-card-demo-body .hl { background: var(--accent-soft); color: var(--accent); padding: 0.1rem 0.4rem; border-radius: 4px; font-weight: 500; }
.build-card-demo-body code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-tertiary); }

/* LIVE BANNER */
.live-banner {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border); border-radius: 14px; padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--green); font-weight: 600; margin-bottom: 0.6rem;
}
.live-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.live-banner h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.3rem; }
.live-banner p { color: var(--text-secondary); font-size: 0.88rem; }
.live-banner a {
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.85rem;
  padding: 0.6rem 1.4rem; border-radius: 8px; white-space: nowrap; transition: all 0.2s;
}
.live-banner a:hover { background: var(--border); }


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.step-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 2.2rem 2rem; position: relative; overflow: hidden;
}
.step-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.step-card:nth-child(1)::before { background: linear-gradient(90deg, var(--accent), transparent); }
.step-card:nth-child(2)::before { background: linear-gradient(90deg, var(--blue), transparent); }
.step-card:nth-child(3)::before { background: linear-gradient(90deg, var(--green), transparent); }

.step-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; color: var(--border); margin-bottom: 1.2rem; line-height: 1; }
.step-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.7rem; }
.step-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; }
.step-detail {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-tertiary); line-height: 1.6;
}


/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border-radius: 14px; overflow: hidden;
}

.price-card { background: var(--surface); padding: 2.8rem 2.2rem; display: flex; flex-direction: column; }
.price-card.featured { background: var(--surface-2); position: relative; }
.price-card.featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); }

.price-tier { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); font-weight: 600; margin-bottom: 1.2rem; }
.price-amount { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 0.3rem; }
.price-unit { font-size: 0.82rem; color: var(--text-tertiary); margin-bottom: 2rem; }

.price-features { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.5rem; flex: 1; }
.price-features li { font-size: 0.85rem; color: var(--text-secondary); padding-left: 1.4rem; position: relative; }
.price-features li::before { content: '↳'; position: absolute; left: 0; color: var(--text-tertiary); font-size: 0.8rem; }

.price-credits { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-tertiary); line-height: 1.7; margin-bottom: 1.5rem; }
.price-note { font-size: 0.78rem; color: var(--text-tertiary); margin-bottom: 1.5rem; font-style: italic; }

.price-btn {
  display: block; text-align: center; padding: 0.7rem; border-radius: 8px;
  font-weight: 600; font-size: 0.85rem; text-decoration: none; transition: all 0.2s; margin-top: auto;
}
.price-btn.primary { background: var(--text); color: var(--bg); }
.price-btn.secondary { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.price-btn:hover { opacity: 0.85; }


/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { text-align: center; padding: 9rem 0; position: relative; }
.final-cta::before {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta h2 { font-family: var(--font-display); font-size: 2.8rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1.2rem; }
.final-cta h2 em { font-style: italic; font-weight: 300; color: var(--text-secondary); }
.final-cta .subtitle { margin: 0 auto 2.8rem; text-align: center; }
.final-actions { display: flex; gap: 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.final-note { margin-top: 2.5rem; font-size: 0.85rem; color: var(--text-tertiary); }
.final-note a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }

/* FOOTER */
footer { border-top: 1px solid var(--border-subtle); padding: 3.5rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-desc { color: var(--text-tertiary); font-size: 0.8rem; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); font-weight: 600; margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.82rem; margin-bottom: 0.55rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.8rem; }
  h2.display { font-size: 2rem; }
  .insight-layout { grid-template-columns: 1fr; gap: 3rem; }
  .disc-grid { grid-template-columns: 1fr; }
  .disc-full { grid-template-columns: 1fr; }
  .era-row { grid-template-columns: 1fr; min-height: auto; }
  .era-row:nth-child(odd) .era-content,
  .era-row:nth-child(even) .era-content { grid-column: 1; }
  .era-dot, .timeline-section::before { display: none; }
  .era-content::after { display: none; }
  .timeline-eras { gap: 1.2rem; }
  .data-cols { grid-template-columns: 1fr; }
  .build-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .live-banner { flex-direction: column; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 2rem; }
}
@media (max-width: 600px) {
  .hero { padding-top: 7rem; }
  .hero h1 { font-size: 2.2rem; }
  h2.display { font-size: 1.7rem; }
  section { padding: 5rem 0; }
  .pipeline-box { padding: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .final-cta h2 { font-size: 2rem; }
  .disc-stat { font-size: 2.4rem; }
}

/* ============================================================
   ACCESS REQUEST MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.8rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  animation: fadeUp 0.3s ease both;
}
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.modal-label::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
.modal-box h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}
.modal-box p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.modal-form { display: flex; flex-direction: column; gap: 0.85rem; }
.modal-form input,
.modal-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}
.modal-form input::placeholder,
.modal-form textarea::placeholder { color: var(--text-tertiary); }
.modal-form input:focus,
.modal-form textarea:focus { border-color: var(--accent); }
.modal-form textarea { resize: vertical; min-height: 100px; }
.modal-submit {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 0.8rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.4rem;
  font-family: var(--font-body);
}
.modal-submit:hover { opacity: 0.85; }
.modal-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.modal-error {
  color: #fb7185;
  font-size: 0.82rem;
  margin-top: 0.5rem;
  display: none;
}
.modal-success { display: none; text-align: center; padding: 2rem 0; }
.modal-success-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.modal-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.modal-success p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .modal-box { padding: 2rem 1.5rem; }
}
