/* Velox — website giới thiệu (tĩnh). Token màu/typography theo design handoff. */
:root {
  --ink: #17150F;
  --bg: #FAF9F6;
  --surface: #ffffff;
  --border: #EFEDE7;
  --accent: #FF5A1F;
  --accent-2: #C2410C;
  --grad: linear-gradient(135deg, #FF6A2E, #F03C12);
  --muted: #7E7B72;
  --muted-2: #5C5950;
  --soft: #FFF1EA;
  --tint: #FFF6F1;
  --ghost: #F2F0EB;
  --ink-soft: #46443D;
  --footer-muted: #9D9A92;
  --footer-line: #262420;
  --footer-text: #C9C6BE;
  --footer-title: #6E6B63;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.brand-grad { background: var(--grad); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto; height: 68px;
  display: flex; align-items: center; gap: 14px; padding: 0 32px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo__mark {
  width: 36px; height: 36px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.logo__name { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.nav__spacer { flex: 1; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 8px 15px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  color: var(--ink); transition: background .15s;
}
.nav__link:hover { background: var(--ghost); }
.nav__link--active { color: var(--accent); }
.nav__cta { margin-left: 10px; }
/* Hamburger — chỉ hiện trên mobile (breakpoint 860px). */
.nav__burger {
  display: none; width: 40px; height: 40px; border: none; background: none;
  border-radius: 10px; cursor: pointer; padding: 0; flex: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .2s, opacity .2s; }
.nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-weight: 700; border-radius: 14px; cursor: pointer; border: none;
  font-family: inherit; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--ink); color: var(--surface); padding: 14px 24px; font-size: 15px; }
.btn--sm-dark { background: var(--ink); color: var(--surface); padding: 10px 20px; font-size: 14.5px; border-radius: 12px; }
.btn--light { background: var(--surface); color: var(--ink); border: 1.5px solid #E6E3DC; padding: 14px 24px; font-size: 15px; }
.btn--white { background: var(--surface); color: var(--ink); padding: 14px 26px; font-size: 15px; }
.btn--ghost-light { background: rgba(0,0,0,.18); color: var(--surface); padding: 14px 26px; font-size: 15px; }
.btn--accent { background: var(--accent); color: var(--surface); padding: 14px 26px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--tint) 0%, var(--bg) 60%); }
.hero__inner {
  display: flex; gap: 48px; align-items: center;
  /* CHỈ padding dọc — ngang để .container lo (shorthand `X 0 Y` sẽ đè về 0). */
  padding-top: 72px; padding-bottom: 64px; flex-wrap: wrap;
}
.hero__left { flex: 1; min-width: min(340px, 100%); }
.tag {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px;
  border-radius: 15px; background: var(--soft); color: var(--accent-2);
  font-size: 12.5px; font-weight: 700; margin-bottom: 22px;
}
.hero h1 {
  font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero__lead { font-size: 17px; color: var(--muted-2); line-height: 1.6; margin: 0 0 30px; max-width: 440px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* phone mockup */
.phone {
  flex: none; width: 300px; height: 600px; background: #0B0A07; border-radius: 46px;
  padding: 10px; box-shadow: 0 30px 70px rgba(20, 18, 12, .25);
}
.phone__screen { width: 100%; height: 100%; background: var(--bg); border-radius: 37px; overflow: hidden; }
.phone__shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone__bar { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: flex-end; padding: 0 18px 12px; }
.phone__searchbar { flex: 1; height: 34px; border-radius: 10px; background: var(--ghost); }
.phone__grid { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone__card { height: 150px; border-radius: 14px; background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.05); }

/* ---------- Sections ---------- */
.section { padding-top: 72px; padding-bottom: 72px; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { text-align: center; margin-bottom: 46px; }
.section__title { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 12px; }
.section__sub { font-size: 16px; color: var(--muted); margin: 0; }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px;
}
.card__icon {
  width: 48px; height: 48px; border-radius: 13px; background: var(--soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card__title { font-size: 17px; font-weight: 700; margin: 0 0 7px; }
.card__text { font-size: 14px; color: var(--muted-2); line-height: 1.6; margin: 0; }

/* steps */
.steps { display: flex; gap: 32px; flex-wrap: wrap; }
.step { flex: 1; min-width: 220px; }
.step__num {
  width: 46px; height: 46px; border-radius: 13px; background: var(--surface); border: 1.5px solid var(--border);
  color: var(--accent); font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}

/* CTA band */
.cta-band { background: var(--grad); border-radius: 28px; padding: 56px; text-align: center; color: var(--surface); }
.cta-band h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 14px; }
.cta-band p { font-size: 16px; color: #FFE3D6; margin: 0 0 30px; }
.cta-band__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Support pages ---------- */
.page-head { background: linear-gradient(160deg, var(--tint), var(--bg)); border-bottom: 1px solid var(--border); }
.page-head__inner { padding-top: 58px; padding-bottom: 46px; }
.page-head h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.035em; margin: 0 0 12px; }
.page-head__sub { font-size: 17px; color: var(--muted-2); max-width: 620px; line-height: 1.55; margin: 0; }

/* help channels */
.channels { display: flex; gap: 18px; margin-bottom: 52px; flex-wrap: wrap; }
.channel { flex: 1; min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.channel__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.channel__title { font-size: 16px; font-weight: 700; margin: 0 0 5px; }
.channel__text { font-size: 13.5px; color: var(--muted-2); line-height: 1.55; margin: 0; }

.subhead { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 20px; }

/* faq (accordion) */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.faq > summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15.5px; font-weight: 700;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary .plus { color: #C4C0B6; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq[open] > summary .plus { transform: rotate(45deg); }
.faq__answer { padding: 0 22px 20px; font-size: 14px; color: var(--muted-2); line-height: 1.6; }

/* tips */
.tips { display: flex; flex-direction: column; gap: 14px; max-width: 780px; }
.tip { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.tip__num {
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: var(--surface);
  font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none;
}
.tip__title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.tip__text { font-size: 14px; color: var(--muted-2); line-height: 1.6; margin: 0; }

/* terms */
.terms { display: flex; gap: 48px; align-items: flex-start; }
.terms__toc { flex: none; width: 230px; position: sticky; top: 88px; display: flex; flex-direction: column; gap: 3px; }
.terms__toc a { padding: 8px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted-2); }
.terms__toc a:hover, .terms__toc a.active { background: var(--soft); color: var(--accent-2); font-weight: 700; }
.terms__body { flex: 1; max-width: 660px; }
.terms__sec { margin-bottom: 34px; scroll-margin-top: 88px; }
.terms__sec h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.terms__sec p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; margin: 0; }
.terms__intro { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; margin: 0 0 14px; }
.terms__bullet { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 11px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.terms__bullet::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--surface); }
.footer__top { max-width: var(--max); margin: 0 auto; padding: 54px 32px 38px; display: flex; gap: 60px; flex-wrap: wrap; }
.footer__brand { flex: 1; min-width: 240px; }
.footer__name { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer__name span { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.footer__desc { font-size: 13.5px; color: var(--footer-muted); line-height: 1.6; max-width: 280px; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; background: var(--footer-line); display: flex; align-items: center; justify-content: center; }
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__coltitle { font-size: 12px; font-weight: 700; color: var(--footer-title); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; color: var(--footer-text); }
.footer__links a:hover { color: var(--surface); }
.footer__bar { border-top: 1px solid var(--footer-line); }
.footer__bar > div { max-width: var(--max); margin: 0 auto; padding: 20px 32px; font-size: 12.5px; color: var(--footer-title); }

/* ---------- Responsive ---------- */
/* 861–1000px: nav đầy đủ không đủ chỗ (chữ wrap xấu) → dùng hamburger sớm. */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  /* Menu xổ xuống dưới thanh nav khi mở hamburger (nav sticky → absolute bám theo). */
  .nav--open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 10px 20px 16px; box-shadow: 0 14px 30px rgba(20, 18, 12, .08);
  }
  .nav--open .nav__links .nav__link { padding: 12px 15px; }
}

@media (max-width: 860px) {
  .container, .nav__inner, .footer__top, .footer__bar > div, .page-head__inner { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 38px; }
  .hero__inner { padding-top: 48px; padding-bottom: 40px; }
  .phone { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .section__title, .cta-band h2 { font-size: 27px; }
  .cta-band { padding: 40px 24px; }
  .terms { flex-direction: column; gap: 24px; }
  .terms__toc { position: static; width: 100%; flex-direction: row; flex-wrap: wrap; }
  .page-head h1 { font-size: 31px; }
}
@media (max-width: 480px) {
  /* Máy nhỏ: ẩn CTA nav cho khỏi tràn ngang — nút tải app vẫn có ở hero/footer. */
  .nav__cta { display: none; }
}

/* ---------- Language toggle (VN / EN) — theo file thiết kế ---------- */
.lang-toggle {
  display: inline-flex; align-items: center; margin-left: 6px; flex: none;
  background: var(--ghost); border-radius: 11px; padding: 3px;
}
.lang-seg {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border: none; border-radius: 8px; background: transparent;
  font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted);
  cursor: pointer; line-height: 1; transition: background .15s, color .15s;
}
.lang-seg.is-active { background: var(--surface); color: var(--accent); }
.lang-flag { font-size: 14px; }
/* Nút nổi cho trang landing (listing/seller) không có thanh nav. */
.lang-toggle--float {
  position: fixed; top: 14px; right: 14px; z-index: 100; margin: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
