/* ── Reset & base ─────────────────────────────────────────────── */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #072369;
  background-color: #fcfbf9;
}

.page {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
}

/* ── Site header ──────────────────────────────────────────────── */

.site-header {
  flex-shrink: 0;
  height: 4.5rem;
  background-color: #fcfbf9;
  border-bottom: 0.5px solid rgba(7, 35, 105, 0.1);
}

.site-header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 100%;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.nav-brand {
  flex-shrink: 0;
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #072369;
}

.nav-links-placeholder {
  flex: 1;
  min-width: 0;
}

.nav-cta-placeholder {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 7rem;
}

.nav-badge {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #072369;
  background-color: rgba(71, 161, 222, 0.18);
  border-radius: 100px;
}

/* ── Hero (unified full-width composition) ────────────────────── */

.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: clamp(40rem, calc(100vh - 4.5rem - 5.5rem), 44rem);
  padding: 3.5rem clamp(1.5rem, 5vw, 4.5rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("images/hero.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  --overlay-solid: #1e2a3c;
  --overlay-rgb: 30, 42, 58;
  background: linear-gradient(
    90deg,
    var(--overlay-solid) 0%,
    var(--overlay-solid) 26%,
    rgba(var(--overlay-rgb), 0.68) 34%,
    rgba(var(--overlay-rgb), 0) 42%
  );
  pointer-events: none;
}

/* ── Constellations ───────────────────────────────────────────── */

.decoration {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.decoration svg {
  width: 100%;
  height: 100%;
}

.decoration-top {
  top: 0;
  left: 0;
  width: 280px;
  height: 160px;
}

/* ── Hero content ─────────────────────────────────────────────── */

.hero-content {
  position: relative;
  z-index: 3;
  width: 52%;
  max-width: 52%;
  flex-shrink: 0;
}

.eyebrow {
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #47a1de;
}

.headline {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fcfbf9;
  margin-bottom: 1.5rem;
}

.subhead {
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 400;
  color: rgba(252, 251, 249, 0.88);
  margin-bottom: 1.25rem;
  max-width: 88%;
}

.tagline {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(252, 251, 249, 0.62);
  margin-bottom: 2.5rem;
  max-width: 82%;
}

/* ── CTAs ─────────────────────────────────────────────────────── */

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.375rem;
  padding: 0 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-radius: 100px;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  color: #fcfbf9;
  background-color: #1050d0;
  border: 1.5px solid #1050d0;
}

.cta-primary:hover {
  background-color: #0d45b8;
  border-color: #0d45b8;
}

.cta-primary:focus-visible {
  outline: 2px solid #02b5ef;
  outline-offset: 3px;
}

/* ── Features bar ─────────────────────────────────────────────── */

.features-bar {
  flex-shrink: 0;
  background-color: #fcfbf9;
  border-top: 0.5px solid rgba(7, 35, 105, 0.08);
}

.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 2.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #072369;
  border-right: 1px solid rgba(7, 35, 105, 0.12);
}

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

.feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #1050d0;
}

/* ── Credibility section ──────────────────────────────────────── */

.credibility {
  flex-shrink: 0;
  width: 100%;
  background-color: #f6f9fc;
  border-top: 1px solid rgba(7, 35, 105, 0.1);
}

.credibility-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem) 2.75rem;
  text-align: center;
}

.credibility-title {
  max-width: 32rem;
  margin: 0 auto 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: rgba(74, 93, 120, 0.75);
}

.credibility-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 3rem;
  list-style: none;
}

.logo-placeholder {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3a4d66;
}

/* ── Reduced motion ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .decoration {
    transform: none !important;
    transition: none;
  }
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero {
    align-items: flex-end;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    min-height: clamp(36rem, calc(100vh - 4.5rem - 5rem), 40rem);
  }

  .hero-media {
    background-position: 72% center;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      #1e2a3c 0%,
      #1e2a3c 22%,
      rgba(30, 42, 58, 0.68) 32%,
      rgba(30, 42, 58, 0) 44%
    );
  }

  .hero-content {
    width: 62%;
    max-width: 62%;
  }

  .subhead,
  .tagline {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 4rem;
  }

  .nav-brand {
    font-size: 1.375rem;
  }

  .nav-badge {
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
  }

  .page {
    min-height: calc(100vh - 4rem);
  }

  .hero {
    min-height: calc(100svh - 4rem - 5rem);
    padding: 2rem 1.5rem 2.5rem;
    align-items: flex-end;
  }

  .hero-media {
    background-position: 80% 20%;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(30, 42, 58, 0) 0%,
      rgba(30, 42, 58, 0.12) 22%,
      rgba(30, 42, 58, 0.68) 52%,
      #1e2a3c 72%
    );
  }

  .hero-content {
    width: 100%;
    max-width: none;
  }

  .headline {
    font-size: 2.5rem;
  }

  .subhead {
    font-size: 1.125rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .cta-primary {
    width: 100%;
  }

  .credibility-inner {
    padding: 2rem 1.5rem 2.25rem;
  }

  .credibility-title {
    font-size: 0.6875rem;
    margin-bottom: 1rem;
  }

  .credibility-logos {
    gap: 1rem 2rem;
  }

  .logo-placeholder {
    font-size: 1.5rem;
    letter-spacing: 0.14em;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid rgba(7, 35, 105, 0.12);
    justify-content: flex-start;
    padding: 1.25rem 1.5rem;
  }

  .feature-item:last-child {
    border-bottom: none;
  }
}
