/* Fonts are loaded via <link> tags in each page head (faster than @import). */

:root {
  --primary:       #1e3a8a;
  --primary-mid:   #1d4ed8;
  --accent:        #3b82f6;
  --accent-light:  #60a5fa;
  --dark:          #0f172a;
  --navy:          #1e293b;
  --ink:           #060f23;
  --ink-2:         #0f2356;
  --text:          #334155;
  --text-light:    #64748b;
  --text-lighter:  #94a3b8;
  --border:        #e2e8f0;
  --bg:            #f8fafc;
  --bg-alt:        #f1f5f9;
  --white:         #ffffff;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --shadow:        0 1px 2px rgba(15,23,42,.05);
  --shadow-md:     0 2px 8px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-lg:     0 12px 32px -8px rgba(15,23,42,.12);
  --shadow-xl:     0 24px 48px -12px rgba(15,23,42,.16);
  --radius:        0.5rem;
  --radius-lg:     0.75rem;
  --radius-xl:     1rem;
  --font-ui:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:  'Newsreader', Georgia, 'Times New Roman', serif;
}

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

body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv11';
}

::selection { background: rgba(59,130,246,.18); }

/* ─── REVEAL ON SCROLL ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal.in-view { opacity: 1; transform: none; }

/* Staggered children: add .reveal-stagger alongside .reveal on a grid/list */
.reveal-stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
}
.reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .4s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: .48s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: .56s; }
.reveal-stagger.in-view > *:nth-child(9) { transition-delay: .64s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.375rem 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.navbar.scrolled {
  background: rgba(6,15,35,.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  padding: .875rem 0;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.07);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav-logo-icon {
  width: 38px; height: 38px;
  background: var(--primary-mid);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .78rem; color: #fff; letter-spacing: .02em;
}
.nav-logo img { display: block; }
.nav-logo-text { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.nav-logo-sub  {
  font-size: .58rem; font-weight: 500; color: rgba(255,255,255,.42);
  display: block; letter-spacing: .14em; text-transform: uppercase; margin-top: .1rem;
}
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.64); text-decoration: none;
  font-size: .875rem; font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: .625rem; }
.nav-links a.active { color: #fff; }

/* Mobile navigation */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .5rem; color: #fff; margin-left: .5rem;
}
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(4,9,26,.98);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 6.5rem 2rem 2.5rem;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(226,232,240,.9); text-decoration: none;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  padding: 1rem 0; border-bottom: 1px solid rgba(148,163,184,.14);
}
.mobile-menu a:active { color: var(--accent-light); }
.mobile-menu-actions { display: flex; gap: .75rem; margin-top: auto; padding-top: 2rem; }
.mobile-menu-actions .btn { flex: 1; }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1.25rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; text-decoration: none; letter-spacing: -.006em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  font-family: inherit;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary:hover, .btn-white:hover { transform: translateY(-1px); }
.btn-primary:active, .btn-white:active { transform: translateY(0); }
.btn { transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
.btn-sm  { padding: .475rem .95rem; font-size: .8125rem; }
.btn-lg  { padding: .8rem 1.75rem; font-size: .9375rem; }
.btn-xl  { padding: .9rem 2rem; font-size: .9375rem; }

.btn-primary {
  background: var(--primary-mid);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(15,23,42,.24);
}
.btn-primary:hover { background: #1e40af; }
.btn-primary:active { background: var(--primary); }

.btn-outline {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.24);
}
.btn-outline:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }

.btn-white { background: #fff; color: var(--dark); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.btn-white:hover { background: #eef2f8; }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); }

.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: #059669; color: #fff; }
.btn-success:hover { background: #047857; }

.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); box-shadow: var(--shadow); }
.btn-secondary:hover { background: var(--bg); border-color: #cbd5e1; }
.btn-secondary.active { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ─── HERO ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(59,130,246,.16), transparent 60%),
    radial-gradient(900px 480px at -8% 110%, rgba(99,102,241,.1), transparent 62%),
    linear-gradient(158deg, #060f23 0%, #0a1a40 55%, #0f2356 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding-top: 80px;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 80%);
}
.hero-glow-1, .hero-glow-2 { display: none; }
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 5rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .3rem .85rem .3rem .75rem;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 100px; font-size: .72rem; font-weight: 600; color: rgba(226,232,240,.85);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 2rem;
  background: rgba(255,255,255,.03);
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--accent-light); border-radius: 50%; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 5.2vw, 4.35rem); font-weight: 500;
  line-height: 1.05; color: #f8fafc; letter-spacing: -.015em;
  margin-bottom: 1.75rem;
}
.hero-title-accent { font-style: italic; font-weight: 400; color: var(--accent-light); }
.hero-sub {
  font-size: 1.0625rem; color: rgba(203,213,225,.72);
  line-height: 1.75; margin-bottom: 2.5rem; max-width: 500px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: .875rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-divider { display: none; }
.hero-stats {
  display: flex; gap: 0;
  border-top: 1px solid rgba(148,163,184,.16);
  padding-top: 1.75rem;
}
.hero-stats > div { padding-right: 3rem; }
.hero-stats > div + div { padding-left: 3rem; border-left: 1px solid rgba(148,163,184,.16); }
.hero-stat-num {
  font-size: 2rem; font-weight: 700; color: #fff; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.hero-stat-label { font-size: .8125rem; color: rgba(148,163,184,.85); margin-top: .5rem; letter-spacing: .04em; }

/* Hero entrance animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-inner > div:first-child > * { animation: rise .75s cubic-bezier(.22,.61,.36,1) backwards; }
.hero-inner > div:first-child > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > div:first-child > *:nth-child(2) { animation-delay: .14s; }
.hero-inner > div:first-child > *:nth-child(3) { animation-delay: .23s; }
.hero-inner > div:first-child > *:nth-child(4) { animation-delay: .32s; }
.hero-inner > div:first-child > *:nth-child(5) { animation-delay: .41s; }
.hero-visual { animation: rise .9s cubic-bezier(.22,.61,.36,1) .4s backwards; }
.hero-panel-chart path:last-of-type {
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: chart-draw 1.8s ease-out .9s forwards;
}
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-inner > div:first-child > *, .hero-visual { animation: none; }
  .hero-panel-chart path:last-of-type { stroke-dasharray: none; animation: none; }
}

/* Hero product panel */
.hero-visual { display: flex; align-items: center; justify-content: flex-end; }
.hero-panel {
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, rgba(15,28,62,.82), rgba(10,20,48,.92));
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  box-shadow: 0 32px 64px -24px rgba(2,6,23,.7), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.hero-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .875rem 1.375rem;
  border-bottom: 1px solid rgba(148,163,184,.12);
}
.hero-panel-title { font-size: .75rem; font-weight: 600; color: rgba(203,213,225,.85); letter-spacing: .02em; }
.hero-panel-tag {
  font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(148,163,184,.7); border: 1px solid rgba(148,163,184,.24);
  border-radius: 4px; padding: .12rem .45rem;
}
.hero-panel-body { padding: 1.375rem; }
.hero-panel-value {
  font-size: 2.125rem; font-weight: 700; color: #fff; line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.hero-panel-delta { font-size: .8125rem; font-weight: 600; color: #34d399; margin-top: .45rem; font-variant-numeric: tabular-nums; }
.hero-panel-delta span { color: rgba(148,163,184,.7); font-weight: 500; }
.hero-panel-chart { margin: 1.25rem 0 .25rem; }
.hero-panel-rows { border-top: 1px solid rgba(148,163,184,.12); }
.hero-panel-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 1rem; align-items: center;
  padding: .8rem 1.375rem;
  font-variant-numeric: tabular-nums;
}
.hero-panel-row + .hero-panel-row { border-top: 1px solid rgba(148,163,184,.08); }
.hero-panel-sym { font-size: .8125rem; font-weight: 600; color: #e2e8f0; }
.hero-panel-name { font-size: .7rem; color: rgba(148,163,184,.65); margin-top: .1rem; }
.hero-panel-px { font-size: .8125rem; font-weight: 500; color: rgba(226,232,240,.85); text-align: right; }
.hero-panel-chg { font-size: .78rem; font-weight: 600; text-align: right; min-width: 64px; }
.hero-panel-chg.up { color: #34d399; }
.hero-panel-chg.down { color: #f87171; }

/* Legacy mock classes (kept for compatibility) */
.hero-mockup { position: relative; width: 420px; height: 400px; }
.mock-card {
  position: absolute;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 1.5rem;
}

/* ─── SCROLL-TO-TOP PROGRESS BUTTON ───────────────── */
.scroll-top {
  position: fixed; left: 24px; bottom: 24px; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; padding: 0;
  background: var(--ink); color: #fff; border: 1px solid rgba(148,163,184,.22);
  cursor: pointer; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.22,.61,.36,1), background .2s ease;
  box-shadow: 0 12px 28px -10px rgba(2,6,23,.6);
}
.scroll-top.show { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top:hover { background: #12224e; }
.scroll-top:active { transform: scale(.94); }
.scroll-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.scroll-top .ring-track { stroke: rgba(148,163,184,.22); }
.scroll-top .ring-progress { stroke: var(--accent-light); stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
.scroll-top .arrow { position: relative; z-index: 1; transition: transform .2s ease; }
.scroll-top:hover .arrow { transform: translateY(-2px); }
@media (max-width: 600px) { .scroll-top { left: 16px; bottom: 16px; width: 48px; height: 48px; } }

/* ─── MARKET TICKER ───────────────────────────────── */
.ticker-wrap {
  background: #04091a;
  border-top: 1px solid rgba(148,163,184,.1);
  overflow: hidden; padding: .8rem 0; position: relative;
}
.ticker-wrap::before, .ticker-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(90deg, #04091a, transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(-90deg, #04091a, transparent); }
.ticker { display: flex; width: max-content; animation: ticker-scroll 45s linear infinite; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker-item {
  display: flex; align-items: baseline; gap: .55rem;
  padding: 0 1.75rem; white-space: nowrap;
  font-size: .8125rem; font-variant-numeric: tabular-nums;
  border-right: 1px solid rgba(148,163,184,.12);
}
.ticker-sym { font-weight: 700; color: #e2e8f0; letter-spacing: .02em; }
.ticker-name { color: rgba(148,163,184,.55); font-size: .72rem; }
.ticker-px  { color: rgba(148,163,184,.9); }

/* Data-source status chip pinned to the left edge of the tape */
.ticker-status {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: .5rem;
  padding: 0 1.125rem;
  background: #04091a; border-right: 1px solid rgba(148,163,184,.15);
  font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(148,163,184,.85); white-space: nowrap;
}
.ticker-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; flex-shrink: 0; }
.ticker-status.live { color: rgba(167,243,208,.95); }
.ticker-status.live .ticker-status-dot { background: #34d399; animation: status-blink 2.2s ease-in-out infinite; }
@keyframes status-blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.ticker-chg { font-weight: 600; font-size: .75rem; }
.ticker-chg.up   { color: #34d399; }
.ticker-chg.down { color: #f87171; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker { animation: none; } }

/* Live price flash */
.ticker-item.pulse-up   { animation: pulse-up .9s ease-out; }
.ticker-item.pulse-down { animation: pulse-down .9s ease-out; }
.hero-panel-row.pulse-up   { animation: pulse-up .9s ease-out; }
.hero-panel-row.pulse-down { animation: pulse-down .9s ease-out; }
@keyframes pulse-up   { 0% { background: rgba(52,211,153,.14); } 100% { background: transparent; } }
@keyframes pulse-down { 0% { background: rgba(248,113,113,.14); } 100% { background: transparent; } }

/* ─── FAQ ─────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; font-family: inherit;
  text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem .25rem; font-size: 1.0313rem; font-weight: 600; color: var(--dark);
  cursor: pointer; letter-spacing: -.01em; transition: color .2s;
}
.faq-q:hover { color: var(--primary-mid); }
.faq-q svg { flex-shrink: 0; transition: transform .3s ease; color: var(--text-lighter); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--primary-mid); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 3rem 1.5rem .25rem; font-size: .9375rem; color: var(--text-light); line-height: 1.8; }

/* ─── SECTIONS ────────────────────────────────────── */
.section        { padding: 7rem 0; }
.section-alt    { background: #fff; }
.section-dark   { background: var(--ink); }
.container      { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--primary-mid); margin-bottom: 1.125rem;
}
.section-eyebrow::before {
  content: ''; width: 22px; height: 1px; background: currentColor; opacity: .5;
}
.section-dark .section-eyebrow { color: var(--accent-light); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 3.5vw, 2.85rem); font-weight: 500;
  line-height: 1.12; letter-spacing: -.012em;
  color: var(--dark); margin-bottom: 1.125rem;
}
.section-title em { font-style: italic; font-weight: 400; color: var(--primary-mid); }
.section-title.light { color: #f8fafc; }
.section-title.light em { color: var(--accent-light); }
.section-sub { font-size: 1.0313rem; color: var(--text-light); max-width: 580px; line-height: 1.75; }
.section-sub.light { color: rgba(203,213,225,.66); }
.section-head  { margin-bottom: 3.5rem; }
.section-head.centered { text-align: center; }
.section-head.centered .section-eyebrow { justify-content: center; }
.section-head.centered .section-eyebrow::after {
  content: ''; width: 22px; height: 1px; background: currentColor; opacity: .5;
}
.section-head.centered .section-sub { margin: 0 auto; }

/* ─── STATS BAR ───────────────────────────────────── */
.stats-bar { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0; }
.stats-bar-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stats-bar-item { text-align: center; padding: 2.75rem 1rem; }
.stats-bar-item + .stats-bar-item { border-left: 1px solid var(--border); }
.stats-bar-num {
  font-size: 2.25rem; font-weight: 700; color: var(--dark); line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.stats-bar-label {
  font-size: .72rem; color: var(--text-light); margin-top: .625rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
}

/* ─── FEATURE GRID (editorial, ruled) ─────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  background: #fff; padding: 2.5rem 2.25rem;
  transition: background .25s ease;
  position: relative;
}
.feature-card:hover { background: var(--bg); }
.feature-num {
  font-size: .72rem; font-weight: 600; color: var(--text-lighter);
  letter-spacing: .12em; margin-bottom: 2.25rem; font-variant-numeric: tabular-nums;
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.375rem;
  background: #eff6ff; color: var(--primary-mid);
  border: 1px solid #dbeafe;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature-title { font-size: 1.0938rem; font-weight: 700; color: var(--dark); margin-bottom: .625rem; letter-spacing: -.01em; }
.feature-desc  { font-size: .9219rem; color: var(--text-light); line-height: 1.7; }

/* ─── COMMITTEES ──────────────────────────────────── */
.committees-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.committee-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(148,163,184,.14);
  border-radius: var(--radius-lg); padding: 1.875rem 1.75rem;
  transition: border-color .25s ease, background .25s ease;
  display: flex; flex-direction: column;
}
.committee-card:hover { background: rgba(255,255,255,.05); border-color: rgba(96,165,250,.45); }
.committee-tag {
  display: inline-block; font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-light);
  margin-bottom: .875rem;
}
.committee-name {
  font-family: var(--font-display);
  font-size: 1.4375rem; font-weight: 500; color: #f8fafc; margin-bottom: .7rem; letter-spacing: -.01em;
}
.committee-desc { font-size: .9063rem; color: rgba(148,163,184,.85); line-height: 1.65; flex: 1; }
.committee-spots {
  font-size: .75rem; color: rgba(148,163,184,.6); margin-top: 1.5rem; font-weight: 500;
  padding-top: 1rem; border-top: 1px solid rgba(148,163,184,.12);
  display: flex; align-items: center; gap: .5rem;
  font-variant-numeric: tabular-nums;
}
.committee-spots::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #34d399; }

/* ─── CTA SECTION ─────────────────────────────────── */
.cta-section {
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(59,130,246,.22), transparent 60%),
    var(--ink);
  border-top: 1px solid rgba(148,163,184,.1);
  padding: 7rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 4vw, 3.125rem); font-weight: 500; color: #f8fafc;
  margin-bottom: 1.125rem; letter-spacing: -.01em; line-height: 1.1;
}
.cta-section p {
  font-size: 1.0313rem; color: rgba(203,213,225,.62); margin-bottom: 2.5rem;
  max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.8;
}

/* ─── FOOTER ──────────────────────────────────────── */
.footer { background: #050b1a; color: rgba(203,213,225,.55); padding: 5rem 0 2.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3.5rem; border-bottom: 1px solid rgba(148,163,184,.1); margin-bottom: 2rem;
}
.footer-brand p { font-size: .875rem; line-height: 1.8; margin-top: 1.25rem; max-width: 300px; color: rgba(148,163,184,.7); }
.footer-col h4 {
  font-size: .7rem; font-weight: 700; color: rgba(226,232,240,.9); margin-bottom: 1.25rem;
  text-transform: uppercase; letter-spacing: .12em;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .7rem; }
.footer-links a { color: rgba(148,163,184,.7); text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: rgba(100,116,139,.8);
}

/* ─── AUTH PAGES ──────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left {
  background:
    radial-gradient(700px 420px at 85% 0%, rgba(59,130,246,.14), transparent 62%),
    linear-gradient(158deg, #060f23 0%, #0f2356 100%);
  padding: 3rem 3.5rem; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-left::before { display: none; }
.auth-left-quote { max-width: 400px; position: relative; z-index: 1; margin-top: auto; margin-bottom: 2.5rem; }
.auth-left-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.625rem; font-weight: 400; font-style: italic;
  color: #e2e8f0; line-height: 1.45; margin-bottom: 1.125rem; letter-spacing: -.005em;
}
.auth-left-quote cite { font-size: .8125rem; color: rgba(148,163,184,.75); font-style: normal; letter-spacing: .02em; }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 3rem; background: #fff; }
.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-form-title { font-size: 1.625rem; font-weight: 700; color: var(--dark); letter-spacing: -.02em; margin-bottom: .5rem; }
.auth-form-sub   { font-size: .9375rem; color: var(--text-light); margin-bottom: 2rem; }
.auth-divider { text-align: center; color: var(--text-lighter); font-size: .8125rem; margin: 1.5rem 0; position: relative; }
.auth-divider::before,.auth-divider::after { content:''; position:absolute; top:50%; width:44%; height:1px; background:var(--border); }
.auth-divider::before{left:0} .auth-divider::after{right:0}
.auth-link { font-size: .9375rem; text-align: center; color: var(--text-light); margin-top: 1.5rem; }
.auth-link a { color: var(--primary-mid); font-weight: 600; text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }

/* ─── FORM ELEMENTS ───────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .8125rem; font-weight: 600; color: var(--navy); margin-bottom: .45rem; letter-spacing: -.003em; }
.form-input {
  width: 100%; padding: .7rem .95rem; border: 1px solid #cbd5e1;
  border-radius: var(--radius); font-size: .9375rem; color: var(--dark); background: #fff;
  transition: border-color .18s, box-shadow .18s; outline: none; font-family: inherit;
  box-shadow: var(--shadow);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.form-input::placeholder { color: var(--text-lighter); }
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .875rem center; background-size: 1.125rem;
  padding-right: 2.75rem; cursor: pointer;
}
textarea.form-input { resize: vertical; min-height: 130px; line-height: 1.65; }
.form-hint  { font-size: .78rem; color: var(--text-lighter); margin-top: .4rem; }

/* ─── ALERTS ──────────────────────────────────────── */
.alert {
  padding: .8rem 1.05rem; border-radius: var(--radius);
  font-size: .855rem; font-weight: 500; margin-bottom: 1.25rem; line-height: 1.5;
}
.alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.hidden { display: none !important; }

/* ─── SPINNER ─────────────────────────────────────── */
.spinner {
  width: 16px; height: 16px; border-radius: 50%; display: inline-block;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .6s linear infinite;
}
.spinner-blue { border-color: rgba(59,130,246,.25); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── APP SHELL ───────────────────────────────────── */
.app-shell { min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #0c1425 0%, var(--dark) 100%);
  width: 260px; position: fixed; top: 0; left: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 1.5rem 1.25rem; overflow-y: auto; z-index: 100;
  border-right: 1px solid rgba(148,163,184,.08);
}
.sb-logo {
  display: flex; align-items: center; gap: .75rem; text-decoration: none;
  padding: .25rem .5rem 1.625rem; border-bottom: 1px solid rgba(148,163,184,.1); margin-bottom: 1rem;
}
.sb-logo-icon {
  width: 36px; height: 36px; background: var(--primary-mid);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .78rem; color: #fff;
}
.sb-logo-text { font-size: .9375rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.sb-logo-sub  {
  font-size: .56rem; color: rgba(148,163,184,.6); font-weight: 500;
  text-transform: uppercase; letter-spacing: .13em; margin-top: .1rem; display: block;
}
.sb-nav { flex: 1; }
.sb-section-label {
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(148,163,184,.45); padding: 0 .75rem; margin: 1.375rem 0 .5rem;
}
.nav-item {
  display: flex; align-items: center; gap: .7rem; padding: .575rem .75rem;
  border-radius: var(--radius); color: rgba(203,213,225,.62); text-decoration: none;
  font-size: .855rem; font-weight: 500; transition: background .18s, color .18s; margin-bottom: 2px;
  position: relative;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .75; }
.nav-item:hover { background: rgba(148,163,184,.09); color: #fff; }
.nav-item:hover svg { opacity: 1; }
.nav-item.active { background: rgba(59,130,246,.14); color: #93c5fd; }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 2px; border-radius: 2px; background: var(--accent);
}
.nav-item.active svg { opacity: 1; }

.demo-badge {
  margin-left: auto;
  font-size: .56rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(148,163,184,.75);
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 4px; padding: .1rem .38rem;
  line-height: 1.4; flex-shrink: 0;
}
.demo-badge.on-light {
  color: var(--text-light); border-color: #cbd5e1; background: var(--bg);
  margin-left: .625rem; vertical-align: 2px;
}

.sb-footer { border-top: 1px solid rgba(148,163,184,.1); padding-top: 1rem; }
.sb-user { display: flex; align-items: center; gap: .75rem; padding: .625rem .75rem; border-radius: var(--radius); }
.sb-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-mid);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .8125rem; color: #fff; flex-shrink: 0;
}
.sb-user-name { font-size: .8438rem; font-weight: 600; color: #fff; line-height: 1.25; }
.sb-user-role { font-size: .7rem; color: rgba(148,163,184,.65); margin-top: .05rem; }
.sb-logout-btn {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem;
  border-radius: var(--radius); color: rgba(148,163,184,.7); font-size: .8125rem; font-weight: 500;
  cursor: pointer; margin-top: 2px; transition: background .18s, color .18s;
  background: none; border: none; width: 100%; font-family: inherit; text-align: left;
}
.sb-logout-btn:hover { background: rgba(148,163,184,.09); color: #e2e8f0; }
button.sb-logout-btn:hover { background: rgba(239,68,68,.1); color: #fca5a5; }

.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(6,15,35,.45); z-index: 99;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sidebar-backdrop.show { opacity: 1; pointer-events: all; }
.menu-btn {
  display: none; width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  cursor: pointer; align-items: center; justify-content: center;
  color: var(--text); margin-right: .875rem; box-shadow: var(--shadow);
}

.main-content { margin-left: 260px; min-height: 100vh; background: var(--bg); }
.topbar {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 1.125rem 2.25rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 1.1875rem; font-weight: 700; color: var(--dark); letter-spacing: -.02em; }
.topbar-sub   { font-size: .8125rem; color: var(--text-light); margin-top: .15rem; }
.content-area { padding: 2.25rem; max-width: 1240px; }

/* ─── KPI CARDS ───────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.125rem; margin-bottom: 1.75rem; }
.kpi-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.375rem 1.5rem; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.kpi-card:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.kpi-label {
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-light); margin-bottom: .8rem;
}
.kpi-value {
  font-size: 1.75rem; font-weight: 700; color: var(--dark); line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.kpi-change { font-size: .78rem; font-weight: 600; margin-top: .55rem; color: var(--text-light); font-variant-numeric: tabular-nums; }
.kpi-change.up   { color: #059669; }
.kpi-change.down { color: #dc2626; }
.kpi-icon {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--bg);
}
.kpi-icon.blue   { background: #eff6ff; border-color: #dbeafe; }
.kpi-icon.green  { background: #f0fdf4; border-color: #dcfce7; }
.kpi-icon.purple { background: #f5f3ff; border-color: #ede9fe; }
.kpi-icon.amber  { background: #fffbeb; border-color: #fef3c7; }

/* ─── CARDS / PANELS ──────────────────────────────── */
.panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.panel-header {
  padding: 1.125rem 1.5rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-title  { font-size: .9375rem; font-weight: 700; color: var(--dark); letter-spacing: -.01em; }
.panel-body   { padding: 1.5rem; }

/* ─── TABLE ───────────────────────────────────────── */
.table-wrap {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; }
th {
  padding: .7rem 1.5rem; font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-light); text-align: left;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
td {
  padding: .95rem 1.5rem; font-size: .855rem; color: var(--text);
  border-bottom: 1px solid var(--bg-alt); vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: var(--bg); }

/* ─── BADGES ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .6rem; border-radius: 5px;
  font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.badge-pending  { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-approved { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-member   { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-admin    { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-committee{ background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-buy  { background: #f0fdf4; color: #047857; border: 1px solid #bbf7d0; }
.badge-sell { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ─── MODAL ───────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0; background: rgba(6,15,35,.5); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; pointer-events: none; transition: opacity .22s;
}
.modal-bg.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff; border-radius: var(--radius-xl); padding: 2rem;
  width: 100%; max-width: 520px; margin: 1rem;
  box-shadow: var(--shadow-xl);
  transform: scale(.97) translateY(10px); transition: transform .25s cubic-bezier(.22,.61,.36,1);
}
.modal-bg.open .modal-box { transform: scale(1) translateY(0); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.1875rem; font-weight: 700; color: var(--dark); letter-spacing: -.015em; }
.modal-close {
  width: 30px; height: 30px; border-radius: 6px; border: none; background: var(--bg-alt);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; color: var(--text-light); transition: background .18s;
}
.modal-close:hover { background: var(--border); color: var(--text); }

/* ─── SIMULATOR ───────────────────────────────────── */
.sim-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.375rem; align-items: start; }
.asset-list {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; max-height: calc(100vh - 180px); overflow-y: auto; box-shadow: var(--shadow);
}
.asset-search { padding: .875rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 1; }
.asset-search input {
  width: 100%; padding: .575rem .875rem; border: 1px solid #cbd5e1;
  border-radius: var(--radius); font-size: .855rem; outline: none; font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.asset-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.asset-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1rem; border-bottom: 1px solid var(--bg-alt);
  cursor: pointer; transition: background .12s;
}
.asset-item:last-child { border-bottom: none; }
.asset-item:hover { background: var(--bg); }
.asset-item.selected { background: #eff6ff; box-shadow: inset 2px 0 0 var(--accent); }
.asset-sym { font-size: .875rem; font-weight: 700; color: var(--dark); letter-spacing: -.01em; }
.asset-name-small { font-size: .72rem; color: var(--text-light); margin-top: .1rem; }
.asset-price { font-size: .875rem; font-weight: 600; color: var(--dark); text-align: right; font-variant-numeric: tabular-nums; }
.asset-change { font-size: .72rem; font-weight: 600; text-align: right; margin-top: .1rem; font-variant-numeric: tabular-nums; }
.asset-change.up   { color: #059669; }
.asset-change.down { color: #dc2626; }

.sim-main { display: flex; flex-direction: column; gap: 1.375rem; }
.trade-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.375rem; }

/* ─── BOARD ───────────────────────────────────────── */
.board-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.board-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  box-shadow: var(--shadow);
}
.board-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.board-photo {
  width: 100%; aspect-ratio: 4 / 4.4;
  background:
    radial-gradient(320px 200px at 80% 0%, rgba(59,130,246,.22), transparent 60%),
    linear-gradient(160deg, #14245c 0%, var(--dark) 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.board-initials {
  font-family: var(--font-display);
  font-size: 2.625rem; font-weight: 400; font-style: italic;
  color: rgba(226,232,240,.28); letter-spacing: .02em;
  user-select: none;
}
.board-meta { padding: 1.125rem 1.25rem 1.25rem; }
.board-role {
  font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--primary-mid); margin-bottom: .35rem;
}
.board-name { font-size: 1.0313rem; font-weight: 700; color: var(--dark); letter-spacing: -.01em; }

/* ─── GRID HELPERS ────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.375rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.375rem; }

/* ─── UTILS ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.font-bold { font-weight: 700; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.text-muted { color: var(--text-light); }
.text-success { color: #059669; }
.text-danger  { color: #dc2626; }
.text-primary { color: var(--primary-mid); }
/* Loading skeletons */
.skeleton {
  position: relative; overflow: hidden;
  background: var(--bg-alt); border-radius: 6px;
}
.skeleton::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton-rows { padding: 1.375rem 1.5rem; display: flex; flex-direction: column; gap: 1.05rem; }
.skeleton-row { height: 15px; }

.empty-state { text-align: center; padding: 3.5rem 2rem; color: var(--text-light); }
.empty-state-icon { margin-bottom: .875rem; opacity: .35; }
.empty-state p { font-size: .9rem; }
.empty-state a { color: var(--primary-mid); font-weight: 600; text-decoration: none; }
.empty-state a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-visual { display: none; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .committees-grid { grid-template-columns: repeat(2,1fr); }
  .stats-bar-grid { grid-template-columns: repeat(2,1fr); }
  .stats-bar-item:nth-child(3) { border-left: none; }
  .stats-bar-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sim-layout { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .main-content { margin-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: translateX(0); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .menu-btn { display: inline-flex; }
  .topbar > .menu-btn + div { flex: 1; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .features-grid, .committees-grid { grid-template-columns: 1fr; }
  .trade-panel { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats > div { padding-right: 1.5rem; }
  .hero-stats > div + div { padding-left: 1.5rem; }
  .content-area { padding: 1.25rem; }
  .topbar { padding: 1rem 1.25rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; }
}
@media (max-width: 580px) {
  .board-grid { grid-template-columns: 1fr; }
  .nav-actions { display: none; }
}
