/* ============================================================================
   SPARKELLE Landing Page Styles
   Modern CSS with Glassmorphism, Animations, and 2025 Design Trends
   ============================================================================ */

/* CSS Custom Properties (Variables) */
:root {
  /* Colors */
  --primary-color: #ffffff;
  --secondary-color: #e5e5e5;
  --accent-color: #cccccc;
  --white: #ffffff;
  --black: #000000;
  --charcoal: #2d2d2d;
  --dark-charcoal: #1a1a1a;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Glass Effect Colors */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Border Radius */
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.5rem;
  --border-radius-xl: 2rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  
  /* Z-index layers */
  --z-background: -1;
  --z-content: 1;
  --z-modal: 1000;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ============================================================================
   BACKGROUND & VISUAL EFFECTS
   ============================================================================ */

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-background);
  overflow: hidden;
}

.gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #000000 0%,
    #0a0a0f 20%,
    #1a1a2e 40%,
    #16213e 60%,
    #0f0f23 80%,
    #000000 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

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

/* Enhanced Starfield System */
.sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Large distant stars */
.sparkles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 15% 25%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 35% 15%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 65% 35%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 85% 45%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 25% 65%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 75% 75%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 45% 85%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 95% 25%, rgba(255, 255, 255, 0.9), transparent);
  background-repeat: repeat;
  background-size: 300px 300px;
  animation: twinkle-large 8s ease-in-out infinite;
}

/* Medium stars */
.sparkles::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(0.5px 0.5px at 20% 10%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(0.5px 0.5px at 40% 30%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(0.5px 0.5px at 60% 20%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(0.5px 0.5px at 80% 40%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.5px 0.5px at 30% 50%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(0.5px 0.5px at 70% 60%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(0.5px 0.5px at 90% 70%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(0.5px 0.5px at 10% 80%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.5px 0.5px at 50% 90%, rgba(255, 255, 255, 0.8), transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: twinkle-medium 6s ease-in-out infinite reverse;
}

/* Small distant stars layer */
.star-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(0.3px 0.3px at 12% 18%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(0.3px 0.3px at 28% 8%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(0.3px 0.3px at 48% 28%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.3px 0.3px at 68% 38%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(0.3px 0.3px at 88% 18%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(0.3px 0.3px at 18% 58%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(0.3px 0.3px at 38% 68%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.3px 0.3px at 58% 78%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(0.3px 0.3px at 78% 88%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(0.3px 0.3px at 98% 58%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(0.3px 0.3px at 8% 98%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.3px 0.3px at 52% 48%, rgba(255, 255, 255, 0.3), transparent);
  background-repeat: repeat;
  background-size: 150px 150px;
  animation: twinkle-small 10s ease-in-out infinite;
  opacity: 0.7;
}

/* Twinkling animations */
@keyframes twinkle-large {
  0%, 100% { opacity: 0.8; }
  25% { opacity: 1; }
  50% { opacity: 0.6; }
  75% { opacity: 0.9; }
}

@keyframes twinkle-medium {
  0%, 100% { opacity: 0.6; }
  33% { opacity: 0.9; }
  66% { opacity: 0.4; }
}

@keyframes twinkle-small {
  0%, 100% { opacity: 0.5; }
  20% { opacity: 0.8; }
  40% { opacity: 0.3; }
  60% { opacity: 0.7; }
  80% { opacity: 0.4; }
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  filter: blur(1px);
}

.shape-1 {
  background: radial-gradient(circle, rgba(138, 43, 226, 0.08) 0%, rgba(75, 0, 130, 0.04) 50%, transparent 100%);
}

.shape-2 {
  background: radial-gradient(circle, rgba(25, 25, 112, 0.06) 0%, rgba(72, 61, 139, 0.03) 50%, transparent 100%);
}

.shape-3 {
  background: radial-gradient(circle, rgba(65, 105, 225, 0.05) 0%, rgba(30, 144, 255, 0.02) 50%, transparent 100%);
}

.shape-4 {
  background: radial-gradient(circle, rgba(147, 0, 211, 0.07) 0%, rgba(138, 43, 226, 0.03) 50%, transparent 100%);
}

.shape-5 {
  background: radial-gradient(circle, rgba(72, 61, 139, 0.04) 0%, rgba(106, 90, 205, 0.02) 50%, transparent 100%);
}

.shape-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.shape-2 {
  width: 180px;
  height: 180px;
  top: 55%;
  right: 5%;
  animation-delay: 3s;
  animation-duration: 15s;
}

.shape-3 {
  width: 90px;
  height: 90px;
  bottom: 25%;
  left: 15%;
  animation-delay: 6s;
  animation-duration: 10s;
}

.shape-4 {
  width: 150px;
  height: 150px;
  top: 25%;
  right: 25%;
  animation-delay: 2s;
  animation-duration: 14s;
}

.shape-5 {
  width: 70px;
  height: 70px;
  bottom: 35%;
  right: 45%;
  animation-delay: 4s;
  animation-duration: 11s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(30px) rotate(240deg); }
}

/* ============================================================================
   LAYOUT & STRUCTURE
   ============================================================================ */

.main-container {
  position: relative;
  z-index: var(--z-content);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  min-height: 100vh;
}

.hero-content {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

.main-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.sparkle-text {
  background: linear-gradient(
    45deg,
    #ffffff 0%,
    #e5e5e5 25%,
    #ffffff 50%,
    #e5e5e5 75%,
    #ffffff 100%
  );
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shimmer 3s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

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

.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  margin-bottom: var(--spacing-2xl);
  opacity: 0.9;
  line-height: 1.5;
}

/* ============================================================================
   GLASSMORPHISM FORM
   ============================================================================ */

.form-container {
  margin-bottom: var(--spacing-3xl);
}

.glass-form {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.input-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.form-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.input-focus-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-slow);
}

.form-input:focus + .input-focus-effect {
  left: 100%;
}

.submit-btn {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(135deg, var(--charcoal), var(--dark-charcoal));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, var(--dark-charcoal), var(--black));
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-sparkle {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left var(--transition-slow);
}

.submit-btn:hover .btn-sparkle {
  left: 100%;
}

/* ============================================================================
   MESSAGES
   ============================================================================ */

.message-container {
  margin-top: var(--spacing-lg);
  opacity: 1;
  transition: all var(--transition-normal);
}

.message-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.message {
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  text-align: center;
  font-weight: 500;
}

.message.success {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.message.error {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

/* ============================================================================
   ROADMAP SECTION
   ============================================================================ */

.roadmap-section {
  padding: var(--spacing-3xl) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.roadmap-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.roadmap-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  margin-bottom: var(--spacing-2xl);
  background: linear-gradient(135deg, var(--white), #e0e0e0);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.roadmap-timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--white),
    var(--secondary-color),
    var(--accent-color)
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-2xl);
  opacity: 0;
  transform: translateY(30px);
}

.timeline-item.animate {
  opacity: 1;
  transform: translateY(0);
  transition: all var(--transition-slow);
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: right;
  padding-right: var(--spacing-xl);
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: left;
  padding-left: var(--spacing-xl);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--glass-bg);
  border: 3px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.marker-inner {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 50%;
  transform: scale(0);
  transition: transform var(--transition-normal);
}

.timeline-item.animate .marker-inner {
  transform: scale(1);
}

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  margin: 0 var(--spacing-xl);
  position: relative;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--white);
}

.timeline-description {
  font-size: 1rem;
  opacity: 0.8;
  margin: 0;
}

.timeline-item::before {
  content: attr(data-date);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  opacity: 0.7;
  font-size: 0.9rem;
}

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

@media (max-width: 768px) {
  .hero-section {
    padding: var(--spacing-md);
  }
  
  .glass-form {
    padding: var(--spacing-lg);
  }
  
  .roadmap-section {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .timeline-line {
    left: 30px;
    transform: none;
  }
  
  .timeline-marker {
    left: 30px;
    transform: translateX(-50%);
  }
  
  .timeline-item::before {
    left: 30px;
    transform: translateX(-50%);
  }
  
  .timeline-content {
    margin-left: 60px;
    margin-right: 0;
  }
  
  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
    padding: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: var(--spacing-sm);
  }
  
  .glass-form {
    padding: var(--spacing-md);
  }
  
  .form-input {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .submit-btn {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .timeline-content {
    margin-left: 50px;
    padding: var(--spacing-md);
  }
}

/* ============================================================================
   ACCESSIBILITY & PERFORMANCE
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles for accessibility */
.form-input:focus,
.submit-btn:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Loading state for button */
.submit-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.submit-btn.loading .btn-text::after {
  content: '...';
  animation: loading 1s infinite;
}

@keyframes loading {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}
