:root{
  --navy:#0B2545;
  --blue:#2F6FED;
  --blue-light:#EAF1FF;
  --blue-soft:#F5F8FF;
  --white:#FFFFFF;
  --ink:#0F1F33;
  --muted:#5B6B82;
  --line:#E3E9F3;
  --success:#1AA971;
  --radius:14px;
  --shadow:0 12px 30px rgba(11,37,69,.08);
  --maxw:1180px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,.brand-name{font-family:'Space Grotesk',sans-serif}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
.hidden{display:none !important}
img{max-width:100%}
ul,ol{list-style:none}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.9rem 1.6rem;border-radius:10px;font-weight:600;font-size:.95rem;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary{background:var(--blue);color:var(--white);box-shadow:0 8px 20px rgba(47,111,237,.28)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(47,111,237,.35)}
.btn-ghost{background:var(--white);color:var(--navy);border:1.5px solid var(--line)}
.btn-ghost:hover{border-color:var(--blue);color:var(--blue)}
.btn-wide{width:100%}

/* ONBOARDING  */
.onboarding{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(circle at 15% 15%, #123168 0%, var(--navy) 55%, #081a33 100%);
  padding:2rem 1rem;
}
.onboard-card{
  width:100%;max-width:580px;background:var(--white);border-radius:24px;
  padding:2.8rem 2.4rem;box-shadow:0 30px 80px rgba(0,0,0,.4);position:relative;
  border-top:4px solid var(--blue);
}
.onboard-progress{display:flex;gap:6px;margin-bottom:2rem}
.dot{height:6px;flex:1;border-radius:999px;background:var(--line);transition:background .25s}
.dot.active{background:linear-gradient(90deg,var(--blue),#5B93F7)}
.ob-step{display:none}
.ob-step.active{display:block;animation:fadeUp .35s ease}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.ob-eyebrow{
  color:var(--blue);font-weight:700;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;
  margin-bottom:.6rem;
}
.ob-step h1{font-size:1.7rem;line-height:1.25;margin-bottom:.5rem;color:var(--navy);font-weight:700}
.ob-sub{color:var(--muted);margin-bottom:1.8rem;font-size:.95rem}
.ob-back{
  color:var(--muted);font-size:.85rem;margin-bottom:1.2rem;font-weight:600;
  display:inline-flex;align-items:center;gap:.3rem;transition:.15s;
}
.ob-back:hover{color:var(--blue);transform:translateX(-2px)}

.role-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.6rem}
.role-card{
  border:1.5px solid var(--line);border-radius:16px;padding:1.8rem 1.2rem;
  text-align:center;display:flex;flex-direction:column;align-items:center;gap:.5rem;
  transition:border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.role-card:hover{border-color:var(--blue);background:var(--blue-soft);transform:translateY(-3px);box-shadow:0 12px 24px rgba(47,111,237,.14)}
.role-card.selected{border-color:var(--blue);background:var(--blue-light);box-shadow:0 12px 24px rgba(47,111,237,.18)}
.role-icon{
  font-size:1.7rem;width:56px;height:56px;border-radius:50%;background:var(--blue-light);
  display:flex;align-items:center;justify-content:center;margin-bottom:.2rem;
}
.role-card.selected .role-icon{background:var(--white)}
.role-title{font-weight:700;color:var(--navy);font-size:1rem}
.role-desc{font-size:.82rem;color:var(--muted)}

.pill-grid{display:flex;flex-wrap:wrap;gap:.7rem;margin-bottom:1.8rem}
.pill{
  padding:.75rem 1.2rem;border:1.5px solid var(--line);border-radius:999px;
  font-size:.9rem;font-weight:600;color:var(--navy);transition:.18s;
}
.pill:hover{border-color:var(--blue);background:var(--blue-soft);transform:translateY(-2px)}
.pill.selected{background:var(--blue);border-color:var(--blue);color:var(--white);box-shadow:0 8px 18px rgba(47,111,237,.3)}

.ob-textarea{
  width:100%;border:1.5px solid var(--line);border-radius:12px;padding:1rem 1.1rem;
  font-family:inherit;font-size:.95rem;resize:vertical;margin-bottom:1.8rem;min-height:52px;
  transition:.18s;
}
.ob-textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(47,111,237,.12)}

.ob-next{
  width:100%;background:var(--blue);color:var(--white);padding:1rem;border-radius:12px;
  font-weight:700;font-size:.95rem;transition:.18s;box-shadow:0 10px 22px rgba(47,111,237,.28);
}
.ob-next:disabled{background:#C6D6F7;cursor:not-allowed;box-shadow:none}
.ob-next:not(:disabled):hover{background:#2159CC;transform:translateY(-2px);box-shadow:0 14px 28px rgba(47,111,237,.35)}

.ob-course-grid{display:grid;gap:.8rem;margin-bottom:.5rem}
.ob-course{
  border:1.5px solid var(--line);border-radius:14px;padding:.8rem 1rem;
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  transition:border-color .18s, background .18s, transform .18s, box-shadow .18s;
  cursor:pointer;
}
.ob-course:hover{border-color:var(--blue);transform:translateY(-2px);box-shadow:0 10px 20px rgba(11,37,69,.08)}
.ob-course.selected{border-color:var(--blue);background:var(--blue-soft);box-shadow:0 10px 20px rgba(47,111,237,.14)}
.ob-course-left{display:flex;align-items:center;gap:.9rem;min-width:0}
.ob-course-thumb{width:52px;height:52px;border-radius:10px;object-fit:cover;flex-shrink:0}
.ob-course-name{font-weight:700;color:var(--navy);font-size:.95rem}
.ob-course-tag{font-size:.78rem;color:var(--muted)}
.badge{
  font-size:.72rem;font-weight:700;padding:.3rem .65rem;border-radius:999px;white-space:nowrap;
}
.badge-free{background:#E4F8EE;color:var(--success)}
.badge-paid{background:var(--blue-light);color:var(--blue)}

.preview-box{
  border:1.5px solid var(--line);border-radius:16px;padding:1.5rem;margin-bottom:1.6rem;
  background:linear-gradient(180deg,var(--blue-soft),var(--white));
}
.preview-thumb{width:100%;height:140px;object-fit:cover;border-radius:12px;margin-bottom:1.1rem}
.preview-box h3{color:var(--navy);margin-bottom:.4rem;font-size:1.15rem}
.preview-box p{color:var(--muted);font-size:.9rem;margin-bottom:.9rem}
.preview-box ul{display:flex;flex-direction:column;gap:.5rem}
.preview-box li{font-size:.88rem;color:var(--ink)}
.preview-box li::before{content:"✓ ";color:var(--success);font-weight:700}

/* NAVBAR  */
.site{background:var(--white)}
.navbar{
  position:sticky;top:0;z-index:40;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:var(--maxw);margin:0 auto;padding:.95rem 1.5rem;
  display:flex;align-items:center;justify-content:space-between;gap:1.5rem;
}
.brand{display:flex;align-items:center;gap:.6rem}
.brand-logo{height:50px;width:auto;display:block}
.brand-mark{
  width: 40px;height:36px;border-radius:9px;background:var(--navy);color:var(--white);
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem;
}
.brand-name{font-weight:700;font-size:1.1rem;color:var(--navy)}
.brand-name em{font-style:normal;color:var(--blue)}
.nav-links{display:flex;gap:2rem}
.nav-links a{font-weight:500;font-size:.92rem;color:var(--ink);transition:.15s}
.nav-links a:hover{color:var(--blue)}
.nav-actions{display:flex;align-items:center;gap:1rem}
.cart-btn{position:relative;font-size:1.15rem;padding:.4rem}
.cart-count{
  position:absolute;top:-2px;right:-2px;background:var(--blue);color:#fff;font-size:.65rem;
  font-weight:700;border-radius:999px;min-width:17px;height:17px;display:flex;align-items:center;justify-content:center;
}
.nav-toggle{display:none;font-size:1.3rem}

/* HERO */
.hero{
  max-width:var(--maxw);margin:0 auto;padding:4.5rem 1.5rem 3rem;
  display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center;
}
.hero-eyebrow{color:var(--blue);font-weight:600;font-size:.85rem;margin-bottom:.9rem}
.hero h1{font-size:2.7rem;line-height:1.15;color:var(--navy);margin-bottom:1.1rem}
.hero-sub{color:var(--muted);font-size:1.05rem;max-width:480px;margin-bottom:1.6rem}
.hero-cta{display:flex;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}
.hero-note{font-size:.82rem;color:var(--muted)}
.hero-visual{position:relative;height:340px}
.hero-illustration{position:absolute;inset:0;width:100%;height:100%}
.hv-card{
  position:absolute;background:var(--white);border-radius:16px;box-shadow:var(--shadow);
  border:1px solid var(--line);padding:1.2rem;
}
.hv-card-1{top:0;right:0;width:240px}
.hv-label{font-size:.78rem;color:var(--muted);font-weight:600;display:block;margin-bottom:.7rem}
.hv-bar{height:8px;background:var(--blue-light);border-radius:6px;margin-bottom:.5rem;overflow:hidden}
.hv-bar span{display:block;height:100%;background:var(--blue);border-radius:6px}
.hv-card-2{
  bottom:20px;left:0;display:flex;align-items:center;gap:.6rem;width:220px;font-size:.85rem;font-weight:600;color:var(--navy);
}
.hv-check{
  width:26px;height:26px;border-radius:999px;background:#E4F8EE;color:var(--success);
  display:flex;align-items:center;justify-content:center;font-size:.85rem;flex-shrink:0;
}

/* STATS*/
.stats{
  background:var(--navy);color:var(--white);display:grid;grid-template-columns:repeat(4,1fr);
  padding:2.4rem 1.5rem;gap:1.5rem;
}
.stat{text-align:center;display:flex;flex-direction:column;gap:.3rem}
.stat strong{font-family:'Space Grotesk',sans-serif;font-size:1.9rem}
.stat span{font-size:.82rem;color:#B9C8E6}

/* SECTION HEAD */
.section-head{max-width:640px;margin:0 auto 2.6rem;text-align:center}
.section-head.left{margin:0 0 1.8rem;text-align:left}
.section-head h2{font-size:1.9rem;color:var(--navy);margin-bottom:.6rem}
.section-head p{color:var(--muted)}

/* WHY */
.why{max-width:var(--maxw);margin:0 auto;padding:5rem 1.5rem}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.8rem}
.why-item{border-top:3px solid var(--blue);padding-top:1.1rem}
.why-num{font-size:.8rem;font-weight:700;color:var(--blue)}
.why-item h3{color:var(--navy);margin:.5rem 0 .5rem;font-size:1.1rem}
.why-item p{color:var(--muted);font-size:.9rem}

/*  COURSES  */
.courses{background:var(--blue-soft);padding:5rem 1.5rem}
.course-grid{max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
.course-card{
  background:var(--white);border-radius:var(--radius);padding:1.5rem;border:1px solid var(--line);
  display:flex;flex-direction:column;gap:.8rem;transition:.2s;overflow:hidden;
}
.course-card:hover{box-shadow:var(--shadow);transform:translateY(-3px)}
.course-thumb{
  width:calc(100% + 3rem);margin:-1.5rem -1.5rem 0;display:block;
  height:150px;object-fit:cover;background:var(--blue-light);
}
.course-top{display:flex;justify-content:space-between;align-items:flex-start;gap:.6rem}
.course-icon{
  width:44px;height:44px;border-radius:10px;background:var(--blue-light);color:var(--blue);
  display:flex;align-items:center;justify-content:center;font-size:1.2rem;
}
.course-card h3{font-size:1.08rem;color:var(--navy)}
.course-card .desc{font-size:.88rem;color:var(--muted);flex:1}
.course-meta{font-size:.8rem;color:var(--muted)}
.course-actions{display:flex;gap:.6rem}
.course-actions .btn{flex:1;padding:.7rem;font-size:.85rem}
.price{font-weight:700;color:var(--navy)}

/* HOW IT WORKS  */
.how{max-width:var(--maxw);margin:0 auto;padding:5rem 1.5rem}
.how-steps{max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:1.6rem}
.how-steps li{display:flex;gap:1.2rem;align-items:flex-start}
.how-steps span{
  flex-shrink:0;width:38px;height:38px;border-radius:999px;background:var(--navy);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.95rem;
}
.how-steps h4{color:var(--navy);margin-bottom:.2rem;font-size:1.02rem}
.how-steps p{color:var(--muted);font-size:.9rem}

/* REGISTRATION */
.registration{padding:5rem 1.5rem;background:var(--navy)}
.reg-card{
  max-width:900px;margin:0 auto;background:var(--white);border-radius:20px;padding:2.6rem;
  display:grid;grid-template-columns:.8fr 1.2fr;gap:2.4rem;
}
.reg-card .section-head h2{font-size:1.5rem}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}
.field{display:flex;flex-direction:column;gap:.4rem}
.field label{font-size:.82rem;font-weight:600;color:var(--navy)}
.field input,.field select,.field textarea{
  border:1.5px solid var(--line);border-radius:8px;padding:.7rem .8rem;font-family:inherit;font-size:.9rem;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--blue)}
.checkbox-row{display:flex;gap:.6rem;align-items:flex-start;font-size:.82rem;color:var(--muted);margin-bottom:1.2rem}
.reg-confirm{margin-top:1rem;color:var(--success);font-weight:600;font-size:.88rem}

/* CONTACT  */
.contact{max-width:var(--maxw);margin:0 auto;padding:5rem 1.5rem}
.contact-grid{display:grid;grid-template-columns:1.3fr .8fr;gap:2.5rem}
.contact-form{display:flex;flex-direction:column;gap:1rem}
.contact-info{display:flex;flex-direction:column;gap:1.4rem}
.info-item{border-left:3px solid var(--blue);padding-left:1rem;display:flex;flex-direction:column}
.info-item strong{color:var(--navy);font-size:.92rem}
.info-item span{color:var(--muted);font-size:.88rem}

/*FOOTER  */
.footer{background:var(--navy);color:#C7D3E8;padding:3.5rem 1.5rem 1.5rem}
.footer-inner{max-width:var(--maxw);margin:0 auto;display:flex;justify-content:space-between;gap:3rem;flex-wrap:wrap}
.footer-brand .brand-name{color:var(--white)}
.footer-logo{height:42px;filter:brightness(0) invert(1);opacity:.92}
.footer-brand p{margin-top:.8rem;font-size:.85rem;max-width:260px;color:#9FB0CE}
.footer-links{display:flex;gap:3rem}
.footer-links h5{color:var(--white);font-size:.85rem;margin-bottom:.8rem}
.footer-links a{display:block;font-size:.85rem;margin-bottom:.5rem;color:#B9C8E6}
.footer-links a:hover{color:var(--white)}
.footer-bottom{
  max-width:var(--maxw);margin:2.4rem auto 0;padding-top:1.4rem;border-top:1px solid rgba(255,255,255,.12);
  font-size:.78rem;color:#8298BE;text-align:center;
}

/* MODAL (course detail)  */
.modal{
  position:fixed;inset:0;background:rgba(11,37,69,.55);display:none;align-items:center;justify-content:center;
  z-index:60;padding:1.5rem;
}
.modal.open{display:flex}
.modal-card{
  background:var(--white);border-radius:18px;max-width:560px;width:100%;max-height:85vh;overflow-y:auto;
  padding:2.2rem;position:relative;
}
.modal-close{position:absolute;top:1.1rem;right:1.1rem;font-size:1.1rem;color:var(--muted)}
.modal-close:hover{color:var(--navy)}
.modal-thumb{width:100%;height:190px;object-fit:cover;border-radius:14px;margin-bottom:1.2rem}
.modal-body h3{color:var(--navy);font-size:1.3rem;margin-bottom:.4rem}
.modal-body .price-line{color:var(--muted);margin-bottom:1.2rem;font-size:.9rem}
.modal-body h4{color:var(--navy);font-size:.95rem;margin:1.2rem 0 .6rem}
.lesson{
  display:flex;justify-content:space-between;align-items:center;padding:.7rem 0;
  border-bottom:1px solid var(--line);font-size:.9rem;
}
.lesson span.dur{color:var(--muted);font-size:.8rem}

/* CART DRAWER */
.drawer-backdrop{position:fixed;inset:0;background:rgba(11,37,69,.45);display:none;z-index:65}
.drawer-backdrop.open{display:block}
.cart-drawer{
  position:fixed;top:0;right:-380px;width:360px;max-width:90vw;height:100vh;background:var(--white);
  z-index:70;transition:right .25s ease;display:flex;flex-direction:column;box-shadow:-10px 0 30px rgba(0,0,0,.15);
}
.cart-drawer.open{right:0}
.cart-head{display:flex;justify-content:space-between;align-items:center;padding:1.3rem 1.4rem;border-bottom:1px solid var(--line)}
.cart-head h3{color:var(--navy)}
.cart-items{flex:1;overflow-y:auto;padding:1rem 1.4rem;display:flex;flex-direction:column;gap:1rem}
.cart-item{display:flex;justify-content:space-between;align-items:center;gap:.8rem;font-size:.9rem}
.cart-item .name{font-weight:600;color:var(--navy)}
.cart-item .rm{color:var(--muted);font-size:.78rem}
.cart-empty{color:var(--muted);font-size:.88rem;text-align:center;margin-top:2rem}
.cart-foot{padding:1.3rem 1.4rem;border-top:1px solid var(--line)}
.cart-total{display:flex;justify-content:space-between;margin-bottom:1rem;font-weight:700;color:var(--navy)}

/*  RESPONSIVE */
@media (max-width:900px){
  .hero{grid-template-columns:1fr}
  .hero-visual{height:280px;order:-1;margin-bottom:.5rem}
  .why-grid{grid-template-columns:1fr 1fr}
  .course-grid{grid-template-columns:1fr 1fr}
  .reg-card{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .nav-links{
    position:fixed;top:64px;left:0;right:0;background:var(--white);flex-direction:column;
    padding:1.2rem 1.5rem;border-bottom:1px solid var(--line);display:none;gap:1rem;
  }
  .nav-links.open{display:flex}
  .nav-toggle{display:block}
  .role-grid{grid-template-columns:1fr}
  .why-grid,.course-grid{grid-template-columns:1fr}
  .field-row{grid-template-columns:1fr}
  .hero h1{font-size:2rem}
  .hero-visual{height:220px}
  .hv-card-1{width:190px;padding:.9rem}
  .hv-card-2{width:180px;font-size:.78rem}
}
