/* ============================================================
   STYLE-CORE.CSS (v2)
   ------------------------------------------------------------
   Core visual & layout logic for all landing pages.
   This stylesheet handles structure, glass styling, animations,
   and section layout — all color values come from theme-*.css.
   ============================================================ */

/* ---------- BASE ---------- */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background: radial-gradient(circle at top right, var(--bg3) 0%, var(--bg1) 100%);
  overflow-x: hidden;
  background-attachment: fixed;
}


/* ============================================================
   FIXED CINEMATIC BACKGROUND (FULL-HEIGHT, BRIGHTER, DYNAMIC)
   ============================================================ */

/* 1. Main fixed wrapper — includes texture + soft base glow */
.circuit-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(var(--accent-rgb), 0.035) 0%, transparent 75%),
    url("../images/money.png");
  background-size: cover, 80px;
  background-repeat: no-repeat, repeat;
  background-blend-mode: overlay;
  opacity: 0.9; /* slightly softens overall intensity */
}


/* 3. Vertical pulse beam */
.circuit-pulse {
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,
    rgba(var(--accent-rgb), 0) 0%,
    rgba(var(--accent-rgb), 0.65) 50%,
    rgba(var(--accent-rgb), 0) 100%);
  animation: pulseMove 6s linear infinite;
  mix-blend-mode: screen;
}

/* 4. Ambient glow (breathing effect) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb), 0.15) 0%, transparent 65%);
  filter: blur(100px);
  animation: ambientPulse 12s ease-in-out infinite;
  pointer-events: none;
}

/* 5. Keyframes */
@keyframes circuitDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 120px 120px, 120px 120px; }
}

@keyframes pulseMove {
  0%   { transform: translateX(0); opacity: 0.35; }
  50%  { transform: translateX(100vw); opacity: 0.85; }
  100% { transform: translateX(0); opacity: 0.35; }
}

@keyframes ambientPulse {
  0%,100% { opacity: 0.4; }
  50%     { opacity: 0.9; }
}



.circuit-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(var(--accent-rgb), 0.06) 1px, transparent 1px);
  background-size: 120px 120px;
  animation: circuitDrift 30s linear infinite;
  mix-blend-mode: screen;
  filter: blur(0.7px);
}

@keyframes circuitDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 120px 120px, 120px 120px; }
}

/* ---------- ATTENTION BAR ---------- */
.attention-bar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: linear-gradient(90deg, var(--cta1), var(--cta2));
  color: #fff; /* keep white text so it works across all themes */
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem; /* tiny bump for readability */
  padding: 10px 12px;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  /* Crisp 1–2px offset + soft lift, universally readable on bright gradients */
  text-shadow:
    0 1px 0 rgba(0,0,0,0.45),    /* tight dark edge directly under text */
    0 2px 3px rgba(0,0,0,0.25),  /* subtle soft drop for depth */
    -1px -1px 0 rgba(255,255,255,0.12); /* faint top-left highlight (emboss) */

  /* ultra-thin stroke for extra contrast on very light cta1/cta2 mixes (WebKit) */
  -webkit-text-stroke: 0.4px rgba(0,0,0,0.25);
}

/* Toggle this by adding `deboss` to the bar if you want a carved look on some pages */
.attention-bar.deboss {
  text-shadow:
    0 -1px 0 rgba(255,255,255,0.35), /* bright top edge */
    0 1px 1px rgba(0,0,0,0.6);       /* darker inner shadow */
}

/* ---------- Countdown Timer (Theme-Adaptive + Bold) ---------- */
#countdown-timer {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 2px;

  /* theme-adaptive frost base */
  background:
      linear-gradient(
        135deg,
        rgba(var(--accent-rgb), 0.30) 0%,
        rgba(var(--accent-rgb), 0.18) 40%,
        rgba(var(--accent-rgb), 0.10) 100%
      ),
      rgba(var(--bg3-rgb, 0,0,0), 0.45); /* fallback if theme doesn't define bg3-rgb */
  
  color: #fff;
  padding: 8px 18px;
  border-radius: 14px;

  /* theme-reactive border */
  border: 1px solid rgba(var(--accent-rgb), 0.55);

  /* glowing intensity still based on theme */
  box-shadow:
      0 0 18px rgba(var(--accent-rgb), 0.45),
      inset 0 0 18px rgba(var(--accent-rgb), 0.22);

  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);

  /* keep it alive */
  animation: countdownPulseAdaptive 4s ease-in-out infinite;
  transition: all .25s ease;
}

/* Theme-adaptive pulse */
@keyframes countdownPulseAdaptive {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(var(--accent-rgb),0.35),
      inset 0 0 14px rgba(var(--accent-rgb),0.18);
    transform: scale(1);
    opacity: 1;
  }
  50% {
    box-shadow:
      0 0 26px rgba(var(--accent-rgb),0.55),
      inset 0 0 22px rgba(var(--accent-rgb),0.30);
    transform: scale(1.05);
    opacity: 0.97;
  }
}

/* <30s warning state (JS adds this automatically) */
#countdown-timer.countdown-warning {
  background: linear-gradient(90deg, var(--cta1), var(--cta2));
  color: #000;
  text-shadow: none;
  box-shadow:
      0 0 25px rgba(var(--accent-rgb),0.6),
      inset 0 0 20px rgba(var(--accent-rgb),0.35);
}




/* ---------- HERO SECTION ---------- */
.top-hero {
  padding: 80px 20px 40px; /* reduced top & bottom spacing */
  text-align: center;
  background: radial-gradient(circle at bottom, rgba(255,255,255,0.04) 0%, transparent 80%);
  position: relative;
  overflow: hidden;
}

.hero-headline {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.5px;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  max-width: 1100px;
  margin: 10px auto 20px;
}

.hero-headline .gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent2), #fff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(var(--accent-rgb),0.45));
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.subhead-lg {
  font-family: "Oswald", sans-serif;
  font-size: 1.6rem;
  color: var(--subhead-color);
  margin: 0 auto 35px;
  max-width: 1000px;
  line-height: 1.55;
}

.subhead-box {
  display: inline-block;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 34px;
  box-shadow: 0 0 25px rgba(var(--accent-rgb),0.2);
  backdrop-filter: blur(12px);
}

.subhead-box .blue-tag {
  display: inline-block;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--cta1), var(--cta2));
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #000;
  box-shadow: 0 0 25px rgba(var(--accent-rgb),0.5);
}

/* ---------- SPLIT SECTION ---------- */
.split {
  padding: 60px 20px 70px; /* tighter top & bottom spacing */
}

.split-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .split-wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* Video frame */
.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(var(--accent-rgb),0.25);
}

.video-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  object-fit: cover;
}

/* Bullet list with glowing icons */
.bullet-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

.bullet-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  color: var(--text-secondary);
  margin: 12px 0;
  font-size: 1.05rem;
}

.bullet-list i {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, var(--accent) 0%, var(--accent2) 70%);
  border-radius: 50%;
  color: #000;
  font-size: 0.9rem;
  box-shadow: 0 0 15px rgba(var(--accent-rgb),0.4);
  transition: transform .25s, box-shadow .25s;
}

.bullet-list li:hover i {
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(var(--accent-rgb),0.6);
}


/* ---------- CTA MINI POINTS (left aligned, no default bullets) ---------- */
.mini-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  text-align: left;
}
.mini-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.mini-points i {
  width: 22px; height: 22px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, var(--accent) 0%, var(--accent2) 70%);
  border-radius: 50%;
  color: #000;
  font-size: 0.8rem;
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.4);
  transition: transform .25s, box-shadow .25s;
}
.mini-points li:hover i {
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.6);
}



/* ---------- CTA OFFER CARD ---------- */
.offer-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 0 35px rgba(var(--accent-rgb),0.25);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.offer-card::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(20deg);
  animation: sweep 8s ease-in-out infinite;
}

@keyframes sweep {
  0% { transform: translateX(-120%) rotate(20deg); opacity: 0; }
  20% { opacity: .4; }
  50% { transform: translateX(120%) rotate(20deg); opacity: .1; }
  100% { opacity: 0; }
}

.offer-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 10px 0;
}

.cta-btn.big {
  display: inline-block;
  background: linear-gradient(90deg, var(--cta1), var(--cta2));
  color: #000;
  padding: 16px 32px;
  font-weight: 800;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(var(--accent-rgb),0.4);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}

.cta-btn.big:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 60px rgba(var(--accent-rgb),0.8);
}

/* ---------- FEATURES ---------- */
.features {
  padding: 70px 20px; /* slightly reduced spacing above & below */
  background: rgba(var(--accent-rgb),0.04);
  text-align: center;
}

.features-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.feature {
  flex: 1 1 260px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 25px;
  box-shadow: 0 0 40px rgba(var(--accent-rgb),0.2);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 60px rgba(var(--accent-rgb),0.5);
}

.feature i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
  animation: iconGlow 4s ease-in-out infinite;
}

@keyframes iconGlow {
  0%,100% { text-shadow: 0 0 8px rgba(var(--accent-rgb),0.4); transform: scale(1); }
  50% { text-shadow: 0 0 18px rgba(var(--accent-rgb),0.8); transform: scale(1.1); }
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- ANIMATIONS ---------- */
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 30px rgba(var(--accent-rgb),0.4); }
  50% { box-shadow: 0 0 60px rgba(var(--accent-rgb),0.8); }
}


/* Ensure all content layers sit above the fixed background */
.attention-bar,
.top-hero,
.split,
.features,
.footer,
.error-box {
  position: relative;
  z-index: 1;
}



/* Breathing / shimmer glow */
@keyframes countdownGlow {
  0%,100% { box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.35); transform: scale(1); }
  50%     { box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.6); transform: scale(1.03); }
}
#countdown-timer {
  animation: countdownGlow 4s ease-in-out infinite;
}

/* When below 30 seconds (triggered by JS) */
#countdown-timer.countdown-warning {
  background: linear-gradient(90deg, var(--cta1), var(--cta2));
  color: #000;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.6);
  animation: countdownFlash 1.5s ease-in-out infinite;
}

@keyframes countdownFlash {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.85; transform: scale(1.06); }
}

/* Optional: add a subtle 3D "glass plate" illusion */
#countdown-timer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.02) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
}


/* =========================================
   GLASS PROGRESS BAR (animated on scroll)
   ========================================= */
.progress-glass {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 26px;
  margin: 1.4rem auto 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
  box-shadow: 0 0 25px rgba(var(--accent-rgb),0.25);
  backdrop-filter: blur(10px);
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: inherit;

  /* Base glass gradient + layered shimmer lines */
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12) 0px,
      rgba(255, 255, 255, 0.12) 4px,
      transparent 8px,
      transparent 12px
    ),
    linear-gradient(90deg, var(--accent), var(--accent2));

  background-size: 120px 120px, 200% 100%;
  animation:
    progressTexture1 12s linear infinite,
    progressTexture2 18s linear infinite reverse;
  transition: width 2.5s cubic-bezier(0.65,0,0.35,1);

  box-shadow:
    inset 0 0 14px rgba(var(--accent-rgb),0.35),
    0 0 22px rgba(var(--accent-rgb),0.35);
  filter: saturate(1.2);
}

/* Two layers move slowly in opposite diagonal directions */
@keyframes progressTexture1 {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 240px 240px, 0 0; }
}

@keyframes progressTexture2 {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: -240px -240px, 200% 0; }
}

/* Slight breathing glow while active */
.progress-glass.active .progress-fill {
  animation:
    progressTexture1 12s linear infinite,
    progressTexture2 18s linear infinite reverse,
    progressPulse 5s ease-in-out infinite;
}


/* === PROGRESS SHIMMER — single control + easy direction === */
.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  /* Visible diagonal band */
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.55) 45%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0) 55%,
    rgba(255,255,255,0) 100%
  );
  background-size: 220% 220%;
  mix-blend-mode: screen;

  /* ✳️ Single place to tweak strength & speed */
  opacity: var(--shimmer-alpha, 0.55);
  animation: shimmerSweep var(--shimmer-duration, 6s) linear infinite;
  animation-direction: var(--shimmer-direction, normal); /* set to 'reverse' to flip */
}

@keyframes shimmerSweep {
  from { background-position: -220% 0; }
  to   { background-position:  220% 0; }
}

/* OR flip it the other way */
.progress-glass { --shimmer-direction: reverse; }

/* Stronger */
.progress-glass { --shimmer-alpha: 0.75; }



.progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  pointer-events: none;
}

/* Optional: pulse when reaching final width */
@keyframes progressPulse {
  0%,100% { box-shadow: 0 0 25px rgba(var(--accent-rgb),0.4); }
  50%     { box-shadow: 0 0 40px rgba(var(--accent-rgb),0.7); }
}
.progress-glass.active .progress-fill {
  animation: progressTexture 3s linear infinite, progressPulse 4s ease-in-out infinite;
}

/* ============================================================
   FULL-SCREEN BACKGROUND MODE (optional user-defined graphic)
   ============================================================ */

body.full-bg .circuit-bg {
  background: var(--full-bg-url) center center / cover no-repeat !important;
  opacity: 1 !important;
  background-blend-mode: normal !important;
}

/* Hide texture lines, pulse beam, glow overlays */
body.full-bg .circuit-lines,
body.full-bg .circuit-pulse,
body.full-bg::after {
  display: none !important;
}

/* Ensure we have the CSS variable available */
body.full-bg {
  --full-bg-url: none;
}
