@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/BeVietnamPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/BeVietnamPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --red: #b91f2a;
  --red-dark: #8f1620;
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --ink: #1f1a17;
  --muted: #6b625b;
  --line: #e7dfd3;
  --dark: #17120f;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(60, 30, 20, 0.12);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

/* ---------------- header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo img {
  width: 34px;
  height: 34px;
}
.logo b {
  color: var(--red);
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}
.nav a:hover {
  color: var(--ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover {
  background: var(--red-dark);
}
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}
.menu-btn {
  display: none;
}

/* ---------------- hero */
.hero {
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(185, 31, 42, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
}
h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 18px 0 18px;
}
h1 em {
  font-style: normal;
  color: var(--red);
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* bảng điều khiển minh hoạ */
.mock {
  background: var(--paper);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 18px;
  position: relative;
}
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1a7f4b;
  font-weight: 700;
}
.live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a35d;
  box-shadow: 0 0 0 4px rgba(34, 163, 93, 0.18);
}
.store {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
  background: #fff;
}
.store .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.store b {
  display: block;
  font-size: 14px;
}
.store small {
  color: var(--muted);
  font-size: 12px;
}
.bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 22px;
}
.bars i {
  width: 4px;
  background: var(--red);
  border-radius: 2px;
  animation: eq 1.1s ease-in-out infinite;
}
.bars i:nth-child(2) {
  animation-delay: 0.2s;
}
.bars i:nth-child(3) {
  animation-delay: 0.4s;
}
.bars i:nth-child(4) {
  animation-delay: 0.1s;
}
@keyframes eq {
  0%,
  100% {
    height: 6px;
  }
  50% {
    height: 22px;
  }
}
.mock-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.kpi {
  background: var(--cream);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.kpi b {
  display: block;
  font-size: 20px;
}
.kpi small {
  font-size: 12px;
  color: var(--muted);
}

/* ---------------- dải số liệu */
.strip {
  background: var(--dark);
  color: #fff;
  padding: 26px 0;
}
.strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.strip b {
  display: block;
  font-size: 26px;
  color: #fff;
}
.strip span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* ---------------- section chung */
section {
  padding: 84px 0;
}
.sec-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.sec-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 12px 0 10px;
}
.sec-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}
.center {
  text-align: center;
  margin-inline: auto;
}

/* tính năng */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card .ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(185, 31, 42, 0.09);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card .ico svg {
  width: 24px;
  height: 24px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.tag-new {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: 6px;
  padding: 1px 6px;
  vertical-align: middle;
}

/* thiết bị */
.alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.devices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.device {
  border-radius: var(--radius);
  padding: 28px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.device h3 {
  margin: 12px 0 6px;
}
.device ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
}
.device .big {
  font-size: 34px;
}

/* các bước */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: s;
}
.step {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.step h3 {
  margin: 8px 0 6px;
}
.step p {
  margin: 0;
  color: var(--muted);
}

/* ngành */
.uses {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.uses span {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 15px;
}

/* bảng giá */
.toggle {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 28px;
}
.toggle button {
  border: 0;
  background: transparent;
  padding: 10px 20px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.toggle button.on {
  background: var(--ink);
  color: #fff;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.plan.hot {
  border: 2px solid var(--red);
  box-shadow: var(--shadow);
  position: relative;
}
.plan.hot::after {
  content: 'Phổ biến';
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan h3 {
  margin: 0;
  font-size: 20px;
}
.plan .for {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 18px;
}
.price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price small {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}
.price-sub {
  font-size: 13px;
  color: var(--muted);
  min-height: 20px;
  margin-top: 4px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
  display: grid;
  gap: 10px;
  font-size: 15px;
}
.plan li {
  display: flex;
  gap: 10px;
}
.plan li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
}
.plan .btn {
  margin-top: auto;
}
.price-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}
[data-mode='perpetual'] .sub-only,
[data-mode='sub'] .perp-only {
  display: none;
}

/* câu hỏi */
.faq {
  max-width: 820px;
  margin-inline: auto;
}
details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  color: var(--red);
  font-size: 22px;
  line-height: 1;
}
details[open] summary::after {
  content: '–';
}
details p {
  color: var(--muted);
  margin: 12px 0 0;
}

/* kêu gọi + chân trang */
.cta-band {
  background: var(--red);
  color: #fff;
  border-radius: 28px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 36px);
}
.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}
.cta-band .btn-white {
  background: #fff;
  color: var(--red);
}
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 32px;
  margin-top: 84px;
}
footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
footer h4 {
  color: #fff;
  margin: 0 0 12px;
}
footer a {
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}
footer a:hover {
  color: #fff;
}
.dqs {
  height: 34px;
  width: auto;
  margin-bottom: 14px;
}
.copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 13px;
  grid-column: 1 / -1;
}

/* ---------------- điện thoại */
@media (max-width: 920px) {
  .hero .wrap,
  .grid,
  .devices,
  .steps,
  .plans,
  footer .wrap {
    grid-template-columns: 1fr;
  }
  .strip .wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open {
    display: flex;
  }
  .menu-btn {
    display: inline-flex;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
  }
  .top .btn-sm {
    display: none;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding-top: 40px;
  }
  .cta-band {
    padding: 32px;
  }
}
