/* CSS Design System & Variables */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  /* Color Tokens */
  --bg-deep: #020617;
  --bg-card: rgba(10, 15, 30, 0.55);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(251, 191, 36, 0.25);
  
  --primary: #2563eb;       /* Sapphire Blue */
  --primary-light: #60a5fa;
  --accent: #f59e0b;        /* Amber Gold */
  --accent-light: #fbbf24;
  --success: #10b981;
  --error: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  /* Layout Tokens */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Background Layers */
.bg-gradient {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.16), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.07), transparent 45%),
    linear-gradient(135deg, #020617 0%, #080c16 60%, #020617 100%);
  z-index: -2;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: all; /* Allows interacting with particles */
}

.content-wrapper {
  width: 100%;
  max-width: 960px;
  padding: 40px 20px;
  margin: 0 auto;
  z-index: 2;
}

/* Glassmorphism Main Card */
.main-container {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 50px 45px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 40px 0 rgba(37, 99, 235, 0.05);
  position: relative;
  overflow: hidden;
}

.main-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(56, 189, 248, 0.4), transparent);
}

/* Brand Header */
.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-light);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.logo-text span {
  color: var(--primary-light);
}



/* Status Badge */
.status-badge-wrapper {
  margin-bottom: 24px;
}

.status-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--accent-light);
  border-radius: 999px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

/* Typography Hook */
.main-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.main-title span {
  background: linear-gradient(to right, var(--accent-light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-description {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 780px;
  margin-bottom: 35px;
}

/* Progress Meter */
.progress-container {
  max-width: 650px;
  margin-bottom: 40px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.progress-percentage {
  color: var(--accent-light);
  font-weight: 700;
}

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

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.progress-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100-percent
  );
  animation: shimmer 2.5s infinite linear;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Countdown Timer */
.countdown-wrapper {
  display: flex;
  gap: 15px;
  margin-bottom: 45px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.countdown-item {
  min-width: 80px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.countdown-item:hover {
  border-color: rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.03);
}

.countdown-number {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Aesthetic Divider */
.aesthetic-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 45px;
}

.divider-line {
  height: 1px;
  flex-grow: 1;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.divider-diamond {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  transform: rotate(45deg);
  opacity: 0.6;
  box-shadow: 0 0 6px var(--accent-light);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-smooth);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  color: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.feature-icon {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Newsletter Registration Section */
.notification-section {
  padding: 30px 24px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  margin-bottom: 40px;
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* WhatsApp CTA Button Section */
.cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.whatsapp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
  transition: var(--transition-smooth);
}

.whatsapp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.45);
  filter: brightness(1.05);
}

.whatsapp-btn-icon {
  width: 22px;
  height: 22px;
}

/* Footer Section */
.main-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-contacts {
  display: flex;
  gap: 20px;
}

.contact-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.contact-link:hover {
  color: var(--accent-light);
}

.contact-icon {
  width: 16px;
  height: 16px;
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
}

/* Entrance Animations */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
  z-index: 100;
  text-decoration: none;
  transition: var(--transition-smooth);
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08) translateY(-5px);
  filter: drop-shadow(0 10px 22px rgba(37, 211, 102, 0.45));
}

.whatsapp-icon {
  width: 100%;
  height: 100%;
  display: block;
}

/* Tooltip Speech Bubble */
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 15px);
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

/* Speech bubble arrow */
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(15, 23, 42, 0.95);
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulse Glow Effect for WhatsApp button */
.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #25d366;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.7;
  animation: pulse-glow 2s infinite ease-out;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .main-container {
    padding: 35px 24px;
  }

  .brand-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .partner-badge {
    align-self: flex-start;
  }

  .countdown-wrapper {
    justify-content: space-between;
  }

  .countdown-item {
    flex-grow: 1;
    min-width: 65px;
  }

  .whatsapp-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }

  .whatsapp-tooltip {
    display: none !important; /* Hide tooltip on small mobile screens */
  }

  .main-footer {
    flex-direction: column;
    text-align: center;
    padding-top: 25px;
  }

  .footer-contacts {
    justify-content: center;
  }
  
  .whatsapp-float-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-icon {
    width: 100%;
    height: 100%;
  }
}
