:root {
  --bg: #f8f9fd;
  --bg-soft: #f1f5ff;
  --surface: #ffffff;
  --surface-alt: #eef2ff;
  --primary: #ff5c8d;
  --primary-dark: #e04a78;
  --secondary: #5c7cfa;
  --secondary-dark: #4b6de4;
  --accent: #00c1a8;
  --text-primary: #1e1f36;
  --text-muted: #453f43;
  --border-soft: rgba(99, 110, 175, 0.15);
  --border-strong: rgba(92, 124, 250, 0.28);
  --shadow-soft: 0 12px 28px rgba(99, 110, 175, 0.18);
  --shadow-strong: 0 22px 42px rgba(92, 124, 250, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  background: linear-gradient(180deg, #fff 0%, #f5f7ff 65%, #eef2ff 100%);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header,
header.bg-dark {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(99, 110, 175, 0.12);
  color: var(--text-primary);
}

.header-inner,
header .max-w-7xl,
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  position: relative;
}

.header-logo {
  text-decoration: none;
}

.header-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.header-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(92, 124, 250, 0.25);
  background: rgba(92, 124, 250, 0.08);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  font-weight: 600;
  white-space: nowrap;
}

.header-tags-desktop {
  display: flex;
}

.header-tags-mobile {
  display: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  position: relative;
}

.primary-nav a {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

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

.nav-toggle,
#navToggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

#navToggle:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  #navToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    font-size: 1.5rem;
  }

  .header-tags-desktop {
    display: none;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: rgba(255, 255, 255, 0.96);
    width: 220px;
    border: 1px solid rgba(99, 110, 175, 0.18);
    border-radius: 1rem;
    padding: 0.85rem;
    box-shadow: var(--shadow-soft);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .primary-nav.primary-nav--open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.4rem 0.35rem;
    border-radius: 0.75rem;
    width: 100%;
  }

  .primary-nav a:hover {
    background: rgba(92, 124, 250, 0.08);
  }

  .header-tags-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 23, 44, 0.7) 0%, rgba(17, 23, 44, 0.55) 45%, rgba(17, 23, 44, 0.35) 70%, rgba(186, 184, 184, 0.18) 100%),
    linear-gradient(135deg, rgba(255, 92, 141, 0.18), rgba(92, 124, 250, 0.16));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  background: rgba(92, 124, 250, 0.12);
  border-radius: 999px;
  border: 1px solid rgba(92, 124, 250, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin: 1.1rem 0 0.75rem;
}

.hero .lead {
  font-size: 1.15rem;
  /* color: var(--text-muted); */
}

.quick-steps {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-soft);
  border-radius: 1.25rem;
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
}

.hero-inner.hero-simple {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero-points {
  margin-top: 1.8rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.8rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.5rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  box-shadow: 0 0 0 4px rgba(92, 124, 250, 0.12);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(92, 124, 250, 0.18);
  border-radius: 1.75rem;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-card__header,
.hero-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
}

.hero-card__header {
  background: rgba(92, 124, 250, 0.07);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(92, 124, 250, 0.15);
  color: var(--secondary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card__status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-card__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.hero-card__game {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quick-card span {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.quick-card:nth-child(1) span {
  background: var(--secondary);
}

.quick-card:nth-child(2) span {
  background: var(--primary);
}

.quick-card:nth-child(3) span {
  background: var(--accent);
}

.cta-row {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ffa8c9);
  color: #fff;
  box-shadow: 0 18px 35px rgba(255, 92, 141, 0.23);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid rgba(92, 124, 250, 0.55);
  color: var(--secondary-dark);
}

.btn-outline:hover {
  background: rgba(92, 124, 250, 0.08);
}

.btn-outline-light {
  border: 1px solid rgba(92, 124, 250, 0.3);
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  background: transparent;
  color: var(--secondary);
}

.btn-outline-light:hover {
  background: rgba(92, 124, 250, 0.1);
}

.btn-secondary {
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  border: 1px solid rgba(0, 193, 168, 0.4);
  background: rgba(0, 193, 168, 0.12);
  color: var(--accent);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(0, 193, 168, 0.2);
  transform: translateY(-1px);
}

.hero-metrics {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(92, 124, 250, 0.12);
  border-radius: 1.1rem;
  padding: 1.6rem 1.2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 2rem;
  color: var(--secondary-dark);
}

section {
  padding: 4rem 0;
}

.section-light {
  background: #ffffff;
}

.section-soft {
  background: #f5f7ff;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}

/* Games */
.game-card {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(92, 124, 250, 0.12);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.game-card .content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex-grow: 1;
}

.game-card button {
  margin-top: auto;
  padding: 0.75rem;
  border-radius: 999px;
  border: none;
  background: rgba(92, 124, 250, 0.12);
  color: var(--secondary-dark);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.game-card button:hover {
  background: rgba(92, 124, 250, 0.2);
  transform: translateY(-1px);
}

.chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.chips-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(92, 124, 250, 0.18);
  background: linear-gradient(135deg, rgba(92, 124, 250, 0.08), rgba(255, 92, 141, 0.08));
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}

/* FAQ */
.faq button.accordion {
  width: 100%;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border-soft);
  border-radius: 1.1rem;
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq button.accordion::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--secondary);
}

.faq button.accordion.active::after {
  content: "−";
}

.faq button.accordion:hover,
.faq button.accordion.active {
  border-color: rgba(92, 124, 250, 0.35);
  background: rgba(255, 255, 255, 0.95);
}

.faq .panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 0 0 1.1rem 1.1rem;
}

.faq .panel p {
  padding: 1rem 1.25rem;
  margin: 0;
  color: var(--text-muted);
}

/* Contact page */
.contact-section p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  /* text-align: center; */
  color: var(--text-muted);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
}

.contact-info,
.contact-form-wrapper {
  flex: 1 1 320px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.contact-info address,
.contact-info p {
  color: var(--text-muted);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(92, 124, 250, 0.2);
  border-radius: 0.9rem;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(92, 124, 250, 0.45);
  box-shadow: 0 0 0 4px rgba(92, 124, 250, 0.12);
}

.contact-form button {
  align-self: start;
}

@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }
}

/* Footer */
.site-footer,
footer {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-muted);
  padding: 2.75rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(99, 110, 175, 0.12);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-note {
  font-size: 0.75rem;
  text-align: center;
  color: rgba(75, 77, 115, 0.8);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(25, 26, 45, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
}

.modal-content {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid rgba(92, 124, 250, 0.16);
  padding: 2.25rem;
  border-radius: 1.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(92, 124, 250, 0.18);
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-outline,
.btn-secondary,
.btn-primary,
.btn-outline-light {
  font-family: "Inter", sans-serif;
}

/* Cookie Banner */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-primary);
  border-top: 1px solid rgba(92, 124, 250, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1500;
}

#cookieBanner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

#cookieBanner .flex {
  display: flex;
  gap: 0.75rem;
}

#cookieBanner button {
  border-radius: 999px;
}

@media (min-width: 768px) {
  #cookieBanner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Utility */
.hidden {
  display: none !important;
}

.translate-y-full {
  transform: translateY(100%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.pointer-events-none {
  pointer-events: none !important;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-soft);
  border-radius: 1.25rem;
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 0 1rem !important;
}

.link {
  color: var(--secondary);
}

.link:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy,
  .chips-grid,
  .hero-metrics {
    margin-left: auto;
    margin-right: auto;
  }

  .quick-card {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .cta-row {
    flex-direction: column;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

main {
  flex: 1;
}
