/* Chart2AI Landing Page Styles */

:root {
  /* Celestial Theme Colors */
  --bg-primary: #1a0d2e;
  --bg-secondary: rgba(45, 27, 61, 0.85);
  --bg-surface: rgba(61, 42, 77, 0.4);
  --text-primary: #F8F8FF;
  --text-secondary: #D3D3D3;
  --accent-gold: #FFB347;
  --accent-silver: #C0C0C0;
  --accent-purple: #8A2BE2;
  --accent-bright: #FFD700;
  --glow-primary: rgba(255, 179, 71, 0.6);
  --glow-bright: rgba(255, 215, 0, 0.8);
  
  /* Typography */
  --font-heading: 'Orbitron', monospace;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Effects */
  --border-radius: 12px;
  --shadow-glow: 0 0 20px var(--glow-primary);
  --shadow-bright: 0 0 30px var(--glow-bright);
}

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

html {
  background: #1a0d2e; /* Ensure root background is set */
}

body {
  font-family: 'Inter', sans-serif; /* Fallback */
  font-family: var(--font-body);
  /* Fallback background for Safari that doesn't support CSS custom properties */
  background: #1a0d2e; /* Solid fallback */
  background: linear-gradient(135deg, #1a0d2e 0%, #0d0d2e 50%, #1a0d2e 100%);
  background: linear-gradient(135deg, var(--bg-primary) 0%, #0d0d2e 50%, #1a0d2e 100%);
  color: #F8F8FF; /* Fallback */
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
.star-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #C0C0C0; /* Fallback */
  background: var(--accent-silver);
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

.nebula-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 179, 71, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
}

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

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section - Single Viewport */
.hero {
  text-align: center;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.logo-icon {
  font-size: 3rem;
  filter: drop-shadow(var(--shadow-glow));
  animation: pulse 2s infinite ease-in-out;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: var(--shadow-glow);
  letter-spacing: 2px;
}

.tagline {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 0 10px var(--glow-primary);
}

.description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--spacing-xl) auto;
}

/* CTA Section */
.cta-section {
  margin-bottom: var(--spacing-xl);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--accent-gold);
  color: var(--bg-primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-bright);
  background: var(--accent-bright);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-text {
  font-family: var(--font-heading);
  font-weight: 600;
}

.cta-arrow {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
  transform: translateX(4px);
}

.web-note {
  margin-top: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}


/* Download Section - Inline with hero */
.download-section {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.download-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 0 10px var(--glow-primary);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.download-button {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(248, 248, 255, 0.1);
  border: 1px solid var(--accent-silver);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: not-allowed;
  opacity: 0.7;
  font-size: 0.875rem;
}

.download-button:hover {
  background: rgba(248, 248, 255, 0.15);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

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

.download-icon svg {
  width: 100%;
  height: 100%;
}

.download-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-label {
  font-size: 0.625rem;
  color: var(--text-secondary);
}

.download-store {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: var(--spacing-sm);
  background: rgba(26, 13, 46, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 179, 71, 0.1);
}

.footer p {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.75rem;
  margin: 0;
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: var(--spacing-md);
  }
  
  .logo-text {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 1.5rem;
  }
  
  .description {
    font-size: 1.125rem;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .download-button {
    width: 180px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--spacing-sm);
  }
  
  .logo-text {
    font-size: 2rem;
  }
  
  .tagline {
    font-size: 1.25rem;
  }
  
  .description {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: var(--spacing-sm) var(--spacing-lg);
  }
}

@media (max-height: 600px) {
  .hero {
    transform: scale(0.9);
  }
  
  .container {
    padding: var(--spacing-sm);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .star,
  .logo-icon,
  .cta-button,
  .feature-card,
  .download-button {
    animation: none;
  }
  
  .cta-button:hover .cta-arrow {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .feature-card,
  .download-section {
    border-width: 2px;
  }
  
  .cta-button {
    border: 2px solid var(--bg-primary);
  }
}
