/* =========================================================
   ELTAALIM — Pendidikan & Pembelajaran
   ========================================================= */

:root {
  --primary: #0f766e;
  --primary-600: #0d9488;
  --primary-400: #14b8a6;
  --primary-soft: #ccfbf1;
  --accent: #f59e0b;
  --accent-600: #d97706;
  --accent-soft: #fef3c7;

  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;

  --grad: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  --grad-text: linear-gradient(120deg, #0f766e 0%, #14b8a6 50%, #f59e0b 100%);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 12px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.3);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --primary-soft: rgba(20, 184, 166, 0.14);
  --accent-soft: rgba(245, 158, 11, 0.14);
  --bg: #0a1120;
  --surface: #111b2e;
  --surface-2: #0e1729;
  --text: #e8eef7;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --border: #1e2b44;
  --grad-text: linear-gradient(120deg, #2dd4bf 0%, #5eead4 50%, #fbbf24 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }

:focus-visible { outline: 3px solid var(--primary-400); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.lucide { width: 20px; height: 20px; stroke-width: 2; flex-shrink: 0; }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn .lucide { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(13, 148, 136, 0.7); }
.btn-primary:hover { box-shadow: 0 16px 30px -10px rgba(13, 148, 136, 0.8); }

.btn-accent { background: var(--accent); color: #1f1300; box-shadow: 0 10px 24px -10px rgba(245, 158, 11, 0.8); }
.btn-accent:hover { background: #fbbf24; }

.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary-400); color: var(--primary-600); }

.btn-ghost { color: var(--text); padding-left: 10px; }
.btn-ghost:hover { color: var(--primary-600); }

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--accent-soft); color: #7c4a03; }

.play-dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--primary-600);
  box-shadow: var(--shadow);
  position: relative;
}
.play-dot::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--primary-400);
  opacity: 0.35;
  animation: ping 2s infinite;
}
.play-dot .lucide { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }

.icon-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.icon-btn:hover { border-color: var(--primary-400); color: var(--primary-600); }

.link-btn { display: inline-flex; align-items: center; gap: 4px; color: var(--primary-600); font-weight: 700; font-size: 14px; }
.link-btn .lucide { width: 16px; height: 16px; }

/* ---------- Badges / tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-600);
  font-weight: 700;
  font-size: 13px;
}
[data-theme="dark"] .badge { color: #5eead4; }
.badge .lucide { width: 16px; height: 16px; }

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary-600);
}
[data-theme="dark"] .tag { color: #5eead4; }

.avatar {
  --a1: #0f766e; --a2: #14b8a6;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border: 3px solid var(--surface);
  flex-shrink: 0;
}
.avatar.sm { width: 36px; height: 36px; font-size: 12px; border-width: 2px; }
.av-orange { --a1: #f97316; --a2: #f59e0b; }
.av-blue   { --a1: #0ea5e9; --a2: #6366f1; }
.av-green  { --a1: #10b981; --a2: #14b8a6; }
.av-pink   { --a1: #ec4899; --a2: #a855f7; }

.icon-box {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary-600);
  flex-shrink: 0;
}
.icon-accent { background: var(--accent-soft) !important; color: var(--accent-600) !important; }
.icon-blue   { background: rgba(59, 130, 246, 0.12) !important; color: #3b82f6 !important; }
.icon-pink   { background: rgba(236, 72, 153, 0.12) !important; color: #ec4899 !important; }
.icon-purple { background: rgba(139, 92, 246, 0.12) !important; color: #8b5cf6 !important; }
.icon-orange { background: rgba(249, 115, 22, 0.12) !important; color: #f97316 !important; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
}
.header::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  transition: opacity 0.3s;
}
.header.scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(13, 148, 136, 0.8);
}
.logo-mark .lucide { width: 24px; height: 24px; }
.logo-text { display: flex; flex-direction: column; font-weight: 800; font-size: 21px; line-height: 1.1; letter-spacing: -0.02em; }
.logo-text small { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-2);
  border-radius: 10px;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover { color: var(--primary-600); }
.nav-link.active { color: var(--primary-600); }
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active { color: #5eead4; }
.nav-link::after {
  content: "";
  position: absolute; left: 50%; bottom: 2px;
  width: 0; height: 3px;
  border-radius: 3px;
  background: var(--grad);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav-link.active::after { width: 18px; }

.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.nav-overlay.show { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 10% 10%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(500px 400px at 90% 20%, rgba(245, 158, 11, 0.14), transparent 60%),
    radial-gradient(700px 500px at 60% 100%, rgba(59, 130, 246, 0.08), transparent 60%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 80%);
}

.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; }

.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); margin: 20px 0; }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 560px; }

.search-box {
  display: flex; align-items: center; gap: 10px;
  margin-top: 28px;
  padding: 6px 6px 6px 18px;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within { border-color: var(--primary-400); box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow); }
.search-box > .lucide { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 8px 0; }
.search-box input::placeholder { color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar + .avatar { margin-left: -12px; }
.hero-trust p { font-size: 14px; color: var(--muted); max-width: 260px; line-height: 1.45; }
.hero-trust strong { color: var(--text); }

/* Hero visual */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.hv-blob { position: absolute; border-radius: 50%; filter: blur(10px); z-index: -1; }
.hv-blob-1 { width: 360px; height: 360px; background: var(--grad); opacity: 0.18; top: 10%; right: 5%; animation: morph 12s ease-in-out infinite; }
.hv-blob-2 { width: 200px; height: 200px; background: var(--accent); opacity: 0.18; bottom: 5%; left: 5%; animation: morph 10s ease-in-out infinite reverse; }

.hv-main {
  width: min(360px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease);
}
.hero-visual:hover .hv-main { transform: rotate(0deg) scale(1.02); }

.hv-cover {
  position: relative;
  height: 190px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18) 0 2px, transparent 3px) 0 0 / 24px 24px,
    conic-gradient(from 45deg at 50% 50%, rgba(255,255,255,0.08) 0 25%, transparent 0 50%, rgba(255,255,255,0.08) 0 75%, transparent 0) 0 0 / 48px 48px,
    var(--grad);
}
.hv-cover-icon {
  width: 84px; height: 84px;
  border-radius: 24px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  color: #fff;
}
.hv-cover-icon .lucide { width: 40px; height: 40px; }
.hv-live {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #dc2626;
  font-size: 12px; font-weight: 800;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); animation: pulse 1.6s infinite; }

.hv-body { padding: 20px 22px 24px; }
.hv-title { font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin: 10px 0 14px; }
.hv-mentor { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hv-mentor strong { display: block; font-size: 14px; }
.hv-mentor small { color: var(--muted); font-size: 12px; }

.progress-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: var(--muted); }
.progress-head strong { color: var(--primary-600); }
.progress-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress-bar span { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--grad); animation: grow 1.8s var(--ease) both 0.6s; }

.hv-float {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.hv-float strong { display: block; font-size: 15px; line-height: 1.2; }
.hv-float small { color: var(--muted); font-size: 12px; }
.hv-float-1 { top: 8%; left: 0; }
.hv-float-2 { top: 42%; right: -8px; animation-delay: -2s; }
.hv-float-3 { bottom: 6%; left: 6%; animation-delay: -4s; }
.hv-float-1 .lucide { fill: currentColor; }

/* ---------- Stats ---------- */
.stats { padding: 0 0 40px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { display: flex; align-items: center; gap: 16px; padding: 28px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary-600);
  flex-shrink: 0;
}
.stat-icon .lucide { width: 26px; height: 26px; }
.stat strong { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--surface-2); }
[data-theme="dark"] .section-alt { background: #0c1526; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head-left { text-align: left; margin: 0; }
.section-head-left .btn { margin-top: 24px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; gap: 24px; }
.section-head-row h2 { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-600);
}
[data-theme="dark"] .eyebrow { color: #5eead4; }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: var(--accent); }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.feature-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary-600);
  margin-bottom: 22px;
  transition: transform 0.35s var(--ease);
}
.feature-icon .lucide { width: 28px; height: 28px; }
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ---------- Programs ---------- */
.filter-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700; font-size: 14px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
}
.filter-btn:hover { border-color: var(--primary-400); color: var(--primary-600); }
.filter-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(13, 148, 136, 0.7); }

.search-info {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: -16px 0 28px;
  color: var(--muted); font-size: 14px;
}
.search-info[hidden] { display: none; }

.courses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.course-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  animation: fadeUp 0.5s var(--ease) both;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.course-thumb {
  --c1: #0f766e; --c2: #14b8a6;
  position: relative;
  height: 150px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle, rgba(255,255,255,0.16) 1.5px, transparent 2px) 0 0 / 18px 18px,
    linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
  overflow: hidden;
}
.course-thumb::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  right: -60px; bottom: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.course-thumb .thumb-icon { transition: transform 0.4s var(--ease); }
.course-thumb .thumb-icon .lucide { width: 54px; height: 54px; stroke-width: 1.6; }
.course-card:hover .thumb-icon { transform: scale(1.12) rotate(-6deg); }
.course-cat {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 12px; font-weight: 700;
  z-index: 1;
}
.course-level {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  font-size: 11px; font-weight: 700;
  z-index: 1;
}

.course-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.course-meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-meta .lucide { width: 15px; height: 15px; }
.course-body h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.35; }
.course-mentor { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.course-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; }
.rating .lucide { width: 16px; height: 16px; color: var(--accent); fill: var(--accent); }
.rating small { color: var(--muted); font-weight: 500; }
.course-price { font-weight: 800; color: var(--primary-600); font-size: 16px; }
[data-theme="dark"] .course-price { color: #5eead4; }

.empty-state { text-align: center; padding: 40px 20px; }
.empty-state[hidden] { display: none; }
.empty-state .feature-icon { margin: 0 auto 16px; }
.empty-state p { color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.steps::before {
  content: "";
  position: absolute;
  top: 58px; left: 12%; right: 12%;
  border-top: 2px dashed var(--border);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px;
}
.step-num {
  position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  font-size: 64px; font-weight: 800;
  color: var(--primary-soft);
  line-height: 1;
  z-index: -1;
  opacity: 0.8;
}
[data-theme="dark"] .step-num { color: rgba(20, 184, 166, 0.1); }
.step-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 2px solid var(--primary-400);
  color: var(--primary-600);
  box-shadow: 0 0 0 8px var(--bg), var(--shadow);
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.step:hover .step-icon { background: var(--grad); color: #fff; transform: scale(1.08); }
.step-icon .lucide { width: 30px; height: 30px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Mentors ---------- */
.mentors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mentor-card {
  text-align: center;
  padding: 32px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.mentor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mentor-photo {
  --a1: #0f766e; --a2: #14b8a6;
  position: relative;
  width: 108px; height: 108px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #fff;
  font-size: 32px; font-weight: 800;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 8px var(--border);
}
.mentor-verified {
  position: absolute; right: 2px; bottom: 2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border: 3px solid var(--surface);
}
.mentor-verified .lucide { width: 14px; height: 14px; stroke-width: 3; }
.mentor-card h3 { font-size: 17px; margin-bottom: 4px; }
.mentor-role { color: var(--primary-600); font-weight: 700; font-size: 14px; }
[data-theme="dark"] .mentor-role { color: #5eead4; }
.mentor-stats {
  display: flex; justify-content: center; gap: 18px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
.mentor-stats span { display: inline-flex; align-items: center; gap: 5px; }
.mentor-stats .lucide { width: 15px; height: 15px; }

/* ---------- Testimonials ---------- */
.slider-nav { display: flex; gap: 10px; }
.slider-btn { width: 48px; height: 48px; border-radius: 50%; }

.testi-track {
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 24px;
  margin: 0 -4px;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }

.testi-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.testi-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testi-quote {
  position: absolute; top: 24px; right: 24px;
  color: var(--primary-soft);
}
.testi-quote .lucide { width: 44px; height: 44px; fill: currentColor; stroke: none; }
[data-theme="dark"] .testi-quote { color: rgba(20, 184, 166, 0.18); }
.stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 16px; }
.stars .lucide { width: 18px; height: 18px; fill: currentColor; }
.testi-card p { color: var(--text-2); font-size: 15.5px; margin-bottom: 24px; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-author .avatar { width: 48px; height: 48px; font-size: 15px; border: none; }
.testi-author strong { display: block; font-size: 15px; }
.testi-author small { color: var(--muted); font-size: 13px; }

.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.slider-dots button {
  width: 10px; height: 10px;
  border-radius: 99px;
  background: var(--border);
  transition: width 0.3s var(--ease), background-color 0.3s;
}
.slider-dots button.active { width: 28px; background: var(--primary-400); }

/* ---------- Pricing ---------- */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin: -24px 0 48px; font-weight: 700; }
.billing-label { color: var(--muted); transition: color 0.2s; }
.billing-label.active { color: var(--text); }
.billing-label em {
  font-style: normal;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-600);
  font-size: 12px;
}
.switch {
  width: 56px; height: 30px;
  border-radius: 99px;
  background: var(--border);
  position: relative;
  transition: background-color 0.3s;
}
.switch span {
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease);
}
.switch[aria-checked="true"] { background: var(--primary-400); }
.switch[aria-checked="true"] span { transform: translateX(26px); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: center; }
.price-card {
  position: relative;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card h3 { font-size: 22px; margin-bottom: 6px; }
.price-desc { color: var(--muted); font-size: 14px; min-height: 42px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 22px 0 26px; }
.price-currency { font-size: 18px; font-weight: 700; }
.price-value { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-period { color: var(--muted); font-size: 14px; font-weight: 600; }
.price-features { display: grid; gap: 14px; margin-bottom: 30px; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.price-features .lucide {
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-600);
  stroke-width: 3;
}
.price-features li.disabled { color: var(--muted); opacity: 0.6; }
.price-features li.disabled .lucide { background: var(--surface-2); color: var(--muted); }

.price-card.featured {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  padding: 48px 32px;
  box-shadow: 0 30px 60px -20px rgba(13, 148, 136, 0.6);
}
.price-card.featured .price-desc,
.price-card.featured .price-period { color: rgba(255, 255, 255, 0.8); }
.price-card.featured .price-features .lucide { background: rgba(255, 255, 255, 0.2); color: #fff; }
.price-badge {
  position: absolute; top: 18px; right: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #1f1300;
  font-size: 12px; font-weight: 800;
}
.price-value.bump { animation: bump 0.4s var(--ease); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.accordion { display: grid; gap: 14px; }
.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.acc-item.open { border-color: var(--primary-400); box-shadow: var(--shadow); }
.acc-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  text-align: left;
  font-weight: 700; font-size: 16px;
}
.acc-head .lucide {
  width: 32px; height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--primary-600);
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s;
}
.acc-item.open .acc-head .lucide { transform: rotate(45deg); background: var(--grad); color: #fff; }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc-body > div { overflow: hidden; }
.acc-body p { padding: 0 22px 22px; color: var(--muted); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }

/* ---------- CTA ---------- */
.cta-section { padding-top: 20px; }
.cta-box {
  position: relative;
  overflow: hidden;
  padding: 72px 48px;
  border-radius: 32px;
  background: linear-gradient(135deg, #0b4f4a 0%, #0f766e 45%, #14b8a6 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 40px 80px -30px rgba(13, 148, 136, 0.7);
}
.cta-pattern {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.35), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.18), transparent 35%),
    radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 2px) 0 0 / 22px 22px;
}
.cta-content { position: relative; max-width: 680px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); margin-bottom: 14px; }
.cta-content > p { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; margin-bottom: 32px; }
.cta-form {
  display: flex; gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  max-width: 560px; margin: 0 auto;
}
.input-wrap { flex: 1; display: flex; align-items: center; gap: 10px; padding-left: 14px; min-width: 0; }
.input-wrap .lucide { color: rgba(255, 255, 255, 0.8); }
.input-wrap input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: #fff; padding: 10px 0; }
.input-wrap input::placeholder { color: rgba(255, 255, 255, 0.7); }
.cta-form.invalid { border-color: #fca5a5; animation: shake 0.4s; }
.form-error { display: block; min-height: 22px; margin-top: 10px; color: #fecaca; font-weight: 600; }
.cta-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.cta-points li { display: inline-flex; align-items: center; gap: 6px; }
.cta-points .lucide { width: 18px; height: 18px; color: #fcd34d; }

/* ---------- Footer ---------- */
.footer { padding: 80px 0 0; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin: 20px 0 24px; max-width: 340px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all 0.25s var(--ease);
}
.socials a svg { width: 19px; height: 19px; }
.socials a:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-3px); }
.footer-title { font-size: 16px; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--muted); font-size: 15px; transition: color 0.2s, padding 0.2s; }
.footer-col a:hover { color: var(--primary-600); padding-left: 4px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 15px; }
.contact-list .lucide { width: 18px; height: 18px; color: var(--primary-600); margin-top: 3px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 14px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--primary-600); }

/* ---------- Floating UI ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(13, 148, 136, 0.7);
  z-index: 80;
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

.toast {
  position: fixed; left: 50%; bottom: 28px;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 20px);
  transition: all 0.35s var(--ease);
}
[data-theme="dark"] .toast { background: #1e293b; border: 1px solid var(--border); }
.toast .lucide { color: #34d399; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: rotate(0); }
  50% { border-radius: 70% 30% 46% 54% / 30% 39% 61% 70%; transform: rotate(20deg); }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } }
@keyframes ping { 0% { transform: scale(0.9); opacity: 0.5; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes grow { from { width: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .nav-list { gap: 0; }
  .nav-link { padding: 8px 10px; font-size: 14.5px; }
}

@media (max-width: 1100px) {
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Mobile navigation drawer */
  .menu-toggle { display: grid; }
  .hide-mobile { display: none; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    padding: calc(var(--header-h) + 16px) 20px 24px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 95;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 14px 16px; font-size: 16px; }
  .nav-link::after { display: none; }
  .nav-link.active { background: var(--primary-soft); }
  .nav-cta-mobile { display: grid; gap: 10px; margin-top: 24px; }

  .header-actions { position: relative; z-index: 96; }
  .logo { position: relative; z-index: 96; }
}

@media (max-width: 992px) {
  :root { --header-h: 68px; }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { text-align: center; }
  .lead, .search-box { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-trust { text-align: left; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .mentors-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }

  .testi-card { flex-basis: calc((100% - 24px) / 2); }

  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-card.featured { padding: 40px 32px; }

  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-head-left { text-align: center; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .cta-box { padding: 56px 24px; border-radius: 24px; }
  .cta-form { flex-direction: column; border-radius: 20px; padding: 10px; }
  .input-wrap { padding: 4px 8px; }
  .cta-form .btn { width: 100%; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .logo-text small { display: none; }
  .logo-text { font-size: 19px; }
  .logo-mark { width: 38px; height: 38px; }
  .icon-btn { width: 40px; height: 40px; }

  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-ghost { justify-content: center; }
  .hero-trust { flex-direction: column; text-align: center; }

  .hero-visual { min-height: 400px; }
  .hv-main { width: min(290px, 82%); }
  .hv-cover { height: 150px; }
  .hv-float { padding: 8px 12px 8px 8px; gap: 8px; }
  .hv-float .icon-box { width: 34px; height: 34px; border-radius: 10px; }
  .hv-float .icon-box .lucide { width: 16px; height: 16px; }
  .hv-float strong { font-size: 13px; }
  .hv-float small { font-size: 11px; }
  .hv-float-1 { left: -4px; top: 2%; }
  .hv-float-2 { right: -4px; }
  .hv-float-3 { left: -4px; bottom: 2%; }

  .stat { flex-direction: column; text-align: center; gap: 10px; padding: 22px 12px; }
  .stat strong { font-size: 24px; }
  .stat-icon { width: 46px; height: 46px; }

  .features-grid,
  .courses-grid,
  .mentors-grid,
  .steps { grid-template-columns: 1fr; }

  .section-head-row { flex-direction: column; align-items: flex-start; }
  .slider-nav { display: none; }
  .testi-card { flex-basis: 88%; padding: 26px 22px; }

  .billing-toggle { gap: 10px; font-size: 14px; }
  .billing-label em { display: block; margin: 4px 0 0; text-align: center; }

  .price-card { padding: 32px 24px; }
  .price-value { font-size: 42px; }

  .acc-head { padding: 18px; font-size: 15px; }
  .acc-body p { padding: 0 18px 18px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
