/* ===========================================================
   Gold Rummy — Stylesheet
   Theme: dark slate base + emerald/teal accents
   =========================================================== */

:root {
  /* Colors */
  --bg-base: #0b1220;
  --bg-alt: #0f1a2b;
  --bg-card: #121f33;
  --bg-card-hover: #16273f;
  --border-subtle: #1f2f47;

  --text-primary: #f1f5f9;
  --text-secondary: #a8b6c9;
  --text-muted: #7b8aa0;

  --accent: #10b981;
  --accent-strong: #059669;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-teal: #14b8a6;

  --danger: #f87171;

  /* Layout */
  --container-max: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #06281f;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn--sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 16px;
}

.btn--primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #06281f;
}

.btn--primary:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-teal));
  color: #06281f;
  font-size: 14px;
  font-weight: 800;
}

.logo__text em {
  font-style: normal;
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text-primary);
}

.header__cta {
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(600px 300px at 85% 10%, var(--accent-soft), transparent 70%),
    var(--bg-base);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: 44px;
  letter-spacing: -0.02em;
  max-width: 620px;
}

.hero__sub {
  font-size: 17px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}

.hero__disclaimer {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 480px;
}

.hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-stack {
  position: relative;
  width: 240px;
  height: 240px;
}

.card {
  position: absolute;
  width: 130px;
  height: 180px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

.card--1 {
  top: 10px;
  left: 10px;
  transform: rotate(-10deg);
  z-index: 1;
}

.card--2 {
  top: 20px;
  left: 60px;
  transform: rotate(4deg);
  z-index: 2;
  color: var(--danger);
}

.card--3 {
  top: 0;
  left: 105px;
  transform: rotate(16deg);
  z-index: 3;
  color: var(--accent-teal);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-alt);
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 24px;
  text-align: center;
}

.trust-stat__num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.trust-stat__label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  max-width: 620px;
  margin: 0 0 40px;
}

.section__head h2 {
  font-size: 32px;
}

.section__sub {
  margin: 0;
}

/* ---------- Games grid ---------- */
.games__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.game-card__icon {
  font-size: 30px;
  margin-bottom: 14px;
}

.game-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.game-card p {
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 22px 22px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
}

.step p {
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Trust cards ---------- */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-base) 100%);
}

.trust-card h3 {
  font-size: 16.5px;
  color: var(--accent-teal);
}

.trust-card p {
  font-size: 14px;
  margin: 0;
}

/* ---------- Download CTA ---------- */
.download-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-base) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.download-cta__inner h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

.download-cta__inner p {
  margin: 0;
}

/* ---------- FAQ / Accordion ---------- */
.accordion {
  max-width: 760px;
}

.accordion__item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
}

.accordion__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion__item summary::-webkit-details-marker {
  display: none;
}

.accordion__item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  margin-left: 12px;
  transition: transform 0.2s ease;
}

.accordion__item[open] summary::after {
  transform: rotate(45deg);
}

.accordion__item p {
  margin: 12px 0 0;
  font-size: 14.5px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #070c16;
  border-top: 1px solid var(--border-subtle);
  padding-top: 56px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__tagline {
  font-size: 13.5px;
  margin-top: 10px;
  max-width: 220px;
}

.footer__col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer__col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__hours {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.footer__legal {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 24px 32px;
}

.footer__legal p {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 900px;
}

.footer__copyright {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 60;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__art {
    order: -1;
  }

  .hero h1 {
    font-size: 34px;
  }

  .games__grid,
  .steps,
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .trust-strip__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .games__grid,
  .steps,
  .trust__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .download-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 56px 0;
  }
}

/* ---------- Content pages ---------- */
.content-hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(600px 260px at 85% 0%, var(--accent-soft), transparent 70%),
    var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
}

.content-hero__inner {
  max-width: 760px;
}

.content-hero h1 {
  font-size: 38px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.content-hero__meta {
  font-size: 13px;
  color: var(--text-muted);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 24px;
  margin-top: 40px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 18px;
  margin-top: 28px;
  color: var(--accent-teal);
}

.prose p {
  font-size: 15.5px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  color: var(--text-secondary);
  font-size: 15.5px;
  margin-bottom: 8px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  color: var(--text-primary);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
}

.prose th,
.prose td {
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  text-align: left;
  color: var(--text-secondary);
}

.prose th {
  background: var(--bg-card);
  color: var(--text-primary);
}

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 0 0 28px;
  font-size: 14.5px;
  color: var(--text-primary);
}

.callout p {
  margin: 0;
  color: var(--text-primary);
}

.state-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.state-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- Careers ---------- */
.jobs__grid {
  display: grid;
  gap: 16px;
  margin: 0 0 40px;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.job-card__info h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.job-card__meta {
  font-size: 13.5px;
  color: var(--text-muted);
}

.job-card__meta span {
  margin-right: 12px;
}

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

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.value-card h3 {
  font-size: 16px;
  color: var(--accent-teal);
}

.value-card p {
  font-size: 14px;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 40px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.contact-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
  font-size: 14.5px;
  margin: 0;
}

.contact-card a {
  color: var(--accent);
}

@media (max-width: 960px) {
  .values__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .content-hero h1 {
    font-size: 28px;
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
