/* =========================================================================
   StratosHedge — public marketing stylesheet (shared by all static pages).
   Self-contained (no hashed Vite bundle import): mirrors the app's `lp-*`
   design language so the public site reads as a premium sibling of the
   product. Pure CSS — no JS (strict CSP). Mobile menu uses <details>.
   ========================================================================= */

:root {
  --bg: #0a0e14;
  --panel: #0e131b;
  --surface-2: #0c1119;
  --rail: #070a0f;
  --border: #1b2430;
  --border-soft: #0f151d;
  --text: #c8d2dc;
  --text-soft: #aeb9c4;
  --heading: #f5f8fb;
  --muted: #5b6776;
  --cyan: #00e5ff;
  --magenta: #e000e0;
  --gold: #f5a623;

  --maxw: 1180px;
  --radius: 13px;
  --radius-lg: 18px;
  --pad-x: clamp(16px, 5vw, 56px);
  --section-y: clamp(56px, 8vw, 104px);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- ambient background -------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg-glow-1 {
  width: 620px; height: 620px; top: -200px; right: -120px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.22), transparent 70%);
}
.bg-glow-2 {
  width: 560px; height: 560px; top: 320px; left: -180px;
  background: radial-gradient(circle, rgba(224, 0, 224, 0.16), transparent 70%);
}

/* keep page content above the ambient layer */
.page { position: relative; z-index: 1; }

/* ---- shared wrapper ------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* =========================================================================
   Top bar
   ========================================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 15, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo { width: 28px; height: 28px; border-radius: 7px; }
.wordmark {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 15px;
  color: #f2f6fa;
}
.wordmark-accent { color: var(--cyan); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.navlink {
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--text-soft);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.navlink:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.navlink[aria-current="page"] { color: var(--cyan); }

.nav-cta { margin-left: 6px; }

/* mobile disclosure menu (no JS) */
.menu { margin-left: auto; position: relative; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(82vw, 260px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-panel a {
  padding: 11px 12px;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 14px;
}
.menu-panel a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.menu-panel .btn { margin-top: 8px; justify-content: center; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border-radius: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  color: #04121a;
  background: linear-gradient(180deg, #2af0ff, #00d2ec);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.4), 0 8px 24px -8px rgba(0, 229, 255, 0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.55), 0 12px 30px -8px rgba(0, 229, 255, 0.7);
}
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.07);
  color: #fff;
}
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* =========================================================================
   Generic primitives
   ========================================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin: 0 0 18px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--text-soft);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

h1, h2, h3, h4 { color: var(--heading); margin: 0; }
.h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.4px;
}
.h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.grad {
  background: linear-gradient(100deg, var(--cyan), var(--magenta) 55%, var(--gold));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 60ch;
}
.muted { color: var(--muted); }

/* =========================================================================
   Sections
   ========================================================================= */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-tight { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { margin-top: 16px; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---- hero ---------------------------------------------------------------- */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(36px, 5vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero .h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.trust {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}
.trust i { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

/* hero visual frame */
.viz {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #0c1119, #0a0e14);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 229, 255, 0.06);
  overflow: hidden;
}
.viz-head {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.viz-sym { font-weight: 700; letter-spacing: 1.5px; color: #fff; }
.viz-spot { color: var(--gold); }
.viz-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); letter-spacing: 1px; }
.viz-svg { display: block; width: 100%; height: auto; }
.viz-caption { padding: 10px 16px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); }

/* =========================================================================
   Cards
   ========================================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 18px 40px -22px rgba(0, 229, 255, 0.45);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 17px; color: #eef3f8; }
.card p { margin: 0; font-size: 14.5px; color: var(--text-soft); line-height: 1.55; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-soft); font-size: 14px; }
.card ul li { margin: 4px 0; }

/* tinted accents for variety */
.card-icon.magenta { color: var(--magenta); background: rgba(224, 0, 224, 0.08); border-color: rgba(224, 0, 224, 0.22); }
.card-icon.gold { color: var(--gold); background: rgba(245, 166, 35, 0.08); border-color: rgba(245, 166, 35, 0.22); }

/* =========================================================================
   Numbered steps (research workflow)
   ========================================================================= */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 18px;
  row-gap: 0;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
}
.step-num {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  font-weight: 800;
  font-size: 16px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  grid-column: 1;
  grid-row: 1;
}
.step h3 { grid-column: 2; margin: 2px 0 6px; font-size: 16.5px; }
.step p { grid-column: 2; margin: 0; font-size: 14.5px; color: var(--text-soft); }

/* =========================================================================
   Spec / definition rows (key terms, metrics)
   ========================================================================= */
.deflist { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.defrow { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 16px 20px; border-top: 1px solid var(--border); }
.defrow:first-child { border-top: 0; }
.defrow dt { color: var(--heading); font-weight: 600; font-size: 15px; }
.defrow dd { margin: 0; color: var(--text-soft); font-size: 14.5px; }

/* =========================================================================
   FAQ (<details>)
   ========================================================================= */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 16px;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--cyan);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin: 0; padding: 0 20px 20px; color: var(--text-soft); font-size: 15px; line-height: 1.65; }

/* =========================================================================
   Callouts / disclaimers
   ========================================================================= */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: rgba(245, 166, 35, 0.04);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}
.callout strong { color: var(--heading); }
.callout.cyan { border-left-color: var(--cyan); background: rgba(0, 229, 255, 0.04); }

/* invite-only band */
.invite {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(0, 229, 255, 0.09), transparent 60%),
    var(--surface-2);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.invite .lede { margin: 16px auto 0; }

/* closing CTA */
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(0, 229, 255, 0.09), transparent 60%),
    var(--bg);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.05), 0 40px 90px -40px rgba(0, 229, 255, 0.3);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-band .lede { margin: 16px auto 28px; }

/* =========================================================================
   Breadcrumbs
   ========================================================================= */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--cyan); }
.crumbs span.sep { color: var(--border); }

/* =========================================================================
   Long-form prose (policies, insights)
   ========================================================================= */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 40px 0 14px; letter-spacing: -0.4px; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p { margin: 0 0 16px; color: var(--text-soft); font-size: 15.5px; line-height: 1.7; }
.prose ul { margin: 0 0 16px; padding-left: 22px; color: var(--text-soft); }
.prose li { margin: 6px 0; line-height: 1.6; }
.prose a { color: var(--cyan); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--heading); }
.prose .updated { font-size: 13px; color: var(--muted); margin-bottom: 32px; }

/* insights topic list */
.topic {
  display: block;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.25s;
}
.topic:hover { transform: translateY(-3px); border-color: rgba(0, 229, 255, 0.35); box-shadow: 0 16px 36px -22px rgba(0, 229, 255, 0.4); }
.topic .tag { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.topic h3 { margin: 10px 0 8px; font-size: 17px; }
.topic p { margin: 0; font-size: 14px; color: var(--text-soft); line-height: 1.55; }
.topic .soon { display: inline-block; margin-top: 12px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: clamp(40px, 6vw, 80px);
}
.footer-inner { padding-top: 48px; padding-bottom: 40px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .wordmark { font-size: 15px; }
.footer-brand p { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); max-width: 34ch; line-height: 1.6; }
.footer-col h4 { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 14px; }
.footer-col a { display: block; padding: 6px 0; font-size: 14px; color: var(--text-soft); }
.footer-col a:hover { color: var(--cyan); }
.footer-disclaimer { font-size: 12.5px; color: var(--muted); line-height: 1.65; padding: 28px 0 0; max-width: 90ch; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 20px; font-size: 12.5px; color: var(--muted); }
.footer-meta a { color: var(--text-soft); }
.footer-meta a:hover { color: var(--cyan); }

/* =========================================================================
   Utilities
   ========================================================================= */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack-lg > * + * { margin-top: clamp(28px, 4vw, 48px); }
.grad-rule { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent); }

/* =========================================================================
   Responsive
   ========================================================================= */
.show-mobile { display: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .viz { max-width: 560px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .defrow { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .nav { display: none; }
  .show-mobile { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step-num { width: 40px; height: 40px; }
  .step h3, .step p { grid-column: 1; }
}

@media (min-width: 681px) {
  .menu { display: none; }
}

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
