/* ============================================================
   RESET & BASE
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Montserrat", "Roboto", system-ui, sans-serif;
  background: #05070c;
  color: #ffffff;
  overflow-x: hidden;
}

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --bg-main: #05070c;
  --panel: rgba(255,255,255,0.08);
  --glass: rgba(255,255,255,0.045);
  --muted: #9aa4b2;

  --accent-hot: #ff4d6d;
  --accent-warm: #ffb703;
  --accent-teal: #2dd4bf;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.25,.9,.3,1);
}

/* ============================================================
   BACKGROUND EFFECTS (GUARANTEED VISIBILITY)
============================================================ */
.bg-aurora,
.bg-grid {
  position: fixed;
  inset: -40%;
  pointer-events: none;
  z-index: 0;
}

/* Aurora */
.bg-aurora {
  background:
    radial-gradient(circle at 50% 120%,
      rgba(255,70,70,0.55),
      rgba(255,180,90,0.35),
      rgba(120,255,180,0.25),
      rgba(90,180,255,0.25),
      rgba(170,120,255,0.25),
      transparent 70%);
  filter: blur(160px);
  animation: auroraMove 28s linear infinite;
}

@keyframes auroraMove {
  from { transform: translateY(30%); }
  to   { transform: translateY(-30%); }
}

/* Rainbow Grid */
.bg-grid {
  background:
    repeating-linear-gradient(
      to right,
      rgba(255,255,255,0.08) 0px,
      rgba(255,255,255,0.08) 1px,
      transparent 1px,
      transparent 120px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.08) 0px,
      rgba(255,255,255,0.08) 1px,
      transparent 1px,
      transparent 120px
    );
  opacity: 0.65;
  mix-blend-mode: screen;
  animation: gridMove 42s linear infinite;
}

@keyframes gridMove {
  from { transform: translateY(0); }
  to   { transform: translateY(-220px); }
}

/* ============================================================
   PAGE WRAPPER (CONTENT ABOVE EFFECTS)
============================================================ */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px;
  position: relative;
  z-index: 5;
}

/* ============================================================
   HEADER
============================================================ */
.topbar {
  display: flex;
  justify-content: center; /* centers horizontally */
  align-items: center;     /* centers vertically */
  /*padding: 20px 0;*/
  margin-top: 5px;
  margin-bottom: -20px;
}

.logo {
  display: block;
  height: 56px; /* keep your existing size */
}

.logo-text {
  font-weight: 900;
  font-size: 20px;
}

/* ============================================================
   GRID LAYOUT
============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 980px) {
  .grid-2 {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

/* ============================================================
   HERO CARD
============================================================ */
.hero-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.01)
  );
  border: 1px solid var(--panel);
  border-radius: var(--radius-lg);
  padding: 15px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.9);
  position: relative;
}

.hero-left {
  align-items: stretch;
}

.hero-left h1 {
  margin: 0 !important;
  padding: 0;
}

.hero-head {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}

.hero-head h1 {
  display: block;
  margin: 0 auto;
  text-align: center;

  /* JS will control this */
  max-width: unset;

  /*text-wrap: balance;*/
}

/* Ribbon */
.ribbon {
  background: linear-gradient(90deg,var(--accent-hot),var(--accent-warm));
  color: #061018;
  font-weight: 900;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 14px;
}

/* Headings */
.kicker {
  font-weight: 800;
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 6px;
}

.h1 {
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: x-large;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  /*max-width: 70%;*/
  margin-bottom: 18px;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============================================================
   PRODUCT PREVIEW
============================================================ */
.product-preview-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--panel);
  /*background: #000;*/
  margin: 22px 0;
}

.product-preview-inner img {
  width: 100%;
  display: block;
}

/* ============================================================
   BENEFITS (FIXED LINEARITY)
============================================================ */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 14px;
  margin-top: 18px;
}

.benefit {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--glass);
  border: 1px solid var(--panel);
  border-radius: var(--radius-md);
  padding: 14px;
}

.benefit .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--accent-teal);
}

.benefit .text {
  font-size: 15px;
  line-height: 1.45;
}

/* ============================================================
   PRICE & CTA
============================================================ */
.price-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  align-items: center;
  align-content: center;
  text-align: center;
  justify-content: center;
  flex-direction: column;
}

.price {
  background: var(--glass);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.regular {
  text-decoration: line-through;
  opacity: 0.55;
}

.promo {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-warm);
}

.cta-primary {
  background: linear-gradient(90deg,var(--accent-hot),var(--accent-warm));
  color: #061018;
  font-weight: 900;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.cta-ghost {
  border: 1px solid rgba(255,255,255,0.25);
  padding: 12px;
  border-radius: var(--radius-md);
  color: var(--muted);
  text-decoration: none;
}

/* ============================================================
   COUNTDOWN
============================================================ */
.countdown {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
  align-self: center;
  text-align: center;
  justify-content: center;
}

.cd-unit {
  background: var(--glass);
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 64px;
}

.cd-unit span {
  font-size: 10px;
  color: var(--muted);
}

/* ================= PORTRAIT VIDEOS ================= */

.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;          /* 🔑 Portrait */
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
}
.video-thumb iframe,
.video-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;             /* fills portrait nicely */
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

/* ============================================================
   SIDE FORM (FIXED)
============================================================ */
.side-card {
  align-self: center;
  align-items: center;
  text-align: center;
  position: sticky;
  top: 32px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.07),
    rgba(255,255,255,0.02)
  );
  border: 1px solid var(--panel);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.lead-form input {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  margin-bottom: 12px;
}

.lead-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.btn-submit {
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg,var(--accent-hot),var(--accent-warm));
  border: none;
  font-weight: 900;
  color: #061018;
}

/* ============================================================
   TESTIMONIALS / FAQ / FOOTER
============================================================ */
.testimonials {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.testimonial {
  background: var(--glass);
  padding: 16px;
  border-radius: var(--radius-md);
}

.faqs {
  margin-top: 30px;
}

.faq {
  background: var(--glass);
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.site-footer {
  text-align: center;
  margin: 46px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ============================================================
   REVEAL ANIMATION
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}
/* ============================================================
   LEGAL PAGES
============================================================ */
.legal-page {
  max-width: 900px;
  margin: 40px auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 36px;
}

.legal-page h1 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 900;
}

.legal-body {
  font-size: 16px;
  line-height: 1.8;
  color: #d8e0ee;
}

.legal-body ul {
  margin-left: 20px;
}

.legal-body strong {
  color: #fff;
}
/* ============================================================
   FOOTER LEGAL LINKS
============================================================ */
.site-footer {
  margin-top: 48px;
  padding: 32px 12px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-links {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-links a {
  color: #cfd8e3;
  margin: 0 6px;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-warm);
  text-decoration: underline;
}

.footer-links span {
  color: rgba(255,255,255,0.35);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* Stop grid columns from stretching vertically */
.hero-card.grid-2 {
  align-items: start;
}

/* ================= MOBILE HERO – FINAL REAL FIX ================= */
@media (max-width: 520px) {
  .hero-card.grid-2 {
    align-items: stretch; /* mobile is column flow */
  }

  .side-card {
    margin-top: 32px;
  }

  /* Ensure hero-left is a full-width column */
  .hero-left {
    align-items: center;
  }

  .hero-head {
    max-width: 100vw;        /* allow full width */
    width: 100%;
    padding-inline: 8px;     /* tiny breathing space */
    /*text-wrap: pretty;*/       /* less aggressive than balance */
    white-space: normal;
    line-height: 1.08;       /* tighter, more horizontal feel */
    letter-spacing: -0.01em; /* optical widening */
    margin-inline: auto;
    text-align: center;
  }

  .hero-head h1 {
    display: block;
    margin: 0 auto;

    /* Let browser do optical balance */
    /*text-wrap: balance;*/

    /* Prevent width illusions */
    max-width: 92vw;

    text-align: center;
    white-space: normal;

    /* REMOVE all optical hacks */
    transform: none;
    text-indent: 0;
  }

  /* Normalize all direct children */
  .hero-left > * {
    width: 100%;
    max-width: 100%;
  }

  /* Lead text should NOT be percentage-based */
  .lead {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* Benefits grid must fill width */
  .benefits {
    width: 100%;
  }

  /* Product preview must fill width */
  .product-preview,
  .product-preview-inner {
    width: 100%;
  }
}

/* ================= GRADIENT HEADLINE ================= */

.headl1 {
  background: linear-gradient(
    90deg,
    var(--accent-hot),
    var(--accent-warm)
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 8px 40px rgba(255, 120, 80, 0.25);
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Improves rendering */
  display: inline-block;
  font-size: xx-large;
}

/* ================= SIDE CARD CENTER BELOW ================= */

/* Desktop behavior */
@media (min-width: 980px) {

  /* Stop sticky + grid anchoring */
  .side-card {
    position: static !important;
    align-self: unset !important;
    justify-self: unset !important;
  }

  /* Make hero grid stack vertically */
  .hero-card.grid-2 {
    grid-template-columns: 1fr !important;
  }

  /* Center side card below content */
  .side-card {
    max-width: 520px;
    margin: 40px auto 0;
    text-align: center;
  }
}

/* Mobile stays centered */
@media (max-width: 979px) {
  .side-card {
    margin: 28px auto 0;
    max-width: 100%;
  }
}

/* ================= PRODUCT IMAGE – CENTERED & SMALLER ================= */

.product-preview {
  display: flex;
  justify-content: center;
}

.product-preview-inner {
  max-width: 320px;     /* desktop size */
  width: 100%;
  margin: 20px auto;
}

.product-preview-inner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile adjustment */
@media (max-width: 520px) {
  .product-preview-inner {
    max-width: 260px;   /* smaller on mobile */
  }
}

