/* =============================================================================
   SOLARA — Landing Page Styles
   ============================================================================= */

/* =============================================================================
   NAVIGATION
   ============================================================================= */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-4) 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-nav.scrolled {
  padding: var(--space-2) 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .landing-nav.scrolled {
  background: rgba(18, 18, 26, 0.72);
  border-bottom: 1px solid rgba(108, 99, 255, 0.12);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-wordmark {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-theme-toggle {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-surface-2);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-base);
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

/* Hero video background */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.4s ease-out;
}

[data-theme="light"] .hero-video {
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.2;
}

.hero-video.faded {
  opacity: 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-32) 0 var(--space-20);
}

/* Subtle animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 20%,
    rgba(108, 99, 255, 0.06) 0%,
    transparent 70%
  );
}

[data-theme="dark"] .hero-bg-gradient {
  background: radial-gradient(
    ellipse 80% 60% at 50% 20%,
    rgba(108, 99, 255, 0.12) 0%,
    transparent 70%
  );
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orb-float 8s ease-in-out infinite;
}

.hero-bg-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(108, 99, 255, 0.12);
  top: -100px;
  left: -150px;
  animation-delay: 0s;
}

.hero-bg-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(196, 160, 82, 0.08);
  top: 30%;
  right: -100px;
  animation-delay: 3s;
}

.hero-bg-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(108, 99, 255, 0.08);
  bottom: 0;
  left: 30%;
  animation-delay: 6s;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* Grain texture overlay */
.hero-bg-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem var(--space-4);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--accent-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  animation: fadeInDown 0.6s ease-out both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-secondary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  font-weight: var(--weight-light);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.6s ease-out 0.3s both;
  flex-wrap: wrap;
}

.hero-cta-primary {
  padding: 0.875rem var(--space-10);
  background: var(--accent-primary);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.3);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-cta-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3);
  color: #FFFFFF;
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
}

.hero-cta-secondary:hover {
  color: var(--text-primary);
}

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  animation: fadeInUp 0.6s ease-out 0.5s both;
  cursor: pointer;
  background: none;
  border: none;
}

.hero-scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll-dot {
  width: 3px;
  height: 6px;
  background: var(--text-tertiary);
  border-radius: var(--radius-full);
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0; }
}

/* =============================================================================
   FEATURES SHOWCASE SECTION
   ============================================================================= */
.section {
  padding: var(--space-24) 0;
}

.section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 560px;
}

/* Story types grid */
.story-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.story-type-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  cursor: default;
}

.story-type-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.story-type-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-surface-2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--accent-secondary);
  transition: background var(--transition-base), color var(--transition-base);
}

.story-type-card:hover .story-type-icon {
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent-primary);
}

.story-type-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.story-type-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* =============================================================================
   HOW IT WORKS
   ============================================================================= */
.how-it-works {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  position: relative;
}

.steps-line {
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.step-item {
  display: flex;
  gap: var(--space-6);
  position: relative;
}

.step-number {
  width: 46px;
  height: 46px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: #FFFFFF;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-surface);
}

.step-content {
  padding-top: var(--space-3);
  padding-bottom: var(--space-8);
}

.step-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.step-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 520px;
}

/* Step preview card */
.step-preview {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  line-height: var(--leading-relaxed);
}

/* =============================================================================
   AI POWER SECTION
   ============================================================================= */
.ai-power {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #FFFFFF;
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.ai-power::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.ai-power-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.ai-power-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.ai-power-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-power-text h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: #FFFFFF;
  margin-bottom: var(--space-1);
}

.ai-power-text p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  line-height: var(--leading-relaxed);
}

/* =============================================================================
   EARLY ACCESS SECTION
   ============================================================================= */
.early-access-section {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  text-align: center;
  margin: var(--space-12) 0;
}

.early-access-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.early-access-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.early-access-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-bottom: var(--space-8);
}

.early-access-stat h3 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--accent-primary);
  margin-bottom: var(--space-1);
}

.early-access-stat p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.landing-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 300px;
}

.footer-brand-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.footer-links {
  display: flex;
  gap: var(--space-12);
}

.footer-link-group h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer-link-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link-group a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  margin-top: var(--space-8);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* =============================================================================
   STATS SECTION
   ============================================================================= */
.stats-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.stat-card {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: var(--weight-bold);
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
}

/* =============================================================================
   TESTIMONIALS
   ============================================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.testimonial-text {
  font-family: var(--font-reading);
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* =============================================================================
   RESPONSIVE LANDING
   ============================================================================= */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .story-types-grid {
    grid-template-columns: 1fr;
  }

  .ai-power-grid {
    grid-template-columns: 1fr;
  }

  .early-access-stats {
    flex-direction: column;
    gap: var(--space-6);
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .step-preview {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .story-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================================================
   SCROLL ANIMATIONS
   ============================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
