/* Vietlubu: Game Zone — design tokens and layout. No build step. */

:root {
  --bg: #05070C;
  --surface: #0A0F16;
  --surface-2: #0D141D;
  --border: #1B2836;
  --fg: #E6EDF6;
  --muted: #8CA0B8;
  --accent: #35E0D0;
  --accent-2: #4AA8FF;

  --wrap: 1100px;
  --r-card: 10px;
  --r-badge: 6px;
  --r-btn: 8px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(140, 160, 184, .07) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, rgba(140, 160, 184, .07) 0 1px, transparent 1px 64px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}

body > * { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); padding: 0 20px; margin: 0 auto; }

section { padding: 88px 0; }

.eyebrow {
  font: 500 .75rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  margin: 0 0 18px;
}

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

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 12, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}

header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 7, 12, .9);
}

@supports (backdrop-filter: blur(10px)) {
  header { backdrop-filter: blur(10px); }
  header.is-scrolled { backdrop-filter: blur(14px); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; letter-spacing: .06em; font-size: .95rem; }
.brand-sub { font: 500 .62rem/1.2 var(--mono); letter-spacing: .22em; color: var(--muted); }

nav { margin-left: auto; display: flex; gap: 22px; }
nav a { color: var(--muted); font-size: .9rem; }
nav a:hover { color: var(--fg); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: var(--r-btn);
  border: 1px solid var(--border);
  font-size: .9rem;
  font-weight: 550;
  transition: filter .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.18); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), #23b7ab);
  border-color: transparent;
  color: #04231f;
}
.btn-ghost {
  background: var(--surface);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }

.header-cta { flex: none; }

/* ---------- Hero ---------- */

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background-image:
    linear-gradient(rgba(5, 7, 12, .55), rgba(5, 7, 12, .95)),
    url("../img/hero.webp");
  background-size: cover;
  background-position: center;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 40%, rgba(53, 224, 208, .16), transparent 62%);
  pointer-events: none;
}

.hero-inner { position: relative; width: 100%; max-width: 780px; }
.hero h1 { max-width: 15ch; }
.lede { font-size: 1.075rem; color: var(--muted); max-width: 60ch; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Products ---------- */

.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 224, 208, .5);
  box-shadow: 0 10px 34px rgba(53, 224, 208, .1);
}

.card-media {
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--surface-2), #081019 60%, rgba(53, 224, 208, .12));
  border-bottom: 1px solid var(--border);
}
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 1.125rem; }
.card-body p { color: var(--muted); font-size: .925rem; }

.badge {
  font: 600 .75rem/1 var(--mono);
  letter-spacing: .08em;
  padding: 6px 8px;
  border-radius: var(--r-badge);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge-live {
  color: var(--accent);
  border-color: rgba(53, 224, 208, .45);
  background: rgba(53, 224, 208, .08);
}
.badge-concept { color: var(--muted); }

.tags {
  margin: auto 0 0;
  font: 400 .78rem/1.5 var(--mono);
  color: var(--muted);
  opacity: .85;
}

/* ---------- Platform ---------- */

.platform-list { list-style: none; margin: 0; padding: 0; }
.platform-list li {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 8px 28px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.platform-list li:last-child { border-bottom: 1px solid var(--border); }
.platform-list .label { font: 550 .875rem/1.6 var(--mono); color: var(--fg); }
.platform-list .desc { color: var(--muted); font-size: .95rem; }

/* ---------- About / Contact ---------- */

.about p, .contact p { max-width: 68ch; color: var(--muted); }
.contact .btn-lg { margin-top: 10px; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: .875rem;
  color: var(--muted);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-line { margin: 0; }
.sep { margin: 0 6px; opacity: .5; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease-out, transform .4s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  section, .hero { padding: 64px 0; }
  .hero { min-height: 0; }
  .header-inner { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  nav { margin-left: 0; order: 3; width: 100%; gap: 18px; overflow-x: auto; }
  .header-cta { margin-left: auto; }
  .platform-list li { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
