/* ==========================================================================
   INDBET informational website — global stylesheet
   Mobile-first, CSS variables, no frameworks.
   ========================================================================== */

:root {
  --bg: #0B0F14;
  --bg-secondary: #111821;
  --card: #151D27;
  --text: #F5F7FA;
  --text-secondary: #AAB4C0;
  --accent: #F5B400;
  --accent-hover: #FFC933;
  --success: #20C77A;
  --danger: #EF5350;
  --border: #232E3C;
  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 72rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   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.65;
  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.01em;
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.45rem; margin-top: 1.6em; }
h3 { font-size: 1.15rem; margin-top: 1.3em; }

p {
  margin: 0 0 1em;
}

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

li {
  margin-bottom: 0.35em;
}

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: 2px;
}

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

.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: #101010;
  padding: 0.5rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

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

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

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

.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 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-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.1rem 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.65rem 0.25rem;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

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

.site-nav .nav-cta a {
  margin-top: 0.75rem;
  border: none;
  background: var(--accent);
  color: #101010;
  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: #101010;
}

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

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

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

  .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.15rem;
  }
}

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

.hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

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

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

.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.95rem 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #101010;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero-download-btn:hover {
  background: var(--accent-hover);
  color: #101010;
  text-decoration: none;
}

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

@media (min-width: 48rem) {
  .hero {
    padding: 4.5rem 0 4rem;
  }
  .hero h1 {
    font-size: 2.6rem;
  }
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
}

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

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

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

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

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

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

.breadcrumbs {
  padding: 0.9rem 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);
}

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

main {
  padding-bottom: 3rem;
}

.section {
  padding: 2.25rem 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.25rem 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.25rem;
  box-shadow: var(--shadow);
}

.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.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(245, 180, 0, 0.12);
  color: var(--accent);
  margin-bottom: 0.85rem;
}

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

/* Steps list */

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

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

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--card);
  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-left: 3px solid var(--accent);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

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

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

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

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

.faq-list {
  margin: 1.25rem 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.1rem;
  font-weight: 600;
  list-style: none;
  position: relative;
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  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.1rem 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.25rem 0;
}

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

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

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

/* CTA band */

.cta-band {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin: 2.5rem 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.35rem;
}

.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.25rem;
}

.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.5rem 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.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
}

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

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

.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;
}
