/* Base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #0b0d12 0%, #0c121b 60%, #0e1520 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
}

/* Common utility classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Design tokens ===== */
:root {
  --bg: #0b0d12;
  --surface: #0f1218;
  --elev: #141823;
  --text: #e8ecf3;
  --muted: #a8b0c0;
  --brand: #5ee1a7;
  --brand-2: #65b3ff;
  --danger: #ff7070;
  --ok: #77efc6;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.02) inset;
  --container: 1200px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
a {
  font-weight: 600;
  color: var(--text);
  opacity: 0.9;
}

/* ===== Top bar ===== */
.topbar {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #071014;
}
.topbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-weight: 700;
}

/* ===== Hero ===== */
.hero {
  padding: 56px 0;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
  color: #091116;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}
h1 {
  font-size: clamp(2.2rem, 2.2rem + 2vw, 3.5rem);
  line-height: 1.05;
  margin: 14px 0 12px;
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.bullet {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
}
.bullet .dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Default CTA styles - can be overridden by specific pages */
.cta {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #071014;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 900;
  border: 0;
  box-shadow: var(--shadow);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  display: block;
  text-align: center;
}

/* photo collage */
.collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.tile {
  aspect-ratio: 1/1.1;
  border-radius: 16px;
  background: linear-gradient(180deg, #223 0%, #111 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, 0.08), transparent 60%);
}

/* ===== Trust strip ===== */
.trust {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.02), transparent);
}
.trust-track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 26px;
  opacity: 0.7;
  filter: grayscale(100%);
}
.trust .logo {
  height: 46px;
  border-radius: 6px;
}

/* ===== Value section ===== */
.value {
  padding: 56px 0;
}
.value .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.kicker {
  font-weight: 900;
  color: var(--brand);
}
.card {
  background: var(--elev);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 8px 0 6px;
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  margin-right: 8px;
}

/* ===== Stats ===== */
.stats {
  padding: 28px 0;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: var(--elev);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
}
.stat .big {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ok);
}
.stat .sub {
  color: var(--muted);
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 56px 0;
}
.tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tcard {
  background: var(--elev);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr;
}
.tcard .avatar {
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a3142, #1a1f2a);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

/* ===== Price Lock ===== */
.banner {
  margin: 8px 0 0;
  background: linear-gradient(90deg, #1a7f5f, #12597a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  color: #eafff6;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.banner img {
  margin-top: 16px;
}

/* ===== Opt-in Form ===== */
.optin {
  padding: 56px 0;
}
.optin .optin-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.fieldgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  background: #0b0f16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}
.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(94, 225, 167, 0.2);
}
.agree {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  margin: 8px 0 12px;
}
.consent-label {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.consent-label a {
  text-decoration: underline;
}
.optin .cta {
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
  border: 0;
}
.small.muted {
  color: var(--muted);
  margin-top: 8px;
}

/* ===== FAQ ===== */
.faq {
  padding: 40px 0;
}
.faq .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
details {
  background: var(--elev);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}
summary {
  cursor: pointer;
  font-weight: 800;
}
details p {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }
  .stats .wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .tgrid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-track {
    grid-template-columns: repeat(6, 1fr);
  }
  .value .grid {
    display: block;
  }
}
@media (max-width: 720px) {
  .tgrid,
  .faq .grid {
    grid-template-columns: 1fr;
  }
  .trust-track {
    grid-template-columns: repeat(4, 1fr);
  }
  .value .grid {
    display: block;
  }
  .optin .optin-wrap {
    grid-template-columns: 1fr;
  }
  .fieldgrid {
    grid-template-columns: 1fr;
  }
}
/* ===== Footer ===== */
footer {
  margin-top: 60px;
  padding: 40px 0;
  background: #0a0d12;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
}
.small {
  font-size: 0.9rem;
  color: var(--muted);
}
@media (max-width: 720px) {
  .footgrid {
    display: block;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
  }
}

/* Header styles moved from src/components/Header.astro */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 18, 0.7);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

/* Enhanced sticky state when scrolled */
header.scrolled {
  background: rgba(11, 13, 18, 0.9);
  backdrop-filter: saturate(120%) blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  z-index: 1001;
  text-decoration: none;
}

.brand img {
  height: 36px;
  width: auto;
}

.nav a {
  font-weight: 600;
  color: var(--text);
  opacity: 0.9;
  text-decoration: none;
}

.links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.links a.active {
  color: #091116;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.cta {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #071014;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 900;
  border: 0;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.mobile-cta {
  display: none;
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

.desktop-cta {
  display: block;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Mobile styles */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .desktop-cta {
    display: none;
  }

  .mobile-cta {
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    border-bottom: none !important;
  }

  /* Mobile slide-in navigation */
  .links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 86%;
    max-width: 360px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 84px 20px 20px; /* leave space for header */
    background: linear-gradient(180deg, rgba(15, 18, 24, 0.98), rgba(11, 13, 18, 0.98));
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1000;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    transition: right 0.3s ease;
  }

  .links.open {
    right: 0;
    display: block;
  }

  .links a {
    padding: 16px 12px;
    border-radius: 10px;
    font-size: 1.05rem;
    display: block;
    width: 100%;
    margin-bottom: 8px;
  }

  .links a:hover {
    background: rgba(255, 255, 255, 0.03);
  }

  /* ensure the menu button is visible and layered above panel */
  .mobile-menu-btn {
    position: relative;
    z-index: 1002;
  }

  /* keep overlay visible when open (overlay already toggled via .open class) */
  .mobile-overlay {
    z-index: 999;
  }
}

/* Smaller mobile screens */
@media (max-width: 480px) {
  .nav {
    padding: 12px 0;
  }

  .brand img {
    height: 32px;
  }

  .links {
    width: 100%;
    right: -100%;
    display: none;
  }
}
