/* =========================================================================
   Croupier Academy — Premium casino training site
   Self-contained stylesheet · no external libraries · mobile-first
   Palette: deep red + light gold on a dark, warm background
   ========================================================================= */

/* ----------------------------- Design tokens ----------------------------- */
:root {
  /* Surfaces */
  --bg:            #0a0a0d;
  --bg-2:          #101016;
  --surface:       #16151d;
  --surface-2:     #1d1b25;

  /* Brand */
  --red-deep:      #6e0f1c;
  --red:           #8c1626;
  --red-bright:    #b62a3d;
  --gold:          #c9a227;
  --gold-soft:     #d8bd6a;
  --gold-line:     rgba(201, 162, 39, 0.22);

  /* Text */
  --text:          #ece8e0;
  --text-muted:    #a39e95;
  --text-faint:    #6f6b64;

  /* Effects */
  --radius:        14px;
  --radius-sm:     10px;
  --shadow:        0 18px 50px rgba(0, 0, 0, 0.45);
  --ring:          0 0 0 1px var(--gold-line);
  --maxw:          1120px;

  --font-display:  "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                   Helvetica, Arial, "Apple Color Emoji", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(140, 22, 38, 0.28), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(201, 162, 39, 0.07), transparent 55%),
    linear-gradient(180deg, #0c0b10 0%, var(--bg) 40%);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--gold-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: .2px; }

/* ------------------------------ Layout ----------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

section { padding-block: clamp(56px, 9vw, 104px); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0 0 16px;
}

.section-lead {
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 auto;
  font-size: 1.05rem;
}

.center { text-align: center; }

/* ------------------------------ Header ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 13, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--gold-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 14px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .3px;
}
.brand:hover { color: var(--text); }
.brand .chip { width: 32px; height: 32px; flex: 0 0 auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }

/* Hero logo (the app splash chip) */
.hero-logo {
  width: clamp(96px, 18vw, 132px);
  height: auto;
  margin: 0 0 26px;
  filter: drop-shadow(0 12px 30px rgba(140, 22, 38, 0.45));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .95rem;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .02em;
}
.nav-links a:hover { color: var(--gold); }

/* ------------------------------ Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: 0 10px 28px rgba(140, 22, 38, 0.4);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 34px rgba(182, 42, 61, 0.5); transform: translateY(-1px); }

.btn-ghost {
  color: var(--gold-soft);
  border-color: var(--gold-line);
  background: rgba(201, 162, 39, 0.05);
}
.btn-ghost:hover { color: var(--gold); border-color: rgba(201, 162, 39, 0.5); }

/* Store badges (monochrome, premium) */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  min-width: 178px;
}
.store-badge:hover { color: var(--text); border-color: rgba(201, 162, 39, 0.5); background: rgba(201, 162, 39, 0.06); }
.store-badge svg { width: 26px; height: 26px; fill: var(--text); flex: 0 0 auto; }
.store-badge .store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .store-text small { font-size: .68rem; color: var(--text-muted); letter-spacing: .04em; }
.store-badge .store-text strong { font-size: 1.02rem; font-weight: 600; }

/* ------------------------------- Hero ------------------------------------ */
.hero { padding-block: clamp(64px, 11vw, 132px); position: relative; }
.hero-inner { max-width: 760px; }

.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  margin: 0 0 8px;
  background: linear-gradient(180deg, #fff 0%, #e9dca9 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--gold-soft);
  margin: 0 0 24px;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 28px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(255,255,255,0.02);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

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

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .35;
}
.card:hover { transform: translateY(-4px); border-color: rgba(201,162,39,.45); box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(201,162,39,.18), rgba(140,22,38,.18));
  border: 1px solid var(--gold-line);
  font-size: 1.4rem;
}
.card h3 { font-size: 1.25rem; margin: 0 0 8px; color: var(--text); }
.card p { margin: 0; color: var(--text-muted); font-size: .97rem; }

/* ------------------------- Feature (Train) ------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-muted); }
.feature-list li strong { color: var(--text); display: block; font-weight: 600; }
.feature-list .tick {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 2px;
  background: rgba(201,162,39,.12); border: 1px solid var(--gold-line); color: var(--gold);
  font-size: .8rem; font-weight: 700;
}
.feature-art {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(120px 120px at 30% 30%, rgba(201,162,39,.16), transparent 70%),
    radial-gradient(160px 160px at 80% 70%, rgba(182,42,61,.30), transparent 70%),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.015) 0deg 6deg, transparent 6deg 12deg),
    linear-gradient(160deg, #14331f 0%, #0c2417 100%);
  position: relative;
  box-shadow: inset 0 0 80px rgba(0,0,0,.5);
  display: grid; place-items: center;
}
.feature-art .felt-label {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(236,232,224,.55);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .9rem;
}

/* ------------------------------ Banner ----------------------------------- */
.disclaimer {
  border: 1px solid var(--gold-line);
  border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(201,162,39,.06), rgba(140,22,38,.05));
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.disclaimer .mark { font-size: 1.4rem; line-height: 1.3; }
.disclaimer p { margin: 0; color: var(--text-muted); font-size: .98rem; }
.disclaimer strong { color: var(--text); }

/* --------------------------- Legal / Support ----------------------------- */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.link-card {
  display: block;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--surface);
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, background .2s;
}
.link-card:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(201,162,39,.45); background: var(--surface-2); }
.link-card h3 { font-size: 1.2rem; margin: 0 0 6px; }
.link-card p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.link-card .arrow { color: var(--gold); margin-top: 14px; font-weight: 600; font-size: .9rem; letter-spacing: .04em; }

/* ----------------------------- Legal pages ------------------------------- */
.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal-wrap { max-width: 780px; margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 6px; color: var(--text); }
.legal .updated { color: var(--text-faint); font-size: .9rem; margin: 0 0 36px; letter-spacing: .02em; }
.legal h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  color: var(--gold-soft);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-line);
}
.legal h3 { font-size: 1.08rem; margin: 24px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 20px; margin: 12px 0; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }
.legal .toc {
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 18px 22px;
  margin: 0 0 36px;
}
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.legal .toc li { margin-bottom: 6px; font-size: .92rem; }
.back-home { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 28px; color: var(--text-muted); }
.back-home:hover { color: var(--gold); }

/* --------------------------- Support specifics --------------------------- */
.support-email {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.7rem);
  border: 1px solid var(--gold-line); border-radius: 999px;
  padding: 14px 28px; margin: 8px 0 26px;
  background: rgba(201,162,39,.05); color: var(--gold-soft);
}
.support-email:hover { color: var(--gold); border-color: rgba(201,162,39,.5); }

.faq { display: grid; gap: 16px; margin-top: 12px; }
.faq details {
  border: 1px solid var(--gold-line); border-radius: var(--radius-sm);
  background: var(--surface); padding: 4px 20px;
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--text-muted); }

/* ------------------------------ Footer ----------------------------------- */
.site-footer {
  border-top: 1px solid var(--gold-line);
  background: var(--bg-2);
  padding-block: 48px;
  margin-top: 20px;
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: .92rem; margin: 0; }
.footer-cols { display: flex; gap: clamp(36px, 8vw, 80px); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: .94rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: 36px; padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--text-faint); font-size: .85rem;
}

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .legal .toc ol { columns: 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .nav { gap: 10px; }
  .nav-links { gap: 16px; font-size: .9rem; }
  .store-badge { flex: 1 1 100%; }
  section { padding-block: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
