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

:root {
  --bg: #0B0B0E;
  --surface: #121219;
  --surface-2: #1A1A22;
  --amber: #F5A623;
  --amber-dim: rgba(245, 166, 35, 0.15);
  --text: #E8E4DC;
  --text-2: rgba(232, 228, 220, 0.55);
  --text-3: rgba(232, 228, 220, 0.3);
  --border: rgba(232, 228, 220, 0.08);
  --success: #4ADE80;
  --up: #4ADE80;
  --dn: #F87171;
  --dim: rgba(245, 166, 35, 0.4);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

em { font-style: italic; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(11, 11, 14, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-mark {
  font-size: 18px;
  color: var(--amber);
}

.nav-tagline {
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.05em;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 120px 48px 80px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

.hero-content {
  padding-right: 64px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
}

.hero-headline {
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 28px;
  color: var(--text);
}

.hero-headline em {
  color: var(--amber);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 440px;
}

/* === SIGNAL GRID === */
.hero-visual {
  padding-left: 64px;
}

.signal-grid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.grid-cell {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}

.grid-cell.active {
  border-color: var(--amber);
  background: var(--amber-dim);
}

.cell-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 4px;
}

.cell-value {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Figtree', monospace;
  color: var(--text);
  margin-bottom: 2px;
}

.cell-value small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

.cell-arrow {
  font-size: 12px;
  font-weight: 700;
}

.cell-arrow.up { color: var(--up); }
.cell-arrow.dn { color: var(--dn); }

.grid-cell.dim .cell-label { color: var(--text-3); }
.grid-cell.dim .cell-value { color: var(--dim); }

/* Scenario bar */
.grid-scenario {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.scenario-header,
.watch-header {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.scenario-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-2);
}

.scenario-bar:last-child { margin-bottom: 0; }

.bar-fill {
  flex: 1;
  background: var(--amber);
  border-radius: 3px;
  height: 8px;
  min-width: 20px;
  display: flex;
  align-items: center;
}

.bar-fill.dim { background: var(--border); }

.bar-fill span {
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--bg);
}

.bar-fill.dim span { color: var(--text-2); }

/* Watch list */
.grid-watch {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.watch-list { display: flex; flex-direction: column; gap: 5px; }

.watch-item {
  font-size: 11px;
  color: var(--text-2);
}

/* Hero tagline row */
.hero-tagline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-tagline-chip {
  font-size: 10px;
  color: var(--text-3);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
}

/* === LANES === */
.lanes {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.lanes-header {
  max-width: 600px;
  margin: 0 auto 72px;
  text-align: center;
}

.lanes-header h2 {
  font-size: clamp(36px, 4vw, 56px);
  margin-top: 8px;
}

.lanes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.lane {
  background: var(--bg);
  padding: 40px 36px;
  transition: background 0.2s;
}

.lane:hover { background: var(--surface); }

.lane.lane-accent { background: var(--surface); }

.lane-icon {
  font-size: 28px;
  color: var(--amber);
  margin-bottom: 20px;
  line-height: 1;
}

.lane h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.lane p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 20px;
}

.lane-example {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 14px 16px;
}

.lane-example span {
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
  line-height: 1.5;
  display: block;
}

/* === PACKET === */
.packet {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.packet-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.packet-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  margin-top: 16px;
  margin-bottom: 40px;
}

.packet-stats {
  display: flex;
  gap: 40px;
}

.pstat { text-align: left; }

.pstat-num {
  font-size: 36px;
  font-weight: 800;
  font-family: 'Fraunces', serif;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 6px;
}

.pstat-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Packet doc */
.packet-doc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  font-size: 13px;
}

.doc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.doc-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 3px 8px;
  background: var(--amber-dim);
  border-radius: 4px;
  border: 1px solid rgba(245,166,35,0.3);
}

.doc-domain {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'Figtree', monospace;
}

.doc-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--up);
  margin-left: auto;
}

.doc-bl { margin-bottom: 20px; }

.doc-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.doc-bl p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.doc-signals ul,
.doc-watch ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.doc-signals li,
.doc-watch li {
  font-size: 12px;
  color: var(--text-2);
  padding-left: 12px;
  position: relative;
}

.doc-signals li::before,
.doc-watch li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 10px;
}

.doc-scenario {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-scen-row {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-2);
}

.scen-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.scen-bar div {
  height: 100%;
  background: var(--amber);
  border-radius: 3px;
  width: 58%;
}

.doc-scen-row:last-child .scen-bar div { width: 12%; background: var(--border); }

.doc-sources {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.doc-sources .doc-label { margin-bottom: 6px; }

.doc-sources span {
  font-size: 11px;
  color: var(--text-3);
}

/* === SIGNAL SECTION === */
.signal-section {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.signal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.signal-text h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  margin-top: 12px;
  margin-bottom: 16px;
}

.signal-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

.signal-lanes {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.slane {
  background: var(--surface);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.2s;
}

.slane:hover { background: var(--surface-2); }

.slane-icon {
  font-size: 14px;
  color: var(--amber);
  width: 16px;
  flex-shrink: 0;
}

.slane-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.slane-info p {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}

.slane-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--up);
  white-space: nowrap;
  flex-shrink: 0;
}

.slane-status.dim { color: var(--amber); }

/* === CLOSING === */
.closing {
  padding: 120px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

.closing h2 {
  font-size: clamp(36px, 4vw, 56px);
  margin-top: 12px;
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 48px;
}

.closing-disclaimer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 32px;
  text-align: left;
}

.closing-disclaimer p {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}

.closing-disclaimer p:first-child {
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 13px;
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.footer-logo {
  color: var(--amber);
  font-size: 16px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}

.footer-meta {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 100px 32px 60px; }
  .hero-content { padding-right: 0; }
  .hero-visual { padding-left: 0; margin-top: 48px; }
  .lanes-grid { grid-template-columns: repeat(2, 1fr); }
  .packet-inner { grid-template-columns: 1fr; gap: 48px; }
  .signal-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .hero-headline { font-size: 48px; }
  .lanes { padding: 60px 24px; }
  .lanes-grid { grid-template-columns: 1fr; }
  .packet, .signal-section, .closing { padding: 60px 24px; }
  footer { padding: 32px 24px; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
  .footer-meta { margin-left: 0; }
  .grid-row { grid-template-columns: 1fr 1fr; }
  .grid-row .grid-cell:last-child { display: none; }
  .packet-stats { gap: 24px; }
}