/* ─── Variables ─── */
:root {
  --bg: #060a0f;
  --bg-card: #0c1118;
  --bg-card-hover: #111722;
  --fg: #e8e2d8;
  --fg-muted: #8a9ab0;
  --accent-amber: #e8a94b;
  --accent-teal: #4a9e8a;
  --accent-blue: #7b9ece;
  --border: rgba(232, 169, 75, 0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ─── Reset & Base ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(6,10,15,0.9) 0%, transparent 100%);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
}

/* ─── Section Commons ─── */
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-amber);
  font-weight: 500;
  margin-bottom: 16px;
}
.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--fg);
  max-width: 640px;
}
.section-body {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.75;
  margin-top: 16px;
}
.section-body em { color: var(--fg); font-style: normal; }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 48px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.star-field {
  position: absolute;
  inset: 0;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.4;
}
.s1 { width: 1.5px; height: 1.5px; top: 18%; left: 12%; opacity: 0.6; }
.s2 { width: 1px; height: 1px; top: 30%; left: 78%; opacity: 0.5; }
.s3 { width: 2px; height: 2px; top: 55%; left: 88%; opacity: 0.7; }
.s4 { width: 1px; height: 1px; top: 70%; left: 5%; opacity: 0.4; }
.s5 { width: 1.5px; height: 1.5px; top: 15%; left: 65%; opacity: 0.6; }
.s6 { width: 1px; height: 1px; top: 85%; left: 42%; opacity: 0.5; }
.s7 { width: 1px; height: 1px; top: 42%; left: 20%; opacity: 0.4; }
.s8 { width: 2px; height: 2px; top: 62%; left: 55%; opacity: 0.7; }
.s9 { width: 1px; height: 1px; top: 8%; left: 40%; opacity: 0.3; }
.s10 { width: 1px; height: 1px; top: 38%; left: 92%; opacity: 0.4; }
.s11 { width: 1.5px; height: 1.5px; top: 92%; left: 70%; opacity: 0.5; }
.s12 { width: 1px; height: 1px; top: 5%; left: 25%; opacity: 0.6; }

.orbit-ring {
  position: absolute;
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(232,169,75,0.08);
}
.ring2 { width: 420px; height: 420px; border-color: rgba(123,158,206,0.06); }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-amber);
  border: 1px solid rgba(232,169,75,0.3);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.hero-headline {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 48px;
}
.hero-stat-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-amber);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--fg-muted); letter-spacing: 0.02em; }

/* ─── Adaptive System ─── */
.adaptivesystem {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #080c14 100%);
}
.adaptivesystem .section-body { margin-bottom: 56px; }
.tale-streams {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tale-stream {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.3s;
}
.tale-stream:hover { border-color: rgba(232,169,75,0.3); }
.stream-icon { margin-bottom: 20px; }
.stream-icon svg { width: 48px; height: 48px; }
.stream-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}
.stream-sublabel {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.stream-desc { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.65; }
.stream-desc em { color: var(--fg); font-style: normal; }
.stream-accuracy .stream-label { color: var(--accent-teal); }
.stream-latency .stream-label { color: var(--accent-amber); }
.stream-motor .stream-label { color: var(--accent-blue); }

/* ─── Mission Protocol ─── */
.missionprotocol { padding: 100px 0; }
.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.mission-specs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.mission-spec { display: flex; align-items: baseline; gap: 16px; }
.spec-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-amber);
  min-width: 60px;
}
.spec-label { font-size: 0.95rem; color: var(--fg-muted); }
.mission-visual { display: flex; justify-content: center; align-items: center; }
.station-hub { text-align: center; }
.hub-core svg { width: 280px; height: 280px; }
.hub-label { margin-top: 20px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }

/* ─── Circuit Breaker ─── */
.circuitbreaker {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: #090d15;
}
.circuitbreaker::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(232,169,75,0.04) 0%, transparent 70%);
}
.cb-bg-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(232,169,75,0.04) 1px, transparent 0);
  background-size: 48px 48px;
}
.cb-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.cb-icon { flex-shrink: 0; padding-top: 4px; }
.cb-content { max-width: 680px; }
.circuitbreaker .section-heading { color: var(--fg); }

/* ─── Parent Dashboard ─── */
.parentdashboard {
  padding: 100px 0;
  background: linear-gradient(180deg, #090d15 0%, var(--bg) 100%);
}
.pd-content { margin-bottom: 56px; }
.pd-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 24px 20px;
}
.metric-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.metric-academic .metric-label { color: var(--accent-teal); }
.metric-executive .metric-label { color: var(--accent-amber); }
.metric-frustration .metric-label { color: var(--accent-blue); }
.metric-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}
.metric-bar {
  height: 100%;
  border-radius: 2px;
  width: var(--fill, 50%);
  background: var(--accent-teal);
}
.metric-academic .metric-bar { background: var(--accent-teal); }
.metric-executive .metric-bar { background: var(--accent-amber); }
.metric-frustration .metric-bar { background: var(--accent-blue); }
.metric-score {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
}
.metric-detail { font-size: 0.78rem; color: var(--fg-muted); }
.pd-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--accent-teal);
}

/* ─── Philosophy ─── */
.philosophy { padding: 80px 0 100px; }
.philosophy-inner { text-align: center; max-width: 740px; margin: 0 auto; }
.philosophy-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 32px;
}
.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.55;
  margin-bottom: 56px;
}
.philosophy-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.fact { text-align: center; }
.fact-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent-amber);
  line-height: 1;
  margin-bottom: 8px;
}
.fact-text { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.5; }

/* ─── Closing ─── */
.closing {
  padding: 120px 48px;
  background: linear-gradient(180deg, var(--bg) 0%, #0a0e18 100%);
  text-align: center;
}
.closing-inner { max-width: 680px; margin: 0 auto; }
.closing-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.25;
}
.closing-sub { font-size: 1.05rem; color: var(--fg-muted); line-height: 1.7; }

/* ─── Footer ─── */
footer {
  padding: 48px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  flex: 1;
}
.footer-meta {
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .hero-headline { font-size: 2.2rem; }
  .hero-stat-row { gap: 28px; }
  .section-inner { padding: 0 24px; }
  .adaptivesystem, .missionprotocol, .circuitbreaker, .parentdashboard, .philosophy { padding: 72px 0; }
  .tale-streams, .pd-metrics, .philosophy-facts { grid-template-columns: 1fr; gap: 16px; }
  .mission-inner { grid-template-columns: 1fr; gap: 40px; }
  .mission-visual { order: -1; }
  .hub-core svg { width: 200px; height: 200px; }
  .cb-inner { flex-direction: column; gap: 20px; }
  .closing { padding: 80px 24px; }
  footer { padding: 32px 24px; }
  .footer-inner { gap: 12px; }
  .footer-tagline { display: none; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .stat-num { font-size: 1.8rem; }
}
