/* CSS Variables */
:root {
  /* Colors */
  --primary: #2563eb;
  --accent: #22c55e;
  --bg: #0b1220;
  --card: #111a2b;
  --text: #e6eef9;
  --muted: #94a3b8;
  --warning: #f59e0b;
  --error: #ef4444;
  --success: #10b981;

  /* Light theme overrides */
  --bg-light: #ffffff;
  --card-light: #f8fafc;
  --text-light: #1e293b;
  --muted-light: #64748b;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Typography */
  --font-ui: "Inter", system-ui, sans-serif;
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Animation */
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-tooltip: 1070;
}

/* Light theme */
[data-theme="light"] {
  --bg: var(--bg-light);
  --card: var(--card-light);
  --text: var(--text-light);
  --muted: var(--muted-light);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition), color var(--transition);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

.btn-accent:hover {
  background-color: #16a34a;
  transform: translateY(-1px);
}

.btn-large {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-base);
}

.btn-block {
  width: 100%;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: var(--z-fixed);
  transition: all var(--transition);
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  min-height: 4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--text);
}

.logo-icon {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  margin: 0;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  font-size: var(--font-size-sm);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: none;
  background-color: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle:hover {
  background-color: var(--primary);
  transform: rotate(180deg);
}

.theme-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

[data-theme="light"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon,
:root .moon-icon {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  width: 1.5rem;
  height: 2px;
  background-color: var(--text);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--muted);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--muted);
}

/* Dashboard Mockup */
.dashboard-mockup {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-md);
}

.mockup-dots {
  display: flex;
  gap: var(--space-xs);
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--muted);
}

.mockup-dots span:first-child {
  background-color: var(--error);
}

.mockup-dots span:nth-child(2) {
  background-color: var(--warning);
}

.mockup-dots span:last-child {
  background-color: var(--success);
}

.mockup-title {
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.mockup-content {
  display: flex;
  gap: var(--space-md);
  min-height: 200px;
}

.mockup-sidebar {
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mockup-item {
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.mockup-item.active {
  background: var(--primary);
}

.mockup-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mockup-progress {
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.mockup-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 65%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
}

.mockup-cards {
  display: flex;
  gap: var(--space-md);
  flex: 1;
}

.mockup-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section Styles */
section {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--muted);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* Learning Paths */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
}

.path-card {
  position: relative;
  transition: all var(--transition);
  cursor: pointer;
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.path-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.path-level {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.path-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xs);
}

.path-description {
  color: var(--muted);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.path-stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.path-progress {
  margin-bottom: var(--space-md);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-sm);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.path-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: var(--font-size-2xl);
  cursor: pointer;
  transition: color var(--transition);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: var(--space-lg);
}

/* Path Detail */
.path-detail {
  display: grid;
  gap: var(--space-xl);
}

.path-curriculum {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.curriculum-module {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.module-header {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background var(--transition);
}

.module-header:hover {
  background: rgba(255, 255, 255, 0.1);
}

.module-title {
  margin: 0;
  font-size: var(--font-size-lg);
}

.module-expand {
  transition: transform var(--transition);
}

.module-expand.expanded {
  transform: rotate(180deg);
}

.module-lessons {
  display: none;
  padding: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.module-lessons.expanded {
  display: block;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
}

.lesson-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lesson-status {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--muted);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  transition: all var(--transition);
}

.lesson-status.completed {
  background: var(--accent);
  border-color: var(--accent);
}

.lesson-status.current {
  border-color: var(--primary);
  background: var(--primary);
}

.lesson-title {
  flex: 1;
  font-size: var(--font-size-sm);
}

.lesson-duration {
  font-size: var(--font-size-xs);
  color: var(--muted);
}

/* Lesson Viewer */
.lesson-viewer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: var(--z-modal);
  display: grid;
  grid-template-columns: 300px 1fr;
}

.lesson-sidebar {
  background: var(--card);
  padding: var(--space-lg);
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.lesson-back {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: none;
  border: none;
  color: var(--primary);
  font-size: var(--font-size-sm);
  cursor: pointer;
  margin-bottom: var(--space-lg);
  transition: color var(--transition);
}

.lesson-back:hover {
  color: var(--accent);
}

.lesson-content {
  padding: var(--space-xl);
  overflow-y: auto;
}

.lesson-header {
  margin-bottom: var(--space-xl);
}

.lesson-video {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: var(--card);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lesson-body {
  max-width: 800px;
}

.lesson-navigation-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Quiz Styles */
.quiz-content {
  max-width: 900px;
}

.quiz-header {
  position: relative;
}

.quiz-timer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  color: var(--primary);
}

.quiz-question {
  margin-bottom: var(--space-xl);
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.question-number {
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.question-text {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.quiz-option {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

.quiz-option.correct {
  border-color: var(--accent);
  background: rgba(34, 197, 94, 0.1);
}

.quiz-option.incorrect {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.option-radio {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--muted);
  border-radius: var(--radius-full);
  margin-right: var(--space-md);
  flex-shrink: 0;
  transition: all var(--transition);
}

.quiz-option.selected .option-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-progress {
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.quiz-result {
  text-align: center;
  padding: var(--space-xl);
}

.quiz-score {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.quiz-feedback {
  font-size: var(--font-size-lg);
  color: var(--muted);
  margin-bottom: var(--space-xl);
}

/* Flashcards */
.flashcard-content {
  max-width: 600px;
}

.flashcard-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
}

.flashcard-stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.flashcard-container {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.flashcard {
  width: 100%;
  height: 300px;
  position: relative;
  perspective: 1000px;
  margin-bottom: var(--space-lg);
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.flashcard-back {
  transform: rotateY(180deg);
}

.flashcard-text {
  font-size: var(--font-size-lg);
  line-height: 1.6;
}

.flashcard-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
}

.pricing-card.featured {
  transform: scale(1.05);
  border-color: var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.pricing-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.price-currency {
  font-size: var(--font-size-lg);
  color: var(--muted);
}

.price-amount {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--primary);
}

.price-period {
  font-size: var(--font-size-base);
  color: var(--muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
}

.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.blog-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.blog-excerpt {
  color: var(--muted);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.blog-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.blog-link:hover {
  color: var(--accent);
}

/* FAQ */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: var(--font-size-lg);
  font-weight: 600;
  text-align: left;
  padding: var(--space-lg) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  transition: transform var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
  color: var(--muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: var(--space-lg);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

.footer-description {
  color: var(--muted);
  line-height: 1.6;
}

.footer-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

/* Toast */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-tooltip);
}

.toast {
  background: var(--card);
  color: var(--text);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary);
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--error);
}

.toast.warning {
  border-left-color: var(--warning);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Progress Panel */
.progress-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--card);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: var(--z-modal);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

.progress-panel.active {
  transform: translateX(-400px);
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: var(--font-size-xl);
  cursor: pointer;
  transition: color var(--transition);
}

.progress-close:hover {
  color: var(--text);
}

.progress-content {
  padding: var(--space-lg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    transform: translateY(-100%);
    transition: transform var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .paths-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .lesson-viewer {
    grid-template-columns: 1fr;
  }

  .lesson-sidebar {
    display: none;
  }

  .mockup-content {
    flex-direction: column;
  }

  .mockup-sidebar {
    width: auto;
    flex-direction: row;
  }

  .progress-panel {
    width: 100vw;
    right: -100vw;
  }

  .progress-panel.active {
    transform: translateX(-100vw);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .modal-content {
    margin: var(--space-sm);
    max-height: calc(100vh - 2rem);
  }

  .quiz-content,
  .flashcard-content {
    max-width: none;
  }

  .flashcard {
    height: 250px;
  }
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .nav-toggle,
  .theme-toggle,
  .modal,
  .toast-container,
  .progress-panel {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}
