/* ═══════════════════════════════════════════════════════════════
   BenCarroll.ai — Shared Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --reflex:      #0339F8;
  --reflex-mid:  #1A4DFF;
  --reflex-lt:   #3D68FF;
  --reflex-dk:   #060B32;
  --reflex-xdk:  #03061E;
  --gold:        #C8840A;
  --gold-lt:     #E9A820;
  --gold-pale:   #FFF8EC;
  --white:       #FFFFFF;
  --cream:       #F3F6FC;
  --ink:         #0D1520;
  --ink-mid:     #2A3A52;
  --muted:       #5C6E84;
  --border:      rgba(0,47,167,0.1);
  --border-lt:   rgba(255,255,255,0.14);
  --display:     'DM Serif Display', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --max: 1120px;
  --nav-h: 68px;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }
.page-top { padding-top: calc(var(--nav-h) + 64px); }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); }
.section-h2 { font-family: var(--display); font-size: clamp(32px,4vw,48px); line-height: 1.14; color: var(--ink); letter-spacing: -0.01em; }
.section-h2-light { font-family: var(--display); font-size: clamp(32px,4vw,48px); line-height: 1.14; color: var(--white); letter-spacing: -0.01em; }
.section-sub { font-size: 17px; font-weight: 300; color: var(--muted); max-width: 560px; line-height: 1.72; margin-top: 14px; }
.section-sub-light { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.58); max-width: 540px; line-height: 1.75; margin-top: 14px; }
.section-header { margin-bottom: 52px; }
.section-header .eyebrow { margin-bottom: 12px; }

/* ─── ANIMATION ──────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.stagger-1 { transition-delay: .1s; }
.stagger-2 { transition-delay: .2s; }
.stagger-3 { transition-delay: .3s; }

/* ─── NAVIGATION ─────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h); background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
#nav.scrolled { background: rgba(6,11,50,.97); border-color: var(--border-lt); backdrop-filter: blur(14px); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; height: 100%; }
.site-logo { height: 28px; width: auto; display: block; mix-blend-mode: screen; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: 15px; font-weight: 400; color: rgba(255,255,255,.78); padding: 8px 14px; border-radius: var(--r-sm); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.09); }
.nav-links a.active { color: var(--white); font-weight: 500; }
.nav-cta { font-size: 15px !important; font-weight: 600 !important; color: var(--reflex-dk) !important; background: var(--gold-lt) !important; padding: 9px 22px !important; border-radius: 24px !important; margin-left: 8px; transition: opacity .2s !important; }
.nav-cta:hover { opacity: .88 !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; width: 32px; cursor: pointer; min-height: 44px; justify-content: center; }
.nav-hamburger span { display: block; height: 2px; background: var(--white); border-radius: 2px; }
.nav-mobile { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--reflex-dk); padding: 8px 24px 36px; border-top: 1px solid var(--border-lt); flex-direction: column; gap: 0; z-index: 199; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 17px; color: rgba(255,255,255,.82); padding: 16px 0; min-height: 56px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-mobile .nav-cta { margin-top: 20px; text-align: center; padding: 16px 20px !important; border-radius: var(--r-md) !important; border: none; justify-content: center; min-height: 54px; font-size: 17px !important; }

/* ─── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero { background: var(--reflex-dk); padding: calc(var(--nav-h) + 64px) 0 72px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: 56px 56px; }
.page-hero::after { content: ''; position: absolute; width: 700px; height: 700px; background: radial-gradient(circle,rgba(3,57,248,.22) 0%,transparent 60%); top: -200px; right: -200px; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lt); display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.page-hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1.5px; background: var(--gold-lt); flex-shrink: 0; }
.page-hero h1 { font-family: var(--display); font-size: clamp(36px,5vw,58px); color: var(--white); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 16px; }
.page-hero h1 em { font-style: italic; color: var(--gold-lt); }
.page-hero p { font-size: 17px; font-weight: 300; color: rgba(255,255,255,.62); max-width: 580px; line-height: 1.78; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-white { display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--reflex); font-weight: 700; font-size: 15px; padding: 14px 30px; border-radius: 30px; transition: opacity .2s,transform .2s; white-space: nowrap; }
.btn-white:hover { opacity: .9; transform: translateY(-1px); }
.btn-gold { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-lt); color: var(--reflex-dk); font-weight: 600; font-size: 15px; padding: 14px 30px; border-radius: 30px; transition: opacity .2s,transform .2s; white-space: nowrap; }
.btn-gold:hover { opacity: .88; transform: translateY(-1px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: rgba(255,255,255,.82); font-weight: 400; font-size: 15px; padding: 13px 28px; border-radius: 30px; border: 1px solid rgba(255,255,255,.22); transition: border-color .2s,color .2s; white-space: nowrap; }
.btn-ghost:hover { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-reflex { display: inline-flex; align-items: center; gap: 8px; background: var(--reflex); color: var(--white); font-weight: 500; font-size: 15px; padding: 13px 28px; border-radius: 30px; transition: background .2s,transform .2s; }
.btn-reflex:hover { background: var(--reflex-mid); transform: translateY(-1px); }
.btn-outline-dark { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--reflex); font-weight: 500; font-size: 15px; padding: 12px 26px; border-radius: 30px; border: 1.5px solid var(--reflex); transition: background .2s,color .2s; white-space: nowrap; }
.btn-outline-dark:hover { background: var(--reflex); color: var(--white); }

/* ─── LOGO BAND ──────────────────────────────────────────────── */
.logo-band { background: var(--white); padding: 44px 0; border-bottom: 1px solid var(--border); }
.logo-band-label { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.logo-track { display: flex; align-items: center; flex-wrap: wrap; gap: 0; justify-content: center; }
.logo-item { padding: 10px 28px; display: flex; align-items: center; justify-content: center; }
.logo-item img { max-height: 34px; max-width: 110px; width: auto; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(85%) opacity(.6); transition: filter .25s; }
.logo-item:hover img { filter: grayscale(0%) opacity(1); }

/* ─── PROOF METRICS BAND ─────────────────────────────────────── */
#proof-band { background: var(--white); padding: 36px 0; border-bottom: 1px solid var(--border); }
.proof-band-inner { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.proof-band-inner::-webkit-scrollbar { display: none; }
.proof-item { flex: 0 0 auto; padding: 0 36px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.proof-item:last-child { border-right: none; }
.proof-metric { font-family: var(--display); font-size: 28px; color: var(--reflex); line-height: 1; }
.proof-label { font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* ─── CARDS ──────────────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; transition: transform .2s,box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 52px rgba(0,47,167,.09); }
.card-dark { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-lg); padding: 24px; transition: background .2s,border-color .2s; }
.card-dark:hover { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.18); }

/* ─── CTA SECTION ────────────────────────────────────────────── */
.cta-band { background: var(--reflex); padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center top,rgba(0,26,110,.6) 0%,transparent 60%); }
.cta-band-inner { position: relative; z-index: 1; }
.cta-h2 { font-family: var(--display); font-size: clamp(34px,4.5vw,54px); color: var(--white); line-height: 1.14; margin-bottom: 16px; }
.cta-h2 em { font-style: italic; color: #EDE8FF; }
.cta-sub { font-size: 16px; font-weight: 300; color: rgba(255,255,255,.62); max-width: 460px; margin: 0 auto 36px; line-height: 1.72; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 20px; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer { background: var(--reflex-xdk); padding: 60px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.footer-logo span { color: var(--gold-lt); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.65; max-width: 220px; margin-bottom: 16px; }
.footer-contact-line { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,.5); margin-bottom: 8px; transition: color .2s; }
.footer-contact-line:hover { color: rgba(255,255,255,.85); }
.footer-contact-line svg { width: 13px; height: 13px; flex-shrink: 0; }
.footer-ssp-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11.5px; color: rgba(255,255,255,.3); line-height: 1.5; }
.footer-ssp-note a { color: rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.15); transition: color .2s; }
.footer-ssp-note a:hover { color: rgba(255,255,255,.75); }
.footer-col-title { font-size: 10.5px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,.52); transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.28); }

/* ─── SHARED NAV SCRIPT SUPPORT ──────────────────────────────── */
@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section-pad { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn-white, .btn-gold, .btn-ghost, .btn-reflex { justify-content: center; }
}
