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

:root {
  --bg: #0B1423;
  --bg-alt: #0F1E2F;
  --bg-card: #112336;
  --bg-window: #091425;
  --fg: #E8EDF2;
  --fg-muted: #7A9BB5;
  --fg-dim: #4A6A80;
  --accent: #00D4C8;
  --accent-dim: rgba(0, 212, 200, 0.12);
  --accent-border: rgba(0, 212, 200, 0.3);
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --stat-divider: rgba(255,255,255,0.08);
  --status-review: #F59E0B;
  --status-approved: #10B981;
  --status-pending: #6B7280;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,20,35,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.nav-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  border-left: 1px solid var(--border-strong);
  padding-left: 12px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 40px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,212,200,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

/* Comparison blocks */
.hero-comparison {
  display: flex;
  align-items: center;
  gap: 20px;
}
.comparison-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.comparison-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}
.comparison-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}
.comparison-without .comparison-time { color: var(--fg-dim); text-decoration: line-through; }
.comparison-with .comparison-time { color: var(--accent); }
.comparison-detail {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* Hero diagram */
.hero-diagram {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.diagram-stage {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.stage-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  flex-shrink: 0;
}
.stage-icon-ai { background: var(--accent-dim); color: var(--accent); }
.stage-icon-tms { background: rgba(74,158,255,0.12); color: #4a9eff; }
.stage-content { display: flex; flex-direction: column; gap: 2px; }
.stage-name { font-weight: 600; font-size: 0.9rem; }
.stage-desc { font-size: 0.78rem; color: var(--fg-muted); }
.diagram-arrow-down { display: flex; justify-content: center; padding: 4px 0; }

/* ===== STATS ===== */
.stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 40px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}
.stat { padding: 0 40px; }
.stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.4;
  display: block;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--stat-divider);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 40px;
}
.how-it-works-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 60px;
  line-height: 1.7;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.step {
  padding: 36px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.step:nth-child(odd) { border-right: 1px solid var(--border); }
.step:nth-child(1), .step:nth-child(2) { border-top: none; }
.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg-dim);
  flex-shrink: 0;
  margin-top: 2px;
}
.step-title { font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.step-desc { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.65; }

/* ===== INBOX ===== */
.inbox-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 40px;
}
.inbox-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.inbox-features { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.inbox-feature { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--fg-muted); }

/* Inbox window mockup */
.inbox-window {
  background: var(--bg-window);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.inbox-titlebar {
  background: rgba(255,255,255,0.04);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.inbox-dots { display: flex; gap: 6px; }
.inbox-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-dim); }
.inbox-dots span:nth-child(1) { background: #FF5F57; }
.inbox-dots span:nth-child(2) { background: #FFBD2E; }
.inbox-dots span:nth-child(3) { background: #28C840; }
.inbox-title { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--fg-muted); }
.inbox-body { padding: 16px; }
.inbox-header-row {
  display: grid;
  grid-template-columns: 100px 1fr 140px 80px 90px;
  padding: 6px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.inbox-row {
  display: grid;
  grid-template-columns: 100px 1fr 140px 80px 90px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  align-items: center;
  margin-bottom: 4px;
}
.inbox-row:hover { background: rgba(255,255,255,0.03); }
.inbox-row-urgent { background: rgba(245,158,11,0.05); border: 1px solid rgba(245,158,11,0.15); }
.inbox-row-fcx { border-left: 2px solid var(--accent); }
.col-ref { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 0.78rem; }
.row-id { color: var(--fg-dim); font-size: 0.72rem; margin-left: 4px; }
.col-shipper { color: var(--fg-muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-vessel { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--fg-muted); }
.doc-count { display: flex; align-items: center; gap: 3px; }
.doc-dot { width: 7px; height: 7px; border-radius: 50%; }
.doc-ok { background: var(--status-approved); }
.doc-missing { background: var(--fg-dim); }
.doc-pending { background: var(--status-review); }
.doc-total { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--fg-dim); margin-left: 4px; }
.col-status { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; font-weight: 600; }
.status-review { color: var(--status-review); }
.status-approved { color: var(--status-approved); }
.status-pending { color: var(--status-pending); }

/* ===== INTEGRATIONS ===== */
.integrations {
  padding: 100px 40px;
}
.integrations-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.integrations-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 24px;
}
.integrations .section-headline { margin-bottom: 16px; }
.integrations .section-sub { margin: 0 auto 56px; }
.tms-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; margin: 0 auto; }
.tms-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
}
.tms-logo { flex-shrink: 0; }
.tms-name { font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.tms-desc { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.6; }
.integrations-note { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--fg-dim); margin-top: 24px; }

/* ===== AI LEARNINGS ===== */
.ai-learnings {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 40px;
}
.ai-learnings-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.learning-examples { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.learning-ex {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
}
.learning-tag { color: var(--fg-muted); background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 4px; }
.learning-arrow { color: var(--accent); }
.learning-result { color: var(--accent); font-weight: 600; }
.learning-note { font-size: 0.8rem; color: var(--fg-dim); margin-top: 16px; }

/* Learning card mockup */
.learning-card {
  background: var(--bg-window);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.learning-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.learning-card-title { font-size: 0.82rem; font-weight: 600; }
.learning-card-count { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--fg-dim); }
.learning-card-body { padding: 20px; }
.learning-field, .learning-rule { display: flex; gap: 12px; margin-bottom: 16px; }
.lf-label, .lr-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-dim); padding-top: 2px; width: 50px; flex-shrink: 0; }
.lf-value, .lr-pattern { font-size: 0.85rem; color: var(--fg-muted); }
.lr-pattern { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--fg); }
.learning-action { display: flex; gap: 10px; }
.btn-activate {
  background: var(--accent);
  color: #0B1423;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-dismiss {
  background: transparent;
  color: var(--fg-dim);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.82rem;
  cursor: pointer;
}

/* ===== CLOSING ===== */
.closing {
  padding: 120px 40px;
}
.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 28px;
}
.closing-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.closing-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 0.9rem; }
.footer-tagline { font-size: 0.8rem; color: var(--fg-dim); }
.footer-links a { color: var(--fg-muted); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--fg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .inbox-inner { grid-template-columns: 1fr; }
  .ai-learnings-inner { grid-template-columns: 1fr; }
  .tms-cards { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .step:nth-child(odd) { border-right: none; }
  .inbox-header-row, .inbox-row { grid-template-columns: 80px 1fr 80px 80px; }
  .col-vessel { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 80px 20px 60px; }
  .stats { padding: 40px 20px; }
  .how-it-works, .inbox-section, .integrations, .ai-learnings, .closing { padding: 60px 20px; }
  .footer { padding: 24px 20px; }
  .stats-inner { grid-template-columns: 1fr; }
  .hero-comparison { flex-wrap: wrap; gap: 12px; }
}
