/* ============================================================
   GeaxGame Poker — Official Site Theme
   ============================================================ */
:root {
  --bg: #070b16;
  --bg-2: #0c1326;
  --bg-3: #111a33;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf6;
  --text-dim: #97a2bd;
  --gold: #f2c14e;
  --gold-2: #d99b2b;
  --green: #1fae6b;
  --green-deep: #0e6e44;
  --red: #e5484d;
  --blue: #4f8dff;
  --radius: 18px;
  --max: 1120px;
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(31, 174, 107, 0.14), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(79, 141, 255, 0.10), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(242, 193, 78, 0.07), transparent 60%);
  z-index: 0;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffd97a; }
img { max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 22, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.3px;
}
.nav-brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-brand span em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #241a02 !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(242, 193, 78, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(242, 193, 78, 0.5); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 174, 107, 0.12);
  border: 1px solid rgba(31, 174, 107, 0.35);
  color: #5ee8a8;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #ffd97a, var(--gold) 45%, #ff9d5c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #0a0a0a;
  border-radius: 14px;
  padding: 10px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn .small { display: block; font-size: 11px; line-height: 1.2; opacity: 0.7; }
.store-btn .big { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; color: #0a0a0a; }
.web-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 15px;
  transition: border-color .2s, background .2s, transform .2s;
}
.web-btn:hover { border-color: rgba(242,193,78,.5); background: rgba(242,193,78,.08); transform: translateY(-3px); color: var(--text); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-icon {
  width: min(300px, 70vw);
  border-radius: 28%;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(242, 193, 78, 0.18);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-16px); } }
.suit {
  position: absolute;
  font-size: 44px;
  opacity: 0.5;
  filter: blur(0.4px);
  animation: drift 9s ease-in-out infinite;
  user-select: none;
}
.suit.s1 { top: 4%; left: 2%; color: var(--red); animation-delay: 0s; }
.suit.s2 { bottom: 10%; left: 10%; color: var(--text); animation-delay: 2s; font-size: 34px; }
.suit.s3 { top: 12%; right: 0%; color: var(--text); animation-delay: 4s; font-size: 38px; }
.suit.s4 { bottom: 2%; right: 8%; color: var(--red); animation-delay: 1s; }
@keyframes drift { 50% { transform: translateY(-18px) rotate(10deg); } }

/* ---------- Stats ---------- */
.stats { padding: 10px 0 70px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform .25s, border-color .25s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(242,193,78,.35); }
.stat .v {
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(120deg, #ffd97a, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .l { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; letter-spacing: -0.5px; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 16.5px; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s, border-color .25s, background .25s;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 174, 107, 0.45);
  background: rgba(31, 174, 107, 0.06);
}
.feature .fi {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(242,193,78,.16), rgba(31,174,107,.14));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  margin-bottom: 18px;
}
.feature h3 { font-size: 18.5px; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Releases ---------- */
.rel-list { display: flex; flex-direction: column; gap: 18px; }
.rel-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: border-color .25s, transform .25s;
}
.rel-card:hover { border-color: rgba(242,193,78,.3); transform: translateY(-3px); }
.rel-card.latest {
  border-color: rgba(242, 193, 78, 0.5);
  background: linear-gradient(160deg, rgba(242,193,78,.09), rgba(31,174,107,.05));
  box-shadow: 0 12px 44px rgba(242, 193, 78, 0.1);
}
.rel-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; }
.rel-version {
  font-size: 21px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.rel-tag {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: .5px;
}
.rel-tag.major { background: rgba(242,193,78,.16); color: var(--gold); border: 1px solid rgba(242,193,78,.4); }
.rel-tag.feature { background: rgba(79,141,255,.14); color: #8fb6ff; border: 1px solid rgba(79,141,255,.4); }
.rel-tag.stable { background: rgba(31,174,107,.14); color: #5ee8a8; border: 1px solid rgba(31,174,107,.4); }
.rel-tag.maintenance { background: rgba(255,255,255,.06); color: var(--text-dim); border: 1px solid rgba(255,255,255,.14); }
.rel-tag.bugfix { background: rgba(229,72,77,.13); color: #ff8f93; border: 1px solid rgba(229,72,77,.4); }
.rel-tag.latest-tag { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #241a02; border: none; }
.rel-date { margin-left: auto; color: var(--text-dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.rel-title { font-size: 17px; font-weight: 700; margin: 4px 0 2px; }
.rel-summary { color: var(--text-dim); font-size: 14.5px; }
.rel-sections { margin-top: 16px; display: grid; gap: 14px; }
.rel-sec h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 6px; }
.rel-sec ul { list-style: none; }
.rel-sec li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 3px 0;
}
.rel-sec li::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--green));
}
.rel-toggle {
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
}
.rel-toggle:hover { color: #ffd97a; }
.rel-collapsed .rel-sections { display: none; }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 90px; }
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 64px 40px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(31,174,107,.35), transparent 65%),
    linear-gradient(160deg, #12241c, #0c1326);
  border: 1px solid rgba(31, 174, 107, 0.3);
}
.cta-box h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; margin-bottom: 14px; }
.cta-box p { color: var(--text-dim); margin-bottom: 32px; }
.cta-box .hero-badges { justify-content: center; }
.cta-suits { position: absolute; inset: 0; pointer-events: none; opacity: .12; font-size: 90px; }
.cta-suits span { position: absolute; }
.cta-suits span:nth-child(1) { top: -18px; left: 4%; color: var(--red); }
.cta-suits span:nth-child(2) { bottom: -24px; right: 5%; }
.cta-suits span:nth-child(3) { top: 20%; right: 12%; font-size: 50px; color: var(--red); }
.cta-suits span:nth-child(4) { bottom: 10%; left: 10%; font-size: 56px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 46px 0 40px;
  background: rgba(0,0,0,.25);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--text); }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 14.5px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #5d6780;
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- Sub page hero ---------- */
.page-hero { padding: 84px 0 44px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 900; letter-spacing: -0.5px; }
.page-hero p { color: var(--text-dim); margin-top: 14px; font-size: 16.5px; }

/* ---------- Privacy / article ---------- */
.article-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-bottom: 90px; align-items: start; }
.toc {
  position: sticky;
  top: 92px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 13.5px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.toc strong { display: block; font-size: 12px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }
.toc a { display: block; color: var(--text-dim); padding: 5px 0; line-height: 1.4; }
.toc a:hover { color: var(--text); }
.article {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 46px 52px;
}
.article h2 {
  font-size: 23px;
  font-weight: 800;
  margin: 40px 0 14px;
  padding-top: 10px;
  scroll-margin-top: 90px;
}
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 17.5px; font-weight: 700; margin: 28px 0 10px; color: #cdd6ea; scroll-margin-top: 90px; }
.article p { color: var(--text-dim); margin: 12px 0; font-size: 15.5px; }
.article ul { margin: 12px 0 12px 4px; }
.article li {
  position: relative;
  list-style: none;
  padding-left: 22px;
  color: var(--text-dim);
  margin: 6px 0;
  font-size: 15.5px;
}
.article li::before {
  content: "";
  position: absolute;
  left: 3px; top: 12px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.article em { color: var(--gold); font-style: italic; }
.article a { text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-icon { width: min(200px, 55vw); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .article { padding: 30px 24px; }
  .hero { padding: 70px 0 60px; }
  .rel-date { margin-left: 0; width: 100%; }
}
