/* ========================
   CHIEFPILOT — THEME CSS
   ======================== */

:root {
  --bg: #0c0c0e;
  --surface: #141418;
  --surface-2: #1c1c22;
  --border: rgba(255,255,255,0.07);
  --fg: #f0f0f0;
  --fg-muted: rgba(240,240,240,0.5);
  --fg-subtle: rgba(240,240,240,0.3);
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.15);
  --teal: #14b8a6;
  --teal-dim: rgba(20,184,166,0.12);
}

/* ——— RESET & BASE ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.15; }
a { color: var(--amber); text-decoration: none; }

/* ——— NAVIGATION ——— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(12,12,14,0.85);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ——— SECTION SHARED ——— */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 16px;
  font-weight: 600;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin-bottom: 56px;
  max-width: 540px;
}

/* ——— HERO ——— */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; top: 50%;
  transform: translate(-50%, -60%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--fg-muted);
  margin-bottom: 28px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  width: fit-content;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.title-accent {
  color: var(--amber);
  position: relative;
}
.title-accent::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 3px; background: var(--amber);
  opacity: 0.4;
  border-radius: 2px;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 460px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.hero-stats {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: fit-content;
  background: var(--surface);
}
.stat {
  padding: 20px 32px;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem; font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.stat-unit {
  font-size: 1rem;
  color: var(--amber);
  margin-left: 2px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 2px;
}
.stat-divider {
  width: 1px; height: 48px;
  background: var(--border);
}

/* ——— ORBITAL VISUAL ——— */
.hero-right { display: flex; justify-content: center; align-items: center; }
.orbital-container {
  position: relative;
  width: 360px; height: 360px;
  display: flex; align-items: center; justify-content: center;
}
.orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.12);
  animation: spin-slow linear infinite;
}
.ring-1 { width: 200px; height: 200px; animation-duration: 20s; }
.ring-2 { width: 280px; height: 280px; animation-duration: 35s; animation-direction: reverse; border-color: rgba(20,184,166,0.1); }
.ring-3 { width: 360px; height: 360px; animation-duration: 50s; border-style: dashed; border-color: rgba(240,240,240,0.05); }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.orbital-core {
  position: absolute; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px;
  background: var(--surface-2);
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(245,158,11,0.2), 0 0 80px rgba(245,158,11,0.08);
}
.orbital-task {
  position: absolute;
  z-index: 3;
}
.task-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--fg);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: flex; align-items: center; gap: 6px;
}
.chip-icon { font-size: 0.9rem; }
.t1 { top: 0; left: 50%; transform: translateX(-50%); }
.t2 { top: 50%; right: -10px; transform: translateY(-50%); }
.t3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.t4 { top: 50%; left: -10px; transform: translateY(-50%); }

/* ——— COMMAND BAR ——— */
.hero-command-bar {
  max-width: 1200px; margin: 56px auto 0; width: 100%;
}
.cmd-prompt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  font-size: 1rem;
  color: var(--fg-subtle);
  cursor: text;
  transition: border-color 0.2s;
}
.cmd-prompt:hover { border-color: rgba(245,158,11,0.3); }
.cmd-icon { color: var(--amber); font-size: 1.1rem; }
.cmd-example {
  margin-top: 12px;
  padding-left: 44px;
  font-size: 0.8rem;
  color: var(--fg-subtle);
}

/* ——— PROBLEM SECTION ——— */
.problem { padding: 120px 40px; }
.problem-inner { max-width: 1200px; margin: 0 auto; }
.problem-header { margin-bottom: 64px; }
.problem-header .section-title { max-width: 640px; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.pain-card:hover {
  border-color: rgba(245,158,11,0.2);
  transform: translateY(-2px);
}
.pain-icon { font-size: 1.8rem; margin-bottom: 16px; }
.pain-card h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}
.pain-card p { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.65; }
.problem-callout {
  background: var(--amber-dim);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 12px;
  padding: 32px 40px;
  text-align: center;
}
.problem-callout p {
  font-size: 1.2rem;
  color: var(--fg-muted);
}
.problem-callout strong { color: var(--amber); font-weight: 700; }

/* ——— FEATURES ——— */
.features { padding: 120px 40px; background: var(--bg); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.feature-grid { display: flex; flex-direction: column; gap: 32px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.feature-card--large { min-height: 520px; }
.feature-card:has(.feature-visual--reports) .feature-visual--reports {
  background: linear-gradient(135deg, #0d0d12 0%, #131318 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.report-preview {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%; max-width: 360px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.rp-header {
  background: var(--bg);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.rp-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.rp-dot--red { background: #ef4444; }
.rp-dot--yellow { background: #eab308; }
.rp-dot--green { background: #22c55e; }
.rp-title {
  font-size: 0.75rem; color: var(--fg-muted);
  margin-left: 8px;
}
.rp-body { padding: 20px; }
.rp-section { margin-bottom: 16px; }
.rp-label {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--fg-subtle);
  margin-bottom: 6px;
}
.rp-bar {
  height: 6px; background: var(--border);
  border-radius: 3px; overflow: hidden;
  display: inline-block; width: 70%;
}
.rp-fill {
  height: 100%; background: var(--teal);
  border-radius: 3px;
}
.rp-pct { font-size: 0.8rem; color: var(--teal); font-weight: 600; margin-left: 8px; }
.rp-val { font-size: 0.85rem; color: var(--fg); }
.rp-val--warn { color: #eab308; }
.rp-ac { font-size: 0.78rem; color: var(--fg-muted); margin-top: 4px; line-height: 1.6; }

.feature-visual--ticket {
  background: linear-gradient(135deg, #0d0d12, #131318);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.ticket-preview {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%; max-width: 320px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.tp-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(245,158,11,0.08), transparent);
}
.tp-badge {
  display: inline-block;
  background: rgba(245,158,11,0.2);
  color: var(--amber);
  font-size: 0.65rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.tp-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.tp-meta { font-size: 0.72rem; color: var(--fg-subtle); }
.tp-body { padding: 16px 20px; }
.tp-row {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--fg-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.tp-row:last-child { border-bottom: none; }
.tp-row span:last-child { color: var(--fg); }
.tp-status { color: var(--teal) !important; }
.tp-ac {
  font-size: 0.75rem; color: var(--fg-muted);
  margin-top: 8px; line-height: 1.6;
}

.feature-visual--coordination {
  background: linear-gradient(135deg, #0d0d12, #131318);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.coord-visual {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: 100%; max-width: 280px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.coord-header {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--fg-subtle);
  margin-bottom: 16px;
}
.coord-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.coord-name { font-size: 0.8rem; color: var(--fg); }
.coord-bar {
  height: 6px; background: var(--border);
  border-radius: 3px; overflow: hidden;
}
.coord-fill { height: 100%; background: var(--teal); border-radius: 3px; }
.coord-fill--warn { background: #eab308; }
.coord-val { font-size: 0.72rem; color: var(--teal); }
.coord-val--warn { color: #eab308; }
.coord-alert {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem; color: var(--amber);
  background: var(--amber-dim);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 8px;
}

.feature-text { padding: 48px 48px; display: flex; flex-direction: column; justify-content: center; }
.feature-tag {
  display: inline-block;
  background: var(--teal-dim);
  color: var(--teal);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  width: fit-content; margin-bottom: 16px;
}
.feature-text h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.feature-text p { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.7; margin-bottom: 24px; }
.feature-list { list-style: none; }
.feature-list li {
  font-size: 0.88rem; color: var(--fg-muted);
  padding: 6px 0; padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--amber);
  font-weight: 600;
}

/* ——— HOW IT WORKS ——— */
.how { padding: 120px 40px; border-top: 1px solid var(--border); }
.how-inner { max-width: 1200px; margin: 0 auto; }
.how .section-title { margin-bottom: 72px; }
.step-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.step {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem; font-weight: 800;
  color: var(--amber);
  margin-bottom: 16px;
  line-height: 1;
}
.step-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.6; }
.step-arrow { padding: 0 24px; }

/* ——— MANIFESTO ——— */
.manifesto {
  padding: 120px 40px;
  background: linear-gradient(180deg, var(--bg) 0%, #0f0f12 100%);
}
.manifesto-inner { max-width: 1200px; margin: 0 auto; }
.manifesto-content { max-width: 680px; }
.manifesto-label {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--amber);
  margin-bottom: 32px; font-weight: 600;
}
.manifesto-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 32px;
  line-height: 1.25;
  border-left: 3px solid var(--amber);
  padding-left: 28px;
}
.manifesto-body {
  font-size: 1rem; color: var(--fg-muted);
  line-height: 1.8; margin-bottom: 20px;
}
.manifesto-body--accent {
  color: var(--amber);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

/* ——— FOOTER ——— */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1rem;
}
.footer-tagline { font-size: 0.9rem; color: var(--fg-muted); }
.footer-links {
  font-size: 0.75rem; color: var(--fg-subtle);
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap; justify-content: center;
}
.footer-sep { color: var(--border); }

/* ——— RESPONSIVE ——— */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card .feature-text { padding: 32px; }
  .step-row { grid-template-columns: 1fr; gap: 16px; }
  .step-arrow { display: none; }
  .hero { padding-top: 100px; }
  .hero-stats { flex-wrap: wrap; }
  .stat { padding: 16px; }
  .nav { padding: 0 20px; }
  .hero, .problem, .features, .how, .manifesto, .footer { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .hero-stats { flex-direction: column; }
  .stat-divider { width: 80%; height: 1px; }
  .section-title { font-size: 1.8rem; }
}
