:root {
  --bg: #eef5ff;
  --bg-deep: #dcecff;
  --text: #0c1730;
  --muted: #5f6f8a;
  --primary: #2563eb;
  --primary-2: #06b6d4;
  --gold: #f6c85f;
  --card: rgba(255, 255, 255, 0.62);
  --stroke: rgba(255, 255, 255, 0.65);
  --shadow: 0 24px 70px rgba(36, 72, 143, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.9), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(14,165,233,0.18), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 45%, #f5f9ff 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}
body::before { top: -8rem; left: -8rem; background: rgba(37, 99, 235, 0.22); }
body::after { bottom: -10rem; right: -8rem; background: rgba(6, 182, 212, 0.2); }

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 18px auto 54px;
}

.glass {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 999px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}
.brand-text { letter-spacing: -0.03em; }

.nav { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; color: var(--muted); font-weight: 600; }
.nav a { transition: transform .25s ease, color .25s ease; }
.nav a:hover, .nav a.active { color: var(--primary); transform: translateY(-2px); }

.section { padding: 98px 0 0; }
.section-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 34px; min-height: calc(100vh - 120px); padding-top: 42px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  color: #2457d6; background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.14);
  font-size: .86rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

h1, h2, h3, p { margin: 0; }
h1 { margin-top: 22px; font-size: clamp(3rem, 7vw, 6.1rem); line-height: .95; letter-spacing: -0.06em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.05em; }
h3 { font-size: 1.2rem; letter-spacing: -0.03em; }
.lead, .section-heading p, .testimonial-card p, .cta-card p, .course-more-card p { color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.hero-copy .lead { max-width: 60ch; margin-top: 20px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 15px 22px;
  font-weight: 700; border: 1px solid transparent;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease, border-color .28s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 18px 30px rgba(20, 60, 130, 0.18); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.btn-secondary { color: var(--text); background: rgba(255,255,255,0.7); border-color: rgba(37,99,235,.14); }
.btn-sm { padding: 12px 18px; }

.mini-proof {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 22px; padding: 18px; border-radius: 24px;
}
.mini-proof div { transition: transform .15s ease; }
.mini-proof div:hover { transform: translateY(-2px); }
.mini-proof strong { display: block; font-size: 1.2rem; }
.mini-proof span { color: var(--muted); font-size: .92rem; }

.hero-visual { position: relative; min-height: 640px; display: grid; place-items: center; }
.hero-card {
  position: relative; width: min(100%, 460px); padding: 20px; border-radius: 34px; overflow: hidden;
}
.hero-card-placeholder {
  width: 100%; height: 320px; border-radius: 24px; overflow: hidden;
}
.hero-card-top, .hero-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.hero-card-top { margin-bottom: 16px; }
.hero-card-bottom { padding-top: 16px; }
.pill, .rating-chip, .live-dot {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 14px; border-radius: 999px; font-size: .86rem; font-weight: 700;
}
.pill { color: #1e4fca; background: rgba(37, 99, 235, 0.1); }
.live-dot { color: #157347; background: rgba(21, 115, 71, 0.1); }
.rating-chip { color: #875d00; background: rgba(246, 200, 95, 0.22); }

.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(37,99,235,.15); }
.orbit-one { width: 540px; height: 540px; animation: spin 90s linear infinite; }
.orbit-two { width: 660px; height: 660px; border-style: dashed; animation: spin 120s linear infinite reverse; }

.section-heading { max-width: 760px; margin-bottom: 26px; }
.section-heading p { margin-top: 16px; }

.category-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.category-card {
  padding: 24px; border-radius: var(--radius-xl); min-height: 170px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.48));
  transition: transform .15s ease, border-color .3s ease, background .3s ease;
}
.category-card:hover { transform: translateY(-2px); }
.category-card span { font-weight: 800; font-size: 1.1rem; }
.category-card p { margin-top: 10px; color: var(--muted); line-height: 1.7; }

.cat-icon-wrap {
  margin-bottom: 16px;
  transition: transform .25s ease;
}
.category-card:hover .cat-icon-wrap { transform: scale(1.08); }

.stats-band {
  margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 20px;
  border-radius: 30px;
}
.stat-item { padding: 22px; border-radius: 24px; background: rgba(255,255,255,0.55); transition: transform .15s ease; }
.stat-item:hover { transform: translateY(-2px); }
.stat-item strong { display: block; font-size: 2.1rem; letter-spacing: -0.06em; }
.stat-item span { color: var(--muted); }

.stories-section { padding-top: 110px; }

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

/* COURSE CARD */
.testimonial-card { padding: 0; overflow: hidden; border-radius: var(--radius-xl); transition: transform .15s ease, border-color .3s ease, background .3s ease; }
.testimonial-card:hover { transform: translateY(-2px); }

.course-card-img {
  width: 100%;
  height: 230px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.course-card-body { padding: 22px; }

.course-card-meta { display: flex; gap: 10px; margin-bottom: 14px; }
.course-tag {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  color: #1e4fca; background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.14);
}
.course-tag.tag-green { color: #059669; background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.14); }
.course-tag.tag-purple { color: #7c3aed; background: rgba(124, 58, 237, 0.1); border-color: rgba(124, 58, 237, 0.14); }

.course-level {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  color: var(--muted); background: rgba(95, 111, 138, 0.08);
}

.course-card-body h3 { font-size: 1.15rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.course-card-body p { color: var(--muted); font-size: .96rem; line-height: 1.7; margin-bottom: 16px; }

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

.course-teacher { display: flex; align-items: center; gap: 10px; }
.teacher-avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white; display: grid; place-items: center;
  font-size: .82rem; font-weight: 800;
}
.course-teacher span { font-size: .88rem; font-weight: 700; color: var(--text); }

.course-rating { display: flex; align-items: center; gap: 5px; }
.course-rating span { font-size: .88rem; font-weight: 700; color: var(--text); }

/* MORE COURSES GRID */
.course-grid-more {
  display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr);
}

.course-more-card {
  padding: 26px; border-radius: var(--radius-xl);
  transition: transform .15s ease, border-color .3s ease, background .3s ease;
}
.course-more-card:hover { transform: translateY(-2px); }

.course-more-icon { margin-bottom: 16px; }

.course-more-card h4 { font-size: 1.08rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.course-more-card p { color: var(--muted); font-size: .94rem; line-height: 1.7; margin-bottom: 16px; }

.course-more-meta { display: flex; gap: 10px; }
.course-more-meta span {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  color: var(--muted); background: rgba(95, 111, 138, 0.08);
}

/* CTA */
.cta-section { padding-bottom: 48px; }
.cta-card { text-align: center; padding: 42px 24px; background: linear-gradient(135deg, rgba(14,165,233,.18), rgba(255,255,255,.75)); border-radius: var(--radius-xl); }
.cta-card p { margin: 14px auto 24px; max-width: 760px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* FOOTER */
.footer {
  margin-top: 96px;
  padding: 34px 28px 18px;
  border-radius: 34px;
  color: var(--muted);
  display: grid;
  gap: 26px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; color: var(--text); margin-bottom: 8px; }
.footer-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col span { color: var(--text); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.footer-col a { width: fit-content; transition: color .25s ease, transform .25s ease; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--primary); transform: translateX(3px); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.55);
}
.footer-bottom a { transition: color .25s ease; }

/* ANIMATIONS */
.reveal-up, .reveal-fade { opacity: 1; transform: none; }
.animate-in { animation: smoothReveal .45s ease forwards; }

@keyframes smoothReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.floaty { animation: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .section-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 560px; }
  .category-grid, .testimonial-grid, .course-grid-more, .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band { display: grid; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 20px, 100%); margin-top: 10px; }
  .topbar { position: static; border-radius: 28px; flex-direction: column; align-items: stretch; }
  .nav { justify-content: flex-start; gap: 14px; }
  .section { padding-top: 58px; }
  .section-grid { min-height: auto; }
  h1 { font-size: clamp(2.5rem, 15vw, 4rem); }
  h2 { font-size: clamp(1.8rem, 9vw, 2.5rem); }
  .mini-proof, .category-grid, .testimonial-grid, .course-grid-more, .stats-band { grid-template-columns: 1fr; }
  .hero-card-placeholder { height: 240px; }
  .hero-visual { min-height: auto; }
  .stats-band { padding-left: 0; padding-right: 0; }
  .footer { padding-left: 18px; padding-right: 18px; }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}