/* =========================================================
   JIUFA — LANDING PAGE — MOBILE LAYOUT
   1 cột, cuộn dọc, menu overlay, carousel ngang cho các mục dài.
   ========================================================= */

#site-mobile{
  max-width: 100%;
  padding-bottom: 78px; /* chỗ cho CTA bar dưới */
  position: relative;
}

/* ---------- Topbar ---------- */
.m-nav{
  position: sticky; top:0; z-index: 60;
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 16px;
  background: rgba(10,12,22,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.m-nav .logo{ display:flex; align-items:center; gap:8px; }
.m-nav .logo .glyph{
  width:30px; height:30px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, var(--arcane-2), var(--arcane));
  box-shadow: var(--glow-arcane);
  display:grid; place-items:center; font-weight:900; color:#0b0e1a; font-size:13px;
}
.m-nav .logo .txt{ font-family: var(--font-display); font-size: 18px; letter-spacing:.04em; color: var(--gold-strong); }
.m-burger{
  width: 38px; height: 38px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--bg-panel-2);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
}
.m-burger span{ width: 16px; height: 2px; background: var(--gold-strong); border-radius:2px; transition: transform .2s ease, opacity .2s ease; }
.m-burger.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.m-burger.open span:nth-child(2){ opacity:0; }
.m-burger.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.m-menu{
  position: fixed; inset: 0; z-index: 55;
  background: rgba(6,7,14,0.97);
  padding: 90px 24px 24px;
  display:flex; flex-direction:column; gap: 6px;
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.m-menu.open{ transform: translateY(0); }
.m-menu a{
  font-family: var(--font-display);
  font-size: 21px; color: var(--text-hi); padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.m-menu .btn{ margin-top: 20px; justify-content:center; }

/* ---------- Hero ---------- */
.m-hero{ position: relative; padding: 46px 20px 40px; text-align:center; overflow:hidden; }
.m-hero::before{
  content:"";
  position:absolute; inset: -10% -30% auto -30%; height: 120%;
  background:
    radial-gradient(400px 300px at 30% 10%, rgba(155,107,255,0.24), transparent 60%),
    radial-gradient(400px 320px at 80% 20%, rgba(232,193,92,0.18), transparent 55%);
  z-index: -1;
}
.m-hero .eyebrow{ justify-content:center; display:flex; margin-bottom: 14px; }
.m-hero h1{
  font-family: var(--font-display);
  font-size: 38px; line-height: 1.12; margin: 0 0 14px; color: var(--text-hi);
}
.m-hero h1 span{ color: var(--gold-strong); text-shadow: 0 0 24px rgba(232,193,92,0.4); }
.m-hero p{ font-size: 14.5px; line-height: 1.7; color: var(--text); margin: 0 auto 26px; max-width: 360px; }
.m-hero-art{
  aspect-ratio: 1/1; max-width: 260px; margin: 0 auto 26px;
  border-radius: var(--radius-l);
  background: linear-gradient(165deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  display:grid; place-items:center; font-size: 92px;
}
.m-hero-actions{ display:flex; flex-direction:column; gap: 10px; max-width: 320px; margin: 0 auto; }
.m-hero-actions .btn{ width: 100%; }
.m-hero-stats{ display:flex; justify-content:center; gap: 26px; margin-top: 28px; }
.m-hero-stats div strong{ display:block; font-family: var(--font-display); font-size: 20px; color: var(--gold-strong); }
.m-hero-stats div span{ font-size: 10px; color: var(--text-faint); letter-spacing:.03em; text-transform:uppercase; }

/* ---------- Section chung ---------- */
.m-section{ padding: 56px 20px; }
.m-section-head{ text-align:center; margin-bottom: 30px; }
.m-section-head .eyebrow{ display:flex; justify-content:center; margin-bottom: 10px; }
.m-section-head h2{ font-family: var(--font-display); font-size: 25px; color: var(--text-hi); margin: 0 0 10px; }
.m-section-head h2 em{ font-style:normal; color: var(--gold-strong); }
.m-section-head p{ font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }

/* ---------- Story ---------- */
.m-story-art{
  aspect-ratio: 16/10; border-radius: var(--radius-l);
  background: linear-gradient(165deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line);
  display:grid; place-items:center; font-size: 60px;
  margin-bottom: 22px;
}
.m-story-body p{ font-size: 13.5px; line-height: 1.8; color: var(--text); margin: 0 0 14px; }

/* ---------- Features ---------- */
.m-features-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-feature-card{
  background: linear-gradient(165deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 14px;
}
.m-feature-card .ic-box{
  width: 42px; height: 42px; border-radius: 12px;
  display:grid; place-items:center; margin-bottom: 12px;
  background: linear-gradient(160deg, rgba(155,107,255,0.22), rgba(90,209,201,0.12));
  border: 1px solid var(--line);
}
.m-feature-card h3{ font-size: 13.5px; color: var(--text-hi); margin: 0 0 6px; font-family: var(--font-display); }
.m-feature-card p{ font-size: 11.5px; color: var(--text-dim); line-height: 1.55; margin:0; }

/* ---------- Scroller ngang (classes / world / shots) ---------- */
.m-hscroll{
  display:flex; gap: 12px; overflow-x: auto;
  padding-bottom: 6px; scroll-snap-type: x mandatory;
  margin: 0 -20px; padding-left: 20px; padding-right: 20px;
}
.m-hscroll::-webkit-scrollbar{ height: 0; }
.m-hscroll > *{ scroll-snap-align: start; flex: 0 0 auto; }

.m-class-card{
  width: 168px;
  border-radius: var(--radius-l);
  background: linear-gradient(165deg, var(--bg-panel-2), var(--bg-void));
  border: 1px solid var(--line);
  padding: 20px 16px;
  text-align:center;
}
.m-class-card .ic-box{ display:flex; justify-content:center; margin-bottom: 10px; }
.m-class-card h3{ font-family: var(--font-display); font-size: 14.5px; color: var(--text-hi); margin: 0 0 4px; }
.m-class-card .role{ display:block; font-size: 10px; letter-spacing:.06em; text-transform:uppercase; color: var(--gold-dim); margin-bottom: 8px; }
.m-class-card p{ font-size: 11px; color: var(--text-dim); line-height: 1.5; margin: 0 0 10px; }
.m-class-card .skill{ font-size: 10.5px; color: var(--arcane-2); border-top: 1px solid var(--line-soft); padding-top: 10px; font-weight:600; }

.m-world-card{
  width: 220px; border-radius: var(--radius-l); overflow:hidden;
  background: var(--bg-panel); border: 1px solid var(--line);
}
.m-world-card .art{
  height: 120px; display:grid; place-items:center; font-size: 38px;
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-void));
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.m-world-card .art .lv{
  position:absolute; top:8px; right:8px; font-size: 10px;
  background: rgba(0,0,0,0.5); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 999px; color: var(--gold-strong);
}
.m-world-card .body{ padding: 14px; }
.m-world-card h3{ font-size: 14px; color: var(--text-hi); margin: 0 0 4px; font-family: var(--font-display); }
.m-world-card p{ font-size: 11px; color: var(--text-dim); margin:0; line-height:1.5; }

/* ---------- Trailer ---------- */
.m-video-frame{
  position: relative; aspect-ratio: 16/10; border-radius: var(--radius-l);
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-void));
  border: 1px solid var(--line);
  display:grid; place-items:center; margin-bottom: 16px; overflow:hidden;
}
.m-play-btn{
  width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-strong), var(--gold-dim));
  box-shadow: var(--glow-gold);
  display:grid; place-items:center; font-size: 20px; color:#1c1404;
  border: 2px solid var(--gold-strong);
}
.m-shot{
  width: 130px; aspect-ratio: 4/3; border-radius: var(--radius-m);
  background: linear-gradient(165deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line);
  display:grid; place-items:center; font-size: 24px;
}

/* ---------- Roadmap ---------- */
.m-roadmap{ position: relative; padding-left: 26px; }
.m-roadmap::before{ content:""; position:absolute; left:6px; top:6px; bottom:6px; width:1px; background: linear-gradient(180deg, var(--gold), transparent); }
.m-road-item{ position: relative; margin-bottom: 22px; }
.m-road-item::before{
  content:""; position:absolute; left:-26px; top:4px; width:13px; height:13px; border-radius:50%;
  background: var(--gold); box-shadow: var(--glow-gold); border: 2px solid var(--bg-void);
}
.m-road-item h3{ font-size: 14px; color: var(--text-hi); margin: 0 0 5px; font-family: var(--font-display); }
.m-road-item p{ font-size: 12px; color: var(--text-dim); margin:0; line-height:1.6; }

/* ---------- Testimonials ---------- */
.m-testi-card{
  width: 260px;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 20px;
}
.m-testi-card .stars{ color: var(--gold); font-size: 12px; margin-bottom: 10px; }
.m-testi-card p{ font-size: 12.5px; line-height: 1.65; color: var(--text); margin: 0 0 14px; }
.m-testi-card .who{ display:flex; align-items:center; gap:8px; }
.m-testi-card .who .av{
  width: 30px; height:30px; border-radius:50%;
  background: linear-gradient(160deg, var(--arcane), #2a2140);
  display:grid; place-items:center; font-size: 14px;
}
.m-testi-card .who b{ font-size: 11.5px; color: var(--text-hi); display:block; }
.m-testi-card .who span{ font-size: 10px; color: var(--text-faint); }

/* ---------- Final CTA ---------- */
.m-final-cta{
  text-align:center; padding: 40px 22px;
  border-radius: var(--radius-l);
  background: linear-gradient(165deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.m-final-cta h2{ font-family: var(--font-display); font-size: 23px; color: var(--text-hi); margin: 12px 0 10px; }
.m-final-cta > p{ font-size: 13px; color: var(--text-dim); margin: 0 0 22px; }
.m-final-cta .subscribe-form{ flex-direction: column; }
.m-final-cta .note{ font-size: 11px; color: var(--text-faint); margin-top: 10px; display:block; }
.m-badges{ display:flex; justify-content:center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.m-footer{ padding: 40px 20px 20px; border-top: 1px solid var(--line); }
.m-footer .logo{ display:flex; align-items:center; gap:8px; margin-bottom: 12px; }
.m-footer .logo .glyph{
  width:28px; height:28px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, var(--arcane-2), var(--arcane));
  display:grid; place-items:center; font-weight:900; color:#0b0e1a; font-size: 12px;
}
.m-footer .logo .txt{ font-family: var(--font-display); font-size: 17px; color: var(--gold-strong); }
.m-footer p{ font-size: 12px; color: var(--text-faint); line-height: 1.7; margin-bottom: 18px; }
.m-footer-links{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.m-footer-links h4{ font-size: 11px; text-transform:uppercase; letter-spacing:.08em; color: var(--text-hi); margin: 0 0 10px; }
.m-footer-links ul li{ margin-bottom: 8px; }
.m-footer-links ul li a{ font-size: 12.5px; color: var(--text-dim); }
.m-footer .social{ display:flex; gap: 10px; margin-bottom: 18px; }
.m-footer .social a{
  width: 32px; height:32px; border-radius: 50%; border: 1px solid var(--line);
  display:grid; place-items:center; font-size: 13px; color: var(--text-dim);
}
.m-copyright{ text-align:center; font-size: 11px; color: var(--text-faint); padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* ---------- Sticky bottom CTA bar ---------- */
.m-cta-bar{
  position: fixed; left:0; right:0; bottom:0; z-index: 58;
  display:flex; gap: 10px; padding: 12px 16px;
  background: linear-gradient(180deg, rgba(13,16,32,0.9), rgba(9,11,20,0.98));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
}
.m-cta-bar .btn{ flex: 1; }
