/* ============================================================
   AI ENGINEERING MASTERCLASS — STYLESHEET
   ============================================================= */

:root {
  --green: #22C55E;
  --green-dark: #16A34A;
  --green-pale: #E9FBEE;
  --lime: #84CC16;
  --navy: #0B0F1A;
  --navy-soft: #131A2A;
  --purple: #7C3AED;
  --purple-pale: #F1EAFE;
  --blue: #3B82F6;
  --blue-pale: #E9F1FE;
  --orange: #F97316;
  --orange-pale: #FFF1E6;
  --pink: #EC4899;
  --pink-pale: #FDECF4;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FB;
  --ink: #12141C;
  --ink-soft: #5B5F6B;
  --line: #E7E8ED;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.19,1,.22,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, .brand__title { font-family: 'Poppins', sans-serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 32px; }
.text-gradient { background: linear-gradient(120deg, var(--green-dark), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-green { color: var(--green-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 100px; font-weight: 600; font-size: 14.5px;
  border: none; position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--lg { padding: 16px 30px; font-size: 15.5px; }
.btn--primary { background: linear-gradient(120deg, var(--green), var(--lime)); color: #fff; box-shadow: 0 10px 24px rgba(34,197,94,.35); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(34,197,94,.45); }
.btn--outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn__play { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }

.ripple-span { position: absolute; border-radius: 50%; background: rgba(255,255,255,.5); transform: scale(0); animation: rippleAnim .6s ease-out; pointer-events: none; }
@keyframes rippleAnim { to { transform: scale(3); opacity: 0; } }

.pill { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; padding: 8px 16px; border-radius: 100px; margin-bottom: 20px; }
.pill--green { background: var(--green-pale); color: var(--green-dark); }

/* ---------- Section head ---------- */
.section-head { text-align: center; margin-bottom: 46px; position: relative; }
.section-head h2 { font-size: 26px; font-weight: 800; letter-spacing: .5px; }
.section-head--left { text-align: left; }
.section-head--sm h3 { font-size: 18px; font-weight: 700; letter-spacing: .3px; }
.section-head--sm { margin-bottom: 22px; }

section { padding: 90px 0; }

/* ============================================================
   NAVBAR
============================================================= */
.navbar { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 32px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--green-dark));
  color: #fff; font-family: 'Poppins'; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand__title { font-size: 13px; font-weight: 800; line-height: 1.15; color: var(--ink); letter-spacing: .3px; }
.brand__title-accent { color: var(--green-dark); }
.brand__sub { font-size: 10.5px; color: var(--ink-soft); display: block; }

.navbar__links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.navbar__links a:hover { color: var(--ink); }
.navbar__links a.is-active { color: var(--purple); font-weight: 600; border-bottom: 2px solid var(--purple); padding-bottom: 4px; }

.burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============================================================
   HERO
============================================================= */
.hero { padding: 70px 0 60px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -100px; right: -140px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(34,197,94,.12), transparent 70%); border-radius: 50%;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; position: relative; z-index: 2; }

.hero__script { font-family: 'Dancing Script', cursive; font-size: 26px; color: var(--ink); margin-bottom: -6px; }
.hero__heading { font-size: clamp(40px, 5vw, 58px); font-weight: 800; letter-spacing: -1px; line-height: 1.05; margin-bottom: 6px; }
.hero__subheading { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; margin-bottom: 20px; line-height: 1.3; }
.hero__desc { color: var(--ink-soft); font-size: 15px; max-width: 480px; margin-bottom: 22px; }

.hero__checklist {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
  font-size: 14px; font-weight: 500; margin-bottom: 30px; max-width: 520px;
}

.hero__cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

.hero__trust { display: flex; align-items: center; gap: 14px; }
.hero__avatars { display: flex; }
.hero__avatars img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -10px; }
.hero__avatars img:first-child { margin-left: 0; }
.hero__rating { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: 13px; }
.hero__stars { color: #FBBF24; font-size: 13px; letter-spacing: 1px; }
.hero__trust p { font-size: 12.5px; color: var(--ink-soft); max-width: 260px; }

/* --- Hero visual --- */
.hero__visual { position: relative; height: 520px; display: flex; align-items: center; justify-content: center; }

.fc-academy {
  position: absolute; top: -8px; right: 0; display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; color: var(--ink); text-align: left; line-height: 1.2;
}
.fc-academy__icon { font-size: 20px; color: var(--navy); }

.hero__photo-glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.25), transparent 70%);
  filter: blur(10px);
}
.hero__photo {
  position: relative; width: 300px; height: 420px; border-radius: 160px 160px 24px 24px;
  overflow: hidden; box-shadow: 0 30px 60px rgba(11,15,26,.2);
  border: 4px solid #fff;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.float-card {
  position: absolute; background: #fff; border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(11,15,26,.14);
  padding: 10px; width: 148px;
  animation: floatCard 5s ease-in-out infinite;
}
.float-card__tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: #fff;
  padding: 4px 10px; border-radius: 8px; margin-bottom: 8px;
}
.tag--purple { background: var(--purple); }
.tag--blue { background: var(--blue); }
.tag--pink { background: var(--pink); }
.tag--indigo { background: #4F46E5; }

.float-card__body { display: flex; flex-direction: column; gap: 8px; }
.float-card__thumb {
  height: 62px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.thumb--site { background: linear-gradient(135deg, #E9F1FE, #DCE9FD); }
.thumb--video { background: #111; }
.thumb--video .play-dot { color: #fff; background: rgba(255,255,255,.15); border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.thumb--logo { background: var(--pink-pale); color: var(--pink); }
.thumb--article { background: var(--purple-pale); color: var(--purple); font-family: 'Poppins'; }
.float-card__status { font-size: 10.5px; color: var(--ink-soft); font-weight: 600; }

.float-card--website { top: 8%; left: -6%; animation-delay: 0s; }
.float-card--video { top: 4%; right: -8%; animation-delay: .6s; }
.float-card--logo { bottom: 26%; left: -12%; animation-delay: 1.2s; }
.float-card--article { bottom: 10%; right: -6%; animation-delay: 1.8s; }

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

/* ============================================================
   TRUST STRIP
============================================================= */
.trust { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__inner { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; justify-content: center; }
.trust__label { font-size: 13px; color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.trust__logos { display: flex; gap: 34px; flex-wrap: wrap; align-items: center; }
.trust__logo { font-family: 'Poppins'; font-weight: 600; font-size: 16px; color: var(--ink-soft); }
.trust__logo--claude { font-family: 'Dancing Script'; font-weight: 700; font-size: 19px; color: var(--orange); }
.trust__logo--canva { font-family: 'Dancing Script'; font-weight: 700; font-size: 19px; color: #7C3AED; }

/* ============================================================
   WHAT YOU WILL LEARN
============================================================= */
.learn { background: var(--bg-alt); }
.learn__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.learn-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px 20px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.learn-card:hover { transform: translateY(-6px); box-shadow: 0 20px 34px rgba(11,15,26,.08); }
.learn-card__icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.icon--purple { background: var(--purple-pale); }
.icon--green { background: var(--green-pale); }
.icon--orange { background: var(--orange-pale); }
.icon--pink { background: var(--pink-pale); }
.icon--blue { background: var(--blue-pale); }
.learn-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.learn-card p { font-size: 13px; color: var(--ink-soft); }

/* ============================================================
   HOW IT WORKS + INSTRUCTOR
============================================================= */
.how-instructor__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: stretch; }

.how { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.how__row { display: flex; align-items: flex-start; gap: 6px; }
.how-step { flex: 1; text-align: center; }
.how-step__icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 12px; }
.how-step__num { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.how-step__desc { font-size: 12px; color: var(--ink-soft); }
.how__arrow { color: var(--ink-soft); font-size: 16px; margin-top: 18px; flex-shrink: 0; }

.instructor {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; justify-content: space-between;
}
.instructor__label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--green); margin-bottom: 18px; }
.instructor__row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.instructor__photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2px solid var(--green); flex-shrink: 0; }
.instructor__photo img { width: 100%; height: 100%; object-fit: cover; }
.instructor__name { font-family: 'Dancing Script'; font-size: 22px; color: var(--green); font-weight: 700; }
.instructor__role { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--green); margin-top: 2px; }
.instructor__org { font-size: 12.5px; color: #CBD1DC; }
.instructor__bio { font-size: 13.5px; color: #B7BECC; margin-bottom: 22px; line-height: 1.6; }
.instructor__socials { display: flex; gap: 10px; }
.instructor__socials a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  transition: background .2s;
}
.instructor__socials a:hover { background: var(--green); color: var(--navy); }

/* ============================================================
   BADGE STRIP
============================================================= */
.badge-strip { background: var(--navy-soft); padding: 26px 0; }
.badge-strip__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.badge-item { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 12.5px; }
.badge-item__icon {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}
.badge-item b { display: block; }

/* ============================================================
   THREE COLUMN: CURRICULUM / WHY / STORIES
============================================================= */
.three-col__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 34px; align-items: start; }

/* Accordion (curriculum) */
.accordion__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; border-bottom: 1px solid var(--line);
  padding: 13px 4px; text-align: left; font-size: 14px; font-weight: 500; color: var(--purple);
}
.accordion__trigger span { color: var(--purple); font-weight: 700; }
.accordion__trigger[aria-expanded="true"] span { transform: rotate(45deg); display: inline-block; }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.accordion__panel p { padding: 10px 4px 16px; font-size: 13px; color: var(--ink-soft); }

/* Why list */
.why-list { display: flex; flex-direction: column; gap: 12px; font-size: 14px; font-weight: 500; }

/* Testimonial */
.testi-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; overflow: hidden; }
.testi-card__quote { font-family: 'Poppins'; font-size: 46px; color: var(--green-dark); opacity: .3; line-height: 1; position: absolute; top: 12px; right: 20px; }
.testi-track { display: flex; transition: transform .5s var(--ease); }
.testi-slide { min-width: 100%; }
.testi-slide p { font-size: 14.5px; color: var(--ink); margin-bottom: 18px; position: relative; z-index: 2; }
.testi-person { display: flex; align-items: center; gap: 10px; }
.testi-person img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testi-person span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.testi-dots { display: flex; gap: 8px; margin-top: 16px; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: none; }
.testi-dots button.is-active { background: var(--green-dark); }

/* ============================================================
   FINAL CTA BANNER
============================================================= */
.cta-banner { background: linear-gradient(115deg, #4C1D95, #7C3AED 55%, #5B21B6); position: relative; overflow: hidden; padding: 46px 0; }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; z-index: 2; }
.cta-banner__laptop { font-size: 46px; position: relative; flex-shrink: 0; }
.cta-banner__ai-tag { position: absolute; top: -6px; right: -14px; background: var(--green); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 6px; }
.cta-banner__content { flex: 1; min-width: 240px; }
.cta-banner__content h2 { color: #fff; font-size: clamp(20px, 3vw, 28px); font-weight: 800; margin-bottom: 6px; }
.cta-banner__content p { color: #E4D9FA; font-size: 14px; }
.cta-banner__action { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cta-banner__limited { color: #FDE68A; font-size: 12px; font-weight: 600; }
.cta-banner__bot { font-size: 44px; flex-shrink: 0; }

/* ============================================================
   FOOTER
============================================================= */
.footer { background: var(--navy); color: #B7BECC; padding-top: 60px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1fr; gap: 30px; padding-bottom: 40px; }
.brand--footer .brand__title { color: #fff; }
.footer__brand p { font-size: 12.5px; margin-top: 12px; }
.footer__tagline { color: #7B8296; margin-top: 10px; max-width: 240px; }
.footer__col h5 { color: #fff; font-size: 12.5px; letter-spacing: .5px; margin-bottom: 16px; }
.footer__col a, .footer__location { display: block; font-size: 13px; margin-bottom: 10px; color: #B7BECC; }
.footer__col a:hover { color: #fff; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; font-size: 12.5px; color: #7B8296; }

/* ============================================================
   BACK TO TOP
============================================================= */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: linear-gradient(120deg, var(--green), var(--lime)); color: #fff; font-size: 18px;
  box-shadow: 0 10px 24px rgba(34,197,94,.4);
}
.back-to-top[hidden] { display: none; }

/* ============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 1080px) {
  .learn__grid { grid-template-columns: repeat(3, 1fr); }
  .how-instructor__grid { grid-template-columns: 1fr; }
  .three-col__grid { grid-template-columns: 1fr 1fr; }
  .col-stories { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .navbar__links { display: none; }
  .navbar > .wrap > .btn { display: none; }
  .burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 420px; margin-top: 20px; }
  .hero__checklist { grid-template-columns: 1fr; }
  .how__row { flex-wrap: wrap; }
  .how__arrow { display: none; }
  .how-step { flex: 0 0 40%; margin-bottom: 20px; }
  .badge-strip__row { justify-content: flex-start; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .wrap { padding: 0 20px; }
  .learn__grid { grid-template-columns: 1fr 1fr; }
  .three-col__grid { grid-template-columns: 1fr; }
  .col-stories { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-banner__inner { justify-content: center; text-align: center; }
  .hero__photo { width: 240px; height: 340px; }
  .float-card { width: 128px; }
}

/* Mobile nav flyout */
@media (max-width: 900px) {
  .navbar__links.is-open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 20px 32px; gap: 16px;
  }
}
