/* ==========================================================================
   NOVA — Near-Orbit Visualization Archive
   /assets/style.css · Cache-Control: public, max-age=31536000, immutable
   ========================================================================== */

:root {
  --bg:          #04050d;
  --bg-card:     #080b18;
  --bg-elevated: #0d1124;
  --bg-code:     #060810;
  --border:      #151d3a;
  --border-lite: #1e2a4a;

  --text:        #d4dff0;
  --text-muted:  #6a7a99;
  --text-dim:    #3a4a6a;

  --cyan:        #00d4ff;
  --cyan-dark:   #009bbf;
  --orange:      #ff6b35;
  --green:       #00e584;
  --yellow:      #ffd600;
  --red:         #ff4560;
  --purple:      #9b59b6;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 4px 32px rgba(0,0,0,.6);
  --glow-cyan: 0 0 40px rgba(0,212,255,.1);
  --glow-green:0 0 20px rgba(0,229,132,.15);

  --font-ui:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
video { max-width: 100%; }
a { color: var(--cyan); }
code {
  font-family: var(--font-mono);
  font-size: .82em;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Simulation banner
   -------------------------------------------------------------------------- */
.sim-banner {
  background: linear-gradient(90deg, #1a0505 0%, #3a0a00 50%, #1a0505 100%);
  background-size: 200% 100%;
  animation: banner-slide 6s linear infinite;
  color: var(--orange);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: 1.2px;
  text-align: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,107,53,.2);
}
@keyframes banner-slide {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(4,5,13,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.logo-icon { font-size: 1.3rem; }
.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--cyan);
  font-family: var(--font-mono);
}
.logo-sub {
  font-size: .72rem;
  color: var(--text-muted);
  display: none;
}
@media (min-width: 700px) { .logo-sub { display: block; } }

.sim-badge {
  background: var(--orange);
  color: #000;
  font-size: .6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

nav { display: flex; gap: 28px; }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}
nav a:hover { color: var(--cyan); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--cyan); color: #000; }
.btn-primary:hover {
  background: var(--cyan-dark);
  box-shadow: 0 4px 20px rgba(0,212,255,.4);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-lite);
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }

.tag {
  display: inline-block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .72rem;
  color: var(--green);
  font-family: var(--font-mono);
  letter-spacing: .5px;
}

/* --------------------------------------------------------------------------
   Hero + starfield
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 88px 0 80px;
  overflow: hidden;
}
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 40%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 75%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 85%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 20%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 70%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 90%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(2px 2px at 30% 20%, rgba(0,212,255,.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 80% 50%, rgba(0,212,255,.2) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.hero h1 {
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.13;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--cyan); }
.hero-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 460px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-image {
  width: 100%;
  border-radius: 50%;
  border: 2px solid rgba(0,212,255,.2);
  box-shadow: var(--shadow), 0 0 80px rgba(0,212,255,.08), 0 0 160px rgba(0,212,255,.04);
}
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; justify-content: center; }
.hbadge {
  font-size: .7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.hbadge-green  { color: var(--green);  border-color: rgba(0,229,132,.3); }
.hbadge-cyan   { color: var(--cyan);   border-color: rgba(0,212,255,.3); }
.hbadge-orange { color: var(--orange); border-color: rgba(255,107,53,.3); }

/* --------------------------------------------------------------------------
   Metrics ticker
   -------------------------------------------------------------------------- */
.metrics-ticker {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric-card {
  text-align: center;
  padding: 22px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.metric-card:hover { border-color: var(--green); }
.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  font-family: var(--font-mono);
  line-height: 1.2;
}
.tabnum { font-variant-numeric: tabular-nums; }
.metric-label {
  display: block;
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Shared section styles
   -------------------------------------------------------------------------- */
.section-sub {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 36px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Missions / features
   -------------------------------------------------------------------------- */
.features { padding: 80px 0; }
.features h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; font-family: var(--font-mono); letter-spacing: 1px; }
.feature-card > p { color: var(--text-muted); font-size: .9rem; margin-bottom: 14px; }
.feature-card code { display: block; margin-bottom: 12px; }
.feature-routes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.feature-routes a {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--cyan);
  text-decoration: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  transition: border-color .2s;
}
.feature-routes a:hover { border-color: var(--cyan); }
.link-orange { color: var(--orange) !important; }
.link-red    { color: var(--red) !important; }

/* --------------------------------------------------------------------------
   Archive / asset gallery
   -------------------------------------------------------------------------- */
.assets-section {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.assets-section h2 { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 12px; }
.asset-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
.asset-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.asset-card:hover { border-color: var(--cyan); }
.asset-card img { width: 100%; height: 140px; object-fit: cover; }
.asset-card figcaption { padding: 10px; }
.asset-path {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--green);
  margin-bottom: 3px;
}
.asset-ttl { font-size: .68rem; color: var(--text-muted); }

.video-section { text-align: center; }
.video-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.demo-video {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-lite);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Telemetry / API section
   -------------------------------------------------------------------------- */
.api-section { padding: 80px 0; }
.api-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.api-demo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 700px;
  margin-bottom: 24px;
}
.api-request-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.method-badge {
  background: var(--green);
  color: #000;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.api-path { font-family: var(--font-mono); font-size: .9rem; flex: 1; }
.api-response {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--green);
  white-space: pre;
  overflow-x: auto;
  min-height: 120px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Downloads
   -------------------------------------------------------------------------- */
.downloads-section {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.downloads-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color .2s;
}
.download-card:hover { border-color: var(--cyan); }
.dl-icon { font-size: 2.4rem; flex-shrink: 0; }
.dl-info { flex: 1; }
.dl-info h4 { font-size: .98rem; font-weight: 700; margin-bottom: 4px; font-family: var(--font-mono); }
.dl-info > p { color: var(--text-muted); font-size: .85rem; margin-bottom: 6px; }
.dl-info code { display: block; margin-bottom: 8px; }
.dl-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* --------------------------------------------------------------------------
   Routes table
   -------------------------------------------------------------------------- */
.routes-section { padding: 80px 0; }
.routes-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.routes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  margin-top: 24px;
  font-family: var(--font-mono);
}
.routes-table th {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
}
.routes-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  background: var(--bg-card);
}
.routes-table tr:hover td { background: var(--bg-elevated); }
.status-2xx { color: var(--green);  font-weight: 700; }
.status-4xx { color: var(--orange); font-weight: 700; }
.status-5xx { color: var(--red);    font-weight: 700; }

/* --------------------------------------------------------------------------
   Status
   -------------------------------------------------------------------------- */
.status-section { padding: 60px 0; }
.status-section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 20px; font-family: var(--font-mono); }
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .88rem;
  font-family: var(--font-mono);
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-green  { background: var(--green);  box-shadow: 0 0 6px var(--green); }
.dot-cyan   { background: var(--cyan);   box-shadow: 0 0 6px var(--cyan); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 44px 0;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--cyan);
  margin-bottom: 14px;
}
.footer-disclaimer {
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.9;
  margin-bottom: 14px;
}
.footer-routes code { font-size: .72rem; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid     { grid-template-columns: 1fr; gap: 36px; }
  .hero h1       { font-size: 2.2rem; }
  .metrics-grid  { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .asset-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .hero h1       { font-size: 1.8rem; }
  nav            { display: none; }
}
