/* ==========================================================================
   Mav Analytics
   1. Tokens   2. Fonts   3. Base   4. Header   5. Hero
   6. Strip    7. Cards   8. CTA    9. Footer  10. Motion
   ========================================================================== */

/* -------------------------------------------------------------- 1. Tokens */

:root {
  /* Contrast on white: navy 17.35:1 · slate 6.95:1 · blue-ink 5.90:1
     blue 5.09:1, and white on blue is also 5.09:1 — so the same blue works
     for a filled button and for the mark. */
  --navy: #0b1b2e;
  --slate: #4a5b70;
  --blue: #1668e3;
  --blue-ink: #0b5fd0;
  --blue-deep: #0a47a0;
  --paper: #ffffff;
  --tint: #eff5fd;
  --rule: #dce6f2;
  --rule-strong: #7288a3;

  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 68rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 14px;
}

/* --------------------------------------------------------------- 2. Fonts */

@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-var-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------- 3. Base */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4rem);
  letter-spacing: -0.032em;
}

h2 {
  font-size: clamp(1.85rem, 1.4rem + 1.9vw, 2.5rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.012em;
}

p,
ul {
  margin: 0;
}

svg {
  max-width: 100%;
}

a {
  color: var(--blue-ink);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-deep);
}

:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

#main:focus {
  outline: none;
}

/* Blue on navy is only 2.4:1, so on dark ground the ring reverses to white. */
.footer :focus,
.footer :focus-visible,
.skip-link:focus,
.btn:focus,
.btn:focus-visible {
  outline-color: #ffffff;
}

.btn--ghost:focus,
.btn--ghost:focus-visible {
  outline-color: var(--blue);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  outline-offset: -3px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--rule-strong);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--blue-ink);
  border-color: var(--blue);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------- 4. Header */

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
}

.brand .mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  color: var(--blue);
}

.brand__name {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--blue-ink);
}

.nav .btn {
  padding: 0.5rem 1.15rem;
  color: #fff;
}

.nav .btn:hover {
  color: #fff;
}

/* ----------------------------------------------------------------- 5. Hero */

.hero {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 58rem) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero p {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.1875rem;
  color: var(--slate);
}

/* Decorative panel. Rings rather than an abstract orb: it echoes the mark
   instead of importing generic tech iconography. */
.hero__panel {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 26rem;
  margin-inline: auto;
  width: 100%;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14) 0 28%, transparent 28.4%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0 42%, transparent 42.4%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0 56%, transparent 56.4%),
    linear-gradient(145deg, var(--blue) 0%, #0e4fb8 55%, var(--navy) 100%);
  display: grid;
  place-items: center;
}

.hero__panel .mark {
  width: 46%;
  height: auto;
  color: #fff;
}

/* ---------------------------------------------------------------- 6. Strip */

.strip {
  border-block: 1px solid var(--rule);
  background: var(--tint);
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.25rem;
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------------------------------------------------------------- 7. Cards */

.section {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: border-color 160ms ease, transform 160ms ease;
}

.card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: var(--tint);
  color: var(--blue-ink);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.1rem;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--slate);
}

/* ------------------------------------------------------------------ 8. CTA */

.cta {
  background: var(--tint);
  border-top: 1px solid var(--rule);
  text-align: center;
}

.cta p {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: var(--slate);
}

.cta .btn-row {
  justify-content: center;
}

/* Contact page */
.stack {
  max-width: 34rem;
}

.stack p + p {
  margin-top: 1.1em;
}

.email {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

.meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--slate);
}

/* --------------------------------------------------------------- 9. Footer */

.footer {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 3.25rem);
}

.footer a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.footer a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer .brand,
.footer .brand .mark {
  color: #fff;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.9375rem;
}

.footer__legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}

/* ---------------------------------------------------- 10. Motion, contrast */

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

  .card:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .btn,
  .card,
  .hero__panel {
    border: 1px solid CanvasText;
  }
}
