/* =================================
   VARIABLES & RESET
   ================================= */

:root {
  /* Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --accent-blue: #3b82f6;
  --accent-blue-dark: #2563eb;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-yellow: #f59e0b;
  --accent-orange: #f97316;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(to bottom right, #0f172a, #1e3a8a, #0f172a);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* =================================
   NAVIGATION
   ================================= */

.nav-bar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 2.25rem;
}

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

.nav-cta {
  background: var(--accent-blue);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-blue-dark);
  transform: translateY(-1px);
}

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

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  padding-top: 8rem;
}

.hero-container {
  max-width: 64rem;
  text-align: center;
}

.hero-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-logo-icon {
  font-size: clamp(5rem, 12vw, 8rem);
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.hero-brand-name {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.brand-highlight {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.75rem 1.5rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-full);
  color: #93c5fd;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn {
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--accent-blue-dark);
  transform: scale(1.05);
}

.btn-secondary {
  border: 1px solid var(--text-muted);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-check {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-green);
}

.scroll-indicator {
  margin-top: 4rem;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--text-muted);
  margin: 0 auto;
}

/* =================================
   SECTION LAYOUTS
   ================================= */

section {
  padding: 5rem 1.5rem;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-container-narrow {
  max-width: 80rem;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 48rem;
  margin: 0 auto;
}

/* =================================
   PROBLEM SECTION
   ================================= */

.problem-section {
  padding: 5rem 1.5rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.problem-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
}

.problem-card-red {
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.problem-card-red:hover {
  border-color: rgba(239, 68, 68, 0.6);
}

.problem-card-yellow {
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.problem-card-yellow:hover {
  border-color: rgba(245, 158, 11, 0.6);
}

.problem-card-orange {
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.problem-card-orange:hover {
  border-color: rgba(249, 115, 22, 0.6);
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.problem-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.problem-card-red .problem-title {
  color: #fca5a5;
}

.problem-card-yellow .problem-title {
  color: #fcd34d;
}

.problem-card-orange .problem-title {
  color: #fdba74;
}

.problem-text {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =================================
   SOLUTION SECTION
   ================================= */

.solution-section {
  background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  padding: 5rem 1.5rem;
}

.solution-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .solution-feature {
    grid-template-columns: 1fr 1fr;
  }
}

.solution-feature-reverse {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .solution-feature-reverse .solution-content {
    order: 2;
  }
  
  .solution-feature-reverse .solution-visual {
    order: 1;
  }
}

.solution-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.solution-badge-blue {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.solution-badge-green {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.solution-heading {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.solution-text {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.solution-list {
  list-style: none;
  padding: 0;
}

.solution-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.list-check {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Solution Visuals */

.solution-visual {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.visual-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.visual-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.visual-step .step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.visual-step .step-text {
  font-size: 0.875rem;
}

.visual-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1rem 0;
}

.visual-preview {
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.preview-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.preview-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.preview-icon {
  flex-shrink: 0;
}

.preview-complete {
  color: var(--accent-green);
}

.preview-current {
  color: var(--accent-blue);
}

.preview-locked {
  color: var(--text-muted);
}

/* Quiz Visual */

.visual-quiz {
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.quiz-header {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.quiz-question {
  background: rgba(30, 41, 59, 0.8);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.quiz-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.quiz-text {
  margin-bottom: 0.75rem;
}

.quiz-code {
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

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

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

.quiz-btn {
  background: var(--accent-blue);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.quiz-btn:hover {
  background: var(--accent-blue-dark);
}

/* =================================
   HOW IT WORKS SECTION
   ================================= */

.how-it-works-section {
  padding: 5rem 1.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-card {
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.step-card:hover {
  transform: scale(1.05);
}

.step-card-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.step-card-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.step-card-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.step-card-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.step-icon {
  font-size: 3.75rem;
  margin-bottom: 1rem;
}

.step-card .step-number {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-card .step-text {
  color: rgba(255, 255, 255, 0.9);
}

/* =================================
   FEATURES SECTION
   ================================= */

.features-section {
  background: rgba(15, 23, 42, 0.5);
  padding: 5rem 1.5rem;
}

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

.feature-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-text {
  color: var(--text-secondary);
}

/* =================================
   STATS SECTION
   ================================= */

.stats-section {
  padding: 5rem 1.5rem;
}

.stats-container {
  max-width: 64rem;
  margin: 0 auto;
}

.stats-content {
  background: linear-gradient(to right, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 2rem;
  padding: 3rem;
}

.stats-header {
  text-align: center;
  margin-bottom: 3rem;
}

.stats-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.stats-subtitle {
  color: var(--text-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-number-blue {
  color: #60a5fa;
}

.stat-number-purple {
  color: #a78bfa;
}

.stat-number-green {
  color: #34d399;
}

.stat-label {
  color: var(--text-secondary);
}

/* =================================
   COMPARISON SECTION
   ================================= */

.comparison-section {
  background: rgba(15, 23, 42, 0.5);
  padding: 5rem 1.5rem;
}

.comparison-table-wrapper {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead tr {
  background: rgba(15, 23, 42, 0.5);
}

.comparison-table th {
  padding: 1.5rem 1.5rem;
  text-align: left;
  font-weight: 600;
}

.comparison-table th:first-child {
  text-align: left;
}

.table-header-main {
  text-align: left !important;
}

.table-header-highlight {
  color: var(--accent-green);
  text-align: center !important;
}

.table-header-normal {
  color: var(--text-muted);
  text-align: center !important;
}

.comparison-table tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.3);
}

.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: center;
}

.comparison-table td:first-child {
  text-align: left;
}

.table-check {
  color: var(--accent-green);
  font-size: 1.25rem;
}

.table-cross {
  color: var(--accent-red);
  font-size: 1.25rem;
}

.table-maybe {
  color: var(--accent-yellow);
  font-size: 1.25rem;
}

.table-highlight {
  color: var(--accent-green);
  font-weight: 700;
}

.table-expensive {
  color: var(--accent-red);
}

/* =================================
   FAQ SECTION
   ================================= */

.faq-section {
  padding: 5rem 1.5rem;
}

.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.faq-question {
  font-weight: 600;
  font-size: 1.125rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.faq-question::after {
  content: ' ▼';
  float: right;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-item[open] .faq-question {
  color: var(--accent-blue);
}

.faq-answer {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* =================================
   FINAL CTA SECTION
   ================================= */

.final-cta-section {
  padding: 8rem 1.5rem;
}

.cta-container {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(3rem, 8vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.8;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
  color: white;
  padding: 1.5rem 3rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.4);
}

.cta-note {
  margin-top: 1.5rem;
  color: var(--text-muted);
}

.cta-footer {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: white;
}

.footer-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* =================================
   SCROLL TO TOP BUTTON
   ================================= */

.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-blue);
  color: white;
  padding: 1rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 40;
}

.scroll-top-btn:hover {
  background: var(--accent-blue-dark);
  transform: translateY(-2px);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* =================================
   CUSTOM SCROLLBAR
   ================================= */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue-dark);
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */

@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem 1rem;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .logo-icon {
    font-size: 2rem;
  }
  
  .nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .hero-logo-icon {
    font-size: 4rem;
  }
  
  .hero-brand-name {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  section {
    padding: 3rem 1rem;
  }
  
  .hero-section {
    padding-top: 6rem;
  }
  
  .comparison-table {
    font-size: 0.875rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .scroll-top-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem;
  }
}
