:root {
  --black: #0A0A0A;
  --ink-2: #161616;
  --gray: #6E6E73;
  --white: #FFFFFF;
  --off: #F5F5F7;
  --gold: #F5A800;
  --gold-deep: #DB9800;
  --hairline: rgba(0, 0, 0, 0.08);
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  color: var(--black);
  background: var(--white);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
  padding: 17px 34px;
  border-radius: 980px;
  transition: transform 200ms ease, background-color 200ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: scale(1.02);
  background: var(--gold-deep);
}

/* ---- Overline labels ---- */
.overline {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- Sticky glass header ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Brand lockup (code-built mark + wordmark) */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
}

.wordmark {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.wm-pro {
  background: linear-gradient(180deg, #FFC72C, #E89B00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* white on the dark header; near-black on any light context */
.wm-adv {
  color: #0A0A0A;
}

.topbar .wm-adv {
  color: #FFFFFF;
}

.topbar-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: opacity 200ms ease;
}

.topbar-link:hover,
.topbar-link:focus-visible {
  opacity: 0.8;
}

/* ---- Hero (the one inversion) ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 90% at 50% -10%, var(--ink-2) 0%, var(--black) 60%);
  color: var(--white);
  padding-bottom: 8rem;
  text-align: center;
}

/* faint gold glow behind the headline */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 120%;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(245, 168, 0, 0.06) 0%, rgba(245, 168, 0, 0) 65%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-top: 5rem;
}

.brand {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.hero h1 {
  margin: 0 auto 1.5rem;
  max-width: 16ch;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1 .accent {
  color: var(--gold);
}

.subhead {
  margin: 0 auto 2.5rem;
  max-width: 40ch;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  font-weight: 400;
  color: #A1A1A6;
}

/* ---- Sections ---- */
.section {
  padding: 8rem 0;
  border-top: 1px solid var(--hairline);
}

.section:nth-of-type(even) {
  background: var(--off);
}

.overline + h2,
.section h2 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
}

.section p {
  margin: 0 0 1.25rem;
  max-width: 65ch;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--gray);
}

.section p:last-child {
  margin-bottom: 0;
}

/* ---- The leaks (2x2 grid) ---- */
.leak-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
}

.leak-list li {
  border-left: 2px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.5rem;
}

.leak-head {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
}

.leak-sub {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.0625rem;
  color: var(--gray);
}

/* ---- What we do (tiles) ---- */
.do-intro {
  margin-bottom: 0;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0 2.5rem;
}

.tile {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 2.5rem;
  transition: transform 200ms ease, border-color 200ms ease;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 168, 0, 0.4);
}

.tile-rule {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  margin-bottom: 1.5rem;
}

.tile .overline {
  margin-bottom: 0.5rem;
}

.tile-title {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
}

.tile .tile-desc {
  margin: 0;
  max-width: none;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--gray);
}

.do .do-note {
  margin: 0 auto;
  max-width: 60ch;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gray);
}

/* ---- Prove it (dark showpiece bookend) ---- */
.prove {
  background: radial-gradient(ellipse 120% 90% at 50% 0%, var(--ink-2) 0%, var(--black) 60%);
  color: var(--white);
  border-top: none;
  text-align: center;
}

.prove .overline.live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(245, 168, 0, 0.5);
  animation: pulse 1.8s ease-out infinite;
}

.prove h2 {
  color: var(--white);
}

.prove .prove-lead {
  margin: 0 auto !important;
  max-width: 34ch;
  color: #D6D6DB;
  font-weight: 500;
}

.phone {
  display: inline-block;
  margin-top: 2rem;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 200ms ease;
}

.phone:hover,
.phone:focus-visible {
  opacity: 0.85;
}

/* ---- Footer ---- */
.footer {
  padding: 8rem 0;
  text-align: center;
  border-top: 1px solid var(--gold);
}

.footer .btn {
  margin-bottom: 2.5rem;
}

.legal {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray);
}

/* ---- Motion (load-only) ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 600ms ease-out forwards;
}

.hero-inner .fade-up:nth-child(1) { animation-delay: 0ms; }
.hero-inner .fade-up:nth-child(2) { animation-delay: 100ms; }
.hero-inner .fade-up:nth-child(3) { animation-delay: 200ms; }
.hero-inner .fade-up:nth-child(4) { animation-delay: 300ms; }

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 168, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(245, 168, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 168, 0, 0);
  }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .mark {
    width: 28px;
    height: 28px;
  }

  .wordmark {
    font-size: 0.9rem;
  }

  .hero {
    padding-bottom: 4rem;
  }

  .hero-inner {
    padding-top: 3rem;
  }

  .section,
  .footer {
    padding: 4rem 0;
  }

  .leak-list {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  .tile {
    padding: 2rem;
  }

  .section p {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-up {
    opacity: 1;
    animation: none;
  }
  .dot {
    animation: none;
  }
}
