:root {
  /* Palette (from your VDX / Vol Dynamics set) */
  --blue-900: #3E578E;
  --blue-700: #2c5894;
  --blue-600: #356c7c;
  --blue-300: #7d9cbe;
  --slate-100: #e6e6e6; /* background (light gray, no grid) */
  --paper: #ffffff;
  --text: #434343;
  --muted: #475467;
  --muted-2: #667085;
  --line: rgba(16, 24, 40, 0.12);
  --shadow: 0 22px 60px rgba(16, 24, 40, 0.12);
  --shadow2: 0 10px 25px rgba(16, 24, 40, 0.10);
  --radius: 18px;

  /* Heights for fixed bars */
  --topbar-h: 84px;
  --bottombar-h: 84px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  background: var(--slate-100);
  /* Aptos first, with sane fallbacks */
  font-family: Aptos, "Segoe UI", "Inter", system-ui, -apple-system, Arial, sans-serif;
  letter-spacing: -0.01em;
}

/* Make space for fixed bars */
.main {
  padding-top: calc(var(--topbar-h) + 34px);
  padding-bottom: calc(var(--bottombar-h) + 34px);
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* Links */
.link {
  color: var(--blue-700);
  text-decoration: none;
  border-bottom: 1px solid rgba(44, 88, 148, 0.28);
}
.link:hover { border-bottom-color: rgba(44, 88, 148, 0.55); }
.link--footer { color: #d3d9e6; border-bottom-color: rgba(211, 217, 230, 0.35); }

/* Top bar */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  z-index: 50;
  background: rgba(243, 243, 243, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  height: 100%;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

/* Brand (BIG logo) */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 190px; /* helps keep nav stable */
}

.brand__logo {
  height: 160px;  /* BIGGER; if you want even bigger, raise to 80–96 */
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(16, 24, 40, 0.10));
}

/* Nav (left aligned) */
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;        /* keep on one line */
  white-space: nowrap;
  overflow-x: auto;         /* if screen is small */
  padding: 8px 0;
  flex: 1;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(16, 24, 40, 0.78);
  text-decoration: none;
  border: 1px solid transparent;
}

.nav__link:hover {
  background: rgba(125, 156, 190, 0.18);
  border-color: rgba(44, 88, 148, 0.15);
}

.nav__link.active {
  color: var(--blue-900);
  background: rgba(44, 88, 148, 0.12);
  border-color: rgba(44, 88, 148, 0.20);
}

.nav__link--pill {
  background: rgba(42, 59, 91, 0.06);
  border-color: rgba(42, 59, 91, 0.12);
}

/* Pages */
.page { display: none; }
.page.active { display: block; }

.pageHead {
  margin-bottom: 22px;
}
.pageHead h1 {
  margin: 0 0 8px 0;
  font-size: 36px;
  letter-spacing: -0.03em;
}
.muted { color: var(--muted); }
.small { font-size: 12px; color: var(--muted-2); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(44, 88, 148, 0.12);
  border: 1px solid rgba(44, 88, 148, 0.18);
  font-weight: 700;
  font-size: 12px;
  color: var(--blue-900);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__title {
  margin: 14px 0 10px 0;
  font-size: 46px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero__titleAccent {
  color: var(--blue-900);
}

.hero__lead {
  margin: 0 0 18px 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(16, 24, 40, 0.78);
}

.hero__ctaRow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(180deg, var(--blue-700), var(--blue-900));
  color: #fff;
  box-shadow: 0 10px 18px rgba(44, 88, 148, 0.22);
}
.btn--primary:hover { filter: brightness(1.03); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(16, 24, 40, 0.14);
  color: rgba(16, 24, 40, 0.82);
}
.btn--ghost:hover { box-shadow: var(--shadow2); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 24, 40, 0.10);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}
.stat__num {
  font-size: 18px;
  font-weight: 900;
  color: var(--blue-900);
}
.stat__txt {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

/* Panels / Cards */
.panel, .card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: var(--radius);
}

.panel--elevated {
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__header {
  padding: 16px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel__title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.panel__tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-900);
  background: rgba(125, 156, 190, 0.18);
  border: 1px solid rgba(125, 156, 190, 0.22);
  padding: 6px 10px;
  border-radius: 999px;
}

.panel__grid {
  padding: 10px 18px 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.panel__footer {
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(16, 24, 40, 0.10);
}

.pillCard {
  padding: 14px;
  border-radius: 16px;
  background: rgba(42, 59, 91, 0.04);
  border: 1px solid rgba(42, 59, 91, 0.12);
}
.pillCard__t { font-weight: 900; color: var(--blue-900); margin-bottom: 6px; }
.pillCard__d { font-size: 13px; color: rgba(16, 24, 40, 0.75); line-height: 1.45; }

.card {
  padding: 18px;
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.06);
}

.section { margin-top: 26px; }
.section h2 { margin: 0 0 8px 0; font-size: 22px; letter-spacing: -0.02em; }

.list { margin: 10px 0 0 18px; color: rgba(16, 24, 40, 0.78); line-height: 1.55; }
.list li { margin: 6px 0; }

/* Layout helpers */
.cards2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* SPIVA cards */
.spiva {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.spiva__card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 24, 40, 0.12);
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.06);
}
.spiva__card--dark {
  background: linear-gradient(180deg, rgba(42, 59, 91, 0.92), rgba(42, 59, 91, 0.98));
  color: #fff;
  border-color: rgba(255,255,255,0.10);
}
.spiva__k { font-weight: 900; color: var(--blue-900); }
.spiva__card--dark .spiva__k { color: rgba(255,255,255,0.85); }
.spiva__v { margin-top: 6px; font-size: 28px; font-weight: 1000; letter-spacing: -0.03em; }
.spiva__s { margin-top: 4px; color: var(--muted); font-size: 13px; }
.spiva__card--dark .spiva__s { color: rgba(255,255,255,0.72); }

/* Mini chart */
.miniChart {
  margin-top: 12px;
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 24, 40, 0.12);
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.06);
}

.miniChart__row {
  display: grid;
  grid-template-columns: 40px 1fr 64px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.miniChart__label { font-weight: 900; color: var(--blue-900); }
.miniChart__barWrap {
  height: 10px;
  border-radius: 999px;
  background: rgba(42, 59, 91, 0.08);
  overflow: hidden;
  border: 1px solid rgba(42, 59, 91, 0.10);
}
.miniChart__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-900));
}
.miniChart__val { text-align: right; font-weight: 900; color: rgba(16, 24, 40, 0.75); }
.miniChart__note { margin-top: 8px; font-size: 12px; }

/* Metric squares (like your sample) */
.metricSquares {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

.metricSquare {
  border-radius: 18px;
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, rgba(42, 59, 91, 0.94), rgba(42, 59, 91, 0.98));
  color: #fff;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.metricSquare__big {
  font-size: 30px;
  font-weight: 1000;
  letter-spacing: -0.03em;
}

.metricSquare__small {
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

.metricSquare__note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

/* Contact */
.contactGrid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
}

.kv {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16, 24, 40, 0.10);
}
.kv:last-child { border-bottom: none; }
.kv__k { color: var(--muted-2); font-weight: 900; text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; }
.kv__v { color: rgba(16, 24, 40, 0.82); font-weight: 650; line-height: 1.4; }

.contactCardHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.form { margin-top: 12px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { font-weight: 900; color: var(--muted-2); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

input, textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.16);
  padding: 12px 12px;
  font: inherit;
  outline: none;
  background: rgba(255, 255, 255, 0.85);
}

input:focus, textarea:focus {
  border-color: rgba(44, 88, 148, 0.40);
  box-shadow: 0 0 0 4px rgba(44, 88, 148, 0.14);
}

.formActions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Fixed bottom bar */
.bottombar {
  position: fixed;
  inset: auto 0 0 0;
  height: var(--bottombar-h);
  z-index: 45;
  background: linear-gradient(180deg, var(--blue-900), #23314a);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bottombar__inner {
  height: 100%;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 18px;
}

.bottombar__brand {
  font-weight: 1000;
  color: #fff;
  letter-spacing: -0.02em;
}
.bottombar__sub { font-size: 12px; margin-top: 4px; }
.bottombar__right { font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, 0.68); }

/* Responsive */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .panel__grid { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr; }
  .cards2 { grid-template-columns: 1fr; }
  .spiva { grid-template-columns: 1fr 1fr; }
  .metricSquares { grid-template-columns: 1fr 1fr; }
  .contactGrid { grid-template-columns: 1fr; }
  .bottombar__inner { grid-template-columns: 1fr; }
  .bottombar { height: auto; padding: 12px 0; }
  .main { padding-bottom: 150px; }
}

@media (max-width: 640px) {
  :root { --topbar-h: 88px; }
  .brand__logo { height: 56px; }
  .hero__title { font-size: 36px; }
  .spiva { grid-template-columns: 1fr; }
  .metricSquares { grid-template-columns: 1fr; }
}
