/* ============================================================
   poolhusle — Site stylesheet
   Aesthetic: premium billiard "felt & brass" — deep felt greens,
   brass/gold accents, high-stakes competitive energy.
   © 2026 ReinTel
   ============================================================ */

/* ---- Fonts (Google Fonts, loaded in each page <head>) ----
   Display: "Bricolage Grotesque" — characterful, modern, confident
   Body:    "Sora" — clean, geometric, readable
*/

:root {
  /* Felt greens */
  --felt-900: #0a1a12;
  --felt-800: #0e2418;
  --felt-700: #123420;
  --felt-600: #18452b;
  --felt-500: #1f5836;

  /* Brass / gold accents */
  --brass-300: #f5d98b;
  --brass-400: #e9c46a;
  --brass-500: #d4a838;
  --brass-600: #b8862a;

  /* Cue / chalk neutrals */
  --chalk-50:  #f7f4ec;
  --chalk-100: #e8e3d6;
  --chalk-300: #b9b2a0;
  --chalk-500: #8a8473;

  /* Felt-line accents */
  --cue-red:   #c0392b;
  --cue-blue:  #2a6f97;

  /* Surfaces */
  --ink:       #07120c;
  --surface:   rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(233, 196, 106, 0.18);
  --border-2:  rgba(233, 196, 106, 0.35);

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.55);
  --glow-brass:  0 0 40px rgba(212, 168, 56, 0.25);

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--felt-900);
  color: var(--chalk-100);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Felt texture + ambient glow background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(212,168,56,0.10), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(31,88,54,0.55), transparent 55%),
    linear-gradient(180deg, var(--felt-900), var(--ink));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-400);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brass-500);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; color: var(--chalk-50); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p  { color: var(--chalk-300); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--chalk-100); max-width: 60ch; }

.text-brass { color: var(--brass-400); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background: linear-gradient(135deg, var(--brass-400), var(--brass-600));
  color: #2a1c05;
  box-shadow: var(--glow-brass);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(212,168,56,0.4); }

.btn--ghost {
  background: var(--surface-2);
  color: var(--chalk-50);
  border-color: var(--border-2);
}
.btn--ghost:hover { background: rgba(233,196,106,0.10); border-color: var(--brass-400); }

.btn--lg { padding: 18px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---- Store buttons (Play Store + APK side by side) ---- */
.store-row { display: flex; gap: 16px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
  min-width: 220px;
}
.store-btn:hover { transform: translateY(-3px); border-color: var(--brass-400); box-shadow: var(--shadow-soft); }
.store-btn__icon { width: 34px; height: 34px; flex-shrink: 0; color: var(--brass-400); }
.store-btn__sub { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--chalk-500); }
.store-btn__main { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--chalk-50); font-weight: 700; }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 18, 12, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--chalk-50); letter-spacing: -0.01em; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-300), var(--brass-600) 70%);
  box-shadow: inset -3px -4px 8px rgba(0,0,0,0.45), var(--glow-brass);
  display: grid; place-items: center;
  color: #2a1c05; font-size: 1rem; font-weight: 800;
}
.brand__mark span { transform: translateY(-1px); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.95rem; color: var(--chalk-300); font-weight: 500; transition: color .2s ease; position: relative; }
.nav__links a:hover, .nav__links a.active { color: var(--brass-400); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--brass-500); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: 14px; }

.nav__toggle { display: none; background: none; border: none; color: var(--chalk-50); cursor: pointer; padding: 8px; }
.nav__toggle svg { width: 26px; height: 26px; }

/* ---- Hero ---- */
.hero { padding: 90px 0 70px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(192,57,43,0.12); border: 1px solid rgba(192,57,43,0.35);
  color: #f3a79c; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  margin-bottom: 26px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cue-red); box-shadow: 0 0 10px var(--cue-red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero h1 span.accent {
  background: linear-gradient(120deg, var(--brass-300), var(--brass-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin: 24px 0 34px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Hero visual — stylized pool table / 8-ball */
.hero__visual { position: relative; display: grid; place-items: center; }
.pool-ball {
  width: clamp(240px, 30vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #3a3a3a, #0c0c0c 70%);
  box-shadow: inset -18px -22px 50px rgba(0,0,0,0.7), 0 30px 80px rgba(0,0,0,0.6), var(--glow-brass);
  display: grid; place-items: center;
  position: relative;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
.pool-ball__circle {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff, #e9e3d2 75%);
  display: grid; place-items: center;
  box-shadow: inset -4px -5px 12px rgba(0,0,0,0.25);
}
.pool-ball__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); color: #111; }
.hero__chip {
  position: absolute;
  padding: 12px 18px; border-radius: 14px;
  background: rgba(7,18,12,0.85); border: 1px solid var(--border-2);
  backdrop-filter: blur(8px); box-shadow: var(--shadow-soft);
  font-size: 0.85rem;
}
.hero__chip strong { color: var(--brass-400); font-family: var(--font-display); }
.hero__chip--1 { top: 6%; left: -4%; animation: float 5s ease-in-out infinite; }
.hero__chip--2 { bottom: 8%; right: -6%; animation: float 7s ease-in-out infinite; }

/* ---- Trust strip ---- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 0; }
.trust__item { text-align: center; flex: 1; min-width: 140px; }
.trust__num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--brass-400); font-weight: 800; }
.trust__label { font-size: 0.85rem; color: var(--chalk-500); letter-spacing: 0.05em; }

/* ---- Cards / Features ---- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow-card); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(233,196,106,0.10); border: 1px solid var(--border-2);
  display: grid; place-items: center; color: var(--brass-400);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card__num { font-family: var(--font-display); font-size: 2.4rem; color: var(--border-2); font-weight: 800; position: absolute; top: 18px; right: 24px; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 20px; }
.step__n {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brass-400), var(--brass-600));
  color: #2a1c05; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  display: grid; place-items: center; margin-bottom: 16px;
  box-shadow: var(--glow-brass);
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; }

/* ---- Section heading block ---- */
.sec-head { max-width: 640px; margin-bottom: 54px; }
.sec-head.center { margin-left: auto; margin-right: auto; }

/* ---- Prize / tournament showcase ---- */
.prize {
  background: linear-gradient(135deg, var(--felt-600), var(--felt-800));
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.prize::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,56,0.25), transparent 70%);
}
.prize__rows { display: grid; gap: 14px; margin-top: 24px; }
.prize__row { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: rgba(0,0,0,0.25); border-radius: 12px; border: 1px solid var(--border); }
.prize__row strong { font-family: var(--font-display); color: var(--brass-300); font-size: 1.2rem; }
.prize__row.win { border-color: var(--brass-400); background: rgba(212,168,56,0.12); }

/* ---- FAQ / Accordion ---- */
.faq { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; cursor: pointer;
  padding: 22px 24px; background: none; border: none;
  color: var(--chalk-50); font-family: var(--font-body); font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__q .chev { transition: transform .25s ease; color: var(--brass-400); flex-shrink: 0; }
.faq__item.open .chev { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a-inner { padding: 0 24px 24px; color: var(--chalk-300); font-size: 0.97rem; }

/* ---- Help centre categories ---- */
.help-cat { display: flex; align-items: flex-start; gap: 18px; }
.help-cat__icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(233,196,106,0.10); border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--brass-400); flex-shrink: 0; }
.help-cat__icon svg { width: 24px; height: 24px; }
.help-cat ul { list-style: none; margin-top: 10px; display: grid; gap: 8px; }
.help-cat ul li a { color: var(--chalk-300); font-size: 0.95rem; transition: color .2s; }
.help-cat ul li a:hover { color: var(--brass-400); }

/* ---- Download page ---- */
.dl-hero { text-align: center; padding: 80px 0 40px; }
.dl-card {
  max-width: 760px; margin: 0 auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2); border-radius: var(--radius); padding: 44px;
}
.dl-req { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 28px; }
.dl-req__item { padding: 14px 18px; background: rgba(0,0,0,0.25); border-radius: 12px; border: 1px solid var(--border); font-size: 0.92rem; }
.dl-req__item span { color: var(--chalk-500); display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }

.callout {
  border-left: 3px solid var(--brass-500);
  background: rgba(233,196,106,0.07);
  padding: 18px 22px; border-radius: 0 12px 12px 0;
  margin: 24px 0; font-size: 0.95rem; color: var(--chalk-100);
}
.callout--warn { border-color: var(--cue-red); background: rgba(192,57,43,0.08); }

/* ---- Responsible gaming ---- */
.rg-band { background: linear-gradient(135deg, var(--felt-700), var(--felt-900)); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.rg-list { display: grid; gap: 16px; margin-top: 20px; }
.rg-list li { display: flex; gap: 14px; align-items: flex-start; list-style: none; color: var(--chalk-100); }
.rg-list li svg { color: var(--brass-400); flex-shrink: 0; margin-top: 3px; }

/* ---- Legal / prose ---- */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin: 40px 0 14px; font-size: 1.6rem; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { color: var(--chalk-300); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose a { color: var(--brass-400); text-decoration: underline; }
.prose .updated { color: var(--chalk-500); font-size: 0.88rem; margin-bottom: 30px; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--brass-500), var(--brass-600));
  border-radius: var(--radius);
  padding: 56px; text-align: center; position: relative; overflow: hidden;
  color: #2a1c05;
}
.cta-band h2 { color: #2a1c05; }
.cta-band p { color: #4a370f; max-width: 50ch; margin: 14px auto 28px; font-weight: 500; }
.cta-band .btn--primary { background: #2a1c05; color: var(--brass-300); box-shadow: none; }
.cta-band .btn--primary:hover { background: #14100a; }
.cta-band .store-btn { background: rgba(42,28,5,0.15); border-color: rgba(42,28,5,0.3); }
.cta-band .store-btn__main { color: #2a1c05; }
.cta-band .store-btn__sub { color: #5a4413; }
.cta-band .store-btn__icon { color: #2a1c05; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer__brand p { font-size: 0.92rem; margin-top: 16px; max-width: 32ch; }
.footer__col h4 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-400); margin-bottom: 16px; }
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col ul li a { color: var(--chalk-300); font-size: 0.92rem; transition: color .2s; }
.footer__col ul li a:hover { color: var(--brass-400); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer__bottom p { font-size: 0.85rem; color: var(--chalk-500); }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { font-size: 0.85rem; color: var(--chalk-500); }
.footer__legal a:hover { color: var(--brass-400); }
.age-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--cue-red); border-radius: 999px; color: #f3a79c; font-size: 0.78rem; font-weight: 700; }

/* ---- Reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(7,18,12,0.97); padding: 24px; gap: 18px; border-bottom: 1px solid var(--border);
  }
  .nav__toggle { display: block; }
  .nav__cta .btn { display: none; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .dl-req { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .prize, .cta-band, .dl-card, .rg-band { padding: 30px; }
  .hero__chip { display: none; }
}

/* MAX LAUNCH UPGRADE */
.trust-grid,.steps-grid,.proof-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin:28px 0}
.glass{background:rgba(255,255,255,.05);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:22px}
.launch-section{padding:70px 0}
.launch-title{text-align:center;margin-bottom:24px}
