/* ============================================================
   AXIOM LATTICE — Materials Marketplace Design System
   axiomlattice.io  ·  v2.0
   Visual alignment with axiomvault.io — cyan-primary palette
   ============================================================ */

/* ---- Variables ---- */
:root {
  --bg-primary: #0a0a14;
  --bg-card: rgba(10, 15, 20, 0.85);
  --bg-card-hover: rgba(20, 30, 40, 0.9);
  --bg-input: rgba(20, 30, 40, 0.6);
  --border: #333;
  --border-hover: #00d4ff;
  --cyan: #00d4ff;
  --gold: #ffd700;
  --magenta: #ff00ff;
  --green: #00ff88;
  --emerald: #00e676;
  --amber: #ffab00;
  --violet: #b388ff;
  --blue: #448aff;
  --red: #ff6060;
  --text: #dce0e6;
  --text-dim: #787890;
  --font-mono: Consolas, 'Courier New', monospace;
  --profile-battery: #00d4ff;
  --profile-mof: #00ff88;
  --profile-alloy: #ffd700;
  --profile-semiconductor: #448aff;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: #66e0ff; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #66e0ff; }

/* ---- Skip Link ---- */
.skip-link {
  position: fixed; top: -100%; left: 16px; z-index: 10000;
  padding: 8px 16px; background: var(--cyan); color: #000;
  border-radius: 4px; font-weight: bold;
}
.skip-link:focus { top: 16px; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page { padding: 32px 20px 60px; max-width: 1200px; margin: 0 auto; }
.section { margin-bottom: 48px; }
.section-title {
  font-size: 18px; font-weight: bold; margin-bottom: 16px;
  color: var(--text); letter-spacing: 0.5px;
}
.section-subtitle { font-size: 12px; color: var(--text-dim); margin-bottom: 20px; }

/* ---- Flex utilities ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ---- Text utilities ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 10px; }
.text-sm { font-size: 11px; }
.text-md { font-size: 13px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 20px; }
.text-cyan { color: var(--cyan); }
.text-teal { color: var(--cyan); }
.text-emerald { color: var(--emerald); }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-gold { color: var(--gold); }
.text-violet { color: var(--violet); }
.text-magenta { color: var(--magenta); }
.text-blue { color: var(--blue); }
.text-red { color: var(--red); }
.text-dim { color: var(--text-dim); }
.text-bold { font-weight: bold; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ---- Grids ---- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  display: block;
}
.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.08);
}
a.card { cursor: pointer; }
a.card:hover { transform: translateY(-3px); color: var(--text); }
.card-title { font-size: 14px; font-weight: bold; margin-bottom: 8px; }
.card-value { font-size: 28px; font-weight: bold; line-height: 1.2; }
.card-value.teal, .card-value.cyan { color: var(--cyan); }
.card-value.emerald { color: var(--emerald); }
.card-value.amber { color: var(--amber); }
.card-value.violet { color: var(--violet); }
.card-value.blue { color: var(--blue); }
.card-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }

/* ---- Badges ---- */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-size: 11px; font-weight: bold; letter-spacing: 0.5px;
  white-space: nowrap;
}
.badge-teal, .badge-cyan { border: 1px solid var(--cyan); color: var(--cyan); }
.badge-emerald { border: 1px solid var(--emerald); color: var(--emerald); }
.badge-amber { border: 1px solid var(--amber); color: var(--amber); }
.badge-violet { border: 1px solid var(--violet); color: var(--violet); }
.badge-blue { border: 1px solid var(--blue); color: var(--blue); }
.badge-red { border: 1px solid var(--red); color: var(--red); }
.badge-dim { border: 1px solid var(--text-dim); color: var(--text-dim); }
.badge-lg { padding: 6px 16px; font-size: 14px; }
.badge-filled-teal, .badge-filled-cyan { background: var(--cyan); color: #000; border: none; }
.badge-filled-emerald { background: var(--emerald); color: #000; border: none; }

/* Profile badges */
.badge-battery { border: 1px solid var(--profile-battery); color: var(--profile-battery); }
.badge-mof { border: 1px solid var(--profile-mof); color: var(--profile-mof); }
.badge-alloy { border: 1px solid var(--profile-alloy); color: var(--profile-alloy); }
.badge-semiconductor { border: 1px solid var(--profile-semiconductor); color: var(--profile-semiconductor); }

/* Tier badges */
.badge-tier-discovery { border: 1px solid var(--cyan); color: var(--cyan); }
.badge-tier-professional { border: 1px solid var(--amber); color: var(--amber); }
.badge-tier-enterprise { border: 1px solid var(--violet); color: var(--violet); }
.badge-tier-vault { border: 1px solid var(--gold); color: var(--gold); text-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }

/* Novelty badges */
.badge-novel { border: 1px solid var(--emerald); color: var(--emerald); }
.badge-known { border: 1px solid var(--amber); color: var(--amber); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 4px;
  background: transparent; color: var(--text);
  cursor: pointer; transition: all 0.2s;
  font-size: 12px; letter-spacing: 0.5px;
  text-align: center; white-space: nowrap;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-teal, .btn-cyan { border-color: var(--cyan); color: var(--cyan); }
.btn-teal:hover, .btn-cyan:hover { background: rgba(0, 212, 255, 0.1); }
.btn-amber { border-color: var(--amber); color: var(--amber); }
.btn-active { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 212, 255, 0.1); }
.btn-sm { padding: 4px 10px; font-size: 11px; }
.btn-lg { padding: 12px 28px; font-size: 14px; }
.btn-filled {
  background: var(--cyan); color: #000; border-color: var(--cyan); font-weight: bold;
}
.btn-filled:hover { background: #66e0ff; border-color: #66e0ff; color: #000; }

/* Profile-colored buttons */
.btn-profile-battery { border-color: var(--profile-battery); color: var(--profile-battery); }
.btn-profile-battery.btn-active { background: rgba(0, 212, 255, 0.15); }
.btn-profile-mof { border-color: var(--profile-mof); color: var(--profile-mof); }
.btn-profile-mof.btn-active { background: rgba(0, 255, 136, 0.15); }
.btn-profile-alloy { border-color: var(--profile-alloy); color: var(--profile-alloy); }
.btn-profile-alloy.btn-active { background: rgba(255, 215, 0, 0.15); }
.btn-profile-semi { border-color: var(--profile-semiconductor); color: var(--profile-semiconductor); }
.btn-profile-semi.btn-active { background: rgba(68, 138, 255, 0.15); }

/* ---- Inputs ---- */
.input, input[type="text"], input[type="email"], input[type="number"], input[type="search"],
select, textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--text);
  transition: border-color 0.2s;
}
.input:focus, input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
}
input[type="range"] { accent-color: var(--cyan); }
textarea { min-height: 120px; resize: vertical; }

/* ---- Navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10, 10, 20, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
}
.nav-brand {
  font-size: 14px; font-weight: bold; letter-spacing: 2px;
  color: var(--cyan); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-dim); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.nav-toggle {
  display: none; background: none; border: none; color: var(--text);
  font-size: 20px; cursor: pointer; padding: 4px;
}

/* ---- Score Bars ---- */
.score-bar {
  height: 6px; background: rgba(51, 51, 51, 0.5); border-radius: 3px;
  overflow: hidden; position: relative;
}
.score-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 0.6s ease-out;
}
.score-bar-fill.teal, .score-bar-fill.cyan { background: var(--cyan); }
.score-bar-fill.emerald { background: var(--emerald); }
.score-bar-fill.amber { background: var(--amber); }
.score-bar-fill.red { background: var(--red); }

/* ---- Traffic Light Indicators ---- */
.tl {
  width: 14px; height: 14px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.tl-lg {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.tl-GREEN {
  background: #00ff88;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5), 0 0 16px rgba(0, 255, 136, 0.2);
}
.tl-YELLOW {
  background: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5), 0 0 16px rgba(255, 215, 0, 0.2);
}
.tl-RED {
  background: #ff6060;
  box-shadow: 0 0 8px rgba(255, 96, 96, 0.5), 0 0 16px rgba(255, 96, 96, 0.2);
}

/* ---- Profile Orb ---- */
.profile-orb {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: bold; text-transform: uppercase;
  letter-spacing: 1px; position: relative;
}
.profile-orb.battery {
  border: 2px solid var(--profile-battery);
  color: var(--profile-battery);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}
.profile-orb.mof {
  border: 2px solid var(--profile-mof);
  color: var(--profile-mof);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}
.profile-orb.alloy {
  border: 2px solid var(--profile-alloy);
  color: var(--profile-alloy);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}
.profile-orb.semiconductor {
  border: 2px solid var(--profile-semiconductor);
  color: var(--profile-semiconductor);
  box-shadow: 0 0 12px rgba(68, 138, 255, 0.3);
}

/* ---- Formula Display ---- */
.formula {
  font-size: 18px; font-weight: bold; letter-spacing: 1px;
  word-break: break-all;
}
.formula-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* ---- Material Card (marketplace grid) ---- */
.material-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; text-decoration: none; color: var(--text);
}
.material-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.1);
}
.material-card .formula { font-size: 14px; margin-bottom: 4px; }
.material-card .card-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

/* ---- Radar Container ---- */
.radar-container {
  position: relative; width: 100%; max-width: 360px;
  margin: 0 auto;
}
.radar-container canvas { width: 100% !important; height: auto !important; }

/* ---- Lock Overlay ---- */
.locked { filter: blur(4px); pointer-events: none; user-select: none; }
.lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(10, 10, 20, 0.7); border-radius: 6px; gap: 8px;
  z-index: 5;
}
.lock-overlay-icon { font-size: 28px; opacity: 0.7; }
.lock-overlay-text { font-size: 12px; color: var(--text-dim); text-align: center; }
.lock-section { position: relative; }

/* ---- Unlock Card ---- */
.unlock-card {
  text-align: center; padding: 32px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--bg-card);
}
.unlock-card-title { font-size: 16px; font-weight: bold; margin-bottom: 8px; }
.unlock-card-text { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; }
.unlock-card-discovery {
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(0,255,136,0.05));
  border-color: var(--cyan);
}
.unlock-discovery-features {
  display: flex; flex-direction: column; gap: 6px;
  margin: 16px 0; text-align: left;
}
.unlock-discovery-features li {
  border-left: 2px solid var(--cyan); padding-left: 12px;
  font-size: 12px; color: var(--text-dim); list-style: none;
}

/* ---- Provenance Timeline ---- */
.provenance-timeline { position: relative; padding-left: 24px; }
.prov-step { position: relative; padding-bottom: 20px; }
.prov-step:last-child { padding-bottom: 0; }
.prov-dot {
  position: absolute; left: -24px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg-primary);
}
.prov-line {
  position: absolute; left: -19px; top: 16px;
  width: 2px; height: calc(100% - 16px);
  background: var(--border);
}
.prov-step:last-child .prov-line { display: none; }
.prov-complete .prov-dot { border-color: var(--emerald); background: var(--emerald); }
.prov-complete .prov-line { background: var(--emerald); }
.prov-pending .prov-dot { border-color: var(--text-dim); }
.prov-pending .prov-line { background: var(--text-dim); }
.prov-label { font-size: 12px; font-weight: bold; margin-bottom: 2px; }
.prov-detail { font-size: 11px; color: var(--text-dim); word-break: break-all; }

/* ---- Proof Nodes ---- */
.proof-node {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 11px; word-break: break-all; color: var(--text-dim);
}
.proof-node.active { border-color: var(--cyan); color: var(--cyan); }
.proof-arrow { text-align: center; color: var(--text-dim); font-size: 14px; padding: 4px 0; }

/* ---- Filter Bar ---- */
.filter-bar {
  background: rgba(10, 10, 20, 0.95);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px;
  margin-bottom: 16px;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-dim);
}
.filter-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-search { flex: 1; min-width: 200px; }
.filter-search input { width: 100%; }

/* ---- Live Stream Bar ---- */
.live-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border: 1px solid var(--border);
  border-radius: 6px; margin-bottom: 16px; overflow: hidden;
  background: var(--bg-card);
}
.live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--emerald); flex-shrink: 0;
  animation: livePulse 2s infinite;
}
.live-bar.disconnected .live-dot { background: var(--red); animation: none; }
.live-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); white-space: nowrap; }
.live-count {
  background: var(--emerald); color: #000; padding: 2px 8px;
  border-radius: 3px; font-size: 10px; font-weight: bold; white-space: nowrap;
}
.live-ticker { display: flex; gap: 12px; overflow: hidden; flex: 1; }
.ticker-item {
  white-space: nowrap; font-size: 11px; color: var(--text-dim);
  animation: tickerSlideIn 0.3s ease-out;
  flex-shrink: 0;
}
.ticker-item .formula { font-size: 11px; color: var(--cyan); }

/* ---- Pagination ---- */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 20px 0;
}
.page-info { font-size: 11px; color: var(--text-dim); }

/* ---- Tables ---- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-transform: uppercase; font-size: 10px; letter-spacing: 1px;
  color: var(--text-dim); padding: 8px 12px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 10px 12px; border-bottom: 1px solid rgba(51, 51, 51, 0.3);
  font-size: 12px;
}
.data-table tr:hover td { background: rgba(0, 212, 255, 0.03); }

/* ---- Compliance Grid ---- */
.compliance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compliance-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
}
.compliance-check .check { color: var(--emerald); }
.compliance-check .cross { color: var(--red); }

/* ---- Chart Container ---- */
.chart-container { position: relative; height: 250px; width: 100%; }
.chart-container canvas { width: 100% !important; }

/* ---- Contact Form ---- */
.form-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.form-field label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-dim);
}
.contact-feedback { font-size: 12px; margin-top: 8px; }
.contact-feedback.error { color: var(--red); }
.contact-feedback.success { color: var(--emerald); }

/* ---- Modal ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, 0.7); align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 8px; padding: 32px; max-width: 480px; width: 90%;
  max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  font-size: 20px; color: var(--text-dim); cursor: pointer;
  background: none; border: none; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 16px; font-weight: bold; margin-bottom: 16px; }

/* ---- Empty State ---- */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; gap: 12px;
}
.empty-state-icon { font-size: 36px; opacity: 0.5; }
.empty-state-text { font-size: 15px; color: var(--text-dim); }
.empty-state-hint { font-size: 12px; color: var(--text-dim); }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 11px;
}
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--cyan); }
.footer-links { display: flex; gap: 16px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }

/* ---- Copy Button ---- */
.copy-btn {
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 3px;
  font-size: 11px; cursor: pointer; color: var(--text-dim);
  background: transparent; transition: all 0.2s;
}
.copy-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.copy-btn.copied { border-color: var(--emerald); color: var(--emerald); }

/* ---- Discovery Alert Toast ---- */
.discovery-alert {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  background: var(--bg-primary); border: 1px solid var(--cyan);
  border-radius: 6px; padding: 16px 20px; max-width: 340px;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
  animation: toastSlideIn 0.4s ease-out;
}
.discovery-alert.dismissing {
  animation: toastSlideOut 0.3s ease-in forwards;
}
.discovery-alert-title {
  font-size: 12px; font-weight: bold; color: var(--cyan);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px;
}
.discovery-alert-formula { font-size: 16px; font-weight: bold; margin-bottom: 4px; }
.discovery-alert-score { font-size: 12px; color: var(--text-dim); }

/* ============================================================
   LANDING PAGE
   ============================================================ */

.landing-hero {
  text-align: center; padding: 80px 20px 60px;
  position: relative; overflow: hidden;
}

/* Hero layered background */
.hero-bg-image {
  position: absolute; inset: 0; z-index: 0;
  background: url('/static/img/hero-bg.png') center/cover no-repeat;
  opacity: 0.15;
}
.hero-bg-video {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-bg-video video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.12;
}
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(10, 10, 20, 0.3) 0%,
    rgba(0, 212, 255, 0.05) 30%,
    rgba(10, 10, 20, 0.9) 80%,
    var(--bg-primary) 100%
  );
}
.landing-hero > *:not(.hero-bg-image):not(.hero-bg-video):not(.hero-bg-overlay) {
  position: relative; z-index: 2;
}

.hero-badge {
  display: inline-block; padding: 4px 14px;
  border: 1px solid var(--cyan); border-radius: 999px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--cyan); margin-bottom: 20px;
  animation: badgeGlow 3s infinite;
}
.hero-title {
  font-size: 42px; font-weight: bold; line-height: 1.2;
  color: #fff; margin-bottom: 12px; max-width: 700px; margin-left: auto; margin-right: auto;
}
.hero-subtitle {
  font-size: 15px; color: var(--text-dim); max-width: 600px;
  margin: 0 auto 24px; line-height: 1.6;
}
.hero-counter {
  margin-bottom: 24px;
}
.hero-counter-value {
  font-size: 48px; font-weight: bold; color: var(--cyan);
  animation: counterPulse 4s infinite;
}
.hero-counter-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-dim);
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Landing Features ---- */
.landing-feature-card {
  text-align: center; padding: 28px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.landing-feature-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.1);
}
.landing-feature-icon { font-size: 28px; margin-bottom: 12px; }
.landing-feature-icon img { width: 64px; height: 64px; margin: 0 auto; }
.landing-feature-title { font-size: 14px; font-weight: bold; margin-bottom: 8px; }
.landing-feature-desc { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

/* ---- Stats Strip ---- */
.landing-stats-strip {
  padding: 48px 20px;
  background: linear-gradient(90deg, rgba(0,212,255,0.08), rgba(0,255,136,0.05), rgba(179,136,255,0.05), rgba(255,215,0,0.05));
  background-size: 300% 100%;
  animation: gradientShift 8s ease infinite;
}
.stats-strip-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
.stats-strip-value { font-size: 36px; font-weight: bold; line-height: 1.2; }
.stats-strip-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-dim); margin-top: 4px;
}

/* ---- Landing Steps ---- */
.landing-step { text-align: center; padding: 24px; }
.landing-step-number {
  width: 40px; height: 40px; border: 2px solid var(--cyan);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: bold; color: var(--cyan);
  margin: 0 auto 16px;
  transition: box-shadow 0.3s;
}
.landing-step:hover .landing-step-number { box-shadow: 0 0 16px rgba(0, 212, 255, 0.4); }
.landing-step-title { font-size: 14px; font-weight: bold; margin-bottom: 8px; }
.landing-step-desc { font-size: 12px; color: var(--text-dim); }

/* ---- Landing Plans ---- */
.landing-plan {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px 20px; text-align: center;
  position: relative; transition: border-color 0.3s, box-shadow 0.3s;
}
.landing-plan.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.15);
  animation: featuredGlow 4s infinite;
}
.landing-plan.sovereign {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.1);
}
.landing-plan-popular {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: #000; padding: 2px 12px;
  border-radius: 999px; font-size: 10px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 1px;
}
.landing-plan-name { font-size: 16px; font-weight: bold; margin-bottom: 4px; }
.landing-plan-price { font-size: 28px; font-weight: bold; color: var(--cyan); margin-bottom: 4px; }
.landing-plan.sovereign .landing-plan-price { color: var(--gold); }
.landing-plan-period { font-size: 11px; color: var(--text-dim); margin-bottom: 16px; }
.landing-plan-features { list-style: none; text-align: left; margin-bottom: 20px; }
.landing-plan-features li {
  font-size: 12px; color: var(--text-dim); padding: 4px 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}
.landing-plan-features li::before { content: '+ '; color: var(--cyan); }
.landing-plan.sovereign .landing-plan-features li::before { color: var(--gold); }

/* ---- Comparison Table ---- */
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.comparison-table th {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-dim); padding: 8px; text-align: center;
  border-bottom: 2px solid var(--border);
}
.comparison-table th:first-child { text-align: left; }
.comparison-table td {
  padding: 8px; font-size: 12px; text-align: center;
  border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}
.comparison-table td:first-child { text-align: left; color: var(--text-dim); }
.comparison-check { color: var(--emerald); }
.comparison-dash { color: var(--text-dim); opacity: 0.4; }

/* ---- FAQ Accordion ---- */
.faq-accordion { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); transition: border-left-color 0.3s; border-left: 2px solid transparent; }
.faq-item.open { border-left-color: var(--cyan); }
.faq-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: none; border: none;
  color: var(--text); font-size: 13px; cursor: pointer; text-align: left;
}
.faq-toggle:hover { color: var(--cyan); }
.faq-chevron {
  width: 8px; height: 8px; border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg); transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(-135deg); }
.faq-answer-wrap {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-item.open .faq-answer-wrap { max-height: 300px; }
.faq-answer {
  padding: 0 20px 16px; font-size: 12px;
  color: var(--text-dim); line-height: 1.6;
}

/* ---- CTA Section ---- */
.cta-section {
  text-align: center; padding: 60px 20px;
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(179,136,255,0.05));
  border-radius: 8px; margin-top: 48px;
}
.cta-title { font-size: 24px; font-weight: bold; margin-bottom: 8px; }
.cta-text { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }

/* ---- Email Modal (Subscribe) ---- */
.email-modal {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 6px; padding: 12px; z-index: 10; margin-top: 8px;
  min-width: 240px;
}
.email-modal.active { display: block; }
.email-modal-inner { display: flex; gap: 8px; }
.email-modal-inner input { flex: 1; min-width: 0; }
.email-modal-inner button { flex-shrink: 0; }

/* ============================================================
   DETAIL PAGE — Score Triptych
   ============================================================ */

.score-triptych {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 24px;
}
.triptych-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 20px; text-align: center;
}
.triptych-value { font-size: 32px; font-weight: bold; line-height: 1.2; }
.triptych-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-dim); margin-top: 4px;
}

/* ============================================================
   ENGINE STATUS DASHBOARD
   ============================================================ */

.engine-status-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 24px;
}
.engine-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 16px; text-align: center;
}
.engine-card-value { font-size: 24px; font-weight: bold; color: var(--cyan); }
.engine-card-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-top: 4px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 4px rgba(0, 212, 255, 0.2); }
  50% { box-shadow: 0 0 12px rgba(0, 212, 255, 0.5); }
}
@keyframes counterPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(0, 212, 255, 0.3); }
  50% { text-shadow: 0 0 20px rgba(0, 212, 255, 0.6); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(0, 212, 255, 0.15); }
  50% { box-shadow: 0 0 32px rgba(0, 212, 255, 0.3); }
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}
@keyframes tickerSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes copyFlash {
  0% { border-color: var(--emerald); }
  100% { border-color: var(--border); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spinRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100px); }
}

/* ---- Reveal (scroll) ---- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 500ms; }

/* ---- Skeleton Loading ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(51,51,51,0.3) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-card {
  height: 180px; border-radius: 6px;
  border: 1px solid var(--border);
}

/* ---- Spinner ---- */
.spinner {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--cyan); border-radius: 50%;
  animation: spinRotate 0.6s linear infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .hero-title { font-size: 28px; }
  .hero-counter-value { font-size: 36px; }
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .score-triptych { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-search { min-width: 0; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 52px; left: 0; right: 0;
    flex-direction: column; background: rgba(10, 10, 20, 0.98);
    border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 12px;
  }
  .nav-links.open { display: flex; }
  .comparison-table { font-size: 10px; }
  .comparison-table th, .comparison-table td { padding: 4px; }
  .compliance-grid { grid-template-columns: 1fr; }
  .hero-bg-video { display: none; }
  .engine-status-grid { grid-template-columns: repeat(2, 1fr); }
  .discovery-alert { max-width: calc(100vw - 32px); right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
  .page { padding: 20px 12px 40px; }
  .stats-strip-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-title { font-size: 24px; }
  .landing-plan { padding: 20px 16px; }
  .engine-status-grid { grid-template-columns: 1fr; }
}

/* ---- Print ---- */
@media print {
  body { background: #fff; color: #000; }
  .nav, .footer, .filter-bar, .live-bar, .hero-ctas, .btn { display: none; }
  .card { border-color: #ccc; background: #fff; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
