/* =============================================
   NEXZONE — COUNTDOWN PAGE STYLES (WHITE THEME)
   Design: Clean white with brand gradient accents
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --cyan: #00C8FF;
  --blue: #1A7CFF;
  --purple: #7B2FFF;
  --magenta: #D4008F;
  --teal: #00C89A;
  --yellow: #C8D400;

  --grad-main: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 30%, var(--purple) 65%, var(--magenta) 100%);
  --grad-soft: linear-gradient(135deg, rgba(0, 200, 255, 0.08) 0%, rgba(26, 124, 255, 0.06) 40%, rgba(123, 47, 255, 0.05) 100%);

  --bg-page: #ffffff;
  --bg-card: #f8f9ff;
  --bg-card2: #f2f4ff;
  --border: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.12);

  --text-dark: #ffffff;
  --text-mid: rgba(255, 255, 255, 0.90);
  --text-light: rgba(255, 255, 255, 0.70);

  --font-main: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 16px 48px rgba(26, 124, 255, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  /* bg.jpg as full-cover background */
  background: url('bg.png') center center / cover no-repeat fixed;
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Frosted-glass Blur Overlay over bg.jpg ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  /* blur the background photo */
  backdrop-filter: blur(3px) brightness(0.80) saturate(1.1);
  -webkit-backdrop-filter: blur(3px) brightness(0.80) saturate(1.1);
  /* semi-transparent dark veil so text stays sharp */
  background:
    radial-gradient(ellipse 80% 50% at 15% 10%, rgba(0, 200, 255, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 85% 90%, rgba(212, 0, 143, 0.08) 0%, transparent 55%),
    rgba(10, 14, 30, 0.42);
  z-index: 0;
  pointer-events: none;
}

/* Top rainbow border stripe */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-main);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  z-index: 10;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* ---------- Floating Orbs (light) ---------- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 14s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 200, 255, 0.07);
  top: -150px;
  left: -150px;
  animation-duration: 16s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(212, 0, 143, 0.06);
  bottom: -100px;
  right: -100px;
  animation-duration: 20s;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(123, 47, 255, 0.05);
  top: 40%;
  left: 75%;
  animation-duration: 18s;
  animation-delay: -4s;
}

.orb-4 {
  width: 250px;
  height: 250px;
  background: rgba(0, 200, 154, 0.05);
  top: 25%;
  left: -60px;
  animation-duration: 12s;
  animation-delay: -10s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(25px, -18px) scale(1.04);
  }

  66% {
    transform: translate(-18px, 28px) scale(0.96);
  }
}

/* ---------- Layout ---------- */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 24px 40px;
  gap: 0;
}

/* ---------- Logo ---------- */
.logo-wrapper {
  margin-bottom: 36px;
  animation: fadeSlideDown 0.9s ease both;
  animation-delay: 0.1s;
}

.logo {
  height: 140px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 6px 20px rgba(0, 124, 255, 0.15));
}

.logo:hover {
  transform: scale(1.04) translateY(-3px);
  filter: drop-shadow(0 12px 32px rgba(0, 124, 255, 0.22)) drop-shadow(0 4px 12px rgba(212, 0, 143, 0.12));
}

/* ---------- Tagline ---------- */
.tagline-wrapper {
  text-align: center;
  margin-bottom: 52px;
  animation: fadeSlideDown 0.9s ease both;
  animation-delay: 0.25s;
}

.tagline-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.tagline-main {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

/* "Extraordinary" — solid white */
.tagline-main .gradient-text {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  animation: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.tagline-desc {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: 400;
  color: var(--text-light);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Countdown Section ---------- */
.countdown-section {
  text-align: center;
  margin-bottom: 44px;
  animation: fadeSlideUp 0.9s ease both;
  animation-delay: 0.45s;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.countdown-label::before,
.countdown-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 20px;
}

/* ---------- Time Blocks ---------- */
.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.time-card {
  position: relative;
  width: clamp(95px, 14vw, 148px);
  height: clamp(105px, 15vw, 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.time-card-inner {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 1px 4px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition);
}

/* Subtle gradient wash inside card */
.time-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 200, 255, 0.04) 0%, rgba(123, 47, 255, 0.03) 100%);
  border-radius: 22px;
}

/* Divider line at mid */
.time-card-inner::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
  transform: translateY(-0.5px);
}

/* Hover state */
.time-block:hover .time-card-inner {
  border-color: rgba(26, 124, 255, 0.3);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.time-number {
  position: relative;
  z-index: 2;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
  transition: var(--transition);
  will-change: transform;
}

/* On hover the number gets the brand gradient */
.time-block:hover .time-number {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.time-glow {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(26, 124, 255, 0.08) 0%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.time-block:hover .time-glow {
  opacity: 1;
}

.time-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: var(--transition);
}

.time-block:hover .time-label {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Separators ---------- */
.separator {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 42px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-main);
  animation: dotPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(0, 200, 255, 0.45);
}

.dot:last-child {
  animation-delay: 0.7s;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.25;
    transform: scale(0.65);
  }
}

/* ---------- Number flip animation ---------- */
@keyframes flipIn {
  from {
    transform: translateY(-12px) rotateX(-60deg);
    opacity: 0;
  }

  to {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
  }
}

.flip {
  animation: flipIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ---------- Progress Section ---------- */
.progress-section {
  width: 100%;
  max-width: 540px;
  margin-bottom: 52px;
  animation: fadeSlideUp 0.9s ease both;
  animation-delay: 0.65s;
}

.progress-track {
  position: relative;
  height: 7px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: var(--grad-main);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  transition: width 1s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--blue);
  box-shadow: 0 0 10px rgba(26, 124, 255, 0.4);
}

.progress-glow {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--grad-main);
  filter: blur(6px);
  opacity: 0.22;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

#progress-percent {
  font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Contact Section ---------- */
.contact-section {
  text-align: center;
  margin-bottom: 44px;
  animation: fadeSlideUp 0.9s ease both;
  animation-delay: 0.75s;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px 14px 20px;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Gradient sweep on hover */
.contact-email::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 50px;
}

.contact-email:hover {
  border-color: transparent;
  box-shadow: 0 12px 36px rgba(26, 124, 255, 0.2), 0 4px 12px rgba(212, 0, 143, 0.1);
  transform: translateY(-3px);
  color: #ffffff;
}

.contact-email:hover::before {
  opacity: 1;
}

.contact-email-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.1), rgba(123, 47, 255, 0.1));
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-email-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue);
  transition: var(--transition);
}

.contact-email:hover .contact-email-icon {
  background: rgba(255, 255, 255, 0.2);
}

.contact-email:hover .contact-email-icon svg {
  stroke: #ffffff;
}

.contact-email-text {
  position: relative;
  z-index: 1;
}

.contact-email-arrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-left: 4px;
  opacity: 0.4;
  transition: var(--transition);
}

.contact-email-arrow svg {
  width: 15px;
  height: 15px;
  transition: var(--transition);
}

.contact-email:hover .contact-email-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.contact-email:hover .contact-email-arrow svg {
  stroke: #ffffff;
}

/* ---------- Footer ---------- */
.footer {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-light);
  text-align: center;
  animation: fadeSlideUp 0.9s ease both;
  animation-delay: 0.85s;
  letter-spacing: 0.03em;
}

/* ---------- Entry Animations ---------- */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .container {
    padding: 56px 16px 36px;
  }

  .countdown-grid {
    gap: 2px;
    row-gap: 14px;
  }

  .separator {
    padding: 0 6px;
  }

  .time-card {
    width: clamp(74px, 20vw, 104px);
    height: clamp(82px, 22vw, 118px);
  }

  .time-card-inner {
    border-radius: 16px;
  }

  .time-number {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .logo {
    height: 110px;
  }

  .tagline-main {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }
}

@media (max-width: 380px) {
  .countdown-grid {
    column-gap: 1px;
  }

  .separator {
    padding: 0 3px;
  }

  .dot {
    width: 5px;
    height: 5px;
  }
}

/* ---------- Launch Overlay ---------- */
.launched-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.97);
  text-align: center;
  padding: 40px;
  animation: fadeIn 1s ease both;
  backdrop-filter: blur(20px);
}

.launched-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}