/* =========================================================
   Khóa học ứng dụng A.I – Học viện Marketing Hoa Sen
   ========================================================= */
:root {
  --navy: #000947;
  --navy-2: #081360;
  --blue: #1226b7;
  --blue-2: #24329b;
  --blue-bright: #0068ff;
  --violet: #4634e2;
  --plum: #331a64;
  --plum-2: #452485;
  --cyan: #67fcfe;
  --cyan-2: #5ce1e6;
  --yellow: #ffde59;
  --orange: #ffae0f;
  --red: #ff1616;
  --ink: #0b0b2f;
  --white: #ffffff;
  --radius: 20px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --script: "Dancing Script", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--white);
  background: var(--navy);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

section { position: relative; padding: 56px 0; overflow: hidden; }

.hl-yellow { color: var(--yellow); }
.hl-orange { color: var(--orange); }

/* ---------- Tiêu đề chung ---------- */
.values__title, .showcase__title, .intro__title, .help__title,
.formula__title, .perks__title, .pain__title {
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  font-size: clamp(28px, 4.4vw, 50px);
  letter-spacing: .5px;
}
.script-title {
  font-family: var(--script);
  font-weight: 700;
  color: var(--cyan-2);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.1;
  text-align: center;
}
.script-title--light { color: #f3f4f5; }

/* ---------- Nút CTA ---------- */
.cta-wrap { display: flex; justify-content: center; margin-top: 40px; }
.cta-wrap--top { margin: 0 0 36px; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(400px, 100%);
  padding: 18px 36px;
  border-radius: 999px;
  background: linear-gradient(#ffab15, #ffee2a);
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.1;
  text-decoration: none;
  letter-spacing: .5px;
  box-shadow: 0 10px 30px rgba(255, 171, 21, .35), inset 0 -4px 0 rgba(0, 0, 0, .12);
  animation: pulse 2.2s ease-in-out infinite;
  transition: transform .15s ease, filter .15s ease;
}
.cta:hover { filter: brightness(1.05); transform: translateY(-2px); }
.cta:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(255, 171, 21, .35), 0 0 0 0 rgba(255, 222, 89, .55), inset 0 -4px 0 rgba(0,0,0,.12); }
  50% { box-shadow: 0 10px 30px rgba(255, 171, 21, .35), 0 0 0 14px rgba(255, 222, 89, 0), inset 0 -4px 0 rgba(0,0,0,.12); }
}

/* ---------- Đồng hồ đếm ngược ---------- */
.countdown { display: flex; gap: 10px; }
.countdown__item {
  min-width: 88px;
  padding: 6px 10px 4px;
  border-radius: 10px;
  background: linear-gradient(180deg, #0c1c6e, #050f45);
  border: 1px solid rgba(103, 252, 254, .35);
  text-align: center;
  box-shadow: inset 0 0 18px rgba(103, 252, 254, .12);
}
.countdown__item span {
  display: block;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.countdown__item small {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.countdown--lg { justify-content: center; margin: 10px 0 12px; }

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 18px 0 56px;
  background: var(--navy) url("/img/hero-bg.webp") center top / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 9, 71, .25), rgba(0, 9, 71, .05) 40%, rgba(0, 9, 71, .35));
  pointer-events: none;
}
.hero .container { z-index: 1; }

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-left: 80px;
}
.hero__seats { font-size: 24px; font-weight: 700; }

.hero__grid {
  display: grid;
  grid-template-columns: 340px 1fr 150px;
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.hero__portrait { position: relative; }
.hero__photo {
  aspect-ratio: 380 / 480;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero__name { text-align: center; margin-top: 28px; }
.hero__pill {
  display: inline-block;
  padding: 4px 34px;
  border-radius: 24px;
  background: var(--cyan-2);
  color: #1c00c2;
  font-weight: 900;
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
}
.hero__role { display: block; margin-top: 4px; font-weight: 700; font-style: italic; font-size: 18px; }

.hero__main { text-align: center; padding-top: 18px; }
.hero__academy {
  color: var(--cyan);
  font-size: clamp(18px, 2.7vw, 32px);
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.4;
}
.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 1px 2px 3px var(--cyan);
}
.hero__offer {
  max-width: 420px;
  margin: 24px auto 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--orange);
  background: rgba(0, 9, 71, .35);
  backdrop-filter: blur(2px);
}
.hero__offer-title { font-size: 22px; font-weight: 900; }
.hero__offer-seats { font-size: 22px; font-weight: 900; color: var(--orange); }
.hero__offer-line { font-size: 18px; font-weight: 700; }
.hero__offer-date { font-size: 20px; font-weight: 700; margin-top: 2px; }

.hero__ribbon {
  display: inline-block;
  margin: 40px auto 0;
  padding: 10px 26px;
  background: linear-gradient(90deg, #6a40ff, #5a32ff 70%, #6f5bff);
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
  font-size: 17px;
  font-weight: 700;
}
.hero__lead { max-width: 500px; margin: 10px auto 22px; color: #d6e4ff; font-size: 16px; }
.hero .cta { min-width: min(380px, 100%); }

.hero__orbs { position: relative; height: 640px; margin-top: -10px; }
.orb {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(103, 252, 254, .6);
  box-shadow: 0 0 30px rgba(103, 252, 254, .45);
  animation: float 6s ease-in-out infinite;
}
@media (min-width: 1101px) { .hero__title { white-space: nowrap; } }
.orb--1 { width: 187px; height: 187px; top: 0; right: -60px; }
.orb--2 { width: 108px; height: 108px; top: 250px; right: -110px; animation-delay: -1.5s; }
.orb--3 { width: 250px; height: 250px; top: 260px; left: -40px; animation-delay: -3s; }
.orb--4 { width: 131px; height: 131px; top: 500px; right: -90px; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* =========================================================
   2. GIÁ TRỊ
   ========================================================= */
.values { background: var(--navy) url("/img/values-bg.webp") center / cover no-repeat; }
.values__title { color: var(--yellow); margin-bottom: 28px; }
.values__stage { position: relative; }
.values__banner {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: .9;
}
.values__cols {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 890px;
  margin: 0 auto;
  padding: 90px 0 30px;
}
.values__list {
  list-style: none;
  margin: 0;
  padding: 16px 16px 8px;
  counter-reset: v var(--start, 0);
}
.values__list--light { background: #f3f4f5; color: var(--ink); --num-bg: #1c00c2; --num-c: #fff; }
.values__list--dark { background: linear-gradient(90deg, #6a60f9, #0a61fd); color: #fff; counter-reset: v 5; --num-bg: var(--cyan); --num-c: #0a1a6b; }
.values__list li {
  position: relative;
  padding-left: 42px;
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.45;
  counter-increment: v;
}
.values__list li::before {
  content: counter(v);
  position: absolute;
  left: 0; top: 2px;
  width: 30px; height: 30px;
  border-radius: 5px;
  background: var(--num-bg);
  color: var(--num-c);
  font-weight: 900;
  font-size: 16px;
  display: grid;
  place-items: center;
}
.values__list b { font-weight: 700; }

.features {
  list-style: none;
  margin: 0;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.15fr;
  gap: 24px;
  background: var(--blue-2);
  border-radius: 0 0 30px 30px;
}
.features li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.4; }
.features__icon {
  flex: none;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(103, 252, 254, .2);
  display: grid;
  place-items: center;
}
.features__icon svg {
  width: 60px; height: 60px;
  padding: 13px;
  border-radius: 50%;
  background: var(--cyan);
  fill: var(--navy);
}

/* =========================================================
   3. THƯ VIỆN ẢNH
   ========================================================= */
.showcase { background: var(--navy); }
.showcase__title { color: var(--cyan); }
.showcase__sub {
  text-align: center;
  color: var(--blue-bright);
  font-weight: 900;
  font-size: clamp(24px, 3.6vw, 42px);
  margin-top: 6px;
}
.gallery { max-width: 760px; margin: 28px auto 0; }
.gallery__view {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #050d3c;
  border-radius: 8px;
  overflow: hidden;
}
.gallery__main { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s ease; }
.gallery__main.is-fading { opacity: 0; }
.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.gallery__nav:hover { background: rgba(0, 0, 0, .7); }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.gallery__thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  opacity: .65;
  transition: opacity .2s, border-color .2s;
}
.gallery__thumbs button.is-active, .gallery__thumbs button:hover { opacity: 1; border-color: var(--cyan); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   4. GIỚI THIỆU
   ========================================================= */
.intro { background: var(--navy) url("/img/intro-glow.webp") center 20px / 160% auto no-repeat; }
.intro__title { color: var(--orange); }
.intro__card {
  max-width: 890px;
  margin: 30px auto 0;
  border: 1px solid #073a91;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-2);
}
.intro__img { width: 100%; aspect-ratio: 1024 / 380; object-fit: cover; }
.intro__text { padding: 20px 22px 24px; border-top: 1px solid var(--blue-2); }
.intro__text p { margin-bottom: 10px; }
.intro__text p:last-child { margin-bottom: 0; }

/* =========================================================
   5. VẤN ĐỀ
   ========================================================= */
.pain { background: var(--navy); }
.pain__title { color: var(--red); font-size: clamp(44px, 7vw, 80px); }
.pain__img { max-width: 620px; margin: 22px auto 0; width: 100%; border-radius: 6px; }

/* =========================================================
   6. KHÓA HỌC GIÚP BẠN
   ========================================================= */
.help { background: var(--navy); }
.help__deco {
  position: absolute;
  width: 930px;
  top: -520px;
  right: -380px;
  pointer-events: none;
  opacity: .9;
}
.help__box {
  background: var(--blue);
  border-radius: 30px;
  padding: 40px 20px 46px;
}
.help__title { color: var(--orange); }
.help__img { max-width: 705px; width: 100%; margin: 30px auto 0; border-radius: 6px; }

/* =========================================================
   7. CÔNG THỨC
   ========================================================= */
.formula { background: var(--violet); }
.formula__kicker { text-align: center; font-weight: 900; font-size: clamp(17px, 2.2vw, 26px); line-height: 1.3; }
.formula__title { color: var(--orange); margin-top: 10px; }
.formula__imgs { max-width: 600px; margin: 28px auto 0; }
.formula__imgs img { width: 100%; }

/* =========================================================
   8. LỢI ÍCH
   ========================================================= */
.perks { background: var(--blue); }
.perks__title { color: var(--red); margin-top: 4px; }
.perks__img { max-width: 812px; width: 100%; margin: 24px auto 0; }

/* =========================================================
   9. GIẢNG VIÊN
   ========================================================= */
.trainer { background: var(--plum); }
.trainer__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
  max-width: 980px;
}
.trainer__role { font-weight: 700; font-size: 18px; text-align: center; }
.trainer__name {
  color: var(--yellow);
  font-weight: 900;
  font-size: clamp(34px, 4vw, 42px);
  text-align: center;
  line-height: 1.3;
}
.trainer__tagline { font-weight: 700; font-size: 17px; text-align: center; max-width: 580px; margin: 6px auto 22px; }
.trainer__list { list-style: none; margin: 0 auto; padding: 0; max-width: 480px; font-size: 17px; }
.trainer__list > li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.trainer__list > li::before { content: "💎"; position: absolute; left: 0; top: 0; }
.trainer__list ol { margin: 4px 0 0; padding-left: 22px; }
.trainer__photo { width: 100%; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }

/* =========================================================
   10. FORM
   ========================================================= */
.signup { background: var(--plum-2); padding-top: 24px; }
.signup__banner { max-width: 703px; width: 100%; margin: 0 auto; }
.form {
  max-width: 400px;
  margin: 20px auto 0;
  padding: 0;
}
.form__field { margin-bottom: 14px; }
.form label, .form legend { font-weight: 700; font-size: 15px; }
.form__field label { display: block; margin-bottom: 4px; }
.form__field label span { color: var(--yellow); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.form input:focus { outline: 3px solid var(--cyan); outline-offset: 1px; }
.form input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 2px rgba(255, 22, 22, .35); }
.form__error { min-height: 0; color: #ffd0d0; font-size: 13.5px; margin-top: 4px; }
.form__error:empty { display: none; }
.form__group { border: 0; margin: 0 0 14px; padding: 0; }
.form__group legend { padding: 0; margin-bottom: 6px; }
.form__group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  padding: 6px 4px;
  cursor: pointer;
}
.form__group input { width: 18px; height: 18px; accent-color: var(--red); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit {
  width: 100%;
  height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #f1f3f4;
  font: inherit;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 22, 22, .35);
  transition: filter .15s, transform .15s;
}
.form__submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.form__submit:disabled { opacity: .7; cursor: wait; transform: none; }
.form__status { margin-top: 12px; text-align: center; font-weight: 500; }
.form__status.is-error { color: #ffd0d0; }

/* =========================================================
   11. FOOTER
   ========================================================= */
.footer { background: var(--navy-2); padding: 56px 0 90px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.footer__brand { font-weight: 900; font-size: 20px; margin-bottom: 22px; }
.footer__heading { font-weight: 700; margin: 46px 0 14px; }
.footer__contact { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer__contact svg { flex: none; width: 22px; height: 22px; fill: #fff; }
.footer__contact a { color: var(--yellow); text-decoration: none; font-weight: 700; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #001943;
  display: grid;
  place-items: center;
}
.footer__social svg { width: 26px; height: 26px; fill: currentColor; }
.footer__social a:first-child svg { width: 40px; height: 40px; }
.footer__copy { text-align: center; color: rgba(255, 255, 255, .55); font-size: 13px; margin-top: 30px; }

/* ---------- Nút nổi ---------- */
.floating {
  position: fixed;
  right: 16px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}
.floating__btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}
.floating__btn--zalo { background: var(--blue-bright); color: #fff; font-weight: 900; font-size: 15px; }
.floating__btn--phone { background: linear-gradient(var(--orange), #ffee2a); animation: ring 2.4s ease-in-out infinite; }
.floating__btn--phone svg { width: 28px; height: 28px; fill: var(--navy); }
@keyframes ring {
  0%, 60%, 100% { transform: rotate(0); }
  65%, 75%, 85% { transform: rotate(-12deg); }
  70%, 80%, 90% { transform: rotate(12deg); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 330px 1fr; }
  .hero__orbs { display: none; }
  .hero__bar { padding-left: 0; justify-content: center; }
}

@media (max-width: 860px) {
  section { padding: 44px 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__main { display: contents; }
  .hero__academy { order: 1; padding-top: 14px; }
  .hero__title { order: 2; }
  .hero__portrait { order: 3; max-width: 250px; margin: 18px auto 0; width: 100%; }
  .hero__name { margin-top: 14px; }
  .hero__pill { font-size: 20px; padding: 3px 24px; }
  .hero__bar .countdown { display: none; }
  .hero__offer { order: 4; width: 100%; }
  .hero__ribbon { order: 5; margin-top: 26px; justify-self: center; }
  .hero__lead { order: 6; }
  .hero .cta { order: 7; justify-self: center; }
  .hero__main > * { text-align: center; }
  .hero__seats { font-size: 20px; text-align: center; width: 100%; }
  .hero__bar { gap: 10px; }

  .values__cols { grid-template-columns: 1fr; padding-top: 140px; }
  .features { grid-template-columns: 1fr; gap: 14px; }

  .trainer__grid { grid-template-columns: 1fr; gap: 24px; }
  .trainer__photo { max-width: 300px; margin: 0 auto; order: -1; }

  .footer__grid { grid-template-columns: 1fr; gap: 0; }
  .footer__heading { margin-top: 18px; }
  .help__deco { width: 600px; top: -330px; right: -300px; }
}

@media (max-width: 480px) {
  .countdown { gap: 6px; }
  .countdown__item { min-width: 72px; }
  .countdown__item span { font-size: 28px; }
  .hero__offer-title, .hero__offer-seats { font-size: 18px; }
  .hero__offer-line { font-size: 16px; }
  .hero__ribbon { font-size: 14.5px; padding: 8px 18px; }
  .cta { padding: 16px 22px; min-width: 100%; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .gallery__thumbs button:nth-child(n+5) { display: none; }
  .values__cols { padding-top: 110px; }
  .values__list li { font-size: 15px; }
  .floating__btn { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
