/* =========================================================
   EvenPulse — National Guard Landing Page
   ========================================================= */

:root {
  --pulse-navy: #223382;
  --even-blue: #3fa9f5;
  --signal-mid: #2e6fc0;
  --clear-field: #f2f2f2;
  --steady-grey: #808080;
  --white: #ffffff;

  --max-width: 1180px;
  --gutter: 24px;

  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --fs-h1: 60px;
  --fs-h2: 40px;
  --fs-h3: 25px;
  --fs-body: 18px;
  --fs-lede: 22px;
  --fs-quote: 24px;
  --fs-testimonial: 22px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--pulse-navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, blockquote, figure { margin: 0; }
ul { padding: 0; }
a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 72px 0; }

/* ---------- Typography ---------- */
.heading-lg {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.2;
  color: var(--pulse-navy);
  margin-bottom: 24px;
}
.heading-lg strong { font-weight: 600; }
.heading-lg--center { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.heading-lg--light { color: var(--clear-field); }

.heading-sm {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--pulse-navy);
  margin: 40px 0 16px;
}
.detail__block .heading-sm:first-of-type { margin-top: 32px; }

.lede {
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 56px;
}
.lede--center { text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }

p { font-size: var(--fs-body); line-height: 1.6; font-weight: 500; }
p + p { margin-top: 20px; }

.rule {
  border: none;
  border-top: 2px solid var(--even-blue);
  margin: 20px 0 8px;
}

.list {
  list-style: disc;
  padding-left: 24px;
  margin-top: 16px;
}
.list li { font-size: var(--fs-body); line-height: 1.8; font-weight: 500; margin-bottom: 6px; }
.list--links { list-style: none; padding-left: 0; }
.list--links li { margin-bottom: 22px; }
.list--links a {
  padding: 4px 0; /* brings the clickable/tappable height from ~17px to 25px */
  text-decoration: underline;
  font-weight: 500;
  color: var(--pulse-navy);
}
.list--links a:hover,
.list--links a:focus-visible { color: var(--signal-mid); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease;
  width: 100%;
  max-width: 350px;
}
.btn--outline-light {
  border-color: var(--white);
  color: var(--white);
}
.btn--outline-light:hover { background: var(--white); color: var(--pulse-navy); }

.btn--outline-dark {
  border-color: var(--pulse-navy);
  color: var(--pulse-navy);
}
.btn--outline-dark:hover { background: var(--pulse-navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 803px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px var(--gutter) 80px;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 50% 42%, var(--signal-mid) 0%, var(--pulse-navy) 62%, #1b2968 100%);
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 940px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo { margin-bottom: 40px; height: 60px; width: auto; }
.hero__title {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 24px;
}
.hero__subtitle {
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.7;
  color: var(--white);
  max-width: 700px;
  margin-bottom: 40px;
}

/* ---------- Solution ---------- */
.solution { background: var(--clear-field); }
.solution__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.solution__media img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.solution__text p { margin-top: 20px; }

/* ---------- Results system (feature grid) ---------- */
.results-system { background: var(--white); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--steady-grey);
  border-left: 1px solid var(--steady-grey);
}
.feature-card {
  border-right: 1px solid var(--steady-grey);
  border-bottom: 1px solid var(--steady-grey);
  padding: 40px;
  min-height: 300px;
}
.feature-card__icon { height: 80px; width: auto; margin-bottom: 28px; margin-left: auto; }
.feature-card h3 {
  font-size: var(--fs-h3);
  font-weight: 400;
  margin-bottom: 16px;
}
.feature-card p { font-size: var(--fs-body); }

/* ---------- Capability gap ---------- */
.capability-gap {
  position: relative;
  /* Top stop is a darkened even-blue (not the raw --even-blue token) so the
     white/clear-field body text keeps ≥4.5:1 contrast (WCAG AA) at every
     point in the gradient — raw even-blue only reached 2.3:1. */
  background: linear-gradient(180deg, #2f68b6 0%, var(--signal-mid) 50%, var(--pulse-navy) 100%);
  color: var(--clear-field);
  overflow: hidden;
}
.capability-gap__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  pointer-events: none;
}
.capability-gap__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.capability-gap__text p { margin-top: 20px; }

.quote-card {
  background: var(--clear-field);
  color: var(--pulse-navy);
  border-radius: 32px;
  padding: 48px;
}
.quote-card p {
  font-size: var(--fs-quote);
  line-height: 1.5;
  font-weight: 500;
}
.quote-card footer {
  margin-top: 32px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  font-style: normal;
}

/* ---------- Detail (use cases / results / NG experience / resources) ---------- */
.detail__block {
  max-width: 950px; /* matches the Figma text-column spec; container alone is 1132px */
  padding: 56px 0;
}
.detail__block:first-child { padding-top: 0; }
.detail__block + .detail__block { border-top: 1px solid rgba(128,128,128,0.25); }

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin-top: 8px;
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--clear-field); }
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}
.testimonial-card {
  background: radial-gradient(circle at 50% 45%, var(--signal-mid) 0%, var(--pulse-navy) 100%);
  color: var(--white);
  border-radius: 32px;
  padding: 44px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-card p {
  font-size: var(--fs-testimonial);
  line-height: 1.5;
  font-weight: 500;
}
.testimonial-card footer {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  font-style: normal;
}

/* ---------- Footer ---------- */
.footer { background: var(--white); padding: 56px 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.footer__brand img { height: 48px; width: auto; margin-bottom: 16px; }
.footer__tagline {
  font-size: 18px;
  font-weight: 700;
  color: var(--signal-mid);
}
.footer__contact { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.footer__details {
  margin-top: 20px;
  font-size: var(--fs-body);
  font-weight: 500;
  text-align: right;
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */

/* ----- Tablet (≤ 1024px) ----- */
@media (max-width: 1024px) {
  :root {
    --fs-h1: 44px;
    --fs-h2: 32px;
    --fs-h3: 22px;
    --fs-lede: 20px;
    --fs-quote: 21px;
    --fs-testimonial: 19px;
  }
  .section { padding: 56px 0; }
  .solution__grid,
  .capability-gap__grid { gap: 40px; }
  .feature-card { padding: 32px; min-height: 260px; }
}

/* ----- Mobile / Tablet portrait (≤ 768px) ----- */
@media (max-width: 768px) {
  :root {
    --fs-h1: 34px;
    --fs-h2: 28px;
    --fs-h3: 20px;
    --fs-body: 16px;
    --fs-lede: 18px;
    --fs-quote: 19px;
    --fs-testimonial: 17px;
    --gutter: 20px;
  }

  .section { padding: 48px 0; }

  .hero { min-height: 0; padding: 88px var(--gutter) 64px; }
  .hero__logo { height: 44px; margin-bottom: 28px; }
  .hero__subtitle { margin-bottom: 32px; }
  .btn { width: 100%; padding: 16px 20px; }

  .solution__grid { grid-template-columns: 1fr; gap: 32px; }

  .lede { margin-bottom: 40px; }

  .feature-grid { grid-template-columns: 1fr; border-left: none; }
  .feature-card { border-left: 1px solid var(--steady-grey); min-height: 0; padding: 28px; }
  .feature-card__icon { margin-left: 0; height: 64px; }

  .capability-gap__grid { grid-template-columns: 1fr; gap: 40px; }
  .quote-card { padding: 32px; border-radius: 24px; }

  .detail__block { padding: 40px 0; }
  .heading-sm { margin-top: 32px; }

  .resources-grid { grid-template-columns: 1fr; gap: 0; }

  .testimonial-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .testimonial-card { padding: 32px; border-radius: 24px; min-height: 0; }

  .footer__grid { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .footer__brand { display: flex; flex-direction: column; align-items: center; }
  .footer__contact { align-items: center; text-align: center; }
  .footer__details { text-align: center; }
  .footer .btn { max-width: 100%; }
}

/* ----- Small phones (≤ 400px) ----- */
@media (max-width: 400px) {
  :root {
    --fs-h1: 28px;
    --fs-h2: 24px;
  }
  .container { padding: 0 16px; }
  .quote-card, .testimonial-card { padding: 24px; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
