/* Hi5 Games landing — theme theo portal: nền đen sâu, nút bo tròn, nhãn monospace, nhấn cam #F05323 */
:root {
  --bg: #0A0A0B;
  --bg-alt: #0E0E10;
  --surface: #141416;
  --tile: #1A1A1E;
  --line: #26262A;
  --line-soft: #1F1F23;
  --line-strong: #3A3A40;
  --text: #F5F5F4;
  --text-2: #C4C4CC;
  --muted: #A1A1AA;
  --faint: #8B8B94;
  --accent: #F05323;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.band { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section { padding: 96px 0; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin-bottom: 48px; }
.h2 { font-size: clamp(36px, 4.5vw, 52px); line-height: 1.05; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--bg); padding: 8px 16px; border-radius: 999px; z-index: 10; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { color: var(--bg); background: #FF6633; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); font-weight: 500; }
.btn-ghost:hover { color: var(--text); border-color: var(--text-2); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Nav */
.nav { border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 5; background: rgba(10,10,11,0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.logo:hover { color: var(--text); }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--bg); display: grid; place-items: center; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--text-2); }
.nav-links a:not(.btn):hover { color: var(--accent); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { overflow: hidden; padding: 88px 0 96px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; max-width: 960px; margin: 0 auto; padding: 0 24px; }
.hero h1 { font-weight: 700; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.03em; }
.hero-sub { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--muted); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.wall { margin-top: 64px; display: flex; justify-content: center; gap: 20px; transform: rotate(-4deg); }
.cover { flex: 0 0 180px; height: 240px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.08); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.cover:nth-child(even) { margin-top: 40px; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .tag { position: relative; align-self: flex-start; font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,0.45); color: #E4E4E7; }
.cover .title { position: relative; font-family: var(--font-head); font-size: 17px; font-weight: 600; }
@media (max-width: 640px) { .cover { flex-basis: 130px; height: 174px; } .wall { gap: 14px; margin-top: 48px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.stat { background: var(--bg-alt); padding: 36px 32px; display: flex; flex-direction: column; gap: 8px; }
.stat-value { font-family: var(--font-head); font-size: clamp(44px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat-label { color: var(--muted); font-size: 15px; }

/* Platforms */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 48px; max-width: 960px; margin: 0 auto; padding: 0; list-style: none; }
.platform { width: 112px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.platform-icon { width: 80px; height: 80px; border-radius: 20px; background: var(--tile); border: 1px solid #2E2E34; display: grid; place-items: center; font-family: var(--font-head); font-size: 26px; font-weight: 700; overflow: hidden; }
.platform-icon img { width: 100%; height: 100%; object-fit: contain; }
.platform-name { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.35; }
@media (max-width: 640px) { .platforms { gap: 28px 20px; } .platform { width: 96px; } .platform-icon { width: 68px; height: 68px; border-radius: 18px; } }

/* Steps */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.card h3 { font-size: 26px; line-height: 1.2; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Why */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > :first-child { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.benefits { flex: 1 1 600px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 40px; }
.benefit { border-top: 2px solid var(--accent); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.benefit h3 { font-size: 21px; }
.benefit p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* FAQ */
.faq { max-width: 880px; }
.faq .h2 { margin-bottom: 40px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
/* <details>/<summary>: mở/đóng không cần JavaScript */
.faq-item summary { list-style: none; padding: 24px 0; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--font-head); font-size: 20px; font-weight: 500; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 24px; font-family: var(--font-mono); flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-a { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 720px; padding-bottom: 24px; }

/* CTA */
.cta { background: var(--accent); color: var(--bg); border-radius: 32px; padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.cta > div:first-child { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.03em; }
.cta p { font-size: 18px; line-height: 1.55; max-width: 520px; }
.cta-contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.btn-dark { background: var(--bg); color: var(--text); font-size: 17px; min-height: 56px; padding: 0 32px; }
.btn-dark:hover { color: var(--text); background: #1F1F23; }
.cta-email { font-family: var(--font-mono); font-size: 14px; color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }
.cta-email:hover { color: var(--bg); }

/* Footer */
.footer { border-top: 1px solid var(--line-soft); }
.footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--faint); }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { color: var(--faint); }
.footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }

/* Mobile */
.logo, .btn { white-space: nowrap; }
@media (max-width: 520px) {
  .logo { font-size: 19px; }
  .nav .btn-sm { padding: 0 16px; font-size: 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 20px; }
  .section { padding: 72px 0; }
}
