:root {
  --green: #3DBE7B;
  --green-dark: #2da066;
  --green-light: #e8f8f0;
  --bg: #f5f7f2;
  --white: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --sidebar: #ffffff;
  --card: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

/* NAV */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px; background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-box {
  width: 44px; height: 44px; background: var(--green); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 900; color: white; font-size: 22px;
}
.logo-text { font-weight: 700; font-size: 20px; color: var(--text); }
.logo-text span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--green); }
.nav-cta { display: flex; gap: 12px; }
.btn-ghost { padding: 10px 24px; border: 2px solid var(--green); border-radius: 50px; color: var(--green); font-weight: 600; font-size: 14px; background: none; cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-ghost:hover { background: var(--green); color: white; }
.btn-solid { padding: 10px 24px; border: 2px solid var(--green); border-radius: 50px; color: white; font-weight: 600; font-size: 14px; background: var(--green); cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-solid:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* HERO */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 90px 60px; min-height: calc(100vh - 80px); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,190,123,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-light); color: var(--green-dark);
  padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px; width: fit-content;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(42px, 5vw, 68px); font-weight: 900;
  line-height: 1.1; margin-bottom: 24px; color: var(--text);
}
.hero h1 .highlight { color: var(--green); }
.hero p { font-size: 17px; color: var(--muted); line-height: 1.7; max-width: 480px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-lg { padding: 16px 36px; border-radius: 50px; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: all .25s; border: none; }
.btn-green { background: var(--green); color: white; box-shadow: 0 8px 24px rgba(61,190,123,0.35); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(61,190,123,0.4); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid #ddd; }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: var(--text); }
.stat-lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* HERO VISUAL */
.hero-visual { position: relative; }
.hero-card-main {
  background: white; border-radius: 24px; padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1); position: relative; z-index: 2;
}
.course-preview { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 16px; height: 200px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; overflow: hidden; position: relative; }
.course-preview img { width: 100%; height: 100%; object-fit: cover; }
.play-overlay { position: absolute; width: 56px; height: 56px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.play-overlay svg { fill: var(--green); width: 20px; height: 20px; margin-left: 3px; }
.course-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.course-meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
.progress-bar { background: #f0f0f0; border-radius: 50px; height: 6px; margin: 14px 0; overflow: hidden; }
.progress-fill { background: var(--green); height: 100%; border-radius: 50px; width: 65%; }
.floating-card {
  position: absolute; background: white; border-radius: 16px; padding: 16px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12); z-index: 3;
}
.fc-top { top: -30px; right: -30px; display: flex; align-items: center; gap: 12px; min-width: 180px; }
.fc-bottom { bottom: -30px; left: -30px; min-width: 160px; }
.fc-icon { width: 42px; height: 42px; background: var(--green-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.fc-label { font-size: 12px; color: var(--muted); }
.fc-value { font-size: 16px; font-weight: 700; color: var(--text); }
.rating-stars { color: #fbbf24; font-size: 14px; }

/* FEATURES */
.section { padding: 90px 60px; }
.section-tag { color: var(--green); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 900; margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 16px; max-width: 520px; line-height: 1.7; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; }
.feature-card {
  background: white; border-radius: 20px; padding: 36px 28px;
  transition: all .3s; border: 2px solid transparent; cursor: default;
}
.feature-card:hover { border-color: var(--green); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(61,190,123,0.12); }
.feat-icon { width: 56px; height: 56px; background: var(--green-light); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* POPULAR COURSES */
.courses-section { background: white; }
.courses-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card { border: 1.5px solid #f0f0f0; border-radius: 20px; overflow: hidden; transition: all .3s; }
.course-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.1); transform: translateY(-4px); }
.course-thumb { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.thumb-ml { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.thumb-design { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.thumb-dev { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.course-body { padding: 22px; }
.course-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--green); margin-bottom: 8px; }
.course-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.instructor { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.instr-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; color: white; font-size: 12px; font-weight: 700; }
.instr-name { font-size: 13px; color: var(--muted); }
.course-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid #f5f5f5; }
.course-price { font-size: 18px; font-weight: 800; color: var(--green); }
.course-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--green) 0%, #1a8f56 100%);
  padding: 90px 60px; text-align: center; color: white;
}
.cta-section h2 { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 900; margin-bottom: 16px; }
.cta-section p { font-size: 17px; opacity: .85; margin-bottom: 36px; }
.btn-white { background: white; color: var(--green); padding: 16px 40px; border-radius: 50px; font-weight: 700; font-size: 16px; text-decoration: none; transition: all .25s; display: inline-block; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); }

/* FOOTER */
footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-box { background: var(--green); }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.7; max-width: 260px; }
footer h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color .2s; }
footer ul a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; }

/* RESPONSIVE */
@media(max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 60px 24px; gap: 48px; }
  .hero-visual { display: none; }
  .section { padding: 60px 24px; }
  .features-grid, .courses-grid { grid-template-columns: 1fr; }
  .courses-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}