:root {
  --dark1: #1C1C1C;
  --dark2: #454545;
  --text: #212529;
  --muted: #5f6670;
  --light_white: #F9F9F9;
  --primary: #1351D8;
  --primary2: #4F8DFF;
  --primary_light: #F3F6FD;
  --primary_light2: rgb(19 81 216 / 10%);
  --gray: #D9D9D9;
  --font_head: 'Yantramanav', sans-serif;
  --font_body: 'DM Sans', sans-serif;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font_body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font_head); color: var(--dark1); line-height: 1.15; margin: 0 0 .5em; font-weight: 500; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }

/* Top bar + header (mirrors synck.io.vn) */
.topbar { background: var(--dark1); color: #fff; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 12px; }
.topbar a { color: #fff; font-weight: 600; text-decoration: underline; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch a { font-weight: 400; text-decoration: none; opacity: .7; }
.lang-switch a:hover { opacity: 1; text-decoration: underline; }
.lang-switch strong { font-weight: 600; }
.lang-switch .sep { opacity: .4; }
.site-header { background: #fff; border-bottom: 1px solid #eceef2; position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--dark1); }
.brand:hover { text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand .tag { font-family: var(--font_head); font-size: 15px; font-weight: 500; color: var(--primary); background: var(--primary_light); padding: 2px 10px; border-radius: 30px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--dark2); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--primary); text-decoration: none; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 30px; font-weight: 500; font-size: 15px; border: 0; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #0f43b4; }
.btn-soft { background: var(--primary_light2); color: var(--primary); }
.btn-soft:hover { background: rgb(19 81 216 / 18%); }
.btn-dark { background: var(--dark1); color: #fff; padding: 10px 18px; }
.btn-dark:hover { background: #000; }
.btn-dark svg { width: 22px; height: 22px; }
.btn-dark small { display: block; font-size: 10px; line-height: 1; opacity: .8; }
.btn-dark strong { display: block; font-size: 17px; line-height: 1.1; font-weight: 600; }

/* Sections */
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--primary); font-weight: 500; margin-bottom: 12px; display: block; }
.hero {
  position: relative;
  padding: 72px 0 80px;
  background:
    linear-gradient(90deg, var(--primary_light) 32%, rgb(243 246 253 / 70%) 52%, rgb(243 246 253 / 0%) 72%),
    url(/assets/hero-bg.svg) no-repeat right max(16px, calc((100vw - 1200px) / 2)) center / auto 112%,
    var(--primary_light);
}
.hero h1 { max-width: 680px; }
@media (max-width: 900px) {
  .hero {
    padding-bottom: 220px;
    background:
      linear-gradient(180deg, var(--primary_light) 55%, rgb(243 246 253 / 0%) 78%),
      url(/assets/hero-bg.svg) no-repeat right -40px bottom -30px / auto 300px,
      var(--primary_light);
  }
}
.hero p.lead { font-size: 18px; color: var(--dark2); max-width: 560px; }
@media (max-width: 640px) { .hero h1 br { display: none; } }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.section { padding: 80px 0; }
.section-alt { background: var(--light_white); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }

/* Game cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid #eceef2; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 16px 40px rgb(19 81 216 / 10%); transform: translateY(-2px); }
.card .icon { width: 72px; height: 72px; border-radius: 18px; }
.card p { color: var(--muted); margin: 0; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 30px; background: var(--primary_light); color: var(--primary); font-weight: 500; }
.card .links { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.card.placeholder { border-style: dashed; align-items: flex-start; justify-content: center; background: transparent; }
.card.placeholder:hover { box-shadow: none; transform: none; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.feature { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid #eceef2; }
.feature .num { font-family: var(--font_head); color: var(--primary); font-size: 28px; font-weight: 500; }
.feature h3 { font-size: 20px; margin: 6px 0; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* App hero */
.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.app-hero .icon { width: 140px; height: 140px; border-radius: 32px; box-shadow: 0 20px 40px rgb(19 81 216 / 18%); }
@media (max-width: 640px) { .app-hero { grid-template-columns: 1fr; } .app-hero .icon { width: 104px; height: 104px; border-radius: 24px; } }

/* Prose (privacy / support) */
.prose p, .prose li { text-align: justify; text-justify: inter-word; hyphens: auto; }
.prose h2 { font-size: 28px; margin-top: 40px; }
.prose h3 { font-size: 20px; margin-top: 28px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #eceef2; vertical-align: top; }
th { background: var(--primary_light); font-weight: 600; }

/* FAQ */
details { border: 1px solid #eceef2; border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; background: #fff; }
details summary { cursor: pointer; font-weight: 600; color: var(--dark1); }
details[open] summary { margin-bottom: 8px; }
details p { color: var(--dark2); margin: 0; }

.contact-box { background: var(--primary); color: #fff; border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.contact-box h2 { color: #fff; margin: 0 0 6px; }
.contact-box p { margin: 0; opacity: .9; }
.contact-box .btn { background: #fff; color: var(--primary); }

/* Footer */
.site-footer { background: var(--dark1); color: #bfc3c8; padding: 48px 0 28px; font-size: 14px; margin-top: 0; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #bfc3c8; }
.site-footer a:hover { color: #fff; }
.site-footer .brand img { filter: brightness(0) invert(1); }
.site-footer .bottom { border-top: 1px solid #333; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
