/* ============ Base — aggressive overflow guards ============ */
*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}
html { scroll-behavior: smooth; }
body {
  background: #0a0e17;
  position: relative;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Every text node breaks rather than escapes */
h1, h2, h3, h4, p, span, a, li, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* No media can force horizontal scroll */
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }

/* ============ Noise overlay ============ */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============ Nav scrolled state ============ */
#nav.scrolled {
  background: rgba(10, 14, 23, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============ Buttons ============ */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(180deg, #d6b558 0%, #c9a84c 60%, #b59639 100%);
  color: #0a0e17;
  border-radius: 0.625rem;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset,
              0 8px 24px -8px rgba(201, 168, 76, 0.55),
              0 0 0 1px rgba(201, 168, 76, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-gold:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset,
              0 12px 32px -8px rgba(228, 199, 107, 0.6),
              0 0 0 1px rgba(228, 199, 107, 0.55);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: #f0ece4;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.18s ease;
}
.btn-outline:hover {
  border-color: rgba(201, 168, 76, 0.5);
  background: rgba(201, 168, 76, 0.06);
  color: #fff;
}

/* ============ Mobile nav links ============ */
.mob-link {
  font-size: 1.05rem;
  padding: 0.25rem 0;
}
.mob-link:hover { color: #f0ece4; }

/* ============ Section label ============ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a84c;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #c9a84c;
  opacity: 0.6;
}

/* ============ Glows ============ */
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 100vw);
  height: 700px;
  background: radial-gradient(closest-side, rgba(201, 168, 76, 0.18), rgba(201, 168, 76, 0.04) 55%, transparent 75%);
  filter: blur(20px);
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: 600px;
  background: radial-gradient(closest-side, rgba(201, 168, 76, 0.22), rgba(201, 168, 76, 0.05) 50%, transparent 75%);
  filter: blur(30px);
  pointer-events: none;
}

/* ============ Problem visual / call rows ============ */
.call-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  transition: background 0.2s ease;
}
.call-row:hover { background: rgba(255, 255, 255, 0.04); }

.call-avatar {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.18), rgba(201, 168, 76, 0.05));
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: #c9a84c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.missed {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* ============ Step cards ============ */
.step-card {
  position: relative;
  background: #161e2e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.75rem 1.4rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
@media (min-width: 640px) {
  .step-card { padding: 2.25rem 1.75rem; }
}
.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 0% 0%, rgba(201, 168, 76, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: 0 20px 60px -25px rgba(201, 168, 76, 0.25);
}
.step-card:hover::before { opacity: 1; }

.step-num {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(201, 168, 76, 0.35);
  font-style: italic;
}
.step-title {
  margin-top: 1.5rem;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: #f0ece4;
  letter-spacing: -0.01em;
}
.step-body {
  margin-top: 0.85rem;
  color: #9ca3af;
  line-height: 1.65;
}

/* ============ Feature cards ============ */
.feature-card {
  position: relative;
  background: #161e2e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.6rem 1.4rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
@media (min-width: 640px) {
  .feature-card { padding: 2rem 1.75rem; }
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: 0 16px 50px -22px rgba(201, 168, 76, 0.3);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: #c9a84c;
}
.feature-icon svg { width: 22px; height: 22px; display: block; }
.feature-title {
  margin-top: 1.25rem;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: #f0ece4;
  letter-spacing: -0.01em;
}
.feature-body {
  margin-top: 0.65rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* ============ Pricing ============ */
.price-card {
  position: relative;
  background: #161e2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
@media (min-width: 640px) {
  .price-card { padding: 2.5rem 2rem; }
}
.price-card:hover {
  transform: translateY(-3px);
}
.price-card-pop {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.35),
              0 30px 70px -30px rgba(201, 168, 76, 0.4);
  background:
    radial-gradient(800px circle at 50% 0%, rgba(201, 168, 76, 0.08), transparent 60%),
    #161e2e;
}

.check {
  position: relative;
  padding-left: 1.85rem;
  color: #d6d3cc;
  font-size: 0.97rem;
  line-height: 1.5;
}
.check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 9999px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 0.75rem no-repeat,
    rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Headings refinement ============ */
h1, h2, h3 { font-feature-settings: "ss01", "kern"; }

/* Every section is self-sealed against horizontal overflow */
header, section, footer {
  position: relative;
  z-index: 2;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Tighter type + spacing on the smallest viewports */
@media (max-width: 480px) {
  .btn-gold, .btn-outline { padding: 0.75rem 1.1rem; font-size: 0.9rem; }

  /* Hero H1 — clamp so it never exceeds viewport */
  h1.font-serif {
    font-size: clamp(1.625rem, 8.5vw, 2.25rem);
    line-height: 1.15;
  }

  /* Section H2s — cap aggressively */
  h2.font-serif {
    font-size: clamp(1.375rem, 6.5vw, 1.875rem);
    line-height: 1.2;
  }

  /* Body paragraphs */
  section p { font-size: 1rem; line-height: 1.6; }

  /* Card titles */
  .step-title, .feature-title { font-size: 1.2rem; }
  .step-num { font-size: 3rem; }

  /* Reduce stats numbers */
  .stats-num { font-size: 2.5rem; line-height: 1; }
}

