/* ============================================================================
   ODIN OS v5.0 — CORPORATE SURFACE HUD STYLESHEET (public-marketing/)
   Inherits Executive Light HUD Tokens from public/css/executive_hud.css
   ============================================================================ */

:root {
  --bg-canvas: #eef2f6;
  --card-bg: #ffffff;
  --surface-elevated: #f8fafc;
  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #1e293b;
  --text-muted: #475569;
  --accent-sky: #0284c7;
  --threat-active: #16a34a;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  font-family: var(--font-sans);
  font-size: 15px;
  background: #090d16;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #111827 0%, #090d16 100%);
  line-height: 1.58;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  padding: 1px 5px;
  border-radius: 3px;
}

/* CURTAILED DESKTOP SHELL (.command-desk-frame PARITY) */
.desk-shell { padding: 12px; min-height: 100vh; }
.desk-frame {
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 24px);
}
.main { flex: 1 1 auto; }
.wrap { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 28px; }

/* TOPBAR & NAVIGATION */
.topbar { position: sticky; top: 0; z-index: 40; background: #0f172a; border-bottom: 1px solid #1e293b; color: #f8fafc; }
.topbar-inner { max-width: 100%; padding: 8px 24px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #f8fafc; text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.brand-logo { height: 32px; width: auto; display: block; object-fit: contain; flex-shrink: 0; }
.brand strong { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.12em; }
.brand-sep { font-family: var(--font-mono); color: #38bdf8; font-weight: 700; }
.nav-toggle { display: none; background: #1e293b; color: #f8fafc; border: 1px solid #334155; border-radius: 3px; padding: 5px 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; cursor: pointer; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a:not(.btn) { color: #cbd5e1; text-decoration: none; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.nav a:not(.btn):hover { color: #38bdf8; }

/* REUSABLE HUD PRIMITIVES */
.section { padding: 40px 0; background: var(--card-bg); color: var(--text-primary); border-bottom: 1px solid var(--border-color); }
.section.hero { padding: 32px 0 40px; }
.section-alt { background: var(--bg-canvas); }
.sec-head { max-width: 820px; margin-bottom: 20px; }
.sec-head h2, .hud-panel h3, .hero-title { color: var(--text-primary); }
.sec-head h2 { font-size: 25px; line-height: 1.22; font-weight: 800; letter-spacing: -0.015em; margin: 6px 0 10px; }
.sec-head p { color: var(--text-muted); }
.kicker, .mono-sky { font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--accent-sky); }
.mono-label { display: block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.04em; }
.mono-val { font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; color: var(--text-primary); }
.mono-nowrap { font-family: var(--font-mono); white-space: nowrap; }
.muted-sm { font-size: 12.5px; color: var(--text-muted); }

.grid { display: grid; gap: 18px; }
.grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.inline-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.hud-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.hud-panel h3 { font-size: 16.5px; line-height: 1.3; font-weight: 800; }
.hud-panel p { font-size: 13.8px; color: var(--text-secondary); }

/* BUTTONS & ILLUMINATED BADGES (SUB-ANCHOR 9.1.9) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 4px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-lg { padding: 10px 17px; font-size: 13.5px; }
.btn-primary { background: var(--accent-sky); color: #ffffff; border-color: #0369a1; }
.btn-primary:hover { background: #0369a1; }
.btn-secondary { background: var(--card-bg); color: var(--text-primary); border-color: var(--border-color); }
.btn-secondary:hover { background: var(--surface-elevated); border-color: #94a3b8; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.cta-center { justify-content: center; margin-bottom: 0; }

.badge { display: inline-block; padding: 2px 6px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 800; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; border: 1px solid transparent; }
.badge-green { background: #dcfce7; color: #14532d; border-color: #4ade80; }
.badge-amber { background: #fef3c7; color: #78350f; border-color: #fbbf24; }
.badge-sky { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.badge-muted { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }

/* HERO & DUAL-SURFACE SHOWCASE */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-elevated); border: 1px solid var(--border-color); border-radius: 3px; padding: 5px 10px; font-family: var(--font-mono); font-size: 10px; font-weight: 800; margin-bottom: 14px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--threat-active); box-shadow: 0 0 6px rgba(22, 163, 74, 0.65); }
.hero-title { font-size: 33px; line-height: 1.16; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.hero-sub { color: var(--text-secondary); }
.kpi-box { background: var(--surface-elevated); border: 1px solid var(--border-color); border-radius: 3px; padding: 7px 9px; }

/* CSS-ONLY HUD MEDIA PLACEHOLDERS (1-LINE <figure class="hud-slot">) */
.hud-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  background: #0f172a;
  background-image: linear-gradient(to right, rgba(56, 189, 248, 0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
}
.hud-slot::before {
  content: attr(data-slot) "  •  " attr(data-tag);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.04em;
}
.hud-slot::after {
  content: "[ + ]  " attr(data-title);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.86);
  border: 1px dashed #334155;
  border-radius: 3px;
  padding: 12px;
  text-align: center;
  margin: auto 0;
}
.hud-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  filter: grayscale(0.28) saturate(0.76) contrast(1.14) brightness(0.95);
  transition: filter 0.28s ease;
}
.hud-slot:hover img {
  filter: grayscale(0.08) saturate(0.92) contrast(1.08) brightness(0.99);
}
.hud-slot:has(img)::before {
  content: none !important;
  display: none !important;
}
.hud-slot:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.10) 50%, rgba(15, 23, 42, 0.30) 100%),
    rgba(14, 116, 144, 0.08);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.35);
}

/* INTERACTIVE DUAL-SURFACE WIDGET */
.ds-box { background: var(--surface-elevated); padding: 14px; }
.tab-group { display: inline-flex; border: 1px solid var(--border-color); border-radius: 3px; overflow: hidden; background: var(--card-bg); }
.tab-btn { border: none; border-right: 1px solid var(--border-color); background: transparent; padding: 4px 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.tab-btn:last-child { border-right: none; }
.tab-btn.active { background: #0f172a; color: #38bdf8; }
.ds-stage { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 10px; }
.ds-stage[data-mode="desk"], .ds-stage[data-mode="handset"] { grid-template-columns: 1fr; }
.ds-stage[data-mode="desk"] .ds-handset, .ds-stage[data-mode="handset"] .ds-desk { display: none; }
.ds-pane { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 4px; padding: 10px; }
.stage-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 8px 0; font-size: 10px; color: var(--text-muted); }
.handset-dark { background: #0f172a; color: #f8fafc; border-radius: 4px; padding: 10px; margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.handset-dark p { color: #cbd5e1; font-size: 11.5px; }
.chip { font-family: var(--font-mono); font-size: 9px; font-weight: 700; background: #1e293b; border: 1px solid #334155; color: #a5f3fc; padding: 2px 6px; border-radius: 2px; }

/* SECTORS, ABOUT, RETAINERS & FAQ */
.jump-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.jump-bar a { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 3px; padding: 6px 11px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.jump-bar a:hover { background: #0f172a; color: #38bdf8; border-color: #0f172a; }
.sector-card { scroll-margin-top: 74px; border-left: 4px solid var(--accent-sky); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr); gap: 22px; align-items: center; }
.sector-sub { font-weight: 700; color: var(--accent-sky) !important; }
.sector-card .btn { margin-top: 8px; }

.about-box { background: var(--surface-elevated); padding: 28px 32px; border-left: 4px solid var(--accent-sky); }
.about-box .sec-head { max-width: 100%; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.about-box .stack p { font-size: 14.5px; line-height: 1.66; color: var(--text-secondary); }
.callout-quote { background: var(--card-bg); border: 1px solid var(--border-color); border-left: 4px solid var(--accent-sky); border-radius: 4px; padding: 16px 20px; font-size: 14px; line-height: 1.62; color: var(--text-primary); }

.table-wrap { overflow-x: auto; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 4px; }
table.odin-grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.odin-grid th { font-family: var(--font-mono); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; background: #f1f5f9; color: #334155; padding: 11px 13px; text-align: left; border-bottom: 2px solid var(--border-color); white-space: nowrap; }
table.odin-grid td { padding: 14px 13px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.row-featured { background: #f0f9ff; }
.callout-amber { margin-top: 16px; background: #fffbeb; border: 1px solid #fcd34d; border-left: 4px solid #d97706; border-radius: 4px; padding: 12px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: #78350f; }

.hud-faq { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 4px; }
.hud-faq summary { list-style: none; cursor: pointer; padding: 14px 18px; background: var(--surface-elevated); font-weight: 700; display: flex; align-items: center; gap: 12px; }
.hud-faq summary::-webkit-details-marker { display: none; }
.faq-body { padding: 15px 18px; border-top: 1px solid var(--border-subtle); font-size: 14px; color: var(--text-secondary); }
.faq-body ol { margin-top: 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* CTA & DESKTOP FOOTER */
.cta-box { text-align: center; align-items: center; border-top: 4px solid var(--accent-sky); padding: 34px 24px; }
.desk-footer { background: #0f172a; border-top: 1px solid #1e293b; color: #94a3b8; font-family: var(--font-mono); font-size: 10.5px; padding: 9px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.desk-footer strong { color: #f8fafc; }

/* MODAL */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(9, 13, 22, 0.78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop[hidden] { display: none; }
.modal-card { width: 100%; max-width: 600px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; }
.modal-head { background: #0f172a; color: #ffffff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-close { background: transparent; border: 1px solid #334155; color: #cbd5e1; border-radius: 3px; width: 26px; height: 26px; font-size: 17px; cursor: pointer; }
.modal-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field span { font-family: var(--font-mono); font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--text-secondary); }
.field input, .field select, .field textarea { width: 100%; padding: 8px 10px; font: inherit; font-size: 13px; background: var(--surface-elevated); border: 1px solid var(--border-color); border-radius: 4px; }
.feedback-bar { background: #f0fdf4; border: 1px solid #86efac; color: #14532d; padding: 9px 12px; border-radius: 4px; font-size: 12.5px; font-weight: 600; }

.footer-link-btn { background: transparent; border: none; color: #cbd5e1; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.footer-link-btn:hover { color: #38bdf8; }
.inline-link-btn { background: transparent; border: none; color: var(--accent-sky); font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.inline-link-btn:hover { color: #0369a1; }

.modal-card-wide { max-width: 780px; }
.policy-scroll { max-height: 76vh; overflow-y: auto; gap: 16px; }
.policy-block { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px; color: var(--text-secondary); }
.policy-block:last-of-type { border-bottom: none; padding-bottom: 0; }
.policy-block h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 800; letter-spacing: 0.05em; color: var(--accent-sky); }
.policy-block ul, .policy-block ol { padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid, .sector-card, .grid[data-cols="3"] { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .desk-shell { padding: 6px; }
  .wrap { padding: 0 16px; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 10px 0 14px; border-top: 1px solid #1e293b; }
  .nav.is-open { display: flex; }
  .hero-title { font-size: 26px; }
  .grid[data-cols="2"], .ds-stage { grid-template-columns: 1fr; }
}