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

:root {
  --red:    #E8190A;
  --orange: #FF6B2B;
  --black:  #0A0A0A;
  --slate:  #1C1C24;
  --white:  #F5F3EF;
  --grey:   #7C7C8A;
  --border: rgba(245,243,239,0.08);
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --black:  #F2F0EC;
    --slate:  #FFFFFF;
    --white:  #0A0A0A;
    --grey:   #58585F;
    --border: rgba(10,10,10,0.1);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo img { height: 34px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white) !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.btn-nav:hover {
  background: #c8150a !important;
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--slate);
}

.footer-top {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 24px 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand img { height: 28px; margin-bottom: 16px; display: block; opacity: 0.8; }

.footer-brand p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.7;
  max-width: 220px;
}

.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }

.footer-col a {
  color: var(--grey);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy { font-size: 12px; color: #3a3a46; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: #c8150a;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(232,25,10,0.32);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  background: rgba(245,243,239,0.05);
  border-color: rgba(245,243,239,0.22);
  transform: translateY(-2px);
}

/* ── SECTION BASE ── */
section { padding: 100px 24px; }

.container { max-width: 1160px; margin: 0 auto; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.75;
}

/* ── STATS BAR ── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--slate);
}

.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: 38px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  line-height: 1;
}

.stat-value em { font-style: normal; color: var(--red); }

.stat-desc {
  font-size: 13px;
  color: var(--grey);
  font-weight: 500;
  line-height: 1.45;
}

/* ── CTA SECTION ── */
.cta-section {
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(232,25,10,0.08) 0%, transparent 70%);
}

.cta-box {
  background: var(--slate);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--orange) 50%, var(--red) 70%, transparent);
}

.cta-box h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 18px;
}

.cta-box h2 span { color: var(--red); }

.cta-box > p {
  font-size: 16px;
  color: var(--grey);
  margin: 0 auto 44px;
  max-width: 480px;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-note { font-size: 13px; color: #4a4a58; }

.cta-note a {
  color: var(--grey);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.cta-note a:hover { color: var(--orange); border-color: var(--orange); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 88px 24px 80px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(232,25,10,0.11) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero .section-eyebrow { justify-content: center; }
.page-hero .section-title { margin: 0 auto 16px; }
.page-hero .section-sub { margin: 0 auto; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #0e0e14;
    padding: 28px 20px 32px;
    border-bottom: 1px solid var(--border);
    gap: 22px;
    z-index: 99;
  }

  .nav-links.open .btn-nav {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 4px;
  }

  section { padding: 72px 20px; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }

  .cta-box { padding: 52px 24px; }
  .footer-top { padding: 40px 20px 36px; gap: 28px; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ── LIGHT MODE ELEMENT OVERRIDES ── */
@media (prefers-color-scheme: light) {
  body { background: var(--black); }

  nav { background: rgba(242,240,236,0.95); }

  .nav-links.open { background: #EAE8E3; }

  .btn-secondary {
    color: #0A0A0A;
    border-color: rgba(10,10,10,0.18);
  }
  .btn-secondary:hover {
    background: rgba(10,10,10,0.05);
    border-color: rgba(10,10,10,0.28);
  }

  .stats-bar { background: #FFFFFF; }

  .cta-box::before {
    background: linear-gradient(90deg, transparent, var(--red) 30%, var(--orange) 50%, var(--red) 70%, transparent);
    opacity: 0.5;
  }

  .cta-note { color: #909098; }
  .cta-note a { color: var(--grey); }

  footer { background: #FFFFFF; border-top-color: rgba(10,10,10,0.1); }
  .footer-top { border-bottom-color: rgba(10,10,10,0.1); }
  .footer-copy { color: #A0A0AA; }
  .footer-brand img { opacity: 1; }
  .footer-logo:hover img { opacity: 0.75; }

  .page-hero { border-bottom-color: rgba(10,10,10,0.1); }
  .page-hero-bg {
    background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(232,25,10,0.07) 0%, transparent 65%);
  }
}
