: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;      /* helps reduce double-tap smart zoom */
  -webkit-text-size-adjust: 100%;  /* prevent iOS auto text scaling */
}

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;
}

/* Remove default link styling */
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: 34px; /* bigger */
  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 */
.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 {
  padding: 96px 0 74px;
  position: relative;
  max-width: 920px;
}

/* ===== Hero Image Treatment (Amaterasu-style) ===== */
.hero-image {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(
      180deg,
      rgba(7,10,16,0.55) 0%,
      rgba(7,10,16,0.65) 35%,
      rgba(7,10,16,0.90) 75%
    ),
    radial-gradient(
      1200px 600px at 25% 30%,
      rgba(37,99,235,0.18),
      transparent 65%
    ),
    url("./assets/hero-mountain.jpg") center / cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  z-index: -2;
}

/* Subtle vignette for cinematic depth */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 40%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: -1;
  pointer-events: none;
}
/* ===== End Hero Image Treatment ===== */

/* Visual light field */
.hero::after {
  content: "";
  position: absolute;
  top: -24%;
  right: -48%;
  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: -1;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

.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.66);
}

.lead.small {
  font-size: 16px;
  color: rgba(255,255,255,0.60);
}

.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;
  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);
}

.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;
}

.hero + .rule { margin-top: 64px; }

/* 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: 30px; } /* bigger on mobile */
  .h1 { font-size: 46px; }
}

/* Mobile tuning for hero image */
@media (max-width: 700px) {
  .hero-image {
    min-height: 82vh;
  }

  .hero-bg {
    inset: -20%;
    background-position: center top;
  }
}

@media (max-width: 900px) {
  .wrap { width: calc(100% - 38px); }
  .hero { padding: 72px 0 52px; max-width: 100%; }
  .product { flex-direction: column; align-items: flex-start; }
  .nav { gap: 6px; }
}
