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

:root {
  --bg-deep: #080b12;
  --bg-card: #0f1420;
  --bg-elevated: #161c2a;
  --accent-coral: #ff6b4a;
  --accent-coral-glow: rgba(255, 107, 74, 0.4);
  --accent-teal: #4ecdc4;
  --accent-teal-glow: rgba(78, 205, 196, 0.3);
  --accent-gold: #ffd93d;
  --text-primary: #f8f6f3;
  --text-secondary: #a8a5a0;
  --text-muted: #6b6865;
  --gradient-neural: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-teal) 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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.03;
  pointer-events: none;
  z-index: 1000;
}

/* Floating neural orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-coral-glow);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-teal-glow);
  top: 50%;
  left: -150px;
  animation-delay: -5s;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: rgba(255, 217, 61, 0.15);
  bottom: -100px;
  right: 20%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Typography */
h1, h2, h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  background: linear-gradient(to bottom, var(--bg-deep) 0%, transparent 100%);
  transition: background 0.3s ease;
}

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

.logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.75rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-neural);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-cta {
  background: transparent;
  border: 1px solid rgba(248, 246, 243, 0.2);
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--text-primary);
  color: var(--bg-deep);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-coral);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero h1 em {
  font-style: italic;
  background: var(--gradient-neural);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.btn-primary {
  background: var(--accent-coral);
  color: var(--bg-deep);
  padding: 18px 36px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 0 40px var(--accent-coral-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px var(--accent-coral-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 18px 36px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(248, 246, 243, 0.15);
}

.btn-secondary:hover {
  background: rgba(248, 246, 243, 0.05);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(248, 246, 243, 0.08);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-neural);
}

.card-question {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  margin-bottom: 24px;
  line-height: 1.4;
}

.card-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.card-option {
  background: var(--bg-elevated);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.card-option:hover {
  border-color: var(--accent-teal);
  transform: translateX(4px);
}

.card-option.correct {
  background: rgba(78, 205, 196, 0.15);
  border-color: var(--accent-teal);
}

.card-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 246, 243, 0.08);
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 100px;
  margin-right: 16px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 65%;
  background: var(--gradient-neural);
  border-radius: 100px;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Floating badges */
.floating-badge {
  position: absolute;
  background: var(--bg-elevated);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  border: 1px solid rgba(248, 246, 243, 0.08);
  animation: floatBadge 6s ease-in-out infinite;
}

.floating-badge.badge-1 {
  top: -20px;
  right: -30px;
  animation-delay: 0s;
}

.floating-badge.badge-2 {
  bottom: 40px;
  left: -40px;
  animation-delay: -2s;
}

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

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.badge-icon.streak {
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-gold) 100%);
}

.badge-icon.mastery {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #6366f1 100%);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats Bar */
.stats-bar {
  padding: 60px 0;
  border-top: 1px solid rgba(248, 246, 243, 0.06);
  border-bottom: 1px solid rgba(248, 246, 243, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: 3rem;
  background: var(--gradient-neural);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

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

/* Features Section */
.features {
  padding: 140px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-teal);
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

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

.feature-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 40px 32px;
  border: 1px solid rgba(248, 246, 243, 0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-neural);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(248, 246, 243, 0.12);
}

.feature-card:hover::before {
  opacity: 0.03;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  position: relative;
}

.feature-icon.icon-1 { background: linear-gradient(135deg, var(--accent-coral) 0%, #ff8a6b 100%); }
.feature-icon.icon-2 { background: linear-gradient(135deg, var(--accent-teal) 0%, #7dd3fc 100%); }
.feature-icon.icon-3 { background: linear-gradient(135deg, var(--accent-gold) 0%, #fbbf24 100%); }
.feature-icon.icon-4 { background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%); }
.feature-icon.icon-5 { background: linear-gradient(135deg, #34d399 0%, #059669 100%); }
.feature-icon.icon-6 { background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%); }

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  position: relative;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
}

/* Highlight Feature */
.feature-highlight {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-highlight .feature-content {
  position: relative;
}

.feature-highlight .feature-visual {
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}

/* How It Works */
.how-it-works {
  padding: 140px 0;
  background: var(--bg-card);
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 80px;
}

.step {
  position: relative;
  text-align: center;
}

.step-number {
  font-family: 'Instrument Serif', serif;
  font-size: 6rem;
  line-height: 1;
  background: linear-gradient(180deg, rgba(248, 246, 243, 0.1) 0%, transparent 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: -20px;
  position: relative;
  z-index: 1;
}

.step-content {
  background: var(--bg-elevated);
  border-radius: 24px;
  padding: 48px 32px 40px;
  position: relative;
  z-index: 2;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 24px;
  background: var(--gradient-neural);
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Pricing Section */
.pricing {
  padding: 140px 0;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 48px 36px;
  border: 1px solid rgba(248, 246, 243, 0.06);
  position: relative;
  transition: all 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-card.featured {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border-color: var(--accent-coral);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-neural);
  color: var(--bg-deep);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-name {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: 'Instrument Serif', serif;
  font-size: 3.5rem;
  margin-bottom: 8px;
}

.pricing-price span {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
}

.pricing-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(248, 246, 243, 0.08);
}

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-teal);
  font-weight: 600;
}

.pricing-cta {
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.pricing-cta.primary {
  background: var(--accent-coral);
  color: var(--bg-deep);
}

.pricing-cta.primary:hover {
  box-shadow: 0 0 40px var(--accent-coral-glow);
}

.pricing-cta.secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid rgba(248, 246, 243, 0.1);
}

.pricing-cta.secondary:hover {
  border-color: rgba(248, 246, 243, 0.3);
}

/* FAQ Section */
.faq {
  padding: 140px 0;
  background: var(--bg-card);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  margin-top: 0;
}

.faq-header {
  position: sticky;
  top: 120px;
  align-self: start;
}

.faq-header h2 {
  font-size: clamp(2.5rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.faq-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-elevated);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(248, 246, 243, 0.06);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(248, 246, 243, 0.12);
}

.faq-question {
  padding: 28px 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Instrument Serif', serif;
  font-size: 1.2rem;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle {
  background: var(--accent-coral);
  color: var(--bg-deep);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-content {
  padding: 0 32px 28px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  padding: 140px 0;
  position: relative;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.cta-form {
  display: flex;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto 24px;
}

.cta-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid rgba(248, 246, 243, 0.12);
  border-radius: 14px;
  padding: 18px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease;
}

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

.cta-input:focus {
  border-color: var(--accent-coral);
}

.cta-disclaimer {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: 60px 0;
  border-top: 1px solid rgba(248, 246, 243, 0.06);
}

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

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

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

  .feature-highlight {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 80px auto 0;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .faq-header {
    position: static;
    text-align: center;
  }

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

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-highlight {
    grid-column: span 1;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

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

  .floating-badge {
    display: none;
  }

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