:root {
  --bg: #070A10;
  --panel: rgba(255,255,255,0.04);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.66);
  --faint: rgba(255,255,255,0.42);
  --line: rgba(255,255,255,0.12);

  /* BuilderBias Blue */
  --accent: #2563EB;
  --accentSoft: rgba(37,99,235,0.18);

  --radius: 18px;
  --radiusSm: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 700px at 35% -15%, rgba(37,99,235,0.22), transparent 62%),
    radial-gradient(900px 540px at 90% 10%, rgba(255,255,255,0.07), transparent 56%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

/* Grain overlay */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  z-index: 1;
}

.wrap {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
  padding: 36px 0 70px;
  position: relative;
  z-index: 2;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background: rgba(7,10,16,0.55);
  backdrop-filter: blur(14px);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 36px;
  width: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}

/* Nav */
.nav {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.64);
  align-items: center;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}

.nav a:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
  transform: translateY(-1px);
}

.nav-cta {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
}

.nav-cta:hover {
  border-color: rgba(37,99,235,0.40);
  background: rgba(37,99,235,0.10);
}

/* HERO */
.hero.hero--bg {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-image: url("./assets/hero-desktop.png");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  aspect-ratio: 16 / 9;
  min-height: 560px;
  max-height: 92vh;
  border-radius: 18px;
}

/* 🔑 KEY FIX: prevent global wrap padding from pushing hero content down */
.hero .wrap {
  padding-top: 0;
  padding-bottom: 0;
}

.hero.hero--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 30% 35%, rgba(0,0,0,0.35), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.62));
  pointer-events: none;
  z-index: 0;
}

.hero.hero--bg::after {
  content: "";
  position: absolute;
  top: -24%;
  right: -30%;
  width: 720px;
  height: 170%;
  background: radial-gradient(
    closest-side,
    rgba(37,99,235,0.20),
    rgba(37,99,235,0.06),
    transparent 70%
  );
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* 🔑 Slightly reduced top padding to restore original feel */
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 74px;
  max-width: 920px;
}

@media (max-width: 700px) {
  .hero.hero--bg {
    background-image: url("./assets/hero-mobile.png");
    background-position: center 30%;
    aspect-ratio: 9 / 16;
    min-height: 640px;
    border-radius: 16px;
  }

  .hero-inner {
    padding: 64px 0 62px;
    max-width: 100%;
  }
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
}

.h1 {
  font-size: clamp(52px, 6.2vw, 96px);
  letter-spacing: -0.07em;
  line-height: 0.98;
  margin: 14px 0 16px;
}

.lead {
  max-width: 70ch;
  font-size: 18px;
  color: rgba(255,255,255,0.78);
}

.lead.small {
  font-size: 16px;
  color: rgba(255,255,255,0.70);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  transition: transform 120ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.18);
}

.btn.primary {
  border-color: rgba(37,99,235,0.32);
  background: rgba(37,99,235,0.12);
}

.btn.primary:hover {
  border-color: rgba(37,99,235,0.46);
  background: rgba(37,99,235,0.18);
}
/* Ensure primary buttons match primary link color */
button.btn.primary {
  color: rgba(255,255,255,0.92);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: rgba(255,255,255,0.66);
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
}

/* Divider */
.rule {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  opacity: 0.9;
  margin: 0;
}

/* Below hero */
.below-hero {
  padding: 22px 0 18px;
}

.below-hero-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.below-hero-sub {
  margin: 0;
  font-size: 16px;
  color: rgba(255,255,255,0.70);
  max-width: 72ch;
}

/* Sections */
.section { padding: 56px 0; }

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

.h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -0.045em;
  margin: 12px 0 14px;
}

.h3 { font-size: 16px; }

.truth p { margin: 10px 0; }

.muted { color: rgba(255,255,255,0.66); }

/* Cards */
.stack {
  display: grid;
  gap: 16px;
}

.item {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
}

.item p {
  color: rgba(255,255,255,0.66);
  max-width: 80ch;
  margin: 8px 0 0;
}

/* Quote */
.quote {
  border-left: 2px solid rgba(37,99,235,0.55);
  background: rgba(37,99,235,0.08);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 18px;
}

/* Product row */
.product {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 26px;
  font-size: 13px;
  color: rgba(255,255,255,0.50);
}

.footer-logo {
  height: 22px;
  width: auto;
  display: block;
  margin-bottom: 10px;
  opacity: 0.88;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,0.26));
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Mobile polish */
@media (max-width: 520px) {
  .topbar { padding: 10px 14px; }
  .nav a { padding: 10px 12px; }
  .logo-img { height: 32px; }
  .h1 { font-size: 46px; }
}

@media (max-width: 900px) {
  .wrap { width: calc(100% - 38px); }
  .product { flex-direction: column; align-items: flex-start; }
  .nav { gap: 6px; }
}

/* CTA form */
.cta-actions { margin-top: 16px; }

.cta-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  max-width: 520px;
}

/* Bulletproof hide */
.cta-form[hidden] {
  display: none !important;
}

.field {
  display: grid;
  gap: 6px;
}

.label {
  font-size: 12px;
  color: rgba(255,255,255,0.66);
}

.input {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.92);
  outline: none;
}

.input:focus {
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.52);
}

/* =========================================================
   BuilderBias — Mobile form polish
   ========================================================= */

.cta-form {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(10px);
}

.cta-form .input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
}

.cta-form .input:focus {
  border-color: rgba(255,255,255,0.26);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

.cta-form .label {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.cta-form button.btn.primary[type="submit"] {
  width: 100%;
  height: 48px;
  border-radius: 12px;
}

@media (max-width: 520px) {
  .cta-form {
    max-width: 100%;
    padding: 14px;
    border-radius: 14px;
  }

  .cta-form .field {
    gap: 7px;
  }
}

