/* ============================================================
   COURSEA Cobra — DESIGN TOKEN SYSTEM (PINK VARIANT)
   ============================================================ */
:root {
  --font-display: "Cairo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", system-ui, sans-serif;
  --font-mono: "IBM Plex Sans Arabic", monospace;
  --bg: #fdfafb;
  --bg-alt: #f8f2f5;
  --surface: #ffffff;
  --surface-hover: #fffcfd;
  --ink: #1a1418;
  --ink-secondary: #5c5359;
  --ink-muted: #8f858b;
  --ink-inverse: #fdfafb;
  --ink-border: rgba(0, 0, 0, 0.06);
  --brand: #c42d6a;
  --brand-light: #fdf2f7;
  --brand-glow: rgba(196, 45, 106, 0.16);
  --brand-500: #d9437e;
  --brand-600: #c42d6a;
  --plum: #5b2d4a;
  --plum-light: #f5eef3;
  --amber: #c8890c;
  --amber-light: #fef8ed;
  --coral: #e8456e;
  --rose: #c42d6a;
  --green: #16a34a;
  --green-light: #dcfce7;
  --red: #dc2626;
  --red-light: #fef2f2;
  --purple: #9333ea;
  --purple-light: #f5edff;
  --blue: #5b6abf;
  --blue-light: #eff1fb;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.09);
  --shadow-xl: 0 16px 56px rgba(0, 0, 0, 0.11);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --max-width: 1100px;
  --transition: 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
  --reveal-initial: translateY(24px);
}
[data-theme="dark"] {
  --bg: #0f0b0e;
  --bg-alt: #181318;
  --surface: #1f1820;
  --surface-hover: #261e28;
  --ink: #efe8ed;
  --ink-secondary: #b8aeb6;
  --ink-muted: #827882;
  --ink-inverse: #0f0b0e;
  --ink-border: rgba(255, 255, 255, 0.06);
  --brand-light: #301a24;
  --plum-light: #241820;
  --amber-light: #2d2210;
  --green-light: #152818;
  --red-light: #301818;
  --purple-light: #201830;
  --blue-light: #1a1c2e;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 16px 56px rgba(0, 0, 0, 0.4);
}

/* RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ATMOSPHERIC BACKGROUND */
.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background:
    radial-gradient(
      ellipse at 20% 10%,
      rgba(196, 45, 106, 0.13) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(91, 45, 74, 0.08) 0%,
      transparent 50%
    );
}

/* NAVIGATION */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--ink-border);
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0 12px;
  transition: box-shadow 0.35s ease;
}
.nav.scrolled {
  box-shadow: var(--shadow);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--font-display);
}
.nav-logo .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, var(--coral), var(--plum));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 800;
}
.cobra-logo {
  width: 35px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle {
  background: var(--bg-alt);
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  color: var(--ink-secondary);
}
.theme-toggle:hover {
  color: var(--brand);
  background: var(--brand-light);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
[data-theme="dark"] .theme-toggle .icon-sun,
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* Language toggle */
.lang-toggle {
  background: var(--bg-alt);
  border: 1.5px solid var(--ink-border);
  cursor: pointer;
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  transition: var(--transition);
  color: var(--ink-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-body);
  gap: 6px;
}
.lang-toggle:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-light);
}
.lang-toggle svg {
  width: 16px;
  height: 16px;
}

.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 9px 22px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--brand-glow);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-glow);
}

/* HORIZONTAL SECTION SLIDER */
.slider-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--ink-border);
  overflow: hidden;
  position: relative;
  margin-top: 76px;
  box-shadow: var(--shadow-xs);
}
.slider-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 8px;
}
.slider-track::-webkit-scrollbar {
  display: none;
}
.slider-track a {
  flex-shrink: 0;
  padding: 13px 22px;
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.slider-track a:hover,
.slider-track a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* HERO */
.hero {
  padding: 120px 0 80px;
  position: relative;
  z-index: 1;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 8px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--ink);
}
.hero-price {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  color: var(--brand);
  letter-spacing: -0.04em;
  margin: 12px 0 8px;
}
.hero-price .price-original {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--coral);
  opacity: 0.6;
}
.hero-price .price-current {
  text-shadow: 0 0 80px var(--brand-glow);
}
.hero-price .price-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  line-height: 1;
  background: var(--coral);
  color: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(232, 69, 110, 0.35);
  animation: badgePulse 2.4s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 4px 16px rgba(232, 69, 110, 0.35);
  }
  50% {
    box-shadow: 0 6px 26px rgba(232, 69, 110, 0.55);
  }
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.85;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-stat {
  text-align: start;
}
.hero-stat .num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
  font-family: var(--font-display);
}
.hero-stat .lbl {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 2px;
}
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-inner {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  max-width: 300px;
  width: 100%;
  border: 1px solid var(--ink-border);
}
.hero-visual-inner .v-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.hero-visual-inner .v-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 8px;
}
.hero-visual-inner .v-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}
.hero-visual-inner .v-meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.hero-visual-inner .v-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--ink-border);
}
.hero-visual-inner .v-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--brand);
  font-family: var(--font-display);
}
.hero-visual-inner .v-price s {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-right: 6px;
}
[dir="rtl"] .hero-visual-inner .v-price s {
  margin-right: 0;
  margin-left: 6px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px var(--brand-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--brand-glow);
}
.btn-plum {
  background: var(--plum);
  color: #fff;
  box-shadow: 0 6px 20px rgba(91, 45, 74, 0.22);
}
.btn-plum:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(91, 45, 74, 0.32);
}
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--ink-border);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 9px 22px;
  font-size: 0.8rem;
  border-radius: 12px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-discount-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  background: var(--brand-light);
  border: 1.5px dashed var(--brand);
  border-radius: 12px;
  padding: 10px 18px;
}
.hero-discount-hint .discount-code-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
}
.hero-discount-hint .discount-code-value {
  font-size: 0.92rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--surface);
  color: var(--brand);
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  border: 1px solid var(--brand);
  box-shadow: 0 2px 8px var(--brand-glow);
}

/* SECTIONS */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.section-alt {
  background: var(--bg-alt);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.section-desc {
  color: var(--ink-secondary);
  max-width: 560px;
  margin-bottom: 48px;
  font-size: 0.96rem;
  line-height: 1.85;
}
.reveal {
  opacity: 0;
  transform: var(--reveal-initial);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 44px 28px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--ink-border);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
.step-num {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: var(--brand);
  margin-bottom: 20px;
}
.step-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--brand-light);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.step p {
  color: var(--ink-secondary);
  font-size: 0.85rem;
  line-height: 1.75;
}
.step-discount-code {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--brand-light);
  color: var(--brand);
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px dashed var(--brand);
  letter-spacing: 0.04em;
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  display: flex;
  gap: 16px;
  padding: 26px 22px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--ink-border);
  align-items: flex-start;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  background: var(--brand-light);
}
.feature h4 {
  font-family: var(--font-display);
  font-size: 0.96rem;
  margin-bottom: 4px;
  color: var(--ink);
}
.feature p {
  color: var(--ink-secondary);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* COURSE CATALOG */
.course-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface);
  border: 1.5px solid var(--ink-border);
  color: var(--ink-secondary);
  font-family: var(--font-body);
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 4px 14px var(--brand-glow);
}
.courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.course-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--ink-border);
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
.course-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand-light), #f5dbe8);
}
.course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
[dir="rtl"] .course-badge {
  right: auto;
  left: 12px;
}
.course-body {
  padding: 22px;
}
.course-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}
.course-body h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin: 8px 0;
  color: var(--ink);
  line-height: 1.4;
}
.course-meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--ink-border);
}
.course-rating {
  font-size: 0.82rem;
  color: var(--amber);
  font-weight: 600;
}
.course-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand);
  font-family: var(--font-display);
}
.course-price s {
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin-right: 6px;
}
[dir="rtl"] .course-price s {
  margin-right: 0;
  margin-left: 6px;
}

/* PAGINATION */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.page-btn {
  padding: 10px 24px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid var(--ink-border);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: var(--transition);
}
.page-btn:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.page-info {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
}
.course-img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.course-img .img-fallback {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand-light), #f5dbe8);
}

/* PROGRESS */
.progress-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.progress-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  border: 1px solid var(--ink-border);
}
.progress-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-item {
  margin-bottom: 20px;
}
.progress-item:last-child {
  margin-bottom: 0;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.progress-header .name {
  color: var(--ink);
}
.progress-header .pct {
  color: var(--ink-secondary);
}
.progress-bar-wrap {
  height: 10px;
  border-radius: 6px;
  background: var(--bg-alt);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.progress-bar.c1 {
  background: linear-gradient(90deg, var(--brand), var(--coral));
}
.progress-bar.c2 {
  background: linear-gradient(90deg, var(--plum), #7d4a6a);
}
.progress-bar.c3 {
  background: linear-gradient(90deg, var(--purple), #a78bfa);
}
.progress-bar.c4 {
  background: linear-gradient(90deg, var(--blue), #8b9ae8);
}
.achievements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.achievement {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--ink-border);
}
.achievement:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.achievement.unlocked {
  border-color: var(--green);
}
.achievement.locked {
  opacity: 0.4;
}
.achievement .badge-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.achievement .badge-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
}
.achievement .badge-desc {
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-top: 4px;
}
.achievement.locked .badge-name {
  color: var(--ink-muted);
}

/* TESTIMONIALS */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--ink-border);
  position: relative;
}
.testimonial-card:hover {
  border-color: var(--plum);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.testimonial-card .quote-mark {
  position: absolute;
  top: -18px;
  left: 22px;
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--brand);
  opacity: 0.15;
}
[dir="rtl"] .testimonial-card .quote-mark {
  left: auto;
  right: 22px;
}
.stars {
  color: var(--amber);
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.testimonial-body {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin-bottom: 20px;
  line-height: 1.85;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--font-display);
  background: var(--plum);
}
.author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}
.author-role {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* COMPARISON */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ink-border);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
}
.compare th,
.compare td {
  padding: 18px 24px;
  text-align: center;
  border-bottom: 1px solid var(--ink-border);
}
.compare thead th {
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 22px 24px;
  font-family: var(--font-display);
}
.compare thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}
.compare thead th:last-child {
  color: var(--brand);
  border-radius: 0 var(--radius) 0 0;
}
.compare tbody td {
  font-size: 0.88rem;
  color: var(--ink-secondary);
}
.compare tbody td:first-child {
  text-align: start;
  font-weight: 700;
  color: var(--ink);
}
.compare tbody tr:last-child td {
  border-bottom: none;
}
.compare tbody tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius);
}
.compare tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--radius) 0;
}
.compare .check {
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 700;
}
.compare .cross {
  color: var(--red);
  font-size: 1rem;
}

/* FAQ */
.faq {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: 10px;
}
.faq-q {
  width: 100%;
  padding: 20px 26px;
  background: var(--surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: start;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.faq-q:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.faq-q .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}
.faq-item.open .faq-q {
  border-color: var(--brand);
  background: var(--brand-light);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}
.faq-item.open .faq-a {
  max-height: 350px;
}
.faq-a p {
  padding: 18px 26px 22px;
  color: var(--ink-secondary);
  font-size: 0.88rem;
  line-height: 1.95;
}

/* CTA BANNER */
.cta-section {
  text-align: center;
  padding: 60px 48px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 2px solid var(--brand);
}
.cta-section > * {
  position: relative;
  z-index: 1;
}
.cta-section .section-desc {
  margin-left: auto;
  margin-right: auto;
}
.cta-features {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cta-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.cta-feat .check-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--ink-border);
  padding: 44px 0 28px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  position: relative;
  z-index: 1;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer a:hover {
  color: var(--brand);
}

/* FLOATING CTA */
.float-cta {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 90;
  display: none;
}
[dir="rtl"] .float-cta {
  left: auto;
  right: 28px;
}
.float-cta.visible {
  display: block;
  animation: floatIn 0.35s ease;
}
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
}
.float-cta .btn {
  box-shadow: 0 8px 28px var(--brand-glow);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-visual-inner {
    max-width: 260px;
  }
  .steps,
  .features,
  .courses,
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
  .progress-demo {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 100px 0 60px;
  }
  .hero-price {
    justify-content: center;
  }
  .hero-price .price-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}
@media (max-width: 640px) {
  .steps,
  .features,
  .courses,
  .testimonials,
  .achievements {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 90px 0 44px;
  }
  .hero-stats {
    gap: 20px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
    max-width: 340px;
  }
  .section {
    padding: 52px 0;
  }
  .compare th,
  .compare td {
    padding: 12px 14px;
    font-size: 0.76rem;
  }
  .feature {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-section {
    padding: 44px 24px;
  }
  .cta-features {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .course-filters {
    justify-content: center;
  }
  .nav {
    margin: 0 4px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }
  .slider-nav {
    margin-top: 68px;
  }
}
@media (max-width: 480px) {
  .nav-cta {
    display: none;
  }
  .nav-logo span {
    display: none;
  }
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 84px 0 36px;
  }
  .section {
    padding: 40px 0;
  }
  .slider-nav {
    margin-top: 60px;
  }
}
