:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #5b6475;
  --line: #e7ebf3;
  --primary: #0b57d0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px
}

.topbar {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}

.brand {
  font-weight: 800;
  letter-spacing: .2px
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid transparent;
}

.nav a.active,
.nav a:hover {
  background: #eef4ff;
  border-color: #d7e4ff;
  text-decoration: none;
}

.hero {
  padding: 38px 0;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(11, 87, 208, .12), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(11, 87, 208, .10), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 18px;
  align-items: start;
}

.page-hero {
  padding: 30px 0 12px;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(11, 87, 208, .10), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(11, 87, 208, .08), transparent 60%);
  border-bottom: 1px solid var(--line);
}

h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 10px 0 8px
}

h2 {
  font-size: 22px;
  margin: 0 0 10px
}

.sub {
  color: var(--muted);
  margin: 0 0 14px
}

.muted {
  color: var(--muted)
}

.pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf2ff;
  border: 1px solid #d7e4ff;
  font-weight: 600;
  font-size: 13px;
}

.section {
  padding: 22px 0
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 0 0 14px;
}

.list,
.bullets {
  margin: 10px 0 0;
  padding-left: 18px;
}

.list li,
.bullets li {
  margin: 6px 0
}

.meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted)
}

.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  padding: 12px 14px;
  border-radius: 14px;
  margin: 0 0 14px;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cta-row.second {
  margin-top: 10px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  filter: brightness(.95)
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: #cfe0ff;
}

.btn-outline:hover {
  background: #eef4ff
}

.full {
  width: 100%
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.footer {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 900px) {
  h1 {
    font-size: 34px
  }

  .hero-grid {
    grid-template-columns: 1fr
  }

  .grid-3 {
    grid-template-columns: 1fr
  }

  .grid-2 {
    grid-template-columns: 1fr
  }
}

.footer a {
  color: var(--muted);
  text-decoration: underline;
}

.footer a:hover {
  color: var(--primary);
}


/* CTA alignment improvements */
.cta-primary {
  justify-content: flex-start
}

.cta-primary .btn {
  min-width: 220px
}

@media (max-width: 900px) {
  .cta-primary {
    flex-direction: column
  }

  .cta-primary .btn {
    width: 100%
  }
}


/* ===== Desktop CTA: mỗi nút 1 dòng, chữ to hơn ===== */
@media (min-width: 901px) {
  .cta-primary {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cta-primary .btn {
    font-size: 18px;
    padding: 16px 28px;
    min-width: 320px;
  }
}


/* --- Mobile nav: 1 hàng (cuộn ngang) để không bị xuống dòng lộn xộn --- */
@media (max-width: 900px) {
  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none
  }

  .nav a {
    white-space: nowrap
  }
}

/* --- iOS small screens: giảm nhẹ CTA để gọn hơn --- */
@media (max-width: 420px) {
  .cta-primary .btn {
    padding: 13px 14px;
    font-size: 15px
  }
}

/* ===== CTA Final Section ===== */
.cta-final {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #eef4ff 0%, #f5f7fb 100%);
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.cta-final h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.cta-final p {
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}