/* Tempest Design System - Landing Pages
 * Storm Blue primary, Electric Purple for AI, Lightning Cyan accents
 * Dark theme with Night Storm background
 */

:root {
  /* Storm Blue - Primary Brand */
  --storm-50: #eff6ff;
  --storm-100: #dbeafe;
  --storm-200: #bfdbfe;
  --storm-300: #93c5fd;
  --storm-400: #60a5fa;
  --storm-500: #3b82f6;
  --storm-600: #2563eb;
  --storm-700: #1d4ed8;
  --storm-800: #1e40af;
  --storm-900: #1e3a8a;

  /* Electric Purple - AI Features */
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7c3aed;
  --purple-800: #6b21a8;
  --purple-900: #581c87;

  /* Lightning Cyan - Accents */
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-200: #a5f3fc;
  --cyan-300: #67e8f9;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --cyan-800: #155e75;
  --cyan-900: #164e63;

  /* Night Storm - Dark Theme */
  --night-storm: #0f172a;
  --night-surface: #1e293b;
  --night-elevated: #334155;

  /* Cloud - Neutrals */
  --cloud-50: #f8fafc;
  --cloud-100: #f1f5f9;
  --cloud-200: #e2e8f0;
  --cloud-300: #cbd5e1;
  --cloud-400: #94a3b8;
  --cloud-500: #64748b;
  --cloud-600: #475569;
  --cloud-700: #334155;
  --cloud-800: #1e293b;
  --cloud-900: #0f172a;

  /* Semantic Colors */
  --text-primary: var(--cloud-100);
  --text-secondary: var(--cloud-400);
  --text-muted: var(--cloud-500);
  --bg-primary: var(--night-storm);
  --bg-secondary: var(--night-surface);
  --bg-elevated: var(--night-elevated);

  /* Gradients */
  --ai-gradient: linear-gradient(135deg, var(--purple-500), var(--cyan-500));
  --storm-gradient: linear-gradient(180deg, var(--night-storm), var(--storm-900));

  /* Shadows */
  --glow-storm: 0 0 40px rgba(59, 130, 246, 0.3);
  --glow-ai: 0 0 40px rgba(168, 85, 247, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Storm Animation Background */
.storm-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: var(--storm-gradient);
  overflow: hidden;
}

.storm-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
              radial-gradient(ellipse at 60% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 35%);
  animation: storm-swirl 30s linear infinite;
}

@keyframes storm-swirl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--storm-400);
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  padding: 80px 0 120px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--cloud-700);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-500);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--cloud-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .highlight {
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* Product Icon */
.product-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--cloud-700);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  box-shadow: var(--glow-storm);
  position: relative;
}

.product-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: var(--ai-gradient);
  z-index: -1;
  opacity: 0.5;
  filter: blur(20px);
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--storm-500);
  color: white;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: var(--storm-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--cloud-600);
}

.btn-secondary:hover {
  background: var(--cloud-700);
  transform: translateY(-2px);
}

.btn-ai {
  background: var(--ai-gradient);
  color: white;
  box-shadow: var(--glow-ai);
}

.btn-ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.5);
}

/* Features Grid */
.features {
  padding: 80px 0;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--cloud-700);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--storm-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card.ai-feature {
  border-color: var(--purple-600);
}

.feature-card.ai-feature:hover {
  border-color: var(--purple-400);
  box-shadow: var(--glow-ai);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card.ai-feature .feature-icon {
  background: var(--ai-gradient);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Ecosystem Section */
.ecosystem {
  padding: 80px 0;
  text-align: center;
}

.ecosystem h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.ecosystem .subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 48px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.ecosystem-card {
  background: var(--bg-secondary);
  border: 1px solid var(--cloud-700);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s;
}

.ecosystem-card:hover {
  border-color: var(--storm-500);
  transform: translateY(-2px);
}

.ecosystem-card.current {
  border-color: var(--storm-500);
  background: rgba(59, 130, 246, 0.1);
}

.ecosystem-card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.ecosystem-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.ecosystem-card p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* Newsletter / CTA Section */
.newsletter {
  padding: 80px 0;
}

.newsletter-card {
  background: var(--bg-secondary);
  border: 1px solid var(--cloud-700);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  animation: storm-swirl 20s linear infinite;
}

.newsletter-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.newsletter-card p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--cloud-600);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--storm-500);
}

/* Footer */
footer {
  padding: 48px 0;
  margin-top: auto;
  border-top: 1px solid var(--cloud-800);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 24px;
  }

  nav {
    gap: 16px;
  }

  .hero {
    padding: 48px 0 80px;
  }

  .product-icon {
    width: 100px;
    height: 100px;
    font-size: 48px;
  }

  .cta-group {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-card {
    padding: 40px 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
