/* Mindfied - Mobile First CSS */

:root {
  --bg: #080b1f;
  --bg-soft: #10142f;
  --card: #151a3d;
  --card-light: #1f2552;
  --text: #f7f8ff;
  --muted: #b8bedc;
  --accent: #6c63ff;
  --accent-2: #20f3b5;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(108, 99, 255, 0.28), transparent 32%),
    radial-gradient(circle at top right, rgba(32, 243, 181, 0.18), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 31, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #060817;
  font-weight: 900;
}

.menu-toggle {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 1.5rem;
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.nav-links {
  position: absolute;
  top: 72px;
  right: 1rem;
  width: min(260px, calc(100% - 2rem));
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: #10142f;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.nav-links.active {
  display: flex;
}

.nav-links a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--muted);
  border-radius: 12px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #060817 !important;
}

/* Hero */

.hero {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 4.5rem 1.1rem 3rem;
  display: grid;
  gap: 2rem;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2.6rem, 13vw, 5.2rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(2rem, 8vw, 3.25rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-text {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.hero-buttons {
  margin-top: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #060817;
  box-shadow: 0 14px 32px rgba(32, 243, 181, 0.18);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.game-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.game-preview span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--card-light);
  border: 1px solid var(--border);
  font-size: 1.4rem;
  font-weight: 900;
}

.game-preview:first-child span:nth-child(1),
.game-preview:first-child span:nth-child(3),
.game-preview:nth-child(2) span:nth-child(2) {
  background: var(--accent-2);
  color: #060817;
}

.game-preview:first-child span:nth-child(2),
.game-preview:nth-child(2) span:nth-child(4) {
  background: var(--accent);
  color: white;
}

.hero-card p {
  margin-top: 1rem;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

/* Sections */

.section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 3.5rem 1.1rem;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--muted);
  margin-top: 0.7rem;
}

.games-grid,
.category-grid {
  display: grid;
  gap: 1rem;
}

.game-card,
.category-card,
.streak-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

.game-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: var(--card-light);
  font-size: 1.6rem;
}

.game-card p {
  color: var(--muted);
  margin: 0.8rem 0 1.2rem;
}


.dark-section {
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 100%;
  max-width: none;
}

.dark-section > * {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.category-card {
  text-align: center;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(145deg, var(--card), rgba(108, 99, 255, 0.12));
}

.streak-section {
  display: grid;
  gap: 1.5rem;
}

.streak-section p {
  color: var(--muted);
  margin-top: 0.8rem;
}

.streak-box {
  text-align: center;
  background: linear-gradient(145deg, rgba(32, 243, 181, 0.14), var(--card));
}

.streak-box span {
  font-size: 2.5rem;
}

.streak-box h3 {
  margin-top: 0.6rem;
}

/* Newsletter */

.newsletter {
  text-align: center;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.22), rgba(32, 243, 181, 0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 3rem;
}

.newsletter p {
  color: var(--muted);
  margin: 0.75rem auto 1.5rem;
  max-width: 520px;
}

.newsletter-form {
  display: grid;
  gap: 0.8rem;
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-form input,
.newsletter-form button {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.15rem;
  font-size: 1rem;
}

.newsletter-form input {
  background: white;
  color: #060817;
}

.newsletter-form button {
  background: var(--accent-2);
  color: #060817;
  font-weight: 900;
  cursor: pointer;
}

/* Footer */

.site-footer {
  padding: 2.5rem 1.1rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: #060817;
}

.footer-logo {
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.2rem;
  margin-bottom: 1rem;
}

.footer-links a,
.site-footer p {
  color: var(--muted);
}

/* Tablet */

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-form {
    grid-template-columns: 1fr auto;
  }

  .newsletter-form button {
    padding-inline: 1.6rem;
  }
}

/* Desktop */

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .nav-links a {
    padding: 0.65rem 0.8rem;
  }

  .nav-cta {
    padding: 0.7rem 1.05rem !important;
    border-radius: 999px;
  }

  .hero {
    min-height: 78vh;
    align-items: center;
    grid-template-columns: 1.15fr 0.85fr;
    padding-top: 5rem;
  }

  .hero-card {
    padding: 1.8rem;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .streak-section {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
  }
}
.game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.95rem 1.5rem;

  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent-2)
  );

  color: #f7f8ff;
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.02em;

  border-radius: 999px;
  border: none;

  box-shadow:
    0 10px 30px rgba(108, 99, 255, 0.25);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;

  cursor: pointer;
}

.game-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 15px 35px rgba(108, 99, 255, 0.35);
}

.game-btn:active {
  transform: translateY(0);
}

.game-btn:focus {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}
.game-btn {
  width: 100%;
 
}

@media (min-width: 640px) {
  .game-btn {
    width: auto;
  }
}

.game-btn {
  color: #fafafa;
}