/* ============================================================
   OBSIDIAN CAPITAL - 2026 Institutional Report Landing
   Pure CSS, mobile-first. No frameworks, no build step.
   ============================================================ */

:root {
  --bg-0: #0B192C;
  --bg-deep: #081120;
  --bg-1: #0E2036;
  --panel: #1E3E62;
  --accent: #00F0FF;
  --accent-soft: rgba(0, 240, 255, .1);
  --line: rgba(0, 240, 255, .14);
  --line-soft: rgba(224, 230, 237, .09);
  --text: #E0E6ED;
  --text-dim: #9FB0C3;
  --text-faint: #6B7E94;
  --up: #2EE6A8;
  --down: #FF5C7A;
  --warn: #FFB454;
  --paper: #F7FAFC;
  --paper-accent: #0E7490;
  --f-d: 'Sora', 'Inter', system-ui, sans-serif;
  --f-b: 'Inter', system-ui, -apple-system, sans-serif;
  --f-m: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(.3, .75, .25, 1);
  --r-panel: 18px;
  --topH: 92px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-b);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(0, 240, 255, .07), transparent 60%),
    radial-gradient(900px 600px at -15% 30%, rgba(30, 62, 98, .35), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-0) 22%);
  background-attachment: fixed;
  padding-top: var(--topH);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: inline-block; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, output { font-family: inherit; }
ul, ol { list-style: none; }

::selection { background: rgba(0, 240, 255, .25); color: #fff; }

:focus-visible { outline: 2px solid rgba(0, 240, 255, .6); outline-offset: 3px; border-radius: 4px; }

.ic {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.container { width: min(1180px, 92%); margin-inline: auto; }

section { scroll-margin-top: calc(var(--topH) + 10px); }

/* ---------- Typography helpers ---------- */
.kicker {
  font-family: var(--f-m);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

h1, h2, h3, h4 { font-family: var(--f-d); letter-spacing: -.02em; line-height: 1.15; }

.sec-head { max-width: 640px; margin-bottom: 42px; }
.sec-head h2 { font-size: clamp(26px, 4.2vw, 38px); font-weight: 700; margin: 14px 0 12px; }
.sec-head .sub { color: var(--text-dim); font-size: 15.5px; }

/* ---------- Buttons, badges, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-b); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .65; cursor: wait; }

.btn-primary {
  background: var(--accent);
  color: #04121E;
  box-shadow: 0 0 0 1px rgba(0, 240, 255, .35), 0 10px 30px -10px rgba(0, 240, 255, .5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0, 240, 255, .5), 0 14px 38px -10px rgba(0, 240, 255, .65); }

.btn-ghost {
  border-color: rgba(0, 240, 255, .28);
  color: var(--accent);
  background: rgba(0, 240, 255, .05);
}
.btn-ghost:hover { background: rgba(0, 240, 255, .12); transform: translateY(-2px); }

.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 16px 26px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-m); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: rgba(0, 240, 255, .05);
  padding: 7px 14px; border-radius: 999px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 240, 255, .5);
  animation: pulse 2.2s infinite;
}

.chip {
  display: inline-block;
  font-family: var(--f-m); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 240, 255, .05);
}

.pill {
  display: inline-block;
  font-family: var(--f-m); font-size: 11.5px; font-weight: 600;
  padding: 3px 11px; border-radius: 999px;
}
.pill-g { color: var(--up); background: rgba(46, 230, 168, .12); }
.pill-m { color: var(--warn); background: rgba(255, 180, 84, .12); }
.pill-r { color: var(--down); background: rgba(255, 92, 122, .12); }

.micro {
  font-size: 12.5px; color: var(--text-faint);
  display: flex; align-items: center; gap: 7px;
}

/* ---------- Fixed top: ticker + nav ---------- */
.site-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8, 17, 32, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s, background .3s;
}
.site-top.scrolled { background: rgba(8, 17, 32, .94); box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .7); }

.ticker {
  height: 30px; overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track {
  display: flex; align-items: center;
  width: max-content;
  animation: tickerMove 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-m); font-size: 11px;
  margin-right: 34px; white-space: nowrap;
}
.tk-s { color: var(--text-dim); font-weight: 600; letter-spacing: .06em; }
.tk-p { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; transition: color .2s; }
.tk-p.flash-up { color: var(--up); }
.tk-p.flash-down { color: var(--down); }
.tk-d { font-style: normal; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.tk-d.up { color: var(--up); }
.tk-d.down { color: var(--down); }

.nav {
  height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1180px, 94%); margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); stroke-width: 1.5; }
.brand-name {
  font-family: var(--f-d); font-weight: 700; font-size: 15.5px;
  letter-spacing: .1em; color: var(--text);
}
.brand-accent { color: var(--accent); margin-left: 6px; font-weight: 600; }

.nav-links { display: none; gap: 30px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: color .2s; position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: inline-flex; padding: 8px; border-radius: 10px; border: 1px solid var(--line-soft); color: var(--text-dim); }
.nav-burger:hover { color: var(--text); border-color: var(--line); }

.mobile-menu {
  display: grid; gap: 4px;
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
  border-top: 1px solid transparent;
}
.site-top.menu-open .mobile-menu {
  max-height: 300px;
  border-top-color: var(--line-soft);
  padding: 12px 4% 18px;
}
.mobile-menu a {
  padding: 12px 10px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--text-dim);
}
.mobile-menu a:hover { color: var(--text); background: rgba(0, 240, 255, .06); }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 84px) 0 clamp(56px, 8vw, 96px); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(900px 560px at 68% 8%, #000 20%, transparent 75%);
  mask-image: radial-gradient(900px 560px at 68% 8%, #000 20%, transparent 75%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.bg-glow-a { width: 480px; height: 480px; right: -140px; top: -160px; background: rgba(0, 240, 255, .1); }
.bg-glow-b { width: 420px; height: 420px; left: -180px; top: 30%; background: rgba(30, 62, 98, .5); }

.hero-grid { position: relative; display: grid; gap: 54px; }
.hero-copy { max-width: 600px; }
.hero-copy h1 {
  font-size: clamp(30px, 5.4vw, 46px);
  font-weight: 700;
  margin: 20px 0 16px;
}
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.h1-yr { color: var(--text-faint); font-weight: 600; }
.lede { color: var(--text-dim); font-size: clamp(15.5px, 2vw, 17.5px); max-width: 520px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-copy .micro { margin-top: 14px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  justify-content: start; gap: clamp(18px, 4vw, 40px);
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.stat b {
  display: block;
  font-family: var(--f-m); font-weight: 600;
  font-size: clamp(19px, 3vw, 24px);
  color: var(--text); font-variant-numeric: tabular-nums;
}
.stat span { font-size: 11.5px; color: var(--text-faint); letter-spacing: .02em; }

/* entrance animation */
.hero .reveal.in { animation: fadeUp .7s var(--ease) both; }
.hero .d1 { animation-delay: .06s; }
.hero .d2 { animation-delay: .14s; }
.hero .d3 { animation-delay: .22s; }
.hero .d4 { animation-delay: .3s; }

/* ---------- Document deck (hero viewer) ---------- */
.hero-doc { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.deck-tilt { perspective: 1500px; isolation: isolate; }
.doc-deck {
  position: relative;
  width: min(330px, 76vw);
  height: min(466px, 107.5vw); /* 330 * 297/210, fallback-friendly (no aspect-ratio dependency) */
  touch-action: pan-y;
  cursor: grab;
}
.doc-deck:active { cursor: grabbing; }

.doc-page {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  transition: transform .55s var(--ease), opacity .45s var(--ease);
}
.doc-page.na { transition: none !important; }
/* dim overlay instead of filter(): filter flattens 3D compositing and can break painting on some GPU/Safari configs */
.doc-page::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 10px; background: rgba(8, 17, 32, 0);
  transition: background .55s var(--ease); pointer-events: none;
}
.p0 { transform: translate(0, 0) scale(1); z-index: 3; }
.p1 { transform: translate(7.5%, -2.5%) rotateY(-14deg) scale(.955); z-index: 2; }
.p2 { transform: translate(14.5%, -5%) rotateY(-24deg) scale(.905); z-index: 1; }
.p1::after { background: rgba(8, 17, 32, .22); }
.p2::after { background: rgba(8, 17, 32, .42); }
.p-out { transform: translate(-62%, -2%) rotate(-7deg) scale(.94); opacity: 0; z-index: 4; }
.p-out-r { transform: translate(58%, -3%) rotate(6deg) scale(.94); opacity: 0; z-index: 4; }

/* paper document */
.paper {
  position: relative; width: 100%; height: 100%;
  background: var(--paper); color: #0B192C;
  border-radius: 10px;
  padding: 14px 15px 11px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06);
  font-size: 11px;
}
.paper-head {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--f-m); font-size: 7px; letter-spacing: .08em;
  color: #5B6B7E;
  padding-bottom: 7px;
  border-bottom: 1px solid #E3EAF2;
}
.p-mark { width: 11px; height: 11px; color: var(--paper-accent); stroke-width: 2; }
.p-no { margin-left: auto; color: #94A3B8; }
.paper-wm {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-m); font-weight: 700;
  font-size: 12px; letter-spacing: .34em;
  color: rgba(11, 25, 44, .05);
  transform: rotate(-18deg);
  pointer-events: none; white-space: nowrap;
}
.p-kicker {
  font-family: var(--f-m); font-size: 8.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper-accent);
}
.paper h4 { font-size: 14.5px; font-weight: 700; line-height: 1.25; }

.p-row { display: flex; align-items: center; gap: 12px; }
.donut {
  position: relative; flex: none;
  width: 84px; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(#0E7490 0 40%, #0891B2 40% 65%, #22D3EE 65% 80%, #94A3B8 80% 100%);
  display: grid; place-items: center;
}
.donut::before {
  content: "";
  position: absolute; inset: 21%;
  background: var(--paper); border-radius: 50%;
}
.donut b { position: relative; font-family: var(--f-m); font-size: 15px; }
.donut span { position: relative; font-size: 7.5px; color: #64748B; margin-top: -3px; text-align: center; }
.legend { display: grid; gap: 4px; font-size: 9.5px; color: #31445A; }
.legend i, .lg {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  background: var(--c, var(--accent)); margin-right: 6px;
}
.legend li { display: flex; align-items: center; }

.p-list { display: grid; gap: 5px; }
.p-list li {
  position: relative; padding-left: 15px;
  font-size: 10px; color: #31445A; line-height: 1.45;
}
.p-list li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 8px; height: 8px;
  border-right: 1.7px solid var(--paper-accent);
  border-bottom: 1.7px solid var(--paper-accent);
  transform: rotate(-45deg) scale(.8);
}

.p-strip { display: flex; gap: 6px; margin-top: auto; }
.p-strip > div {
  flex: 1; background: #EEF4F9; border-radius: 7px;
  padding: 6px 8px;
}
.p-strip b { display: block; font-family: var(--f-m); font-size: 12px; color: #0B192C; }
.p-strip span { font-size: 7.5px; color: #64748B; letter-spacing: .03em; }

.paper-foot {
  display: flex; justify-content: space-between;
  font-family: var(--f-m); font-size: 7px; color: #8CA0B3;
  border-top: 1px solid #E3EAF2; padding-top: 6px; margin-top: 8px;
}

.bars { display: grid; gap: 7px; }
.bar-row {
  display: grid; grid-template-columns: 74px 1fr 38px;
  align-items: center; gap: 7px;
  font-size: 9.5px; color: #31445A;
}
.bar-row b { font-family: var(--f-m); font-weight: 600; text-align: right; font-size: 9.5px; }
.bar { height: 9px; border-radius: 5px; background: #E3EAF2; overflow: hidden; }
.bar i {
  display: block; height: 100%; width: var(--w, 50%);
  border-radius: 5px;
  background: linear-gradient(90deg, #0E7490, #06B6D4);
}
.p-note {
  font-size: 8.5px; color: #64748B; line-height: 1.5;
  background: #F1F5F9; border-left: 2px solid var(--paper-accent);
  padding: 6px 9px; border-radius: 0 6px 6px 0;
}
.layers { display: grid; gap: 6px; }
.layer {
  display: flex; justify-content: space-between; align-items: center;
  border-radius: 7px; padding: 8px 11px;
  color: #F7FAFC; font-size: 10px;
}
.layer b { font-family: var(--f-m); font-size: 11px; }
.layer.l1 { background: #0B192C; width: 100%; }
.layer.l2 { background: #155E75; width: 88%; }
.layer.l3 { background: #0E7490; width: 68%; }
.p-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.p-chips span {
  font-family: var(--f-m); font-size: 7.5px; letter-spacing: .04em;
  border: 1px solid #CBD5E1; color: #334155;
  padding: 3px 8px; border-radius: 999px; background: #F8FAFC;
}

/* deck controls */
.deck-ui { display: flex; align-items: center; gap: 16px; }
.ctrl {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--text-dim);
  background: rgba(30, 62, 98, .25);
  transition: all .25s var(--ease);
}
.ctrl:hover { color: var(--accent); border-color: rgba(0, 240, 255, .45); transform: translateY(-2px); box-shadow: 0 8px 22px -8px rgba(0, 240, 255, .4); }
.dots { display: flex; gap: 7px; }
.dots button {
  width: 7px; height: 7px; border-radius: 999px;
  background: rgba(224, 230, 237, .22);
  transition: all .35s var(--ease);
}
.dots button.on { width: 22px; background: var(--accent); box-shadow: 0 0 10px rgba(0, 240, 255, .6); }
.deck-cap {
  font-family: var(--f-m); font-size: 12px; color: var(--text-dim);
  letter-spacing: .04em; text-align: center;
}
.deck-meta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--text-faint);
}

/* ---------- Trust bar ---------- */
.trust { padding: 8px 0 64px; }
.trust-kicker {
  text-align: center; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 22px;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.trust-grid li {
  display: grid; gap: 3px; justify-items: start;
  border: 1px solid var(--line-soft);
  background: rgba(30, 62, 98, .16);
  border-radius: 14px; padding: 16px 15px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.trust-grid li:hover { transform: translateY(-3px); border-color: var(--line); background: rgba(30, 62, 98, .3); }
.trust-grid .ic { width: 21px; height: 21px; color: var(--accent); margin-bottom: 6px; }
.trust-grid b { font-size: 13px; font-weight: 600; }
.trust-grid span { font-size: 11.5px; color: var(--text-faint); line-height: 1.45; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; }

/* ---------- Report spread carousel ---------- */
.report { padding: 56px 0 72px; }
.spread {
  overflow: hidden;
  border-radius: var(--r-panel);
  touch-action: pan-y;
}
.spread-track {
  display: flex;
  transition: transform .6s var(--ease);
}
.slide {
  min-width: 100%;
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
  align-items: center;
}
.slide-copy { max-width: 520px; }
.slide-copy h3 { font-size: clamp(20px, 3.4vw, 26px); font-weight: 700; margin: 16px 0 10px; }
.slide-copy p { color: var(--text-dim); font-size: 14.5px; }

.checks { display: grid; gap: 10px; margin-top: 18px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.checks .ic { color: var(--up); width: 17px; height: 17px; margin-top: 3px; stroke-width: 2.1; }

.exhibit {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 62, 98, .32), rgba(30, 62, 98, .14));
  border-radius: var(--r-panel);
  padding: 20px;
  display: grid; gap: 14px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .7);
}
.ex-cap {
  font-family: var(--f-m); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint);
}
.spark { width: 100%; height: auto; }
.sp-axis { stroke: rgba(224, 230, 237, .12); stroke-width: 1; }
.sp-l1 { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(0, 240, 255, .55)); }
.sp-l2 { fill: none; stroke: rgba(159, 176, 195, .8); stroke-width: 1.4; stroke-dasharray: 4 4; }
.sp-l3 { fill: none; stroke: var(--up); stroke-width: 1.4; stroke-dasharray: 2 4; stroke-linecap: round; }
.ex-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--text-dim); }
.lg { width: 9px; height: 9px; border-radius: 3px; }
.lg-c { background: var(--accent); }
.lg-g { background: var(--up); }
.lg-d { background: rgba(159, 176, 195, .8); }
.ex-stats { display: flex; gap: 12px; }
.ex-stats > div {
  flex: 1; border: 1px solid var(--line-soft);
  background: rgba(8, 17, 32, .5);
  border-radius: 10px; padding: 9px 12px;
}
.ex-stats b { display: block; font-family: var(--f-m); font-size: 15px; color: var(--text); }
.ex-stats span { font-size: 10.5px; color: var(--text-faint); }

.bars-lg .bar-row { grid-template-columns: 110px 1fr 44px; font-size: 11.5px; }
.bars-lg .bar-row b { font-size: 11.5px; }
.bars-lg .bar { height: 12px; }
.bars-lg span:first-child { color: var(--text-dim); }

.mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mini-table th {
  text-align: left; font-family: var(--f-m); font-weight: 500;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); padding: 7px 8px;
  border-bottom: 1px solid var(--line-soft);
}
.mini-table td {
  padding: 8px; border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
}
.mini-table td:first-child { color: var(--text); font-weight: 500; }
.mini-table td:nth-child(2) { font-family: var(--f-m); color: var(--accent); }

.vault-stack { display: grid; gap: 7px; }
.vault-stack .layer { font-size: 12px; padding: 12px 14px; border-radius: 9px; }
.vault-stack .layer b { font-size: 13px; }

.spread-ui { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.spread-cap {
  text-align: center; margin-top: 12px;
  font-family: var(--f-m); font-size: 12px; color: var(--text-dim);
}
.center-cta { text-align: center; margin-top: 34px; }

/* ---------- Calculator ---------- */
.calc { padding: 72px 0; }
.calc-grid { display: grid; gap: 18px; }
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 62, 98, .34), rgba(30, 62, 98, .14));
  border-radius: var(--r-panel);
  box-shadow: 0 30px 80px -42px rgba(0, 0, 0, .75);
}
.controls { padding: 22px; display: grid; gap: 22px; }
.ctl-block { display: grid; gap: 10px; }
.ctl-top label, .ctl-label, .f-label {
  font-family: var(--f-m); font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-faint);
}

.amt-wrap {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(8, 17, 32, .55);
  border-radius: 12px; padding: 0 14px;
  transition: border-color .25s, box-shadow .25s;
}
.amt-wrap:focus-within { border-color: rgba(0, 240, 255, .5); box-shadow: 0 0 0 3px rgba(0, 240, 255, .12); }
.amt-wrap span { font-family: var(--f-m); color: var(--accent); font-size: 16px; }
.amt-wrap input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--text);
  font-family: var(--f-m); font-size: 19px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 12px 0;
  -moz-appearance: textfield; appearance: textfield;
}
.amt-wrap input::-webkit-outer-spin-button,
.amt-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row button {
  font-family: var(--f-m); font-size: 11.5px; font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 6px 13px;
  transition: all .22s var(--ease);
}
.chip-row button:hover { color: var(--text); border-color: var(--line); }
.chip-row button.on {
  color: var(--accent);
  border-color: rgba(0, 240, 255, .5);
  background: rgba(0, 240, 255, .09);
}

.slider-row { display: grid; gap: 7px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; }
.slider-top label { font-size: 13.5px; font-weight: 500; color: var(--text); }
.slider-top output { font-family: var(--f-m); font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), rgba(224, 230, 237, .13) var(--fill, 50%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; margin-top: -6px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, .14), 0 0 14px rgba(0, 240, 255, .55);
  transition: transform .2s var(--ease);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]::-moz-range-track {
  height: 5px; border-radius: 999px;
  background: rgba(224, 230, 237, .13);
}
input[type="range"]::-moz-range-progress {
  height: 5px; border-radius: 999px; background: var(--accent);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-0); border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, .14), 0 0 14px rgba(0, 240, 255, .55);
}
.ticks { display: flex; justify-content: space-between; font-family: var(--f-m); font-size: 10px; color: var(--text-faint); padding: 0 2px; }

.readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.ro {
  border: 1px solid var(--line-soft);
  background: rgba(8, 17, 32, .5);
  border-radius: 12px; padding: 11px 12px;
  display: grid; gap: 5px; justify-items: start;
}
.ro span { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.ro b { font-family: var(--f-m); font-size: 14.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

.results { padding: 22px; display: grid; gap: 16px; }
.res-label {
  font-family: var(--f-m); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint);
}
.res-label span { color: var(--accent); }
.res-main-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
#resMain {
  font-family: var(--f-m); font-weight: 600;
  font-size: clamp(30px, 6vw, 42px);
  color: var(--text); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(0, 240, 255, .22);
}
.delta {
  font-family: var(--f-m); font-size: 13px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px;
}
.delta.up { color: var(--up); background: rgba(46, 230, 168, .12); }
.delta.down { color: var(--down); background: rgba(255, 92, 122, .12); }
.res-range { font-size: 12.5px; color: var(--text-faint); }
.res-range b { font-family: var(--f-m); color: var(--text-dim); font-weight: 500; }

.chart-wrap { position: relative; height: clamp(230px, 34vw, 310px); }
.chart-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.legend-chips { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11.5px; color: var(--text-dim); }
.legend-chips span { display: inline-flex; align-items: center; }
.res-note { font-size: 11px; color: var(--text-faint); line-height: 1.55; border-top: 1px solid var(--line-soft); padding-top: 12px; }

/* ---------- Security ---------- */
.sec { padding: 72px 0; }
.sec-grid { display: grid; gap: 14px; }
.card {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(30, 62, 98, .26), rgba(30, 62, 98, .1));
  border-radius: var(--r-panel);
  padding: 26px 24px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 26px 60px -30px rgba(0, 240, 255, .25); }
.ic-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  color: var(--accent);
  background: rgba(0, 240, 255, .09);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.ic-box .ic { width: 22px; height: 22px; }
.card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 9px; }
.card p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }

/* ---------- Final CTA ---------- */
.final { padding: 24px 0 80px; }
.final-panel {
  position: relative; overflow: hidden;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(44px, 7vw, 68px) 24px;
  background:
    radial-gradient(600px 260px at 50% -20%, rgba(0, 240, 255, .13), transparent 70%),
    linear-gradient(180deg, rgba(30, 62, 98, .4), rgba(30, 62, 98, .14));
}
.final-panel h2 { font-size: clamp(26px, 4.6vw, 40px); font-weight: 700; margin-bottom: 12px; }
.final-panel p { color: var(--text-dim); margin-bottom: 26px; }
.final-panel .micro { justify-content: center; margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(8, 17, 32, .6);
  padding: 52px 0 28px;
}
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 34px; }
.foot-brand p { font-size: 13px; color: var(--text-faint); margin-top: 14px; max-width: 300px; }
.foot-col { display: grid; gap: 9px; align-content: start; justify-items: start; }
.foot-col b {
  font-family: var(--f-m); font-size: 10.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 5px;
}
.foot-col a, .foot-col button { font-size: 13.5px; color: var(--text-dim); transition: color .2s; padding: 0; text-align: left; }
.foot-col a:hover, .foot-col button:hover { color: var(--accent); }

.risk-box {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid rgba(255, 180, 84, .22);
  background: rgba(255, 180, 84, .05);
  border-radius: 12px;
  padding: 14px 16px; margin-bottom: 26px;
}
.risk-box .ic { color: var(--warn); margin-top: 3px; flex: none; }
.risk-box p { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.risk-box b { color: var(--warn); }

.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  border-top: 1px solid var(--line-soft); padding-top: 20px;
  font-family: var(--f-m); font-size: 11px; color: var(--text-faint);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 18px;
  visibility: hidden; opacity: 0;
  transition: opacity .3s, visibility .3s;
}
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 10, 18, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  width: min(462px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: linear-gradient(180deg, #10243D, #0C1B30);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px;
  transform: translateY(16px) scale(.97);
  transition: transform .35s var(--ease);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .85), 0 0 60px -30px rgba(0, 240, 255, .35);
}
.modal.open .modal-card { transform: none; }
.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim); border: 1px solid var(--line-soft);
  transition: all .22s;
}
.modal-x:hover { color: var(--text); border-color: var(--line); transform: rotate(90deg); }

.modal-body { display: grid; gap: 14px; }
.modal-body h3 { font-size: 22px; font-weight: 700; }
.modal-sub { font-size: 13.5px; color: var(--text-dim); margin-top: -6px; }

.field { display: grid; gap: 7px; }
.field label, .f-label { display: block; }
.field label em { font-style: normal; color: var(--text-faint); }
.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  background: rgba(8, 17, 32, .6);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .22s, box-shadow .22s;
}
.field input:focus { border-color: rgba(0, 240, 255, .55); box-shadow: 0 0 0 3px rgba(0, 240, 255, .12); }
.field input.bad { border-color: rgba(255, 92, 122, .65); box-shadow: 0 0 0 3px rgba(255, 92, 122, .12); }

.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg {
  border: 1px solid var(--line-soft);
  border-radius: 11px; padding: 11px;
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: all .22s var(--ease);
}
.seg:hover { border-color: var(--line); color: var(--text); }
.seg.on {
  color: var(--accent);
  border-color: rgba(0, 240, 255, .5);
  background: rgba(0, 240, 255, .09);
}

.org-wrap { animation: fadeUp .35s var(--ease) both; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-dim); cursor: pointer; }
.consent input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 2px; flex: none; }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.f-err { font-size: 12.5px; color: var(--down); min-height: 18px; }

.btn-load { display: inline-flex; align-items: center; gap: 9px; }
.spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(4, 18, 30, .3);
  border-top-color: #04121E;
  animation: spin .7s linear infinite;
}

.done { justify-items: center; text-align: center; padding: 10px 0; }
.ok { width: 74px; height: 74px; }
.ok-ring {
  fill: rgba(46, 230, 168, .08);
  stroke: var(--up); stroke-width: 2.4;
  stroke-dasharray: 170; stroke-dashoffset: 170;
  transform: rotate(-90deg); transform-origin: center;
  animation: draw 0.7s var(--ease) forwards;
}
.ok-tick {
  fill: none; stroke: var(--up); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: draw .45s var(--ease) .55s forwards;
}
.done .btn { margin-top: 6px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 16px; bottom: 16px; z-index: 150;
  width: min(368px, calc(100vw - 32px));
  background: linear-gradient(180deg, #10243D, #0C1B30);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: grid; gap: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 50px -30px rgba(0, 240, 255, .4);
  transform: translateY(140%);
  transition: transform .5s var(--ease);
}
.toast.show { transform: none; }
.toast p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.toast p b { color: var(--text); }
.toast-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.toast-x { color: var(--text-faint); width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.toast-x:hover { color: var(--text); background: rgba(224, 230, 237, .07); }

/* ---------- Keyframes ---------- */
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, .45); }
  70% { box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .slide { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  :root { --topH: 98px; }
  .nav { height: 64px; }
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .mobile-menu { display: none; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .slide { grid-template-columns: 1.05fr .95fr; gap: 34px; }
}

@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
  .doc-deck { width: 352px; height: 498px; }
  .trust-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .trust-grid li { padding: 18px 16px; }
  .calc-grid { grid-template-columns: .96fr 1.15fr; gap: 22px; }
  .sec-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-copy h1 { font-size: clamp(34px, 3.6vw, 46px); }
}

@media (max-width: 639px) {
  .readouts { grid-template-columns: 1fr 1fr; }
  .ro:first-child { grid-column: 1 / -1; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cta-row .btn { flex: 1 1 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

