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

:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --secondary: #06B6D4;
  --secondary-light: #ECFEFF;
  --bg: #F8FAFC;
  --white: #ffffff;
  --text-dark: #0F172A;
  --text-mid: #334155;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(79,70,229,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(79,70,229,0.15), 0 2px 8px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: white;
  letter-spacing: -1px;
}

.logo-text {
  font-size: 17px; font-weight: 700; color: var(--text-dark);
  letter-spacing: -0.3px;
}

.logo-text span { color: var(--primary); }

.nav-links {
  display: flex; gap: 32px; list-style: none;
}

.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background .2s, transform .15s !important;
}

.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}

.hamburger span {
  width: 24px; height: 2px; background: var(--text-dark);
  border-radius: 2px; transition: all .3s;
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 5%;
  flex-direction: column; gap: 16px;
}

.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; font-weight: 500; color: var(--text-mid); text-decoration: none; }

/* ── SECTIONS ── */
section { padding: 96px 5%; }
.container { max-width: 1100px; margin: 0 auto; }

.section-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 16px;
}

.section-tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--primary); border-radius: 50%;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700; line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16px; color: var(--text-muted); max-width: 520px;
  line-height: 1.7;
}

.section-header { margin-bottom: 56px; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  padding-top: 68px;
  display: flex; align-items: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-bg-blobs {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .55;
}

.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #c7d2fe, #818cf8);
  top: -160px; right: -120px;
}

.blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #a5f3fc, #67e8f9);
  bottom: -100px; left: -80px;
}

.blob-3 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, #e0e7ff, #c7d2fe);
  top: 50%; left: 45%;
  transform: translate(-50%, -50%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  max-width: 1100px; margin: 0 auto; width: 100%;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--border);
  padding: 6px 14px 6px 8px; border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--text-mid);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp .6s ease both;
}

.hero-badge-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: white;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text-dark);
  margin-bottom: 22px;
  animation: fadeUp .6s .1s ease both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 36px; max-width: 460px;
  animation: fadeUp .6s .2s ease both;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp .6s .3s ease both;
}

.btn-primary {
  background: var(--primary); color: white;
  padding: 14px 30px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
  border: none; cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79,70,229,.45);
}

.btn-secondary {
  background: white; color: var(--text-dark);
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border);
  transition: border-color .2s, transform .15s;
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  animation: fadeUp .6s .4s ease both;
}

.stat-item { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-size: 22px; font-weight: 800;
  color: var(--text-dark); letter-spacing: -0.5px;
}

.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.hero-visual {
  display: flex; justify-content: center;
  animation: fadeLeft .8s .2s ease both;
}

.hero-card-stack {
  position: relative; width: 340px; height: 380px;
}

.floating-card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  position: absolute;
  border: 1px solid var(--border);
}

.card-main {
  width: 300px; top: 30px; right: 0;
  animation: float 4s ease-in-out infinite;
}

.card-mini {
  width: 180px; bottom: 20px; left: 0;
  padding: 14px 16px;
  animation: float 4s 1s ease-in-out infinite;
}

.card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 10px;
}

.card-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.card-value { font-size: 22px; font-weight: 800; color: var(--text-dark); margin: 2px 0; }
.card-sub { font-size: 12px; color: var(--text-muted); }

.progress-bar {
  height: 6px; background: var(--border); border-radius: 3px; margin-top: 12px; overflow: hidden;
}

.progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  animation: growBar 1.5s .6s ease both;
}

.card-course-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

.course-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; color: var(--text-mid);
}

.course-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink: 0;
}

/* ── ABOUT ── */
#about { background: white; }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

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

.about-stat-card {
  background: var(--bg); border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}

.about-stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.about-stat-card.accent { background: var(--primary); color: white; border-color: var(--primary); }
.about-stat-card.accent .stat-num-big { color: white; }
.about-stat-card.accent p { color: rgba(255,255,255,.8); }

.stat-num-big {
  font-size: 36px; font-weight: 800;
  color: var(--primary); letter-spacing: -1px;
}

.about-stat-card p { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

.about-points { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }

.about-points li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text-mid);
}

.check-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; margin-top: 2px;
  font-weight: 700;
}

/* ── COURSES ── */
#courses { background: var(--bg); }

.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.course-card {
  background: white; border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.68,0,1.2), box-shadow .35s ease, border-color .25s ease;
  cursor: pointer;
  position: relative;
}

.course-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(79,70,229,.22), 0 4px 12px rgba(0,0,0,.08);
  border-color: transparent;
}

.course-card:hover .course-banner img { transform: scale(1.08); }
.course-card:hover .course-title { color: var(--primary); }
.course-card:hover .course-enroll { opacity: 1; transform: translateY(0); }

.course-banner {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.course-banner img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s cubic-bezier(.22,.68,0,1.2);
  display: block;
}

.course-banner .banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,0.45) 100%);
}

.course-body { padding: 20px; position: relative; z-index: 1; }

.course-enroll {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  margin-top: 12px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}

.course-enroll::after { content: '←'; font-size: 14px; }

.course-badge {
  font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
  display: inline-block; margin-bottom: 10px;
}

.course-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.course-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

.course-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}

.course-meta span { display: flex; align-items: center; gap: 4px; }

/* ── FEATURES ── */
#features { background: white; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px 24px; border-radius: var(--radius-md);
  background: var(--bg); border: 1px solid var(--border);
  transition: transform .35s cubic-bezier(.22,.68,0,1.2), box-shadow .35s ease, background .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.22,.68,0,1.2);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(79,70,229,.15), 0 2px 8px rgba(0,0,0,.06);
  background: white; border-color: #C7D2FE;
}

.feature-card:hover::after { transform: scaleX(1); transform-origin: left; }
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(-4deg); }

.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}

.feature-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--bg); }

.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: white; border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 28px 24px;
  transition: transform .35s cubic-bezier(.22,.68,0,1.2), box-shadow .35s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute; top: -10px; right: 20px;
  font-size: 100px; line-height: 1;
  color: var(--primary); opacity: 0;
  font-family: Georgia, serif;
  transition: opacity .35s ease, transform .35s ease;
  transform: translateY(10px);
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-8px) rotate(.4deg);
  box-shadow: 0 20px 48px rgba(79,70,229,.14), 0 4px 12px rgba(0,0,0,.07);
  border-color: #C7D2FE;
}

.testimonial-card:hover::before { opacity: .07; transform: translateY(0); }
.testimonial-card:hover .author-avatar { transform: scale(1.1); }

.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white;
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.stars { color: #F59E0B; font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }

.testimonial-text {
  font-size: 14px; color: var(--text-mid);
  line-height: 1.7; margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.author-course { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ── CTA ── */
#cta {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 50%, var(--primary-dark) 100%);
  padding: 96px 5%;
  position: relative; overflow: hidden;
  text-align: center;
}

#cta::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

.cta-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; color: white;
  letter-spacing: -1px; margin-bottom: 16px;
}

.cta-sub { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 40px; }

.cta-form {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap;
}

.cta-input {
  padding: 14px 20px; border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.15);
  color: white; font-size: 15px; font-family: inherit;
  outline: none; min-width: 260px; flex: 1; max-width: 340px;
  transition: border-color .2s;
}

.cta-input::placeholder { color: rgba(255,255,255,.6); }
.cta-input:focus { border-color: rgba(255,255,255,.7); }

.btn-white {
  background: white; color: var(--primary);
  padding: 14px 30px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform .15s, box-shadow .2s;
  white-space: nowrap;
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ── FOOTER ── */
footer {
  background: var(--text-dark); color: rgba(255,255,255,.7);
  padding: 48px 5% 32px;
}

.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo-text { color: white; }
.footer-desc { font-size: 13px; margin-top: 10px; max-width: 240px; line-height: 1.65; }

.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }

.footer-col h4 { font-size: 13px; font-weight: 600; color: white; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
  font-size: 13px; color: rgba(255,255,255,.6);
  text-decoration: none; transition: color .2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1100px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes growBar {
  from { width: 0; }
  to   { width: 72%; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.reveal {
  opacity: 0; transform: translateY(36px) scale(.97);
  transition: opacity .65s cubic-bezier(.22,.68,0,1), transform .65s cubic-bezier(.22,.68,0,1.1);
}

.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-visual { display: none; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  section { padding: 72px 5%; }
  .cta-input { min-width: 100%; max-width: 100%; }
  .about-visual { grid-template-columns: 1fr 1fr; }
}
