/* ============================
   TRADEWING — BASE
   ============================ */
:root {
  --bg: #050a12;
  --surface: #0b1420;
  --surface-2: #111d2e;
  --border: #1a2d44;
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.12);
  --amber-glow: rgba(245, 158, 11, 0.06);
  --text: #e2eaf4;
  --text-muted: #7a95b3;
  --text-dim: #4a6580;
  --ok: #22c55e;
  --warn: #f59e0b;
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

/* ============================
   NAV
   ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================
   HERO
   ============================ */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.hero-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 44ch;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero visual */
.hero-visual {
  position: relative;
}
.ops-grid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  overflow: hidden;
}
.ops-row {
  display: grid;
  grid-template-columns: 1.8fr 1.5fr 1.2fr 0.8fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.ops-row:last-child { border-bottom: none; }
.ops-row--header {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.ops-row--footer {
  font-size: 0.65rem;
  color: var(--text-dim);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  border-bottom: none;
}
.crew-name { color: var(--text); font-weight: 600; }
.trip-id { color: var(--text-muted); font-size: 0.72rem; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  width: fit-content;
}
.badge--ok { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.badge--pending { background: var(--amber-dim); color: var(--amber); }
.badge--warn { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: block;
}
.status-dot--live { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.status-dot--active { background: var(--amber); box-shadow: 0 0 6px var(--amber); animation: pulse 1.5s ease-in-out infinite; }
.status-dot--warn { background: #fbbf24; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.system-status {
  color: var(--ok);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

/* Runway lines */
.runway-lines {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  right: -2rem;
  height: 4px;
  overflow: hidden;
}
.runway-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.3;
  width: 60%;
}
.runway-line--1 { top: 0; left: 0; }
.runway-line--2 { top: 8px; left: 10%; width: 40%; }
.runway-line--3 { top: 16px; left: 5%; width: 50%; }

/* ============================
   SECTION LABEL
   ============================ */
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

/* ============================
   PROBLEM
   ============================ */
.problem {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.problem-header {
  margin-bottom: 4rem;
  max-width: 56ch;
}
.problem-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 4rem;
}
.problem-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
}
.problem-icon {
  width: 40px; height: 40px;
  background: var(--amber-dim);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
}
.problem-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.problem-quote {
  border-left: 2px solid var(--amber);
  padding-left: 2rem;
  max-width: 60ch;
}
.problem-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-style: italic;
}
.problem-quote cite {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: normal;
}

/* ============================
   FEATURES
   ============================ */
.features {
  border-top: 1px solid var(--border);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.features-headline {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  max-width: 52ch;
  margin-bottom: 3.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.feature-card--large {
  grid-column: span 2;
}
.feature-icon {
  width: 52px; height: 52px;
  background: var(--amber-dim);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-display);
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--amber-glow);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.15);
  width: fit-content;
  margin-top: 0.5rem;
}

/* ============================
   HOW IT WORKS
   ============================ */
.howitworks {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.howitworks-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.howitworks-headline {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  max-width: 52ch;
  margin-bottom: 4rem;
}
.steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.step {
  flex: 1;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.step-connector {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--amber));
}
.step-number {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
}
.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================
   MANIFESTO
   ============================ */
.manifesto {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.manifesto-quote {
  border: none;
  padding: 0;
  max-width: none;
}
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.manifesto-bold {
  font-weight: 700;
  color: var(--text);
}

/* ============================
   CLOSING
   ============================ */
.closing {
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2rem;
}
.closing h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  max-width: 44ch;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.closing > .closing-inner > p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 50ch;
  margin-bottom: 3rem;
}
.closing-statement {
  border-left: 2px solid var(--amber);
  padding-left: 2rem;
  max-width: 56ch;
}
.closing-statement p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.closing-statement p:last-child { margin-bottom: 0; }

/* ============================
   FOOTER
   ============================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-legal {
  font-size: 0.72rem;
  color: var(--text-dim);
  max-width: 56ch;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 4rem;
  }
  .hero-visual { order: -1; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }
  .steps { flex-direction: column; }
  .step-connector { width: 100%; height: 24px; }
  .step-connector::after { width: 60px; height: 1px; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .problem-inner,
  .features-inner,
  .howitworks-inner,
  .manifesto-inner,
  .closing-inner { padding: 4rem 1.25rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .nav-tagline { display: none; }
}