/* ── Variables ── */
:root {
  --bg: #040d1a;
  --surface: #071428;
  --surface2: #0c1e36;
  --border: #112540;
  --teal: #00c9a7;
  --teal-dim: rgba(0, 201, 167, 0.12);
  --blue: #1a56db;
  --text: #e2edf5;
  --text-dim: #7a9ab8;
  --text-muted: #4a6a87;
  --warn: #f59e0b;
  --critical: #ef4444;
  --ok: #22c55e;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .nav-logo, .footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ── Nav ── */
.nav {
  padding: 28px 0 0;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.03em;
}
.nav-tag {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}

/* ── Hero ── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  margin-bottom: 20px;
}
.eyebrow-tag {
  display: inline-block;
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid rgba(0, 201, 167, 0.25);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-headline {
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 24px;
}
.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--teal);
}
.stat-label {
  font-size: 14px;
  color: var(--text-dim);
}

/* ── Hero Visual: Deck Map ── */
.deck-map {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.map-header {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.03em;
}
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
}
.map-col {
  padding: 20px;
  border-right: 1px solid var(--border);
}
.map-col.col-alerts {
  border-right: none;
}
.col-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.ship-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ship-name {
  font-size: 13px;
  color: var(--text-dim);
  width: 88px;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
}
.stock-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.bar-fill.warning { background: var(--warn); }
.stock-pct {
  font-size: 12px;
  color: var(--text-dim);
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}
.stock-pct.warn { color: var(--warn); font-weight: 500; }
.alert-list { display: flex; flex-direction: column; gap: 12px; }
.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}
.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--critical);
  flex-shrink: 0;
  margin-top: 4px;
}
.alert-dot.ok { background: var(--ok); }
.alert-item.critical .alert-dot { background: var(--critical); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Shared section styles ── */
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 12px;
}
.section-heading {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 40px;
}

/* ── How It Works ── */
.howitworks {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
  border-top: 1px solid var(--border);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.step {
  padding: 0 48px 0 0;
  border-right: 1px solid var(--border);
}
.step:last-child { border-right: none; padding-right: 0; }
.step + .step { padding-left: 48px; }
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: rgba(0, 201, 167, 0.15);
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}
.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.step-body {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── Features ── */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
  border-top: 1px solid var(--border);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 36px 32px;
}
.feature-card.feature-main {
  grid-column: 1;
}
.feature-icon {
  color: var(--teal);
  margin-bottom: 20px;
}
.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-body {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── Positioning ── */
.positioning {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
  border-top: 1px solid var(--border);
}
.pos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.pos-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}
.comparison {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.comp-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}
.comp-col-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
}
.comp-col-label.right { text-align: right; color: var(--teal); }
.comp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  align-items: center;
}
.comp-row:last-child { border-bottom: none; }
.comp-item {
  font-size: 14px;
  color: var(--text-dim);
}
.comp-val {
  font-size: 14px;
  font-weight: 500;
}
.comp-val.old { color: var(--text-muted); text-decoration: line-through; }
.comp-val.new { color: var(--teal); text-align: right; }

/* ── Closing ── */
.closing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 32px 120px;
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 680px;
}
.closing-headline {
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.75;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--teal);
  display: block;
  margin-bottom: 6px;
}
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-tag {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px 56px;
  }
  .map-grid {
    grid-template-columns: 1fr;
  }
  .map-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .map-col:last-child { border-bottom: none; }
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: none;
    padding: 0 0 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
  }
  .step + .step { padding-left: 0; }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .pos-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .comp-header,
  .comp-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .comp-col-label:last-child,
  .comp-val:last-child {
    text-align: right;
  }
  .howitworks, .features, .positioning, .closing {
    padding: 56px 24px;
  }
}