/* Novatide USA - brand tokens sampled from the logo (NOVA charcoal / TIDE navy).
   Tune --navy and --ink here if the brand file has exact hexes. */
:root {
  --navy: #0b0b8c;
  --navy-deep: #070760;
  --navy-ink: #05052e;
  --ink: #2b2b30;
  --body: #41414a;
  --muted: #6b6b76;
  --line: #e3e4ea;
  --line-soft: #eef0f5;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --accent: #17b3c4;
  --white: #ffffff;
  --radius: 4px;
  --wrap: 1280px;
  --pad: 24px;
  --shadow: 0 1px 2px rgba(5, 5, 46, .06), 0 8px 24px rgba(5, 5, 46, .06);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.16rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 .9rem;
}
.lede { font-size: 1.16rem; color: var(--body); max-width: 60ch; }
.section-head { max-width: 62ch; margin-bottom: 2.6rem; }

/* ---------- header ---------- */
/* Transparent over the hero photo, turning solid once you scroll past it.
   `.solid` is toggled by a small IntersectionObserver in the page. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.solid, .site-header.nav-open {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
/* One wordmark asset. Pure white over the photo, true colour once the bar is solid. */
.brand img {
  height: 27px; width: auto;
  filter: brightness(0) invert(1);
  transition: filter .25s ease;
}
.site-header.solid .brand img, .site-header.nav-open .brand img { filter: none; }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a {
  color: rgba(255, 255, 255, .88);
  font-size: .76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .13em;
  text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: var(--accent); text-decoration: none; }
.site-header.solid .nav a, .site-header.nav-open .nav a { color: var(--ink); }
.site-header.solid .nav a:hover { color: var(--navy); border-bottom-color: var(--navy); }
/* duplicate of the header login button, only needed once the button hides on phones */
.nav .nav-login { display: none; }

/* Header buttons invert with the bar. */
.header-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.header-cta .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }
.header-cta .btn-primary { background: #fff; color: var(--navy-deep); border-color: #fff; }
.header-cta .btn-primary:hover { background: #e9ecff; color: var(--navy-deep); border-color: #e9ecff; }
.site-header.solid .header-cta .btn-ghost { color: var(--ink); border-color: var(--line); }
.site-header.solid .header-cta .btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: transparent; }
.site-header.solid .header-cta .btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.site-header.solid .header-cta .btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: .95rem; font-weight: 600; line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: #eef0ff; color: var(--navy-deep); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn:disabled, .btn[disabled] {
  background: #c9cad4; border-color: #c9cad4; color: #75767f;
  cursor: not-allowed; pointer-events: none;
}

/* mobile menu trigger */
.nav-toggle {
  align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-left: auto;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; padding: 0;
}
/* White over the hero photo, dark once the bar goes solid. */
.nav-toggle { border-color: rgba(255, 255, 255, .4); }
.site-header.solid .nav-toggle, .site-header.nav-open .nav-toggle { border-color: var(--line); }
.nav-toggle span {
  display: block; position: relative;
  width: 18px; height: 2px; background: #fff; border-radius: 2px;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: #fff; border-radius: 2px;
}
.site-header.solid .nav-toggle span,
.site-header.solid .nav-toggle span::before,
.site-header.solid .nav-toggle span::after,
.site-header.nav-open .nav-toggle span,
.site-header.nav-open .nav-toggle span::before,
.site-header.nav-open .nav-toggle span::after { background: var(--ink); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  /* 72% keeps the bright part of the render to the right of the copy. */
  background: #03031a url("/assets/hero-dna.jpg") 72% center / cover no-repeat;
  color: #d9dbea;
  padding: 160px 0 100px;
}
/* Legibility scrim: heavy on the left where the copy sits, clearing to the right so
   the render still reads. Sits above the background image, below the content. */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg,
    rgba(3, 3, 24, .96) 0%,
    rgba(3, 3, 24, .92) 32%,
    rgba(3, 3, 24, .6) 56%,
    rgba(3, 3, 24, .2) 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 {
  color: var(--white);
  /* Wide enough to actually use the space on a desktop. A tight ch cap here was
     forcing three lines on a 1440 screen with room to spare. */
  max-width: 24ch;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  letter-spacing: -.03em;
  line-height: 1.05;
}
.hero .eyebrow { color: var(--accent); }
.hero-lede { font-size: 1.22rem; color: #c8cbe2; max-width: 64ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.6rem; }
.hero-note { font-size: .88rem; color: #9a9db8; margin: 0; }

/* ---------- stat strip ---------- */
/* Sits in its own band directly under the hero so the hero itself stays a clean photo. */
.stat-band { background: var(--navy-ink); padding: 0; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin: 0;
  background: transparent; border: 0; border-radius: 0;
}
.stat {
  background: transparent;
  padding: 34px 28px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-n {
  display: block; color: var(--white);
  font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.stat-l { font-size: .84rem; color: #a7aac6; line-height: 1.4; }

/* ---------- sections ---------- */
section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: .85rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* category chips */
.cats { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.cats li {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: .92rem; color: var(--ink); background: var(--white);
}

/* checklist */
.ticks { list-style: none; margin: 0 0 1.4em; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .52em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg);
}

/* split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow);
}
.panel h3 { margin-bottom: 1rem; }

/* CTA band */
.cta-band { background: var(--navy-ink); color: #c8cbe2; padding: 72px 0; }
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: #b3b7d4; margin-bottom: 1.8rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* compliance */
.compliance {
  border: 1px solid var(--line); border-left: 3px solid var(--navy);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px 22px; margin-top: 2.4rem;
}
.compliance p { margin: 0; font-size: .92rem; color: var(--muted); }
.compliance strong { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: #f3f4f9; border-top: 1px solid var(--line); padding: 56px 0 30px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; margin-bottom: 38px; }
.footer-grid img { height: 22px; margin-bottom: 14px; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--body); }
.footer-grid a:hover { color: var(--navy); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: .86rem; }
.footer-bottom p { margin: 0 0 .5em; }
.footer-bottom .legal { max-width: 78ch; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field-hint { font-size: .84rem; color: var(--muted); margin-top: 5px; }

/* accessibility */
.skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { gap: 12px; }
  .header-cta { order: 3; }
  .header-cta .btn-ghost { display: none; }

  /* nav collapses into a panel under the header, opened by .nav-toggle */
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 8px var(--pad) 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a {
    padding: 13px 0; font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a:hover { border-bottom-color: var(--line-soft); }
  .nav .nav-login {
    display: block;
    margin-top: 12px; border-bottom: 0;
    color: var(--navy); font-weight: 600;
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* The photo now sits directly behind the copy, so the scrim turns vertical:
     heaviest under the headline, clearing toward the bottom where the render shows. */
  .hero {
    min-height: auto;
    background-position: 68% center;
  }
  .hero::after {
    background: linear-gradient(180deg,
      rgba(3, 3, 26, .93) 0%,
      rgba(3, 3, 26, .88) 45%,
      rgba(3, 3, 26, .6) 100%);
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 20px; border-left: 0; }
  .stat:nth-child(odd) { padding-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  /* top padding must clear the fixed header */
  .hero { padding: 132px 0 64px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}
