/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-bg: #070b14;
  --clr-primary: #6c63ff;
  --clr-secondary: #00d4ff;
  --clr-accent: #ff6b6b;
  --clr-text: #e8eaf2;
  --clr-muted: #7c82a0;
  --clr-glass-bg: rgba(255, 255, 255, 0.04);
  --clr-glass-border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   ANIMATED BACKGROUND
=========================== */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6c63ff 0%, transparent 70%);
  top: -150px;
  left: -150px;
  animation-delay: 0s;
  animation-duration: 14s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00d4ff 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
  animation-duration: 18s;
  opacity: 0.25;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #ff6b6b 0%, transparent 70%);
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
  animation-duration: 20s;
  opacity: 0.15;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 30px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ===========================
   MAIN LAYOUT
=========================== */
.main-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  width: 100%;
  max-width: 900px;
  padding: 40px 24px;
  gap: 48px;
  animation: pageReveal 1s ease forwards;
}

@keyframes pageReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   BRAND / LOGO
=========================== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeDown 0.8s ease 0.1s both;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6c63ff, #00d4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.5);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(108, 99, 255, 0.5); }
  50%       { box-shadow: 0 8px 48px rgba(108, 99, 255, 0.9), 0 0 60px rgba(0, 212, 255, 0.3); }
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-accent {
  color: var(--clr-secondary);
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: fadeDown 0.8s ease 0.2s both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--clr-glass-bg);
  border: 1px solid var(--clr-glass-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clr-secondary);
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-secondary);
  box-shadow: 0 0 8px var(--clr-secondary);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.headline {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
}

.headline .line {
  display: block;
}

.gradient-text {
  background: linear-gradient(135deg, #6c63ff 0%, #00d4ff 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  background-size: 200% auto;
}

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

.subheadline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--clr-muted);
  max-width: 560px;
  line-height: 1.75;
  font-weight: 400;
}

/* ===========================
   COUNTDOWN
=========================== */
.countdown-section {
  animation: fadeUp 0.8s ease 0.35s both;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--clr-glass-bg);
  border: 1px solid var(--clr-glass-border);
  border-radius: 20px;
  padding: 24px 28px;
  min-width: 100px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.time-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.5), transparent);
}

.time-block:hover {
  border-color: rgba(108, 99, 255, 0.4);
  background: rgba(108, 99, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(108, 99, 255, 0.15);
}

.time-value {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: var(--transition);
}

.time-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.time-separator {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--clr-primary);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 20px;
  animation: blink 1s step-end infinite;
}

/* ===========================
   SUBSCRIBE FORM
=========================== */
.subscribe-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 520px;
  animation: fadeUp 0.8s ease 0.5s both;
}

.subscribe-label {
  font-size: 0.9rem;
  color: var(--clr-muted);
  font-weight: 400;
}

.subscribe-form {
  width: 100%;
}

.input-group {
  display: flex;
  background: var(--clr-glass-bg);
  border: 1px solid var(--clr-glass-border);
  border-radius: 16px;
  padding: 6px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
}

.input-group:focus-within {
  border-color: rgba(108, 99, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--clr-text);
  min-width: 0;
}

.email-input::placeholder {
  color: var(--clr-muted);
}

.subscribe-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: linear-gradient(135deg, #6c63ff, #00d4ff);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.subscribe-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.subscribe-btn:hover::before { opacity: 1; }

.subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(108, 99, 255, 0.5);
}

.subscribe-btn:active { transform: scale(0.97); }

.btn-icon {
  font-size: 1.1rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.subscribe-btn:hover .btn-icon {
  transform: translateX(4px);
}

.success-msg {
  display: none;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--clr-secondary);
  font-weight: 500;
  animation: fadeUp 0.5s ease forwards;
}

.success-msg.show {
  display: block;
}

/* ===========================
   SOCIAL FOOTER
=========================== */
.social-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeUp 0.8s ease 0.65s both;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--clr-glass-bg);
  border: 1px solid var(--clr-glass-border);
  color: var(--clr-muted);
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-link:hover {
  color: #fff;
  border-color: rgba(108, 99, 255, 0.5);
  background: rgba(108, 99, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.25);
}

.copyright {
  font-size: 0.78rem;
  color: var(--clr-muted);
  opacity: 0.6;
  letter-spacing: 0.02em;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 600px) {
  .countdown {
    gap: 8px;
  }
  .time-block {
    padding: 18px 16px;
    min-width: 75px;
    border-radius: 14px;
  }
  .time-separator {
    font-size: 1.8rem;
  }
  .input-group {
    flex-direction: column;
    border-radius: 14px;
  }
  .subscribe-btn {
    border-radius: 10px;
    justify-content: center;
  }
  .email-input {
    text-align: center;
  }
}
