/* ==========================================================================
   INDBET informational website — global stylesheet
   Simple, clean light UI: system sans font, one warm accent, soft cards,
   generous spacing. Mobile-first, CSS variables, no frameworks.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-secondary: #F7F8FA;
  --card: #FFFFFF;
  --text: #1A202C;
  --text-secondary: #5A6472;
  --accent: #B45309;
  --accent-hover: #8F4207;
  --accent-soft: #FDF3E7;
  --success: #15803D;
  --danger: #DC2626;
  --border: #E5E9F0;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 72rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, 0.08);
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; margin-top: 1.7em; }
h3 { font-size: 1.12rem; margin-top: 1.3em; }

p {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.4rem;
  margin: 0 0 1.1em;
}

li {
  margin-bottom: 0.4em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--bg-secondary);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 1.25rem 1.1rem;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 0.7rem 0.25rem;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.site-nav .nav-cta a {
  margin-top: 0.85rem;
  border: none;
  background: var(--accent);
  color: #FFFFFF;
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 700;
  padding: 0.7rem 1rem;
}

.site-nav .nav-cta a:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
}

@media (min-width: 64rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.4rem;
  }

  .site-nav a {
    padding: 0.25rem 0;
    border: none;
    font-size: 0.95rem;
  }

  .site-nav .nav-cta a {
    margin-top: 0;
    padding: 0.5rem 1.2rem;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 3rem 0 2.75rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2rem;
  max-width: 46rem;
  margin-top: 0;
}

.hero p {
  color: var(--text-secondary);
  max-width: 44rem;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Primary hero CTA — the single Download Game button */
.hero-download-btn {
  display: inline-block;
  width: 100%;
  max-width: 22rem;
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-download-btn:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
}

@media (min-width: 40rem) {
  .hero-download-btn {
    width: auto;
  }
}

@media (min-width: 48rem) {
  .hero {
    padding: 4.25rem 0 3.75rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs {
  padding: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--text-secondary);
}

.breadcrumbs a {
  color: var(--text-secondary);
}

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

.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Layout sections
   -------------------------------------------------------------------------- */

main {
  padding-bottom: 3rem;
}

.section {
  padding: 2rem 0 0.5rem;
}

.section-lead {
  color: var(--text-secondary);
  max-width: 46rem;
}

.page-intro {
  padding-top: 1.25rem;
}

.page-intro h1 {
  margin-top: 0.5rem;
}

.page-intro .section-lead {
  font-size: 1.05rem;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.4rem 0;
}

@media (min-width: 40rem) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: #D8DEE8;
}

.card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 0.75rem;
}

.card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
}

.card-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #FFFFFF;
  margin-bottom: 0.9rem;
}

.page-illustration {
  max-width: 260px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #FFFFFF;
  margin: 1rem 0 1.25rem;
}

.page-illustration--wide {
  max-width: 430px;
}

/* Steps list */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.4rem 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.2rem 3rem;
  margin: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.steps li strong {
  display: block;
  margin-bottom: 0.15rem;
}

.steps li p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Notice boxes */

.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}

.notice.notice-danger {
  border-left-color: var(--danger);
  background: #FEF5F5;
}

.notice.notice-success {
  border-left-color: var(--success);
  background: #F2FBF5;
}

.notice p:last-child {
  margin-bottom: 0;
}

/* FAQ accordion (native <details>, works without JS) */

.faq-list {
  margin: 1.4rem 0;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}

.faq-item summary {
  cursor: pointer;
  padding: 0.9rem 2.5rem 0.9rem 1.15rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  border-radius: var(--radius-sm);
}

.faq-item summary:hover {
  background: var(--bg-secondary);
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-item .faq-answer {
  padding: 0 1.15rem 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.93rem;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

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

th {
  color: var(--text);
  font-weight: 600;
  background: var(--bg-secondary);
}

tbody tr:hover td {
  background: #FBFCFD;
}

/* CTA band */

.cta-band {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin: 2.75rem 0 0;
  text-align: center;
}

.cta-band h2 {
  margin-top: 0;
}

.cta-band p {
  color: var(--text-secondary);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* Article / prose pages */

.prose {
  max-width: 46rem;
}

.prose h2 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.article-meta {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

/* Blog listing */

.post-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1rem;
}

.post-list li {
  margin: 0;
}

.post-list article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease;
}

.post-list article:hover {
  box-shadow: var(--shadow-lg);
}

.post-list h2,
.post-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.post-list p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 0.6rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 1.5rem;
  margin-top: 3rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 0 0 0.8rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text);
}

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

.footer-note {
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.85rem;
}

.footer-note p {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-page .error-code {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page p {
  color: var(--text-secondary);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
