:root {
  --fg: #101828;
  --text: #344054;
  --muted: #475467;
  --border: #eaecf0;
  --border-strong: #d0d5dd;
  --tint: #f7f7fb;
  --accent: #4338ca;
  --accent-dark: #3730a3;
  --check: #05603a;
  --star: #fdb10c;
  --heading: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--heading); margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.stack-xl { display: flex; flex-direction: column; gap: 72px; }

/* Nút */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-dark { background: var(--fg); color: #fff; }
.btn-dark:hover { background: #1d2939; }
.btn-outline { background: #fff; border-color: var(--border-strong); color: var(--fg); }
.btn-outline:hover { border-color: var(--fg); }
.btn-light { background: #fff; color: var(--fg); }
.btn-light:hover { background: #f2f4f7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-light { color: #c7d2fe; }

.pill {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--accent-dark);
  background: #e0e7ff;
}

/* Header */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--heading); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.logo img { width: 36px; height: 36px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav > a:not(.btn) { color: var(--text); }
.nav > a:not(.btn):hover { color: var(--fg); }

/* Hero */
.hero { background: var(--tint); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 96px; padding-bottom: 104px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.03em; max-width: 640px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.hero .actions { padding-top: 8px; }

.panel {
  flex: 1 1 380px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.06);
}
.panel-title { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.platform-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 14px; }
.platform-row > div { display: flex; flex-direction: column; min-width: 0; }
.platform-row strong { font-size: 17px; font-weight: 600; }
.platform-row div span { font-size: 14px; color: var(--muted); }

/* Section */
.section { padding: 104px 0; }
.section-tint { background: var(--tint); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.section-sub { font-size: 18px; color: var(--muted); }
.section-head h2 { font-weight: 800; font-size: clamp(32px, 4.5vw, 44px); line-height: 1.12; letter-spacing: -0.02em; }

/* Danh sách app */
.app-group { display: flex; flex-direction: column; gap: 24px; }
.group-head { display: flex; align-items: center; gap: 12px; }
.group-head h3 { font-weight: 700; font-size: 26px; }
.group-head span { height: 1px; flex: 1; background: var(--border); }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.app-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.2s;
}
.app-card:hover { box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08); }
.app-card > p { font-size: 16px; color: var(--text); }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.app-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.app-id h4 { font-weight: 700; font-size: 22px; }
.app-tagline { font-size: 15px; color: var(--muted); }
.app-icon { width: 52px; height: 52px; border-radius: 14px; flex: none; object-fit: cover; }
.app-icon-fallback { display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--heading); font-weight: 800; font-size: 22px; }

.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text); }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.check { width: 18px; height: 18px; flex: none; margin-top: 3px; fill: none; stroke: var(--check); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.app-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.rating span { font-weight: 400; color: var(--muted); }
.star { width: 16px; height: 16px; fill: var(--star); }

/* Vì sao chọn */
.features { display: flex; flex-wrap: wrap; gap: 24px; }
.feature { flex: 1 1 300px; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature svg { width: 28px; height: 28px; fill: none; stroke: var(--accent-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-weight: 700; font-size: 20px; }
.feature p { font-size: 16px; color: var(--muted); }

/* CTA */
.cta {
  background: var(--fg);
  color: #fff;
  border-radius: 28px;
  padding: 64px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta h2 { font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.cta-text > p:last-child { font-size: 18px; color: #d0d5dd; max-width: 560px; }

/* Footer */
.footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { font-size: 15px; color: var(--muted); max-width: 340px; }
.footer-col { flex: 0 1 220px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-col span { font-weight: 600; }
.footer-col a { color: var(--accent-dark); }
.footer-col a:hover { color: #1e1b4b; }
.footer-bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  .hero-inner { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .section { padding: 64px 0; }
  .stack-xl { gap: 48px; }
  .app-card { padding: 24px; }
  .cta { padding: 40px 24px; border-radius: 20px; }
  .nav > a:not(.btn) { display: none; }
}

/* Trang pháp lý của từng app (privacy, terms) */
.legal { padding: 72px 0 104px; }
.legal .container { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.legal h1 { font-weight: 800; font-size: clamp(32px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.02em; }
.legal h2 { font-weight: 700; font-size: 22px; margin-top: 24px; }
.legal p, .legal li { font-size: 16px; color: var(--text); }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--accent-dark); text-decoration: underline; }
.legal .updated { color: var(--muted); font-size: 15px; }
.app-legal { font-size: 14px; color: var(--muted); }
.app-legal a { color: var(--muted); text-decoration: underline; }
.app-legal a:hover { color: var(--fg); }
