/* ==========================================================
   Trần Văn Quý — Landing Page
   ========================================================== */

:root {
  --ink: #14151a;
  --ink-soft: #4a4d57;
  --paper: #ffffff;
  --paper-soft: #f7f6f2;
  --line: #e7e5df;
  --gold: #f4b942;
  --gold-dark: #d99a1e;
  --navy: #0f1420;
  --navy-soft: #1a2136;
  --good: #1e8a5f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 20, 32, 0.08);
  --max: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 800; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(244, 185, 66, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(244, 185, 66, 0.45); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 10px 14px;
}
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.main-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 20% 0%, #fff8e8 0%, var(--paper) 55%);
  padding: 72px 0 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: #fff3d6;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  max-width: 820px;
  margin: 0 auto 18px;
}
.hero-sub { font-size: 1.2rem; color: var(--ink); font-weight: 600; }
.hero-note { font-size: 0.9rem; color: var(--ink-soft); }

.hero-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0;
}
.hstep {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px 10px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.hstep-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 8px 0 28px; }
.hero-stats { font-size: 0.85rem; color: var(--ink-soft); }
.hero-stats span { font-weight: 700; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}
.section-title.small { font-size: 1.3rem; margin-top: 48px; }
.section-sub { color: var(--ink-soft); max-width: 640px; margin: 0 auto 40px; }

.grid { display: grid; gap: 22px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

/* Pains */
.pains { background: var(--paper-soft); }
.pain-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 44px; }
.pain-card .emoji { font-size: 2rem; display: block; margin-bottom: 10px; }
.pain-card h3 { font-size: 1.05rem; }
.pain-card p { font-size: 0.92rem; margin-bottom: 0; }
.pain-outro { text-align: center; font-weight: 600; margin-top: 36px; font-size: 1.05rem; }

/* Roadmap */
.roadmap-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px; }
.step-card { position: relative; padding-top: 40px; }
.step-num {
  position: absolute; top: -16px; left: 26px;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(244,185,66,0.4);
}
.step-card h3 { font-size: 1.05rem; }
.step-card p { font-size: 0.92rem; margin-bottom: 0; }
.roadmap-highlight {
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-top: 36px;
  color: var(--gold-dark);
}

/* Before/After */
.before-after { background: var(--navy); color: #fff; }
.before-after .section-title { color: #fff; }
.ba-list { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.ba-row {
  background: var(--navy-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  border: 1px solid rgba(255,255,255,0.08);
}
.ba-tag { font-weight: 800; color: var(--gold); font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: 14px; }
.ba-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ba-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; color: #ff9d9d; }
.ba-label.good { color: #6fe3a8; }
.ba-cols p { color: #d9dcea; margin: 4px 0 0; font-size: 0.94rem; }
.ba-outro { text-align: center; margin-top: 32px; color: #d9dcea; }
.before-after .btn-primary { margin-top: 10px; }

/* System components */
.system-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 28px; }
.sys-card { position: relative; }
.sys-num {
  display: inline-flex;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--ink);
  align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}
.sys-card h4 { font-size: 1rem; }
.sys-card p { font-size: 0.9rem; margin-bottom: 0; }
.system-formula {
  text-align: center;
  font-weight: 700;
  background: #fff3d6;
  color: var(--gold-dark);
  padding: 16px;
  border-radius: var(--radius);
  margin: 36px 0 28px;
}

/* About */
.about { background: var(--paper-soft); }
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.about-avatar {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.about-lead { font-size: 1.1rem; color: var(--ink); }
.about-facts { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.about blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 18px;
  margin: 24px 0;
  font-style: italic;
  color: var(--ink);
}

/* Audience */
.audience-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 32px; }
.audience-grid h4 { font-size: 1rem; }
.audience-grid p { font-size: 0.9rem; margin-bottom: 0; }

/* Stats */
.stats { background: var(--navy); color: #fff; padding: 56px 0; }
.stats-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--gold); }
.stat-plus { font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.stat-label { display: block; font-size: 0.85rem; color: #b9bdd0; margin-top: 4px; }

/* Testimonials */
.testi-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
  margin-top: 36px;
  scrollbar-width: thin;
}
.testi-card {
  min-width: 300px;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.testi-card p { font-style: italic; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.testi-person small { display: block; color: var(--ink-soft); font-size: 0.8rem; }
.testi-controls { display: flex; justify-content: center; gap: 12px; }
.testi-controls button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 1.2rem;
  cursor: pointer;
}
.testi-controls button:hover { background: var(--paper-soft); }

/* FAQ */
.faq { background: var(--paper-soft); }
.faq-list { max-width: 720px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq-q span { font-size: 1.3rem; color: var(--gold-dark); transition: transform .2s ease; }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 240px; padding-bottom: 18px; }
.faq-a p { margin: 0; font-size: 0.94rem; }

/* Lead magnet */
.leadmagnet { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); color: #fff; }
.leadmagnet-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.leadmagnet h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; }
.leadmagnet p { color: #cdd0e3; }
.lm-parts { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.lm-part {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: #e4e6f2;
}
.lm-price { font-size: 1.05rem; color: #fff; }
.lm-price .strike { text-decoration: line-through; color: #9296ac; font-weight: 400; }
.lm-timer { font-weight: 800; color: var(--gold); font-size: 1.1rem; }

.lm-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.lm-form h3 { margin-bottom: 6px; }
.lm-form-sub { font-size: 0.88rem; margin-bottom: 18px; }
.lm-form label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; margin-top: 14px; }
.lm-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  font-family: inherit;
}
.lm-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.lm-form .btn { margin-top: 20px; }
.lm-form-note { text-align: center; font-size: 0.8rem; color: var(--ink-soft); margin-top: 12px; margin-bottom: 0; }
.lm-form-msg { text-align: center; font-size: 0.88rem; font-weight: 700; margin: 10px 0 0; min-height: 1.2em; }
.lm-form-msg.success { color: var(--good); }
.lm-form-msg.error { color: #d64545; }

/* Final CTA */
.final-cta { padding: 90px 0; }
.final-cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); max-width: 680px; margin-left: auto; margin-right: auto; }
.final-cta p { max-width: 620px; margin-left: auto; margin-right: auto; }
.final-cta-stats { font-weight: 700; color: var(--ink); }

/* Footer */
.site-footer { background: var(--navy); color: #cdd0e3; padding: 64px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { color: #fff; margin-bottom: 8px; }
.footer-tag { font-size: 0.88rem; }
.site-footer h5 { color: #fff; font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: 14px; }
.site-footer a { display: block; font-size: 0.9rem; margin-bottom: 10px; color: #b9bdd0; }
.site-footer a:hover { color: var(--gold); }
.subscribe-form { display: flex; gap: 8px; margin-top: 6px; }
.subscribe-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.88rem;
}
.subscribe-form input::placeholder { color: #8b8fa5; }
.subscribe-form .btn { padding: 10px 18px; font-size: 0.85rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  font-size: 0.82rem;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { margin: 0; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-avatar { margin-bottom: 8px; }
  .leadmagnet-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .ba-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .header-actions .btn-primary { padding: 10px 16px; font-size: 0.85rem; }
}
