/* CSS Variables - Colors from app icon */
:root {
  --bg-dark: #0a1628;
  --bg-gradient-start: #0d1b3e;
  --bg-gradient-end: #1a237e;
  --blue-primary: #2196f3;
  --blue-light: #4fc3f7;
  --blue-glow: #64b5f6;
  --gold-primary: #ffc107;
  --gold-light: #ffca28;
  --gold-dark: #f9a825;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.9);
  --white-muted: rgba(255, 255, 255, 0.7);
  --white-subtle: rgba(255, 255, 255, 0.5);
  
  --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-dark) 50%, var(--bg-gradient-end) 100%);
  min-height: 100vh;
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Sparkle particles background */
.sparkles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sparkles::before,
.sparkles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 
    /* Top area */
    5vw 5vh 0 var(--gold-primary),
    15vw 12vh 0 var(--blue-light),
    25vw 8vh 0 var(--gold-light),
    35vw 15vh 0 var(--blue-glow),
    45vw 5vh 0 var(--gold-primary),
    55vw 18vh 0 var(--blue-light),
    65vw 10vh 0 var(--gold-light),
    75vw 7vh 0 var(--blue-glow),
    85vw 14vh 0 var(--gold-primary),
    95vw 3vh 0 var(--blue-light),
    /* Middle area */
    8vw 35vh 0 var(--gold-light),
    18vw 45vh 0 var(--blue-glow),
    28vw 38vh 0 var(--gold-primary),
    38vw 50vh 0 var(--blue-light),
    48vw 42vh 0 var(--gold-light),
    58vw 55vh 0 var(--blue-glow),
    68vw 40vh 0 var(--gold-primary),
    78vw 48vh 0 var(--blue-light),
    88vw 35vh 0 var(--gold-light),
    92vw 52vh 0 var(--blue-glow),
    /* Bottom area */
    12vw 70vh 0 var(--gold-primary),
    22vw 82vh 0 var(--blue-light),
    32vw 75vh 0 var(--gold-light),
    42vw 88vh 0 var(--blue-glow),
    52vw 72vh 0 var(--gold-primary),
    62vw 85vh 0 var(--blue-light),
    72vw 78vh 0 var(--gold-light),
    82vw 90vh 0 var(--blue-glow),
    90vw 68vh 0 var(--gold-primary),
    3vw 95vh 0 var(--blue-light);
  animation: sparkle 4s ease-in-out infinite;
}

.sparkles::after {
  animation-delay: 2s;
  opacity: 0.6;
  box-shadow: 
    /* Offset positions for second layer */
    10vw 20vh 0 var(--blue-light),
    20vw 30vh 0 var(--gold-primary),
    30vw 25vh 0 var(--blue-glow),
    40vw 32vh 0 var(--gold-light),
    50vw 22vh 0 var(--blue-light),
    60vw 28vh 0 var(--gold-primary),
    70vw 35vh 0 var(--blue-glow),
    80vw 20vh 0 var(--gold-light),
    90vw 30vh 0 var(--blue-light),
    5vw 60vh 0 var(--gold-primary),
    15vw 55vh 0 var(--blue-glow),
    25vw 65vh 0 var(--gold-light),
    35vw 58vh 0 var(--blue-light),
    45vw 62vh 0 var(--gold-primary),
    55vw 68vh 0 var(--blue-glow),
    65vw 58vh 0 var(--gold-light),
    75vw 65vh 0 var(--blue-light),
    85vw 55vh 0 var(--gold-primary),
    95vw 62vh 0 var(--blue-glow),
    50vw 95vh 0 var(--gold-light);
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 0 30px;
}

.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.logo {
  width: 160px;
  height: 160px;
  border-radius: 32px;
  box-shadow: 
    0 0 60px rgba(79, 195, 247, 0.4),
    0 0 120px rgba(255, 193, 7, 0.2);
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
  z-index: 1;
}

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

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-light) 50%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--white-muted);
  font-weight: 600;
}

/* About Section */
.about {
  margin: 40px 0;
}

.about-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  padding: 32px;
  backdrop-filter: blur(10px);
}

.about-card h2 {
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.about-card p {
  color: var(--white-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white-soft);
  transition: var(--transition);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.3rem;
}

/* Coming Soon Badge */
.coming-soon {
  text-align: center;
  margin: 30px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
  color: var(--bg-dark);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 
    0 4px 20px rgba(255, 193, 7, 0.4),
    0 0 40px rgba(255, 193, 7, 0.2);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4), 0 0 40px rgba(255, 193, 7, 0.2); }
  50% { box-shadow: 0 4px 30px rgba(255, 193, 7, 0.6), 0 0 60px rgba(255, 193, 7, 0.3); }
}

.badge-icon {
  font-size: 1.4rem;
}

/* Signup Section */
.signup {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(79, 195, 247, 0.1) 100%);
  border: 1px solid rgba(79, 195, 247, 0.3);
  border-radius: var(--border-radius);
  padding: 40px 32px;
  text-align: center;
  margin: 40px 0;
}

.signup h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.signup-description {
  color: var(--white-muted);
  margin-bottom: 24px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.signup-form {
  max-width: 500px;
  margin: 0 auto;
}

.input-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.input-wrapper input {
  flex: 1;
  min-width: 200px;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: var(--font-family);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  outline: none;
  transition: var(--transition);
}

.input-wrapper input::placeholder {
  color: var(--white-subtle);
}

.input-wrapper input:focus {
  border-color: var(--blue-light);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.2);
}

.input-wrapper button {
  padding: 16px 28px;
  font-size: 1rem;
  font-family: var(--font-family);
  font-weight: 700;
  border: none;
  border-radius: var(--border-radius-sm);
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 100%);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

.input-wrapper button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(33, 150, 243, 0.5);
}

.input-wrapper button:active:not(:disabled) {
  transform: translateY(0);
}

.input-wrapper button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Hidden attribute support */
[hidden] {
  display: none !important;
}

.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

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

.form-message {
  margin-top: 16px;
  font-size: 0.95rem;
  min-height: 24px;
  transition: all 0.3s ease;
}

.form-message.success {
  color: #81c784;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.form-message.error {
  color: #ff5252;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0 20px;
  color: var(--white-subtle);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 30px 20px;
  }
  
  .logo {
    width: 130px;
    height: 130px;
    border-radius: 28px;
  }
  
  .logo-glow {
    width: 160px;
    height: 160px;
  }
  
  .about-card,
  .signup {
    padding: 24px 20px;
  }
  
  .features {
    flex-direction: column;
  }
  
  .input-wrapper {
    flex-direction: column;
  }
  
  .input-wrapper button {
    width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .logo,
  .logo-glow,
  .badge,
  .sparkles::before,
  .sparkles::after {
    animation: none;
  }
  
  .feature:hover,
  .input-wrapper button:hover {
    transform: none;
  }
}

