/* ==========================================================================
   Tangent Medulla — site stylesheet
   Standard corporate landing pages with refined typographic detail.
   ========================================================================== */

:root {
  --bg: #fafaf7;
  --bg-alt: #f3f2ec;
  --bg-card: #ffffff;
  --bg-dark: #0a1228;
  --text: #0c1426;
  --text-body: #3f465a;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --border: #e6e3d8;
  --border-strong: #c9c5b7;
  --brand: #1e3a8a;
  --brand-hover: #16306f;
  --brand-soft: #eef2ff;
  --brand-line: #1e3a8a;
  --success: #15803d;
  --success-soft: #f0fdf4;
  --danger: #b91c1c;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 28px rgba(12,20,38,0.08), 0 4px 8px rgba(12,20,38,0.04);
  --maxw: 1200px;
  --maxw-narrow: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-body);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }

.serif {
  font-family: 'Instrument Serif', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-feature-settings: "tnum";
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--brand);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 200;
}
.skip-link:focus { left: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250,250,247,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 17px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo-mark {
  width: 30px; height: 30px;
  background: var(--brand);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.4);
  transform: rotate(-22deg) translateY(2px);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0 auto 0 28px;
}
.nav-links a {
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--brand); }
.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary {
  background: white;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-alt); border-color: var(--text-muted); }
.btn-text {
  color: var(--text-body);
  padding: 10px 12px;
}
.btn-text:hover { color: var(--brand); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-arrow::after {
  content: "→";
  transition: transform 0.2s;
  font-weight: 400;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(21,128,61,0.15);
}
.hero h1 {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 22px;
}
.hero h1 .serif {
  font-size: 1.05em;
  color: var(--brand);
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-trust > div { font-size: 13px; color: var(--text-muted); }
.hero-trust strong {
  color: var(--text);
  font-weight: 700;
  display: block;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}

/* Hero visual — richer mock dashboard */
.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.hv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
}
.hv-title-group { display: flex; align-items: center; gap: 10px; }
.hv-dot {
  width: 10px; height: 10px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(21,128,61,0.15);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot { 50% { opacity: 0.4; } }
.hv-title {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.hv-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  font-feature-settings: "tnum";
}
.hv-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.hv-stat {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
}
.hv-stat:last-child { border-right: none; }
.hv-stat .l {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hv-stat .v {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hv-stat .v.pos { color: var(--success); }
.hv-chart-wrap { padding: 16px 20px; }
.hv-chart-label {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hv-chart {
  height: 110px;
  position: relative;
}
.hv-chart svg { width: 100%; height: 100%; }
.hv-tape {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.hv-tape-row {
  display: grid;
  grid-template-columns: 64px 70px 1fr 80px;
  gap: 12px;
  padding: 10px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-feature-settings: "tnum";
}
.hv-tape-row:last-child { border-bottom: none; }
.hv-tape-row .t { color: var(--text-muted); }
.hv-tape-row .s { color: var(--text); font-weight: 600; }
.hv-tape-row .side {
  display: inline-block;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hv-tape-row .side.long { background: var(--success-soft); color: var(--success); }
.hv-tape-row .side.short { background: #fef2f2; color: var(--danger); }
.hv-tape-row .p { color: var(--success); font-weight: 600; text-align: right; }
.hv-tape-row .p.neg { color: var(--danger); }

/* ---------- By-the-numbers band ---------- */
.numbers-band {
  background: var(--bg-dark);
  color: white;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.numbers-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.number {
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 22px;
}
.number .figure {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
  color: white;
  font-variant-numeric: tabular-nums;
}
.number .figure .serif {
  color: #93c5fd;
  font-size: 0.95em;
}
.number .label {
  font-size: 13px;
  color: #93a5c4;
  line-height: 1.55;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head.left { text-align: left; margin-left: 0; }
.section-head .eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
}
.section-head h2 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 18px;
}
.section-head h2 .serif {
  color: var(--brand);
  font-weight: 400;
}
.section-head p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}
.section-head.left p { margin: 0; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s;
  position: relative;
}
.feature:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.feature h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.feature p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
.feature-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  font-feature-settings: "tnum";
}
.feature-meta .pos { color: var(--success); font-weight: 600; }

/* ---------- Timeline (How it works) ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 22px; left: 22px; right: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 100%);
  opacity: 0.18;
  z-index: 0;
}
.tl-step { position: relative; z-index: 1; }
.tl-num {
  width: 44px;
  height: 44px;
  background: white;
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 22px;
  font-size: 16px;
}
.tl-step h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.tl-step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
.tl-step .tl-meta {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
}

/* ---------- Stats grid ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats > .stat + .stat { border-left: 1px solid var(--border); }
.stat {
  background: white;
  padding: 36px 28px;
}
.stat-value {
  font-size: 40px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.028em;
  margin-bottom: 8px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-value .serif { color: var(--text); font-weight: 400; font-size: 0.85em; }
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
}
.stat-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 6px;
}

/* ---------- Comparison table ---------- */
.compare-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare {
  width: 100%;
  border-collapse: collapse;
}
.compare th,
.compare td {
  padding: 18px 24px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.compare th.us { color: var(--brand); }
.compare tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--text-body); font-weight: 500; }
.compare td.them { color: var(--text-muted); }
.compare td.us { color: var(--text); font-weight: 500; background: rgba(238, 242, 255, 0.4); }
.compare td.us::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.pricing-badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.pricing-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.018em;
}
.pricing-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 26px;
  line-height: 1.55;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.pricing-figure {
  font-size: 60px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.032em;
  line-height: 1;
}
.pricing-unit {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}
.pricing-list {
  list-style: none;
  margin-bottom: 28px;
}
.pricing-list li {
  padding: 9px 0;
  color: var(--text-body);
  display: flex;
  align-items: start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.pricing-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--brand-soft);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.pricing-card .btn { width: 100%; padding: 14px 28px; font-size: 15px; }
.pricing-foot {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: 18px; left: 24px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 56px;
  line-height: 1;
  color: var(--brand);
  opacity: 0.18;
}
.testimonial p {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 22px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  padding-top: 14px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--brand);
  font-size: 26px;
  transition: transform 0.2s;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item-body {
  padding: 0 0 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 720px;
}

/* ---------- Final CTA ---------- */
.cta-section {
  background: var(--bg-dark);
  padding: 88px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(147,197,253,0.08) 0%, transparent 60%);
}
.cta-section .inner { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: white;
}
.cta-section h2 .serif { color: #93c5fd; }
.cta-section p {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-primary {
  background: white;
  color: var(--brand);
}
.cta-section .btn-primary:hover { background: #e2e8f0; }
.cta-section .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.2);
}
.cta-section .btn-secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
}
.site-footer h4 {
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a {
  color: #cbd5e1;
  font-size: 14px;
  transition: color 0.15s;
}
.site-footer a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Inner page styles
   ========================================================================== */

.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
}
.page-hero .eyebrow {
  display: inline-block;
  color: var(--brand);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 18px;
  max-width: 760px;
}
.page-hero h1 .serif { color: var(--brand); }
.page-hero .lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.65;
}

/* article body */
.article {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
}
.article h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 48px 0 16px;
  line-height: 1.25;
}
.article h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}
.article p { margin-bottom: 18px; }
.article p.lede {
  font-size: 21px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 32px;
  font-weight: 400;
}
.article ul, .article ol { margin: 0 0 22px 22px; }
.article li { margin-bottom: 8px; }
.article a { color: var(--brand); border-bottom: 1px solid var(--border-strong); transition: border-color 0.2s; }
.article a:hover { border-color: var(--brand); }
.article hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.article blockquote {
  border-left: 3px solid var(--brand);
  padding: 6px 0 6px 24px;
  margin: 32px 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--text);
}
.article code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-alt);
  padding: 2px 7px;
  font-size: 0.88em;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.article-meta {
  display: flex;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.article-meta .tag { color: var(--brand); font-weight: 600; }

/* about — team / values */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.team-avatar {
  width: 56px;
  height: 56px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
}
.team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.team-role {
  font-size: 13px;
  color: var(--brand);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.team-bio { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.milestones { max-width: 760px; margin: 0 auto; }
.milestone {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.milestone:last-child { border-bottom: 1px solid var(--border); }
.milestone-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.milestone-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.milestone-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* performance — monthly returns table */
.returns-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.returns-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.returns-table th,
.returns-table td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.returns-table th {
  background: var(--bg-alt);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.returns-table th:first-child,
.returns-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
}
.returns-table td:last-child,
.returns-table th:last-child { border-right: none; }
.returns-table tr:last-child td { border-bottom: none; }
.returns-table .pos { color: var(--success); }
.returns-table .neg { color: var(--danger); }
.returns-table .zero { color: var(--text-faint); }
.returns-table .total {
  font-weight: 700;
  background: rgba(238,242,255,0.5);
  color: var(--brand);
}

/* dossier metric grid */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dossier-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.dossier-stat .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.dossier-stat .v {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dossier-stat .v.pos { color: var(--success); }
.dossier-stat .v.neg { color: var(--danger); }
.dossier-stat .sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* markets / instruments */
.markets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.market-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.market-class { font-size: 13px; color: var(--text-muted); }
.market-stats {
  display: flex;
  gap: 20px;
}
.market-stat .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.market-stat .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.market-stat .v.pos { color: var(--success); }

/* form */
.form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}
.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.form-field label .req { color: var(--danger); margin-left: 2px; }
.form-field input,
.form-field select,
.form-field textarea {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field .hint { font-size: 12px; color: var(--text-muted); }
.form-field .err {
  font-size: 12px;
  color: var(--danger);
  min-height: 14px;
}
.form-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  gap: 16px;
  flex-wrap: wrap;
}
.form-submit-row .note { font-size: 12px; color: var(--text-muted); max-width: 320px; line-height: 1.55; }
.form-success {
  display: none;
  padding: 28px;
  border: 1px solid var(--success);
  background: var(--success-soft);
  border-radius: var(--radius);
  text-align: center;
}
.form-success.visible { display: block; }
.form-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.form-success p { color: var(--text-body); font-size: 15px; }

/* research / article list */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.post-card .meta {
  display: flex;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.post-card .meta .tag { color: var(--brand); font-weight: 600; }
.post-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.post-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
.post-card .more {
  margin-top: auto;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

/* 404 */
.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.notfound .big {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(120px, 22vw, 240px);
  font-style: italic;
  color: var(--brand);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.notfound h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.notfound p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 460px;
}

/* utility */
.text-center { text-align: center; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
.risk-line {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}
.risk-line strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .hero::before { display: none; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 30px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .number .figure { font-size: 38px; }
  .features { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .timeline::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > .stat:nth-child(3) { border-left: none; border-top: 1px solid var(--border); }
  .stats > .stat:nth-child(4) { border-top: 1px solid var(--border); }
  .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-section h2 { font-size: 30px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .dossier-grid { grid-template-columns: repeat(2, 1fr); }
  .markets { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 36px; }
  .compare th, .compare td { padding: 14px 16px; font-size: 14px; }
}
@media (max-width: 520px) {
  .header-cta .btn-text { display: none; }
  .hero h1 { font-size: 30px; }
  .pricing-card { padding: 32px 24px; }
  .pricing-figure { font-size: 46px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 24px; }
  .team-grid { grid-template-columns: 1fr; }
  .returns-table { font-size: 11px; }
  .returns-table th, .returns-table td { padding: 8px 6px; }
  .milestone { grid-template-columns: 1fr; gap: 8px; }
}
