/* =============================================================
   Meridian Market Research — design tokens
   ============================================================= */
:root {
  --ink: #0B1F33;
  --ink-2: #123C3C;
  --paper: #FFFFFF;
  --paper-2: #F2F4F3;
  --gold: #C89B3C;
  --gold-dark: #A87F2B;
  --up: #1E7A4C;
  --down: #B23A2E;
  --text: #1A2530;
  --muted: #5B6B77;
  --border: #E1E5E7;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 6px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(200,155,60,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--paper-2); }

/* =============================================================
   Ticker strip — signature element
   ============================================================= */
.ticker-strip {
  background: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ticker-track {
  display: inline-flex;
  gap: 40px;
  padding: 8px 0;
  animation: ticker-scroll 32s linear infinite;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .02em;
}
.tick { color: #cfd8de; white-space: nowrap; }
.tick.up { color: #6FCF97; }
.tick.down { color: #EB9086; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* =============================================================
   Header / nav
   ============================================================= */
.site-header { background: var(--paper); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand-name.light { color: var(--paper); }
.brand-tagline { font-size: .72rem; color: var(--muted); font-family: var(--font-mono); letter-spacing: .03em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; }
.site-nav a { font-size: .92rem; font-weight: 500; color: var(--text); padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s; }
.site-nav a:hover, .site-nav a.active { color: var(--ink-2); border-bottom-color: var(--gold); }

.btn { display: inline-block; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; font-size: .9rem; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.nav-call { white-space: nowrap; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* Candlestick rule divider */
.candle-rule {
  height: 22px;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 28px 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='22' viewBox='0 0 28 22'%3E%3Cline x1='7' y1='2' x2='7' y2='20' stroke='%23E1E5E7' stroke-width='1'/%3E%3Crect x='4' y='7' width='6' height='8' fill='%231E7A4C'/%3E%3Cline x1='21' y1='4' x2='21' y2='18' stroke='%23E1E5E7' stroke-width='1'/%3E%3Crect x='18' y='9' width='6' height='6' fill='%23B23A2E'/%3E%3C/svg%3E");
  opacity: .8;
}

/* =============================================================
   Hero
   ============================================================= */
.hero { padding: 64px 0 80px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.08rem; color: var(--muted); max-width: 46ch; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.hero-stat span { font-size: .8rem; color: var(--muted); }

.hero-chart { background: var(--ink); border-radius: 14px; padding: 28px; position: relative; overflow: hidden; }
.hero-chart svg { width: 100%; height: auto; display: block; }
.hero-chart .chart-caption { font-family: var(--font-mono); font-size: .72rem; color: #8fa3b0; margin-top: 12px; display: flex; justify-content: space-between; }

/* =============================================================
   Cards / grids
   ============================================================= */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: 0 12px 28px rgba(11,31,51,0.08); transform: translateY(-3px); }
.card .icon { width: 40px; height: 40px; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .93rem; margin-bottom: 0; }

.service-card { border-top: 3px solid var(--gold); }
.service-card.up { border-top-color: var(--up); }
.service-card.down { border-top-color: var(--down); }

/* Section header */
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Steps / process (used on About) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 34px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 8px;
}

/* Testimonials */
.testi { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; font-size: .92rem; }
.testi p { color: var(--text); margin-bottom: 14px; }
.testi cite { font-style: normal; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--paper); margin-bottom: 6px; }
.cta-band p { color: #b9c6cd; margin-bottom: 0; }

/* Disclaimer band */
.disclaimer-band { background: var(--paper-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.disclaimer-band p { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.disclaimer-band p:last-child { margin-bottom: 0; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--ink); color: #c7d1d8; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; }
.footer-col h4 { color: var(--paper); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-about { font-size: .88rem; color: #9fb0b9; max-width: 34ch; }
.footer-links li, .footer-contact li { margin-bottom: 9px; font-size: .88rem; }
.footer-links a:hover { color: var(--gold); }
.footer-contact a { color: #c7d1d8; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: #7f929c; }

/* =============================================================
   Legal pages (Terms / Privacy)
   ============================================================= */
.legal-hero { background: var(--ink); color: var(--paper); padding: 56px 0 40px; }
.legal-hero .eyebrow { background: rgba(200,155,60,0.18); }
.legal-hero h1 { color: var(--paper); margin-bottom: 6px; }
.legal-hero p { color: #a9b8c0; margin-bottom: 0; }
.legal-body { padding: 52px 0 80px; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 96px; border-left: 2px solid var(--border); padding-left: 18px; }
.legal-toc a { display: block; font-size: .86rem; color: var(--muted); padding: 6px 0; }
.legal-toc a:hover { color: var(--ink-2); }
.legal-content h2 { margin-top: 2em; padding-top: 8px; scroll-margin-top: 100px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text); font-size: .96rem; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-content ul li { margin-bottom: 6px; }
.legal-updated { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; border-left: none; padding-left: 0; border-top: 2px solid var(--border); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 22px;
    gap: 14px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
