/* ═══════════════════════════════════════════════════════════════
   KOTMETEO Landing — Premium 3D v2
   Visual-only. No weather logic.
═══════════════════════════════════════════════════════════════ */

/* ── Design tokens ───────────────────────────────────────────── */
:root {
  --bg:             #eaf5fb;
  --bg-soft:        #f4fbfe;
  --surface:        rgba(255,255,255,0.78);
  --surface-strong: rgba(255,255,255,0.96);
  --text:           #0b2030;
  --text-soft:      #3a6e88;
  --border:         rgba(0,152,200,0.18);
  --border-hi:      rgba(0,200,255,0.32);
  --shadow:         0 20px 60px rgba(5,50,90,0.12), 0 4px 16px rgba(0,0,0,0.06);
  --accent:         #00b8d9;
  --accent-strong:  #0090b2;
  --accent2:        #5a2ff0;
  --accent-soft:    rgba(0,184,217,0.14);
  --focus:          0 0 0 3px rgba(0,184,217,0.30);
  --glow-a:         rgba(0,160,220,0.16);
  --glow-b:         rgba(50,80,200,0.12);
  --globe-hi:       rgba(0,160,230,0.72);
  --globe-deep:     rgba(0,30,90,0.96);
  --globe-glow:     rgba(0,190,255,0.28);
  --orbit-col:      rgba(0,185,255,0.24);
  --dot-col:        #00b8d9;
  --chip-bg:        rgba(255,255,255,0.90);
  --chip-border:    rgba(0,185,255,0.22);
  --chip-shadow:    0 8px 28px rgba(0,120,180,0.18);
  --stat-col:       #0090b2;
  --grad-a:         #0090b2;
  --grad-b:         #00d4ff;
  --grad-c:         #6b3fff;
  --model-tag-bg:   rgba(0,184,217,0.10);
  --model-tag-bd:   rgba(0,184,217,0.22);
  --scan-col:       rgba(0,184,217,0.05);
  --rim-col:        rgba(0,190,255,0.22);
}

body.dark-theme {
  --bg:             #020b18;
  --bg-soft:        #030f20;
  --surface:        rgba(6,20,46,0.68);
  --surface-strong: rgba(2,12,30,0.96);
  --text:           #dff3ff;
  --text-soft:      #5a9ebc;
  --border:         rgba(0,200,255,0.10);
  --border-hi:      rgba(0,225,255,0.34);
  --shadow:         0 28px 80px rgba(0,0,0,0.72), 0 6px 24px rgba(0,0,0,0.44);
  --accent:         #00d4ff;
  --accent-strong:  #00a8cc;
  --accent2:        #7b4fff;
  --accent-soft:    rgba(0,212,255,0.12);
  --focus:          0 0 0 3px rgba(0,212,255,0.36);
  --glow-a:         rgba(0,170,255,0.16);
  --glow-b:         rgba(90,50,255,0.15);
  --globe-hi:       rgba(0,155,240,0.70);
  --globe-deep:     rgba(1,10,38,0.98);
  --globe-glow:     rgba(0,210,255,0.24);
  --orbit-col:      rgba(0,215,255,0.22);
  --dot-col:        #00d4ff;
  --chip-bg:        rgba(4,18,42,0.88);
  --chip-border:    rgba(0,215,255,0.20);
  --chip-shadow:    0 8px 36px rgba(0,130,255,0.20);
  --stat-col:       #00d4ff;
  --grad-a:         #00d4ff;
  --grad-b:         #7b4fff;
  --grad-c:         #a78bfa;
  --model-tag-bg:   rgba(0,212,255,0.08);
  --model-tag-bd:   rgba(0,212,255,0.20);
  --scan-col:       rgba(0,212,255,0.038);
  --rim-col:        rgba(0,210,255,0.40);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  scroll-behavior: smooth;
  font-size: 103%;
}
@media (min-width: 1024px) {
  html { font-size: 108%; }
}
body {
  font-family: "Segoe UI","Inter","Helvetica Neue",Arial,sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, 92vw); margin: 0 auto; }

/* ── Fixed canvases ──────────────────────────────────────────── */
#stars-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.dark-theme #stars-canvas { opacity: 1; }

/* ── Background layer ────────────────────────────────────────── */
.landing-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(100px);
  mix-blend-mode: screen;
  opacity: 0.65;
}
.bg-blob-a {
  width: 800px; height: 800px;
  top: -250px; left: -250px;
  background: var(--glow-a);
  animation: blob-a 20s ease-in-out infinite;
}
.bg-blob-b {
  width: 700px; height: 700px;
  top: 40px; right: -220px;
  background: var(--glow-b);
  animation: blob-b 26s ease-in-out infinite;
}
.bg-blob-c {
  width: 600px; height: 600px;
  bottom: 5%; left: 25%;
  background: rgba(80,40,220,0.08);
  animation: blob-a 32s ease-in-out infinite reverse;
}
@keyframes blob-a {
  0%,100% { transform: translate(0,0) scale(1); }
  35%      { transform: translate(50px,-40px) scale(1.08); }
  70%      { transform: translate(-30px,50px) scale(0.94); }
}
@keyframes blob-b {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(-60px,30px) scale(1.10); }
  75%      { transform: translate(40px,-50px) scale(0.92); }
}

/* Dot grid */
.bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(110,190,255,0.20) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.15;
}
body:not(.dark-theme) .bg-grid {
  background-image: radial-gradient(circle, rgba(0,90,150,0.14) 1px, transparent 1px);
  opacity: 0.11;
}
/* Horizontal scan lines */
.bg-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, var(--scan-col) 4px);
  pointer-events: none;
}

/* ── Site header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
}
.nav-row {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 14px; min-height: 70px;
}
.brand {
  display: inline-flex; align-items: center;
  gap: 10px; font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-strong); font-size: 1rem;
}
.brand img, .brand > svg {
  width: auto;
  height: 78px;
  max-width: min(68vw, 320px);
  object-fit: contain;
  flex-shrink: 0;
}
.brand span {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  white-space: nowrap;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn, .theme-toggle {
  border-radius: 999px; border: 1px solid transparent;
  padding: 10px 20px; font-weight: 600; font-size: 0.91rem;
  cursor: pointer; letter-spacing: 0.025em;
  white-space: nowrap;
  text-wrap: nowrap;
  position: relative; overflow: hidden; z-index: 1;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
              border-color 0.22s ease, background 0.22s ease;
}
.btn:focus-visible, .theme-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:hover, .theme-toggle:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(130deg, var(--accent-strong), var(--accent) 55%, #00eeff);
  color: #fff;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 44%, transparent);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(130deg, transparent 25%, rgba(255,255,255,0.15));
  border-radius: inherit; opacity: 0; transition: opacity 0.22s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 55%, transparent),
              0 14px 40px color-mix(in srgb, var(--accent) 32%, transparent);
}
.btn-ghost, .theme-toggle {
  border-color: var(--border); color: var(--text);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}
.btn-ghost:hover, .theme-toggle:hover {
  border-color: var(--border-hi);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
  color: var(--accent);
}

/* ── Eyebrow ─────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.67rem;
  color: var(--accent-strong); font-weight: 700;
}
.eyebrow-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.6); }
}

/* ── Gradient text ───────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(118deg, var(--grad-a), var(--grad-b) 48%, var(--grad-c));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero ────────────────────────────────────────────────────── */
.section { padding: clamp(3rem, 5.5vw, 5.5rem) 0; }
.hero {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  position: relative;
  min-height: calc(92vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Perspective grid horizon — drawn by canvas */
#hero-grid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s;
}
body.dark-theme #hero-grid { opacity: 1; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-text { position: relative; z-index: 3; }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: 1.04; letter-spacing: -0.028em; font-weight: 900;
}
.hero-copy {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  max-width: 50ch; line-height: 1.72;
}
.hero-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Hero stats ──────────────────────────────────────────────── */
.hero-stats {
  margin-top: 40px;
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-num {
  font-size: 1.75rem; font-weight: 900;
  letter-spacing: -0.04em; color: var(--stat-col); line-height: 1;
}
.stat-label {
  font-size: 0.67rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-soft); font-weight: 600;
}

/* ── Globe scene ─────────────────────────────────────────────── */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative; z-index: 3;
  padding: 50px 20px;
}

.globe-scene {
  position: relative;
  width: 400px; height: 400px;
  flex-shrink: 0;
}

/* Canvas globe — fills scene, draws sphere + radar + grid */
#globeCanvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  z-index: 2;
  border-radius: 50%;
}

/* CSS atmosphere rings (outside the sphere) */
.globe-atmo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.globe-atmo-1 {
  inset: -8px;
  background: radial-gradient(ellipse at center,
    transparent 55%,
    color-mix(in srgb, var(--accent) 28%, transparent) 80%,
    transparent 100%
  );
  animation: atmo-pulse 4.5s ease-in-out infinite;
}
.globe-atmo-2 {
  inset: -24px;
  background: radial-gradient(ellipse at center,
    transparent 60%,
    color-mix(in srgb, var(--accent) 12%, transparent) 82%,
    transparent 100%
  );
  animation: atmo-pulse 6.5s ease-in-out infinite 1s;
}
.globe-atmo-3 {
  inset: -48px;
  background: radial-gradient(ellipse at center,
    transparent 68%,
    color-mix(in srgb, var(--accent2) 8%, transparent) 84%,
    transparent 100%
  );
  animation: atmo-pulse 9s ease-in-out infinite 2s;
}
@keyframes atmo-pulse {
  0%,100% { opacity: 0.8; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(1.04); }
}

/* ── Orbital rings ───────────────────────────────────────────── */
.orbit {
  position: absolute;
  border-radius: 50%;
  transform-origin: center;
  pointer-events: none;
  z-index: 5;
}
.orbit::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid var(--orbit-col);
  box-shadow: 0 0 10px color-mix(in srgb, var(--dot-col) 18%, transparent),
              inset 0 0 10px color-mix(in srgb, var(--dot-col) 8%, transparent);
}
/* Trailing gradient on ring */
.orbit::after {
  content: ''; position: absolute;
  top: calc(50% - 5px); left: calc(50% - 5px);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--dot-col);
  box-shadow: 0 0 14px var(--dot-col), 0 0 28px color-mix(in srgb, var(--dot-col) 55%, transparent),
              0 0 50px color-mix(in srgb, var(--dot-col) 25%, transparent);
}

/* Orbits sized relative to globe-scene (400px). Sphere radius ≈ 170px, so orbit at +28 = 198px radius → width=396px, inset=2px */
.o1 { inset: 2px; transform: rotateX(74deg) rotateZ(0deg); animation: os1 10s linear infinite; }
.o2 { inset: 2px; transform: rotateX(74deg) rotateZ(68deg); animation: os2 14s linear infinite; --orbit-col: rgba(130,80,255,0.24); --dot-col: #a06fff; }
.o3 { inset: 12px; transform: rotateX(40deg) rotateZ(-38deg); animation: os3 18s linear infinite; }

@keyframes os1 { from{transform:rotateX(74deg) rotateZ(0deg)}   to{transform:rotateX(74deg) rotateZ(360deg)} }
@keyframes os2 { from{transform:rotateX(74deg) rotateZ(68deg)}  to{transform:rotateX(74deg) rotateZ(428deg)} }
@keyframes os3 { from{transform:rotateX(40deg) rotateZ(-38deg)} to{transform:rotateX(40deg) rotateZ(322deg)} }

/* ── Floating data chips ─────────────────────────────────────── */
.data-chip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  box-shadow: var(--chip-shadow);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 0.77rem; font-weight: 600;
  color: var(--text); white-space: nowrap;
  pointer-events: none; z-index: 10;
}
.dc-icon { font-size: 1.05rem; }
.dc-label { color: var(--text-soft); font-weight: 500; }
.dc-val   { color: var(--accent); font-weight: 800; margin-left: 2px; }

.chip-1 { top: 7%;    left: -20%; animation: cfloat-a 6s ease-in-out infinite; }
.chip-2 { bottom: 14%; left: -14%; animation: cfloat-b 7.5s ease-in-out infinite 0.8s; }
.chip-3 { top: 22%;   right: -18%; animation: cfloat-a 8.5s ease-in-out infinite 0.3s; }

@keyframes cfloat-a { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes cfloat-b { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

/* ── Model tag bar ───────────────────────────────────────────── */
.model-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  background: color-mix(in srgb, var(--surface) 45%, transparent);
  backdrop-filter: blur(8px);
}
.model-bar-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.model-bar-label {
  font-size: 0.70rem; text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--text-soft); font-weight: 600; margin-left: auto; opacity: 0.65;
}
.model-tag {
  padding: 4px 13px; border-radius: 999px;
  background: var(--model-tag-bg); border: 1px solid var(--model-tag-bd);
  font-size: 0.70rem; font-weight: 800; letter-spacing: 0.09em;
  color: var(--accent); font-family: "Courier New", monospace;
}

/* ── Section helpers ─────────────────────────────────────────── */
.section-head { margin-bottom: 24px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.022em;
}
.section-copy { color: var(--text-soft); max-width: 62ch; line-height: 1.7; }

/* Desktop-only typography lift for section headers/labels */
@media (min-width: 1024px) {
  .eyebrow {
    font-size: 0.76rem;
    letter-spacing: 0.19em;
  }
  .section-head h2 {
    font-size: clamp(2rem, 2.9vw, 3rem);
  }
  .section-copy {
    font-size: 1.03rem;
  }
}

/* ── Cards ───────────────────────────────────────────────────── */
.card, .hero-panel, .mission-card, .app-frame-wrap, .launch-card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

/* Gradient rim light top edge */
.card::before {
  content: ''; position: absolute;
  top: 0; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--accent) 60%, transparent) 40%,
    color-mix(in srgb, var(--accent2) 60%, transparent) 70%,
    transparent
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card:hover::before { opacity: 0.85; }

/* Bottom inner shadow for depth */
.card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 40%, transparent), transparent);
  pointer-events: none; z-index: 0;
}

/* Shine overlay for mouse tilt */
.card-shine {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  transition: background 0.12s;
}

.card-icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--accent); flex-shrink: 0;
  transition: box-shadow 0.3s, background 0.3s;
  position: relative; z-index: 2;
}
.card:hover .card-icon {
  background: color-mix(in srgb, var(--accent-soft) 180%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 45%, transparent);
}

.card { padding: 1.5rem 1.4rem; }
.card > * { position: relative; z-index: 2; }
.card h3 { margin: 0 0 9px; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.012em; }
.card p  { margin: 0; color: var(--text-soft); font-size: 0.93rem; line-height: 1.68; }

/* 3D tilt */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(.23,1,.32,1), box-shadow 0.4s ease;
}
.tilt-card:hover {
  box-shadow: var(--shadow),
    0 0 0 1px var(--border-hi),
    0 0 50px color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ── Trust / Feature / Process grids ────────────────────────── */
.trust-grid, .feature-grid, .process-grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .trust-grid   { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 980px) {
  /* 6-column base so we can do 3 + centred 2 */
  .feature-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .feature-grid .card:nth-child(1),
  .feature-grid .card:nth-child(2),
  .feature-grid .card:nth-child(3) { grid-column: span 2; }
  /* Bottom row: 2 cards centred (cols 2-3 and 4-5 of 6) */
  .feature-grid .card:nth-child(4) { grid-column: 2 / span 2; }
  .feature-grid .card:nth-child(5) { grid-column: 4 / span 2; }
}

/* ── Larger card text on desktop ─────────────────────────────── */
@media (min-width: 900px) {
  .card h3 { font-size: 1.18rem; }
  .card p  { font-size: 1.00rem; }
}

/* Step badge */
.step {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 12px; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.10em; font-family: "Courier New", monospace;
  color: var(--accent); padding: 4px 11px;
  border: 1px solid var(--border-hi);
  border-radius: 999px; background: var(--accent-soft);
  position: relative; z-index: 2;
}

/* ── Live app / launch card ──────────────────────────────────── */
.live-app .section-head h2,
.live-app .section-head p { max-width: 70ch; }

.launch-card {
  padding: clamp(1.4rem, 2.2vw, 2.1rem);
  border: 1px solid var(--border-hi);
  background:
    radial-gradient(circle at 10% 12%, var(--accent-soft), transparent 42%),
    linear-gradient(155deg,
      color-mix(in srgb, var(--surface) 90%, transparent),
      color-mix(in srgb, var(--surface-strong) 94%, transparent)
    );
  box-shadow: var(--shadow),
    inset 0 0 0 1px color-mix(in srgb, var(--border-hi) 34%, transparent);
}
.launch-card > * { position: relative; z-index: 2; }
/* ambient glow bottom-right */
.launch-card::after {
  content: ''; position: absolute;
  inset: auto -15% -50% auto;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--accent) 30%, transparent),
    transparent 68%
  );
  pointer-events: none; z-index: 1;
}

.launch-card-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px; margin-bottom: 16px;
}
.launch-badge, .launch-route {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.70rem; letter-spacing: 0.09em;
  text-transform: uppercase; border: 1px solid var(--border-hi);
}
.launch-badge { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.launch-route {
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  font-family: "Courier New", monospace;
}
.launch-card h3 { margin: 0 0 9px; font-size: clamp(1.2rem, 2.3vw, 1.6rem); font-weight: 700; }
.launch-card p  { color: var(--text-soft); max-width: 60ch; line-height: 1.7; }
.launch-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Mission ─────────────────────────────────────────────────── */
.mission-card { padding: clamp(1.6rem, 2.6vw, 2.4rem); border-radius: 24px; }
.mission-card h2 {
  margin: 12px 0 18px;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800; letter-spacing: -0.022em;
}
.mission-card p { color: var(--text-soft); max-width: 68ch; line-height: 1.75; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  backdrop-filter: blur(16px);
}
.footer-row {
  min-height: 70px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  flex-wrap: wrap; font-size: 0.87rem; color: var(--text-soft);
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; letter-spacing: 0.04em; color: var(--text-soft);
}
.footer-brand img, .footer-brand svg { width: auto; height: 32px; object-fit: contain; opacity: 0.65; flex-shrink: 0; }
.site-footer nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-footer nav a {
  color: var(--text-soft); border-radius: 999px;
  padding: 5px 10px; border: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s, background 0.2s; font-size: 0.85rem;
}
.site-footer nav a:hover {
  border-color: var(--border); color: var(--text); background: var(--accent-soft);
}
.site-footer nav a[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* ── Reveal ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(.23,1,.32,1),
              transform 0.8s cubic-bezier(.23,1,.32,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-row { min-height: 62px; }
  .brand span { font-size: 0.98rem; }
  .brand img, .brand > svg {
    width: auto;
    height: 58px;
    max-width: min(70vw, 250px);
    object-fit: contain;
    flex-shrink: 0;
  }
  .btn, .theme-toggle { padding: 9px 14px; font-size: 0.87rem; }
  .nav-actions { gap: 7px; }
  .globe-scene { width: 300px; height: 300px; }
  .chip-1 { left: -6%; }
  .chip-2 { left: -6%; }
  .chip-3 { right: -6%; }
  .hero-stats { gap: 22px; }
  .model-bar-label { display: none; }
  .launch-actions { flex-direction: column; align-items: stretch; }
}

/* ── Phone landscape (short viewport, rotated) ───────────────── */
@media (orientation: landscape) and (max-height: 520px) {
  /* Kill the tall hero — let content flow naturally */
  .hero {
    min-height: auto;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }
  /* Always use two-column layout for hero in landscape */
  .hero-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px;
    align-items: center;
  }
  /* Shrink the globe to fit the short viewport */
  .globe-scene { width: 220px; height: 220px; }
  /* Chips would overflow the tiny space */
  .data-chip { display: none; }
  /* Tighter heading */
  .hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 10px; }
  .hero-copy { font-size: 0.9rem; }
  /* Stats row takes too much vertical space — compress it */
  .hero-stats { margin-top: 14px; gap: 18px; }
  .stat-num   { font-size: 1.2rem; }
  /* Perspective grid canvas is too prominent in short space */
  #hero-grid  { display: none; }
  /* Navigation */
  .nav-row { min-height: 56px; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .theme-toggle, .reveal, .tilt-card,
  .eyebrow-dot, .orbit, .bg-blob, .globe-atmo, .data-chip {
    animation: none !important; transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
