
/* --- Reset & Variables --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core palette */
  --bg-deep: #04050e;
  --bg-surface: #0a0b1a;
  --neon-blue: #00d4ff;
  --neon-purple: #a855f7;
  --neon-pink: #f472b6;
  --neon-cyan: #22d3ee;
  --glass-bg: rgba(15, 18, 40, 0.55);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shine: rgba(255, 255, 255, 0.03);
  --text-primary: #eef2ff;
  --text-muted: rgba(200, 210, 240, 0.55);
  --text-accent: var(--neon-cyan);

  /* Glow */
  --glow-blue: 0 0 30px rgba(0, 212, 255, 0.25), 0 0 60px rgba(0, 212, 255, 0.1);
  --glow-purple: 0 0 30px rgba(168, 85, 247, 0.25), 0 0 60px rgba(168, 85, 247, 0.1);

  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Spacing */
  --section-gap: 4rem;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--neon-blue);
  border-right-color: var(--neon-purple);
  animation: loaderSpin 1s linear infinite;
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* --- Animated Background --- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--neon-blue), transparent 70%);
  top: -15%;
  left: -10%;
  animation: orbFloat1 18s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--neon-purple), transparent 70%);
  bottom: -10%;
  right: -10%;
  animation: orbFloat2 22s ease-in-out infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--neon-pink), transparent 70%);
  top: 50%;
  left: 55%;
  animation: orbFloat3 15s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 80px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -30px) scale(1.05); }
  66% { transform: translate(40px, -60px) scale(0.9); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, 50px) scale(1.15); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* --- Mouse Glow --- */
.mouse-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.15s ease-out, top 0.15s ease-out;
  display: none;
}

/* --- Main Wrapper --- */
.main-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation --- */
.nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-icon {
  font-size: 1.4rem;
  color: var(--neon-blue);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2em;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--neon-cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: rgba(34, 211, 238, 0.04);
}

.nav-cta:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

/* --- Hero --- */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--neon-purple);
  background: rgba(168, 85, 247, 0.06);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-purple);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
}

.title-accent {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.2em;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.4));
}

.title-line {
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.title-highlight {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.2));
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* --- Glassmorphism Panels --- */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--glass-shine), transparent 50%);
  pointer-events: none;
}

/* --- Countdown Card --- */
.countdown-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(168, 85, 247, 0.3), rgba(244, 114, 182, 0.2));
  animation: borderRotate 6s linear infinite;
}

@keyframes borderRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.countdown-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  filter: blur(20px);
  opacity: 0.2;
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.3; }
}

.countdown-inner {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.countdown-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 80px;
}

.countdown-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 4rem);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffffff, rgba(200, 210, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.countdown-value.tick {
  transform: scale(1.08);
}

.countdown-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  padding-bottom: 1.5rem;
  animation: sepBlink 1.5s ease-in-out infinite;
}

@keyframes sepBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Live message */
.live-message {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0;
}

.live-message.active {
  display: flex;
  animation: liveReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.live-icon {
  font-size: 2.5rem;
  animation: fireFlicker 0.6s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
  from { transform: scale(1) rotate(-2deg); }
  to { transform: scale(1.1) rotate(2deg); }
}

.live-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, #ff6b35, #ff2d55, #ff6b35);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: liveGradient 2s ease-in-out infinite;
}

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

@keyframes liveReveal {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Progress Bar --- */
.progress-section {
  width: 100%;
  max-width: 640px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.progress-percent {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.progress-track {
  position: relative;
  height: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
  background-size: 200% 100%;
  animation: progressShimmer 3s linear infinite;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.progress-glow {
  position: absolute;
  top: -4px;
  left: 0;
  height: 14px;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(90deg, transparent 60%, var(--neon-blue));
  filter: blur(6px);
  opacity: 0.5;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Notify Section --- */
.notify-section {
  width: 100%;
  max-width: 640px;
}

.notify-panel {
  padding: 2.5rem 2rem;
  text-align: center;
}

.notify-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.notify-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.email-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
}

.input-wrapper input:focus {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08), 0 0 20px rgba(0, 212, 255, 0.06);
}

/* --- Neon Button --- */
.btn-neon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.btn-neon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.25), 0 0 15px rgba(168, 85, 247, 0.2);
}

.btn-neon:hover::before {
  transform: translateX(100%);
}

.btn-neon:active {
  transform: translateY(0) scale(0.98);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn-neon:hover .btn-icon {
  transform: translateX(3px);
}

/* Form feedback */
.form-feedback {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  min-height: 1.2em;
  transition: opacity 0.3s ease;
}

.form-feedback.success { color: #34d399; }
.form-feedback.error { color: #f87171; }

/* --- Features --- */
.features-section {
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-blue);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Social --- */
.social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  background: transparent;
  color: var(--neon-cyan);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline svg {
  transition: transform 0.3s ease;
}

.btn-outline:hover svg {
  transform: translateX(4px);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  color: var(--neon-cyan);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.15);
}

/* --- Footer --- */
.footer {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  width: 100%;
  text-align: center;
}

/* ==========================
   RESPONSIVE
   ========================== */

@media (max-width: 768px) {
  :root { --section-gap: 3rem; }

  .main-wrapper { padding: 1.5rem 1.2rem 2rem; }

  .features-grid { grid-template-columns: 1fr; gap: 0.8rem; }

  .feature-card { padding: 1.5rem; }

  .email-form {
    flex-direction: column;
  }

  .btn-neon { justify-content: center; }

  .countdown-unit { min-width: 60px; }

  .countdown-value { font-size: 2.2rem; }

  .countdown-sep { font-size: 1.8rem; padding-bottom: 1rem; }

  .countdown-inner { padding: 2rem 1.2rem; }

  .notify-panel { padding: 2rem 1.2rem; }
}

@media (max-width: 420px) {
  .countdown-grid { gap: 0.3rem; }
  .countdown-unit { min-width: 50px; }
  .countdown-value { font-size: 1.8rem; }
  .countdown-sep { font-size: 1.4rem; }
  .hero-title .title-accent { font-size: 2rem; }
}
