@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&family=DM+Mono:wght@400;500&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --navy: #0f1d35;
  --navy-mid: #1a2e4a;
  --navy-light: #243d5e;
  --cream: #f5f2ec;
  --cream-dark: #ede9e0;
  --cream-border: rgba(15,29,53,0.1);
  --orange: #c8522a;
  --orange-light: #e06840;
  --orange-pale: #faeae3;
  --teal: #1d9e75;
  --teal-pale: #e1f5ee;
  --teal-dark: #0f6e56;
  --blue-pale: #e8f1fb;
  --blue-text: #185fa5;
  --warn-pale: #faeeda;
  --warn-text: #854f0b;
  --danger-text: #a32d2d;
  --muted: #6b7280;
  --border: rgba(15,29,53,0.1);
  --border-mid: rgba(15,29,53,0.18);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 1px 4px rgba(15,29,53,0.07), 0 6px 20px rgba(15,29,53,0.05);
  --shadow-lg: 0 4px 32px rgba(15,29,53,0.1);
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--navy);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,242,236,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Calibri', 'Trebuchet MS', sans-serif;
  font-size: 22px; color: var(--navy);
  text-decoration: none; letter-spacing: 0.01em;
  font-weight: 600;
}
.mobile-nav {
  display: none;
  position: relative;
}
.mobile-nav-trigger {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.52);
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 9px;
}
.mobile-nav-trigger::-webkit-details-marker { display: none; }
.mobile-nav-trigger span {
  display: block;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--navy);
}
.mobile-nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 190px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.mobile-nav-item {
  display: block;
  padding: 10px 11px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.25;
}
.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: var(--cream-dark);
  color: var(--navy);
}
.mobile-nav-submenu {
  display: block;
}
.mobile-nav-submenu-trigger {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mobile-nav-submenu-trigger::-webkit-details-marker { display: none; }
.mobile-nav-subitem {
  display: block;
  margin: 2px 0 4px 10px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.25;
}
.mobile-nav-subitem:hover,
.mobile-nav-subitem.active {
  background: var(--cream-dark);
  color: var(--navy);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 13px; color: var(--muted);
  text-decoration: none; padding: 6px 12px;
  border-radius: 8px; transition: all .15s;
}
.nav-link:hover { color: var(--navy); background: var(--cream-dark); }
.nav-link.active { color: var(--navy); font-weight: 500; }
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  border: 0;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-caret {
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.25;
}
.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: var(--cream-dark);
  color: var(--navy);
}
.nav-cta {
  font-size: 13px; font-weight: 500;
  background: var(--navy); color: #fff;
  padding: 7px 18px; border-radius: 8px;
  text-decoration: none; transition: background .15s;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--navy-mid); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  font-weight: 500; cursor: pointer; text-decoration: none;
  border-radius: var(--radius); transition: all .15s;
  border: none; padding: 10px 22px;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-mid); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-light); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover { background: var(--cream-dark); }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Layout helpers ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

/* ── Typography ── */
.display {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--navy);
}
.display em { font-style: italic; color: var(--orange); }
.headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2; letter-spacing: -0.02em;
  color: var(--navy);
}
.headline em { font-style: italic; color: var(--orange); }
.subhead { font-size: 17px; color: var(--muted); line-height: 1.7; }
.label {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px; display: block;
}
.eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; display: block;
}

/* ── Cards ── */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card-sm { padding: 18px 20px; }

/* ── Result display ── */
.result-trio {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 14px 0;
}
.result-cell {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}
.result-cell-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.result-cell-val {
  font-size: 28px; font-weight: 500;
  color: var(--navy); letter-spacing: -0.02em;
}
.result-cell-val.neg { color: var(--danger-text); }
.result-cell-val.rec { color: var(--orange); font-size: 18px; }
.result-cell-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.confidence-row {
  font-family: 'DM Mono', monospace;
  font-size: 12px; color: var(--muted);
  margin-top: 8px;
}

/* ── Chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px; padding: 5px 12px;
  border-radius: 20px; border: 1px solid var(--border-mid);
  color: var(--muted); cursor: pointer; background: #fff;
  transition: all .12s; text-decoration: none;
}
.chip:hover { border-color: var(--navy); color: var(--navy); background: var(--cream); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Badges ── */
.badge {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 20px;
}
.badge-navy { background: var(--navy); color: #fff; }
.badge-orange { background: var(--orange-pale); color: var(--orange); }
.badge-teal { background: var(--teal-pale); color: var(--teal-dark); }
.badge-muted { background: var(--cream-dark); color: var(--muted); }
.badge-blue { background: var(--blue-pale); color: var(--blue-text); }

/* ── Banners ── */
.banner {
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 13px; line-height: 1.6; margin: 12px 0;
}
.banner-info { background: var(--blue-pale); color: var(--blue-text); }
.banner-success { background: var(--teal-pale); color: var(--teal-dark); }
.banner-orange { background: var(--orange-pale); color: var(--orange); }
.banner-warn { background: var(--warn-pale); color: var(--warn-text); }

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ── Input ── */
input[type="text"], input[type="email"], textarea, select {
  width: 100%; font-family: 'DM Sans', sans-serif;
  font-size: 14px; padding: 11px 14px;
  border: 1px solid var(--border-mid); border-radius: var(--radius);
  background: #fff; color: var(--navy); outline: none;
  transition: border .15s;
}
input:focus, textarea:focus { border-color: var(--navy); }
textarea { resize: none; line-height: 1.5; }

/* ── Sim input area ── */
.sim-wrap {
  background: #fff; border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-lg);
}
.sim-textarea {
  width: 100%; font-family: 'DM Sans', sans-serif;
  font-size: 15px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--cream);
  color: var(--navy); resize: none; outline: none;
  transition: border .15s; line-height: 1.5; margin-bottom: 10px;
}
.sim-textarea:focus { border-color: var(--navy); background: #fff; }

/* ── Footer ── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}
.footer-logo {
  font-family: 'Calibri', 'Trebuchet MS', sans-serif;
  font-size: 22px; color: #fff; margin-bottom: 8px;
  font-weight: 600; letter-spacing: 0.01em;
}
.footer-sub { font-size: 14px; margin-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col-title { font-size: 11px; font-weight: 500; color: #fff; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-link { display: block; font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 8px; transition: color .15s; }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.pricing-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.pricing-card.featured { border: 2px solid var(--navy); }
.pricing-card.enterprise { background: var(--navy); border-color: var(--navy); }
.pricing-tier { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pricing-card.enterprise .pricing-tier { color: rgba(255,255,255,0.55); }
.pricing-price { font-family: 'DM Serif Display', serif; font-size: 44px; color: var(--navy); letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; }
.pricing-card.enterprise .pricing-price { color: #fff; }
.pricing-psub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.pricing-card.enterprise .pricing-psub { color: rgba(255,255,255,0.55); }
.pricing-tagline { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.pricing-card.enterprise .pricing-tagline { color: #fff; border-color: rgba(255,255,255,0.1); }
.pricing-feat { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.pricing-card.enterprise .pricing-feat { color: rgba(255,255,255,0.65); }
.pricing-feat-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border-mid); flex-shrink: 0; margin-top: 7px; }
.pricing-card.enterprise .pricing-feat-dot { background: rgba(255,255,255,0.3); }
.pricing-feat strong { font-weight: 500; color: var(--navy); }
.pricing-card.enterprise .pricing-feat strong { color: #fff; }
.pricing-feat.coming { opacity: 0.5; font-style: italic; }
.pricing-spacer { flex: 1; min-height: 20px; }
.pricing-cta { margin-top: 20px; }

/* ── How it works steps ── */
.hiw-step {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 20px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.hiw-step:last-child { border-bottom: none; }
.hiw-num {
  font-family: 'DM Mono', monospace;
  font-size: 14px; color: var(--orange);
  font-weight: 500; padding-top: 4px;
}
.hiw-title { font-size: 19px; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.hiw-body { font-size: 15px; color: var(--muted); line-height: 1.7; }

/* ── Stat blocks ── */
.stat-block { text-align: center; }
.stat-val {
  font-family: 'DM Serif Display', serif;
  font-size: 48px; color: var(--navy);
  letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 6px;
}
.stat-val em { color: var(--orange); font-style: normal; }
.stat-label { font-size: 14px; color: var(--muted); }

/* ── Trust bar ── */
.trust-bar {
  background: var(--cream-dark); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-items { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.trust-item { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.trust-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 0; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500; color: var(--navy);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
.faq-q:hover { color: var(--orange); }
.faq-icon { font-size: 18px; color: var(--muted); flex-shrink: 0; transition: transform .2s; }
.faq-a { font-size: 15px; color: var(--muted); line-height: 1.75; padding-bottom: 18px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── Simulation result animation ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.sim-result { animation: fadeUp .3s ease; }

/* ── Industry hero accent ── */
.industry-accent {
  display: inline-block; font-family: 'DM Serif Display', serif;
  font-style: italic; color: var(--orange);
}

/* ── Testimonial ── */
.testimonial {
  background: var(--navy); color: #fff;
  border-radius: var(--radius-xl); padding: 40px 44px;
}
.testimonial-quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 2.5vw, 28px); line-height: 1.35;
  color: #fff; margin-bottom: 24px; font-style: italic;
}
.testimonial-attr { font-size: 13px; color: rgba(255,255,255,0.55); }
.testimonial-name { font-weight: 500; color: rgba(255,255,255,0.9); margin-bottom: 2px; }

/* ── Hero ── */
.hero { padding: 80px 0 64px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--orange);
  background: var(--orange-pale); padding: 5px 12px;
  border-radius: 20px; margin-bottom: 24px;
}
.hero-kicker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav { padding: 0 20px; justify-content: flex-start; gap: 10px; }
  .mobile-nav { display: block; flex-shrink: 0; }
  .nav-links { margin-left: auto; }
  .nav-links .nav-link,
  .nav-links .nav-dropdown { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .result-trio { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  /* Quant team rows on mobile - stack header above content */
  .quant-row { grid-template-columns: 1fr !important; }
  .quant-row > div:first-child { padding: 16px 20px !important; }
  /* Three-phase loop on mobile - stack vertically, hide arrows */
  .three-phase { grid-template-columns: 1fr !important; gap: 14px !important; }
  .three-phase-arrow { display: none !important; }
  /* AI/Math split on mobile - stack */
  .ai-math-split { grid-template-columns: 1fr !important; }
  /* Hedge fund analogy - keep visible label but stack on mobile */
  .hedge-fund-analogy { grid-template-columns: 1fr !important; }
  .hedge-fund-analogy > div:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; }
  .hedge-fund-analogy > div:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important; }
  .hedge-fund-analogy > div:nth-child(2) { display: none !important; }
}
