/* ═══════════ KIRA VISION — INVESTOR PITCH ═══════════ */
/* Design System: Dark Engineering (DESIGN.md)           */

:root {
  /* Colors */
  --bg-deep: #0B1121;
  --bg-surface: #131C2E;
  --bg-elevated: #1C2640;
  --border-subtle: rgba(255, 255, 255, 0.08); /* Liquid glass border */
  --border-medium: rgba(255, 255, 255, 0.15);
  --accent: #34D399; /* Emerald */
  --accent-glow: rgba(52, 211, 153, 0.15);
  --accent-blue: #60A5FA;
  --accent-amber: #FBBF24;
  --accent-red: #F87171;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  /* Typography - taste-skill */
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
  
  /* Radii */
  --radius-xl: 2rem;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;

  /* Spacing */
  --container-max: 1400px;
}

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

html { scroll-behavior: smooth; }

body {
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.025em; }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-deep);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mix-blend-mode: screen;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-deep) 0%, rgba(11, 17, 33, 0.4) 60%, transparent 100%),
              linear-gradient(to bottom, transparent 70%, var(--bg-deep) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.container {
  width: min(var(--container-max), calc(100% - 48px));
  margin: 0 auto;
}

.hero-container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 680px;
  text-align: left;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  line-height: 1.05;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.bento-card {
  background: rgba(19, 28, 46, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px -15px rgba(0, 0, 0, 0.3);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: translateY(-4px);
}

.hero-stat .mono {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.scroll-cta {
  display: inline-block;
  margin-top: 56px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.scroll-cta:hover { color: var(--text-primary); }

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(11, 17, 33, 0.4) 0%, var(--bg-deep) 100%);
  }
}

/* ═══════════ SECTIONS ═══════════ */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-dark {
  background: rgba(19, 28, 46, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 48px;
}

/* ═══════════ PROBLEM CARDS (BENTO) ═══════════ */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 900px) {
  .problem-grid {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
  }
  .problem-card:nth-child(1) {
    grid-column: 1 / -1;
  }
}

.problem-card {
  background: rgba(19, 28, 46, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px -15px rgba(0, 0, 0, 0.3);
  padding: 36px 32px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.problem-card:hover {
  border-color: rgba(248, 113, 113, 0.3); /* subtle red for problem */
  transform: translateY(-4px);
}

.problem-icon { font-size: 2.5rem; margin-bottom: 20px; filter: grayscale(50%); }
.problem-card h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 600; letter-spacing: -0.01em; }
.problem-card p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

/* ═══════════ PIPELINE STEPS ═══════════ */
.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
  max-width: 800px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: rgba(19, 28, 46, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateX(8px);
  background: rgba(19, 28, 46, 0.4);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.8;
  min-width: 50px;
  text-align: right;
  line-height: 1.2;
}

.step-content h3 { font-size: 1.25rem; margin-bottom: 10px; font-weight: 600; }
.step-content p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

/* ═══════════ FLIGHT LAB (INTEGRATED) ═══════════ */
.lab-assumptions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lab-chip {
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 140px;
}

.lab-chip strong { display: block; font-size: 1rem; color: var(--text-primary); }
.lab-chip span { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--text-muted); }

.lab-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lab-btn-primary {
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent), #2dd4bf);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.lab-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(52, 211, 153, 0.3); }
.lab-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.lab-btn-secondary {
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  background: var(--bg-surface);
  transition: border-color 0.2s;
}

.lab-btn-secondary:hover { border-color: var(--accent); color: var(--text-primary); }
.lab-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.lab-speed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.lab-speed input[type="range"] { width: 140px; accent-color: var(--accent); }
.lab-speed strong { color: var(--accent); font-family: var(--font-mono); }

.lab-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 1024px) {
  .lab-panels {
    grid-template-columns: 1fr 1fr;
  }
}

.lab-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(19, 28, 46, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.lab-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 28px 16px;
}

.lab-panel-head h3 { font-size: 1.05rem; margin-bottom: 4px; }
.lab-panel-head p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

.lab-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.lab-badge-good { background: var(--accent-glow); color: var(--accent); }
.lab-badge-ref { background: rgba(251, 191, 36, 0.1); color: var(--accent-amber); }

.lab-viewport {
  aspect-ratio: 1.17;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(19,28,46,0.6), rgba(11,17,33,0.8));
}

.lab-viewport svg { width: 100%; height: 100%; display: block; }

.lab-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 12px 14px 16px;
}

.lab-stat {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.lab-stat .lab-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lab-stat .lab-stat-value {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lab-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.lab-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lab-swatch {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.lab-summary {
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(52,211,153,0.05), rgba(96,165,250,0.03));
  border: 1px solid rgba(52,211,153,0.15);
}

.lab-summary h4 { font-size: 1rem; color: var(--accent); margin-bottom: 8px; }
.lab-summary p { color: var(--text-secondary); font-size: 0.92rem; }

@media (max-width: 900px) {
  .lab-panels { grid-template-columns: 1fr; }
  .lab-assumptions { flex-direction: column; }
}

.caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

/* ═══════════ ANALYSIS CHAIN (BENTO) ═══════════ */
.chain {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 900px) {
  .chain {
    grid-template-columns: repeat(3, 1fr);
  }
}

.chain-node {
  background: rgba(19, 28, 46, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px -15px rgba(0, 0, 0, 0.3);
  padding: 36px 32px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.chain-node:hover { border-color: var(--accent); }

.chain-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.chain-node h3 { font-size: 1.05rem; margin-bottom: 8px; }
.chain-node p { color: var(--text-secondary); font-size: 0.88rem; }

.chain-tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.chain-arrow {
  display: none; /* Removed the arrows for a cleaner Bento grid look */
}

/* ═══════════ VISUAL EVIDENCE ═══════════ */
.compare-block {
  margin-bottom: 64px;
}

.compare-title {
  font-size: 1.1rem;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.bad-label { background: rgba(248, 113, 113, 0.05); color: var(--accent-red); border: 1px solid rgba(248, 113, 113, 0.15); }
.good-label { background: rgba(52, 211, 153, 0.05); color: var(--accent); border: 1px solid rgba(52, 211, 153, 0.15); }

.compare-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .compare-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: rgba(19, 28, 46, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.compare-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.compare-item:hover img { transform: scale(1.05); }

.img-label {
  display: block;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.report-showcase {
  background: rgba(19, 28, 46, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px -15px rgba(0, 0, 0, 0.3);
  padding: 48px;
  text-align: center;
  margin-top: 64px;
}

.report-showcase h3 { font-size: 1.4rem; margin-bottom: 32px; font-weight: 600; letter-spacing: -0.01em; }
.report-showcase img {
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius);
  border: 1px solid var(--border-medium);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ═══════════ UX FLOW ═══════════ */
.ux-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 48px 0 40px;
}

@media (min-width: 768px) {
  .ux-flow {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ux-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: rgba(19, 28, 46, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: transform 0.3s;
}

.ux-step:hover { border-color: var(--accent); }

.ux-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
}

.ux-step p { color: var(--text-secondary); font-size: 0.9rem; }

.insight-box {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.04), rgba(96, 165, 250, 0.02));
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.insight-box h4 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.insight-box p { color: var(--text-secondary); font-size: 0.95rem; }

/* ═══════════ TABLES ═══════════ */
.hw-table {
  overflow-x: auto;
  margin-top: 40px;
}

.hw-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hw-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-medium);
}

.hw-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.hw-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.hw-table .highlight { color: var(--accent); font-weight: 600; }

/* ═══════════ FOOTER ═══════════ */
.footer {
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.footer-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.footer-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ═══════════ REVEAL ANIMATION ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .chain { grid-template-columns: 1fr; gap: 16px; }
  .chain-arrow { flex-direction: row; min-height: auto; padding: 8px 0; }
  .chain-arrow::before { width: 2px; height: 30px; margin: 0 8px 0 0; }
  .compare-pair { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; align-items: center; }
  .ux-flow { flex-direction: column; }
  .section { padding: 64px 0; }
  
  /* Flight Lab mobile spacing */
  .lab-speed {
    width: 100%;
    justify-content: space-between;
    margin-top: 12px;
  }
}
