/* ================================================================
   THE NORTH TRADERS — VSL PAGE
   Design: Premium dark fintech · Orange/Gold brand · Mobile-first
   Font: Inter (Google Fonts)
   ================================================================ */

/* ----------------------------------------------------------------
   CUSTOM PROPERTIES
---------------------------------------------------------------- */
:root {
  /* Brand */
  --orange:        #FF6B00;
  --orange-light:  #FF9200;
  --gold:          #FFB700;

  /* Green */
  --green-live:    #22C55E;

  /* Backgrounds */
  --bg-base:   #040508;

  /* Text */
  --text-primary: #FFFFFF;
  --text-muted:   #8A92A8;

  /* Radii */
  --r-lg: 14px;
  --r-md: 10px;
}

/* ----------------------------------------------------------------
   RESET
---------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------------
   BACKGROUND SYSTEM
   L1: base dark color (body)
   L2: top spotlight (body::before)
   L3: bottom ambient (body::after)
   L4: grid lines (.bg-grid)
   L5: animated glow orbs (.bg-glow-*)
---------------------------------------------------------------- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 100% 55% at 50% -5%,
    rgba(255, 100, 0, 0.09) 0%,
    rgba(30, 10, 0, 0.03) 45%,
    transparent 70%
  );
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 35% at 50% 105%,
    rgba(255, 70, 0, 0.05) 0%,
    transparent 60%
  );
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 79px,
      rgba(255, 107, 0, 0.03) 79px, rgba(255, 107, 0, 0.03) 80px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 99px,
      rgba(255, 107, 0, 0.03) 99px, rgba(255, 107, 0, 0.03) 100px
    );
}

.bg-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(110px);
}

.bg-glow-1 {
  width: 900px;
  height: 700px;
  top: -250px;
  right: -300px;
  background: radial-gradient(ellipse, rgba(255, 107, 0, 0.10) 0%, transparent 65%);
  animation: glow-breathe 9s ease-in-out infinite;
}

.bg-glow-2 {
  width: 750px;
  height: 600px;
  bottom: -100px;
  left: -350px;
  background: radial-gradient(ellipse, rgba(255, 85, 0, 0.07) 0%, transparent 65%);
  animation: glow-breathe 11s ease-in-out infinite 2.5s;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.09); }
}

/* All content above bg layers */
.promo-bar, main { position: relative; z-index: 1; }

/* ----------------------------------------------------------------
   top alert bar
---------------------------------------------------------------- */
.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 20px;
  background: #A80000;
  border-bottom: 1px solid rgba(255, 50, 50, 0.30);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-bar::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-18deg);
  animation: promo-shine 6s ease-in-out infinite;
}

@keyframes promo-shine {
  0%, 65%   { left: -100%; }
  78%, 100% { left: 160%; }
}

.promo-text {
  font-size: clamp(8px, 2.3vw, 12px);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* ----------------------------------------------------------------
   MAIN CONTAINER
---------------------------------------------------------------- */
main {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ----------------------------------------------------------------
   hero headline
---------------------------------------------------------------- */
.headline-section {
  text-align: center;
  padding: 12px 4px 8px;
}

.headline {
  font-size: clamp(22px, 6.4vw, 46px);
  font-weight: 900;
  line-height: 1.10;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin: 0 auto 8px;
  max-width: 480px;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.5);
}

.subheadline {
  font-size: clamp(13px, 3.4vw, 17px);
  font-weight: 400;
  color: rgba(255, 242, 220, 0.80);
  line-height: 1.55;
  max-width: 460px;
  margin: 0 auto;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.15);
}

/* ----------------------------------------------------------------
   video container
---------------------------------------------------------------- */
.video-hero {
  position: relative;
}

.video-container {
  position: relative;
  z-index: 1;
  padding-top: 6px;
  padding-bottom: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 107, 0, 0.22),
    0 0 40px rgba(255, 107, 0, 0.16),
    0 24px 60px rgba(0, 0, 0, 0.80);
  animation: video-glow 5s ease-in-out infinite;
}

@keyframes video-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 107, 0, 0.22),
      0 0 40px rgba(255, 107, 0, 0.16),
      0 24px 60px rgba(0, 0, 0, 0.80);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 150, 0, 0.34),
      0 0 55px rgba(255, 107, 0, 0.26),
      0 24px 60px rgba(0, 0, 0, 0.80);
  }
}

.video-wrapper vturb-smartplayer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------------------
   unlock/status bar
---------------------------------------------------------------- */
.ret-bar {
  margin-top: 8px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(6, 7, 15, 0.88);
  border: 1px solid rgba(255, 183, 0, 0.25);
  box-shadow: 0 0 14px rgba(255, 160, 0, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ret-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.ret-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.ret-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ret-title {
  font-size: clamp(10px, 2.2vw, 13px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  line-height: 1.2;
}

.ret-sub {
  font-size: clamp(9px, 1.9vw, 11px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
}

.ret-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  background: rgba(255, 183, 0, 0.07);
  border: 1px solid rgba(255, 183, 0, 0.20);
  border-radius: 7px;
  padding: 5px 10px;
  gap: 1px;
}

.ret-timer-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: rgba(255, 183, 0, 0.60);
  text-transform: uppercase;
  white-space: nowrap;
}

.ret-timer-count {
  font-size: clamp(16px, 3.2vw, 22px);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ret-track {
  height: 2px;
  background: rgba(255,255,255,0.05);
}

.ret-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--gold) 100%);
  transition: width 1s linear;
}

/* State: almost unlocked (last 40s) */
.ret-bar.ret-unlocking {
  border-color: rgba(255, 107, 0, 0.50);
}
.ret-bar.ret-unlocking .ret-title       { color: var(--orange-light); }
.ret-bar.ret-unlocking .ret-timer       { border-color: rgba(255, 107, 0, 0.38); }
.ret-bar.ret-unlocking .ret-timer-count { color: var(--orange-light); }
.ret-bar.ret-unlocking .ret-icon        { animation: icon-pulse 0.7s ease-in-out infinite; }

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}

/* State: unlocked */
.ret-bar.ret-unlocked {
  border-color: rgba(34, 197, 94, 0.45);
}
.ret-bar.ret-unlocked .ret-title { color: var(--green-live); }
.ret-bar.ret-unlocked .ret-fill  {
  background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%);
}

/* ================================================================
   RESPONSIVE — Mobile ≤ 480px
================================================================ */
@media (max-width: 480px) {
  .headline-section { padding: 8px 4px 6px; }
  .headline         { font-size: clamp(17px, 5.2vw, 24px); margin-bottom: 6px; }
  .subheadline      { font-size: 13px; padding: 5px 10px; }
  .video-container  { padding-top: 6px; }
  .ret-main         { gap: 8px; padding: 7px 11px; }
  .ret-timer        { padding: 3px 7px; }
  .ret-title        { font-size: 10px; }
}

/* Extra compact for short screens */
@media (max-height: 680px) and (max-width: 480px) {
  .headline-section { padding: 5px 4px 4px; }
  .headline         { font-size: 16px; margin-bottom: 4px; }
  .subheadline      { font-size: 12px; padding: 4px 8px; }
  .ret-main         { padding: 6px 10px; }
}
