/* XXLGAMEDEV — shared styles */

:root {
  --bg: #0a0a0f;
  --bg-soft: #111118;
  --surface: #16161f;
  --border: #25252f;
  --text: #f4f4f7;
  --muted: #9696a6;
  --accent: #c6ff3a;
  --accent-dim: #9fd421;
  --max: 1080px;
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.75;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: var(--text);
}

.brand .mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #0a0a0f;
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  opacity: 1;
}

/* ---------- Layout sections ---------- */
main {
  flex: 1 0 auto;
}

.hero {
  padding: 110px 0 90px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 24px;
}

h1 .hl {
  color: var(--accent);
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
}

.btn-primary:hover {
  background: var(--accent-dim);
  opacity: 1;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--muted);
  opacity: 1;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 10px 0 70px;
}

.stat {
  text-align: center;
}

.stat .num {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat .label {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Feature cards ---------- */
.section {
  padding: 70px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 0 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}

.card .icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Doc pages (policy / terms / contact) ---------- */
.doc {
  padding: 80px 0 60px;
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
}

.doc .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.doc h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 44px 0 12px;
  font-weight: 700;
}

.doc p,
.doc li {
  color: #c9c9d4;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc h3 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  margin: 32px 0 6px;
  font-weight: 700;
  color: var(--text);
}

.doc a {
  word-break: break-word;
}

/* Tables in legal docs */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.doc th:last-child,
.doc td:last-child {
  border-right: none;
}

.doc tbody tr:last-child td {
  border-bottom: none;
}

.doc thead th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.doc td {
  color: #c9c9d4;
  line-height: 1.5;
}

.doc address {
  font-style: normal;
  color: #c9c9d4;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.contact-card .k {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-card .v {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner .copyright {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 0.88rem;
  }
  .stats,
  .cards {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 70px 0 50px;
  }
}
