/* MindGrid — static site styles */

:root {
  --bg: #0a0e1a;
  --bg-soft: #0f1424;
  --surface: #151b30;
  --surface-2: #1b2240;
  --border: #232a45;
  --text: #e8ecf6;
  --text-dim: #9aa4c0;
  --accent: #4d7cff;
  --accent-2: #a16bff;
  --neon: #5eead4;
  --radius: 16px;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}

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

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-dim);
}

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

/* Burger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto 0;
  height: 600px;
  background:
    radial-gradient(600px 300px at 30% 20%, rgba(77, 124, 255, 0.22), transparent 70%),
    radial-gradient(500px 300px at 75% 30%, rgba(161, 107, 255, 0.20), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-logo {
  margin: 0 auto;
  line-height: 0;
}

.hero-logo img {
  width: min(280px, 64vw);
  height: auto;
  filter: drop-shadow(0 0 36px rgba(77, 124, 255, 0.30));
}

.tagline {
  margin-top: 8px;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
}

.hero p.desc {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 28px rgba(77, 124, 255, 0.38);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(161, 107, 255, 0.45);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 12px;
  color: var(--text-dim);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Games grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.game-card {
  position: relative;
  display: block;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.game-card:hover {
  color: var(--text);
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(77, 124, 255, 0.18);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.badge-live {
  color: #062a20;
  background: var(--neon);
  box-shadow: 0 0 14px rgba(94, 234, 212, 0.45);
}

.badge-soon {
  color: var(--text-dim);
  background: var(--surface-2);
  border-color: var(--border);
}

.game-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.game-card[href]:hover .game-cta {
  color: var(--accent-2);
}

.game-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}

.game-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.game-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.stat {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
}

.stat b {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat span {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.about-text {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---------- Contact ---------- */
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 30px;
}

.contact-card p {
  color: var(--text-dim);
  margin-bottom: 22px;
}

.email-link {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.email-link:hover {
  border-color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 12px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

/* ---------- Privacy / legal page ---------- */
.legal {
  padding: 56px 0 72px;
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 32px 0 10px;
}

.legal p {
  color: var(--text-dim);
  margin-bottom: 14px;
}

.legal ul {
  color: var(--text-dim);
  margin: 0 0 16px 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  word-break: break-word;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }

  .nav-menu.open {
    max-height: 320px;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 52px 0;
  }

  .container {
    padding: 0 18px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .contact-card {
    padding: 32px 20px;
  }

  .email-link {
    font-size: 1rem;
    word-break: break-all;
  }

  .legal {
    padding: 40px 0 56px;
  }

  .footer-links {
    gap: 14px;
  }
}
