@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/outfit-latin-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../assets/fonts/space-mono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../assets/fonts/space-mono-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bt-navy);
  color: var(--bt-text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
a { color: inherit; }
section[id] { scroll-margin-top: 24px; }

:focus-visible {
  outline: 2px solid var(--bt-link-on-dark);
  outline-offset: 3px;
  border-radius: 4px;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 30;
  background: #FFFFFF; color: var(--bt-ink);
  padding: 12px 18px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.container { max-width: var(--bt-container); margin: 0 auto; padding-inline: var(--bt-gutter); }
.stack { display: flex; flex-direction: column; gap: 44px; }
.arrow { display: inline-block; width: 16px; height: 10px; vertical-align: 0.02em; }

/* Type */
h1 { font-size: var(--bt-h1); line-height: 1.04; font-weight: 400; letter-spacing: -2px; }
.section h2, .cta h2 { font-size: var(--bt-h2); line-height: 1.1; font-weight: 400; letter-spacing: -2px; }
.eyebrow { font-size: var(--bt-eyebrow); color: var(--bt-sabal-blue); }
.lead {
  font-size: var(--bt-lead); font-weight: 300; line-height: 1.55; letter-spacing: -0.3px;
  color: var(--bt-text-body-dark); max-width: 580px;
}
.mono-note { font-family: var(--bt-font-mono); font-size: 13px; color: var(--bt-text-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--bt-radius-button);
  padding: 16px 30px; font-size: 17px; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--primary { background: var(--bt-indigo); font-weight: 500; }
.btn--primary:hover { background: #5660E2; }
.btn--ghost { border: 1px solid rgba(255,255,255,0.3); }
.btn--ghost:hover { border-color: #FFFFFF; }
.btn--nav { background: var(--bt-button-blue); font-size: 16px; font-weight: 500; padding: 14px 26px; }
.btn--nav:hover { background: #0862C8; }
.btn--light { background: #FFFFFF; color: var(--bt-ink); font-weight: 500; }
.btn--light:hover { background: var(--bt-haze); }
.btn--ghost-light { border: 1px solid rgba(255,255,255,0.6); }
.btn--ghost-light:hover { border-color: #FFFFFF; }
.cta :focus-visible { outline-color: #FFFFFF; }

/* Header. It sits on the hero background. */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  max-width: var(--bt-container); margin: 0 auto; padding: 24px var(--bt-gutter) 0;
}
.nav {
  position: relative;
  border-radius: var(--bt-radius-card);
  background: var(--bt-gradient-nav);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 28px;
}
.nav__brand { display: block; flex: none; text-decoration: none; }
.nav__logo-full { width: 315px; height: 52px; }
.nav__logo-compact { display: none; align-items: center; gap: 10px; }
.nav__logo-compact img:first-child { width: 26px; height: 36px; }
.nav__logo-compact img:last-child { width: 150px; height: 12px; }
.footer__logo .b { font-weight: 700; }
.footer__logo .l { font-weight: 300; }
.nav__menu { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 28px; }
.nav__links { display: flex; flex: 1; justify-content: center; align-items: center; gap: 4px 26px; font-size: 16px; }
.nav__links a { display: block; white-space: nowrap; padding: 12px 0; text-decoration: none; border-bottom: 2px solid transparent; }
.nav__links a:hover { border-bottom-color: rgba(255,255,255,0.4); }
.nav__links a[aria-current] { border-bottom-color: #FFFFFF; }
.nav__toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--bt-radius-button);
  color: #FFFFFF; font: inherit; font-size: 16px; padding: 10px 16px; cursor: pointer;
}
.nav__toggle-icon, .nav__toggle-icon::before, .nav__toggle-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor;
  transition: transform .15s ease, background-color .15s ease;
}
.nav__toggle-icon { position: relative; }
.nav__toggle-icon::before, .nav__toggle-icon::after { content: ''; position: absolute; left: 0; }
.nav__toggle-icon::before { top: -6px; }
.nav__toggle-icon::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--bt-deep);
    border: 1px solid rgba(255,255,255,0.12); border-radius: var(--bt-radius-card);
    padding: 12px 20px 20px;
    box-shadow: 0 28px 70px rgba(0,4,20,0.6);
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links li + li { border-top: 1px solid var(--bt-border-dark); }
  .nav__links a { padding: 14px 0; border-bottom: 0; }
  .nav__links a[aria-current] { color: var(--bt-link-on-dark); }
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(900px 620px at 80% 10%, rgba(14,127,251,0.22), rgba(0,10,46,0) 65%),
    radial-gradient(700px 520px at 10% 90%, rgba(70,80,213,0.18), rgba(0,10,46,0) 65%),
    var(--bt-night);
  padding-top: 190px;
  padding-bottom: 120px;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.hero__text { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero__visual { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; }
.hero__shard { position: absolute; width: min(380px, 90%); height: 440px; opacity: 0.35; }
.finding {
  position: relative; width: 100%; max-width: 450px;
  background: var(--bt-deep); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--bt-radius-card);
  box-shadow: 0 28px 70px rgba(0,4,20,0.6);
  font-family: var(--bt-font-mono); font-size: 13px; overflow: hidden;
}
.finding__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--bt-border-dark); color: var(--bt-text-muted);
}
.severity {
  background: var(--bt-sev-critical); color: var(--bt-sev-critical-text); font-weight: 700;
  border-radius: var(--bt-radius-tag); padding: 4px 10px;
}
.finding__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.finding__title { font-family: 'Outfit', sans-serif; font-size: 21px; font-weight: 500; line-height: 1.3; }
.finding__meta { color: var(--bt-text-muted); }
.finding__evidence {
  background: var(--bt-night); border-radius: 12px; padding: 14px;
  line-height: 1.6; color: var(--bt-text-body-dark);
}
.finding__evidence .arrow { width: 14px; height: 9px; display: inline-block; }
.finding__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px;
  border-top: 1px solid var(--bt-border-dark); padding-top: 14px; color: var(--bt-text-muted);
}
.finding__pass { color: var(--bt-success); }

/* Sections */
.section { padding-block: var(--bt-section-padding-y); }
.section--navy { background: var(--bt-navy); }
.section--night { background: var(--bt-night); }
.section-head { display: flex; flex-direction: column; gap: 14px; }
.section-head h2 { max-width: 820px; }
.section-head--split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head__title { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section-head__copy { font-size: 17px; font-weight: 300; line-height: 1.55; color: var(--bt-text-body-dark); max-width: 440px; }

/* What we test */
.test-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bt-grid-gap); }
.card {
  background: var(--bt-deep); border: 1px solid var(--bt-border-dark);
  border-radius: var(--bt-radius-card); padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.card__num { font-family: var(--bt-font-mono); font-size: 14px; color: var(--bt-sabal-blue); }
.card h3 { font-size: 22px; font-weight: 500; }
.card p { font-size: 16px; font-weight: 300; line-height: 1.55; color: var(--bt-text-body-dark); }
.never { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 17px; font-weight: 300; color: var(--bt-text-body-dark); }
.never__tag {
  font-family: var(--bt-font-mono); font-size: 13px; letter-spacing: 0.12em;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 10px; color: #FFFFFF; padding: 7px 12px;
}

/* How it works: four cards in one row on desktop */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--bt-grid-gap); }
.step {
  background: var(--bt-deep); border-radius: var(--bt-radius-feature); padding: 40px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.step__num { font-size: 64px; font-weight: 300; letter-spacing: -2px; line-height: 1; }
.step h3 { font-size: 21px; font-weight: 500; }
.step p { font-size: 16px; font-weight: 300; line-height: 1.55; color: var(--bt-text-body-dark); }
.step--accent { background: var(--bt-indigo); }
.step--accent p { color: #FFFFFF; }

/* Limits */
.limits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.limits__text { display: flex; flex-direction: column; gap: 16px; }
.limits__copy { font-size: 18px; font-weight: 300; line-height: 1.55; color: var(--bt-text-body-dark); }
.limits__list {
  padding: 8px 32px; background: var(--bt-deep); border: 1px solid var(--bt-border-dark);
  border-radius: var(--bt-radius-feature);
}
.limits__list > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 24px; padding: 22px 0; }
.limits__list > div + div { border-top: 1px solid var(--bt-border-dark); }
.limits__list dt { font-family: var(--bt-font-mono); font-size: 14px; color: var(--bt-sabal-blue); padding-top: 4px; }
.limits__list dd { font-size: 18px; font-weight: 300; line-height: 1.5; }

/* Why us */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bt-grid-gap); }
.why__card {
  background: var(--bt-deep); border-radius: var(--bt-radius-feature); padding: 40px 36px;
  display: flex; flex-direction: column; gap: 12px;
}
.why__card h3 { font-size: 30px; font-weight: 400; letter-spacing: -1px; line-height: 1.15; }
.why__card p { font-size: 16px; font-weight: 300; line-height: 1.55; color: var(--bt-text-body-dark); }
.why__card--feature { background: var(--bt-gradient-feature-card); }
.why__card--feature p { color: #FFFFFF; }

/* CTA */
.cta {
  position: relative; overflow: hidden;
  background: var(--bt-indigo); border-radius: var(--bt-radius-feature);
  padding: 72px 56px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
}
.cta > * { position: relative; }
.cta__shard { position: absolute; right: -30px; bottom: -150px; width: 400px; height: 463px; color: var(--bt-night); opacity: 0.3; }
.cta h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; max-width: 820px; }
.cta p { font-size: 19px; font-weight: 300; line-height: 1.5; max-width: 600px; }

/* Footer */
.footer { position: relative; overflow: hidden; background: var(--bt-night); border-top: 1px solid rgba(255,255,255,0.08); }
.footer__shard { position: absolute; left: -60px; bottom: -120px; width: 300px; height: 347px; opacity: 0.18; }
.footer__inner {
  position: relative; padding-block: 56px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px;
  font-size: 15px; font-weight: 300; color: var(--bt-text-body-dark);
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; max-width: 360px; line-height: 1.5; }
.footer__logo { font-size: 18px; letter-spacing: 0.32em; color: #FFFFFF; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 16px 40px; font-family: var(--bt-font-mono); font-size: 13px; color: var(--bt-text-muted); }
.footer__contact a { color: #FFFFFF; text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; }

/* Tablet */
@media (max-width: 1040px) {
  .hero { padding-top: 160px; padding-bottom: 88px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .test-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limits { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 80px; }
}

/* Mobile */
@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .hero { padding-top: 136px; padding-bottom: 64px; }
  .hero__visual { min-height: 0; padding-block: 24px; }
  .hero__shard { height: 100%; }
  .test-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 32px 28px; }
  .limits__list { padding: 8px 24px; }
  .limits__list > div { grid-template-columns: minmax(0, 1fr); }
  .why__card { padding: 32px 28px; }
  .cta { padding: 48px 28px; }
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .nav { padding: 8px 12px 8px 16px; }
  .nav__logo-full { display: none; }
  .nav__logo-compact { display: flex; }
  .nav__toggle { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .nav__toggle-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .footer__contact { flex-direction: column; }
}

@media (max-width: 360px) {
  .nav { gap: 8px; }
  .nav__logo-compact { gap: 8px; }
  .nav__logo-compact img:first-child { width: 20px; height: 28px; }
  .nav__logo-compact img:last-child { width: 122px; height: 10px; }
}

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