/* ===========================
   HERO SECTION
=========================== */

.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

/* ===========================
   VIDEO BACKGROUND
   =========================== */

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42); /* Removed global blur, keeping brightness adjustment for legibility */
}

/* ===========================
   COUNTDOWN LEADER OVERLAY
   =========================== */

.countdown-leader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.45); /* Translucent to show background video loop */
  backdrop-filter: blur(4px); /* Smooth cinematic transition */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  pointer-events: all;
  overflow: hidden;
}

.countdown-leader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.countdown-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
}

.countdown-lines::before,
.countdown-lines::after {
  content: "";
  position: absolute;
  background: var(--white);
}

.countdown-lines::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.countdown-lines::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.countdown-dial {
  position: relative;
  width: min(280px, 60vw);
  height: min(280px, 60vw);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.countdown-dial::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.countdown-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(rgba(255, 200, 0, 0.25) 0deg, transparent 90deg);
  animation: sweep 1s linear infinite;
  transform-origin: center center;
}

@keyframes sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.countdown-number {
  font-family: "Playfair Display", serif;
  font-size: clamp(80px, 12vw, 120px);
  font-weight: 700;
  color: var(--primary);
  z-index: 2;
  text-shadow: 0 0 20px rgba(255, 200, 0, 0.3);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-num 1s ease-in-out infinite;
}

@keyframes pulse-num {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.7;
  }
  20% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.7;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 25% 45%, rgba(255, 200, 0, 0.06), transparent 35%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.55) 45%, rgba(5, 5, 5, 0) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0) 80%);
  pointer-events: none;
}

@media (max-width: 992px) {
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.65) 60%, rgba(5, 5, 5, 0.4) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* ===========================
   CONTENT
=========================== */

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 980px;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(46px, 6vw, 92px);
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 30px;
}

.hero-content h1 .highlight {
  color: var(--primary);
}

.hero-content p {
  max-width: 850px;
  font-size: 19px;
  color: #e4e4e4;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 26px;
}

.hero-trust-line {
  max-width: 760px;
  font-size: 14px !important;
  color: var(--muted) !important;
  border-left: 3px solid var(--primary);
  padding-left: 18px;
  margin-bottom: 0 !important;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 992px) {
  .hero-section {
    text-align: center;
    padding-top: 85px;
  }

  .hero-content {
    margin: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-trust-line {
    margin-left: auto;
    margin-right: auto;
    border-left: none;
    border-top: 3px solid var(--primary);
    padding-left: 0;
    padding-top: 18px;
  }
}

@media (max-width: 600px) {
  .hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 100px;
  }

  .hero-content h1 {
    font-size: 38px;
    line-height: 1.1;
  }

  .hero-content p {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
}