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

:root {
  --bg: #081120;
  --bg-secondary: #0f1b33;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f7ff;
  --muted: #a9b5d1;
  --accent: #7c9cff;
  --accent-2: #8ff0d0;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1200px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 156, 255, 0.20), transparent 30%),
    radial-gradient(circle at top right, rgba(143, 240, 208, 0.12), transparent 25%),
    linear-gradient(180deg, #07101d 0%, #0a1326 100%);
  min-height: 100vh;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px 120px;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0 60px;
}

.eyebrow,
.section-tag {
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 760px;
  letter-spacing: -0.02em;
}

.hero-subtext {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9f7cff);
  color: white;
  box-shadow: 0 10px 30px rgba(124, 156, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-panel,
.content-card,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(124, 156, 255, 0.28), transparent 70%);
  top: -80px;
  right: -80px;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--panel-strong);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.section {
  padding-top: 64px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--muted);
  max-width: 700px;
}

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

.practice-grid {
  grid-template-columns: repeat(5, 1fr);
}

.content-card {
  border-radius: var(--radius-md);
  padding: 22px;
  min-height: 160px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 156, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.content-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.content-card p {
  color: var(--muted);
}

.lesson-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 120px;
}

.lesson-hero {
  padding: 20px 0 30px;
}

.lesson-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  margin-bottom: 12px;
}

.lesson-description {
  color: var(--muted);
  font-size: 1.05rem;
}

.lesson-player {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.progress-wrap {
  margin-bottom: 28px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.phrase-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.phrase-label {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 18px;
}

.phrase-label:first-child {
  margin-top: 0;
}

#hindiText {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 8px;
}

.phrase-transliteration {
  font-size: 1.2rem;
  color: var(--text);
}

.phrase-english {
  font-size: 1.05rem;
  color: var(--muted);
}

.lesson-actions {
  margin-top: 24px;
}

.lesson-nav {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.lesson-nav .btn {
  border: none;
  cursor: pointer;
}

.lesson-nav .btn:disabled,
.lesson-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.module-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.module-btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.module-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 156, 255, 0.45);
}

.module-btn.active {
  background: linear-gradient(135deg, var(--accent), #9f7cff);
  border-color: transparent;
  color: white;
  box-shadow: 0 10px 25px rgba(124, 156, 255, 0.25);
}

.game-link-button {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 12px;
  background: #22c55e;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.game-feature-section {
  margin-top: 0;
}

.game-feature-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.game-feature-text,
.game-feature-preview {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.game-feature-text h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.game-feature-text p {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--muted);
}

.game-feature-list {
  margin: 0 0 24px;
  padding-left: 20px;
}

.game-feature-list li {
  margin-bottom: 10px;
  color: var(--text);
}

.game-feature-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.preview-badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  font-size: 0.85rem;
  font-weight: bold;
}

.preview-box {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  min-height: 100%;
}

.preview-label {
  margin: 0 0 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: bold;
}

.preview-title {
  margin: 0 0 12px;
  font-size: 1.75rem;
  line-height: 1.1;
}

.preview-description {
  margin: 0 0 20px;
  color: #cbd5e1;
  line-height: 1.6;
}

.preview-mini-stats {
  display: grid;
  gap: 12px;
}

.preview-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.preview-stat-label {
  color: #94a3b8;
  font-size: 0.9rem;
}

.preview-stat-value {
  font-weight: bold;
  color: #ffffff;
}

@media (max-width: 1100px) {
  .practice-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 14px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 20px;
  }

  .card-grid,
  .practice-grid,
  .game-feature-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .preview-mini-stats {
    gap: 10px;
  }

  .preview-stat {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .lesson-player {
    padding: 20px;
  }

  .phrase-card {
    padding: 20px;
  }

  .lesson-nav {
    flex-direction: column;
  }

  .lesson-nav .btn,
  .lesson-actions .btn {
    width: 100%;
    text-align: center;
  }

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