:root {
  --bg: #f4f7fc;
  --bg-alt: #edf3ff;
  --card: #ffffff;
  --text: #0f2a57;
  --muted: #3f5e90;
  --brand: #274f9c;
  --brand-strong: #183a7d;
  --brand-red: #d7262e;
  --line: #cad7ee;
  --accent-soft: #d9e6ff;
  --success: #1f8d61;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Public Sans", sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fc 100%);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 5.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: min(360px, 66vw);
  height: 76px;
  object-fit: cover;
  object-position: center 50%;
  border-radius: 0.2rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-link:hover {
  color: var(--brand);
}

.button {
  display: inline-block;
  border-radius: 0.75rem;
  border: none;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(130deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 10px 22px rgba(25, 61, 124, 0.24);
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(25, 61, 124, 0.28);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--success);
  outline-offset: 2px;
}

.button-small {
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
}

.button-ghost {
  background: #ffffff;
  border: 1px solid #9fb1d1;
  color: var(--brand);
  box-shadow: none;
}

.button::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -15%;
  width: 40%;
  height: 320%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: rotate(18deg);
  transition: left 360ms ease;
}

.button:hover::after {
  left: 110%;
}

.hero-grid {
  display: grid;
  gap: 1.55rem;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: start;
}

.hero-main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  z-index: -1;
  opacity: 0.42;
}

.hero::before {
  width: 310px;
  height: 310px;
  background: rgba(39, 79, 156, 0.22);
  top: -90px;
  left: -120px;
}

.hero::after {
  width: 240px;
  height: 240px;
  background: rgba(215, 38, 46, 0.15);
  top: 50px;
  right: -90px;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--brand-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
}

.lead {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0 0.35rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #bfd0ef;
  background: #ffffff;
  padding: 0.38rem 0.74rem;
  font-size: 0.8rem;
  color: #284773;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 0.8rem;
}

.microcopy {
  color: #5b7297;
  font-size: 0.9rem;
}

.hero-proof {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.proof-item {
  border-radius: 0.75rem;
  border: 1px solid #cfe0fc;
  background: #ffffff;
  padding: 0.72rem;
}

.proof-number {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
}

.proof-label {
  margin: 0.2rem 0 0;
  color: #4d678f;
  font-size: 0.82rem;
}

.hero-card,
.card,
.impact-item,
.feature,
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.05rem;
  box-shadow: 0 16px 38px rgba(18, 45, 89, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover,
.impact-item:hover,
.feature:hover,
.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(18, 45, 89, 0.12);
  border-color: #b8cae9;
}

.hero-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(2px);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-red) 100%);
}

.hero-card ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
}

.shield-logo {
  width: 72px;
  height: auto;
  display: block;
  margin-bottom: 0.7rem;
}

.featured-offer {
  margin: 0.2rem 0 0.95rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.8rem;
  background: linear-gradient(120deg, rgba(39, 79, 156, 0.12), rgba(215, 38, 46, 0.14));
  border: 1px solid rgba(39, 79, 156, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 6px 14px rgba(26, 63, 121, 0.07);
}

.featured-offer-secondary {
  background: linear-gradient(120deg, rgba(23, 89, 165, 0.1), rgba(33, 126, 227, 0.14));
  border-color: rgba(31, 67, 137, 0.4);
}

.featured-offer-label {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-red);
}

.featured-offer-text {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #0f2e62;
  line-height: 1.25;
}

.banner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--brand) 0%, #2e5fb8 70%, var(--brand-red) 100%);
}

.banner p {
  margin: 0;
  padding: 1.1rem 0;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.impact-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  counter-reset: impact-index;
}

.impact-item {
  position: relative;
  overflow: hidden;
}

.impact-item::before {
  counter-increment: impact-index;
  content: counter(impact-index, decimal-leading-zero);
  position: absolute;
  top: 0.75rem;
  right: 0.82rem;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #89a3cf;
}

.impact-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(39, 79, 156, 0.7), rgba(215, 38, 46, 0.58));
}

.impact-item h3 {
  margin: 0.25rem 0 0.55rem;
  color: #163d7f;
}

.feature-list,
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-cta {
  background: linear-gradient(140deg, #f8fbff, #eaf1ff);
}

.cta-wrap {
  max-width: 860px;
}

.signup-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-form label {
  display: grid;
  gap: 0.35rem;
  color: #233f6b;
  font-weight: 600;
}

.signup-form input,
.signup-form select {
  border-radius: 0.65rem;
  border: 1px solid #9fb4d8;
  background: #ffffff;
  color: var(--text);
  padding: 0.72rem;
}

.signup-form button,
.form-note {
  grid-column: 1 / -1;
}

.form-note {
  min-height: 1.3rem;
  margin-top: 0.4rem;
  color: var(--success);
}

.sticky-cta {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 30;
  text-decoration: none;
  background: var(--brand-red);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.86rem 1.08rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(21, 37, 68, 0.26);
  transition: transform 180ms ease, opacity 180ms ease;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px) scale(0.995);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  background: #ffffff;
}

@media (max-width: 900px) {
  .nav-link {
    display: none;
  }

  .hero-grid,
  .impact-grid,
  .feature-list,
  .signup-form {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero::before,
  .hero::after {
    opacity: 0.3;
    filter: blur(28px);
  }
}

@media (max-width: 640px) {
  .brand-logo {
    height: 68px;
  }

  .section {
    padding: 3.05rem 0;
  }

  .nav {
    min-height: 4.5rem;
  }

  .nav .button-small {
    padding: 0.62rem 0.78rem;
    font-size: 0.82rem;
  }

  .hero-actions .button,
  .hero-actions .button-ghost {
    width: 100%;
    text-align: center;
  }

  .sticky-cta {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
    text-align: center;
    border-radius: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
