/* =============================================================
   MindBlitz Games — site styles
   White base, ink black, signature orange. Gaming-style landing
   page + legal document pages (privacy / terms).
============================================================= */
:root {
  --bg: #FDFDFB;
  --surface: #F6F5F1;
  --surface-line: #E7E4DC;
  --ink: #17140F;
  --ink-2: #221E17;
  --orange: #F2760F;
  --orange-hot: #FF5A00;
  --orange-dark: #C85D08;
  --muted: #6E6A61;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --max-doc: 720px;
  --max: 1160px;
  --radius: 20px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-hot)); color: #fff; box-shadow: 0 8px 22px rgba(242,118,15,.35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(242,118,15,.5); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.25); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0B0A08; color: #fff; padding: 10px 24px 10px 16px;
  border-radius: 14px; border: 2px solid rgba(255,255,255,.28);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
.play-badge:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.35); color: #fff; }
.play-badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.play-badge-text small { font-size: .66rem; letter-spacing: .12em; opacity: .85; }
.play-badge-text strong { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,253,251,.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--surface-line);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(23,20,15,.07); }
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-mark { height: 42px; width: auto; display: block; }

.site-menu { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 24px; }
.site-nav { display: flex; gap: 26px; margin: 0 auto; }
.site-nav a {
  color: var(--muted); font-size: .95rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--orange-dark); border-bottom-color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.social-row { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; color: var(--ink); background: var(--surface);
  border: 1px solid var(--surface-line);
  transition: all .15s ease;
}
.social-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-2px); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #FF8A1F 0%, #F2600A 55%, #E8420A 100%);
  padding: 72px 0 120px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-1 { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(255,214,150,.55), transparent 65%); }
.orb-2 { width: 420px; height: 420px; left: -140px; bottom: -160px; background: radial-gradient(circle, rgba(120,20,0,.35), transparent 65%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }

.eyebrow {
  display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
  padding: 6px 16px; border-radius: 100px; font-size: .88rem; font-weight: 600; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 22px;
  text-shadow: 0 4px 24px rgba(120,30,0,.25);
}
.hero h1 .hl { color: var(--ink); background: #fff; padding: 0 .22em; border-radius: 14px; display: inline-block; transform: rotate(-2deg); text-shadow: none; }
.hero-sub { font-size: 1.18rem; max-width: 50ch; margin: 0 0 32px; color: #FFF3E6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 38px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; line-height: 1.2; }
.hero-stats strong { font-family: var(--font-display); font-size: 2rem; }
.hero-stats span { font-size: .85rem; color: #FFE2C7; }

.hero-phones { position: relative; height: 520px; display: flex; justify-content: center; align-items: center; }
.phone {
  position: relative; width: 220px; aspect-ratio: 9 / 19.2;
  background: #0B0A08; border-radius: 34px; padding: 8px;
  box-shadow: 0 30px 60px rgba(60,10,0,.45), inset 0 0 0 2px #2a2620;
}
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 56px; height: 6px; border-radius: 6px; background: #0B0A08; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; }
.hero-phones .phone { position: absolute; }
.p-center { width: 240px; z-index: 3; animation: bob 5s ease-in-out infinite; }
.p-left { width: 205px; left: 2%; top: 56px; transform: rotate(-9deg); z-index: 2; animation: bob 6s ease-in-out -2s infinite; }
.p-right { width: 205px; right: 2%; top: 56px; transform: rotate(9deg); z-index: 2; animation: bob 6.5s ease-in-out -1s infinite; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }


.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; display: block; }

/* ---------------- Category strip ---------------- */
.strip { padding: 10px 0 20px; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  background: #fff; border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 22px 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.strip-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(23,20,15,.08); }
.strip-item strong { font-family: var(--font-display); font-size: 1.02rem; margin-top: 10px; }
.strip-item small { color: var(--muted); font-size: .85rem; }
.strip-img { width: 88px; height: 88px; object-fit: contain; margin-bottom: 2px; transition: transform .25s ease; }
.strip-item:hover .strip-img { transform: scale(1.08) rotate(-3deg); }
.strip-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; box-shadow: inset 0 -4px 8px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.12); }

/* ---------------- Sections ---------------- */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 12px;
}
.kicker.light { color: #FFE2C7; }
.section h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.orange { color: var(--orange); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  padding: 10px 20px; border-radius: 100px; cursor: pointer;
  background: #fff; color: var(--ink); border: 2px solid var(--surface-line);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--orange); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Game cards */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.game-card {
  background: #fff; border: 1px solid var(--surface-line); border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(23,20,15,.12); border-color: var(--accent); }
.game-card[hidden] { display: none; }
.game-art {
  position: relative; height: 450px; overflow: hidden; display: flex; justify-content: center; align-items: flex-end;
  padding: 0 20px 24px;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 55%, #fff), var(--accent));
}
.mini-phone {
  flex: 0 0 auto; width: 180px; aspect-ratio: 9 / 19; background: #0B0A08; border-radius: 26px; padding: 6px;
  box-shadow: 0 18px 34px rgba(0,0,0,.35); transition: transform .3s ease;
}
.mini-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 19px; }
.game-card:hover .mini-phone { transform: translateY(-6px) scale(1.02); }
.badge-daily {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--ink); color: #fff; font-size: .74rem; white-space: nowrap; font-weight: 600; padding: 4px 11px; border-radius: 100px;
}
.game-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game-tag { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); filter: brightness(.8); }
.game-body h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 0; }
.game-body p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; flex: 1; }
.game-play { margin-top: 10px; font-weight: 600; font-size: .92rem; color: var(--orange-dark); }

/* ---------------- Dark sections ---------------- */
.section.dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.section.dark::before {
  content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(242,118,15,.35), transparent 65%);
}
.daily-grid { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.daily h2 { color: #fff; }
.daily-text { color: #CFC9BD; font-size: 1.1rem; margin: 0 0 28px; max-width: 46ch; }
.daily-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.daily-tile { display: block; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 30px rgba(0,0,0,.35); transition: transform .2s ease, box-shadow .2s ease; }
.daily-tile:hover { transform: translateY(-5px); box-shadow: 0 20px 38px rgba(0,0,0,.45); }
.daily-tile img { width: 100%; height: auto; display: block; }

/* ---------------- Screenshots ---------------- */
.shots {
  display: flex; gap: 26px; overflow-x: auto; padding: 10px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 40px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--orange) var(--surface);
}
.shot { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.shot .phone { width: 230px; margin: 0 auto 14px; transition: transform .25s ease; }
.shot:hover .phone { transform: translateY(-8px) rotate(-1.5deg); }
.shot figcaption { display: flex; flex-direction: column; line-height: 1.3; }
.shot figcaption strong { font-family: var(--font-display); }
.shot figcaption small { color: var(--muted); }

/* ---------------- Features ---------------- */
.features { background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 16px 34px rgba(23,20,15,.08); }
.feature > span { font-size: 2rem; display: block; margin-bottom: 8px; }
.feature h3 { font-family: var(--font-display); margin: 0 0 6px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------------- Download CTA ---------------- */
.cta-section { padding: 70px 0 90px; }
.cta {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #FF8A1F, #F2600A 55%, #E8420A);
  border-radius: 32px; padding: 56px 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px;
  box-shadow: 0 30px 60px rgba(242,96,10,.3);
}
.cta::after { content: ""; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-copy { position: relative; z-index: 1; max-width: 640px; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.cta p { color: #FFF0E0; font-size: 1.1rem; margin: 0 0 26px; }
.cta-qr { position: relative; z-index: 1; background: #fff; border-radius: 22px; padding: 16px 16px 10px; text-align: center; box-shadow: 0 16px 34px rgba(80,20,0,.3); }
.cta-qr img { width: 150px; height: 150px; }
.cta-qr small { color: var(--muted); font-weight: 500; display: block; margin-top: 4px; }

/* ---------------- Reveal on scroll (only when JS is on) ---------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- Legal document pages ---------------- */
.doc { max-width: var(--max-doc); margin: 6vh auto 10vh; padding: 0 24px; }
.doc-eyebrow { color: var(--orange-dark); font-size: .85rem; font-weight: 600; margin: 0 0 6px; }
.doc-head h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.7rem); margin: 0 0 10px; letter-spacing: -.01em; color: var(--ink); }
.doc-updated { color: var(--muted); font-size: .9rem; margin: 0 0 22px; }
.doc-intro { font-size: 1.05rem; color: var(--ink); border-left: 3px solid var(--orange); padding-left: 18px; margin: 0 0 40px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px 10px; background: var(--surface); border: 1px solid var(--surface-line); border-radius: 12px; padding: 18px 20px; margin-bottom: 48px; }
.doc-toc a { color: var(--muted); font-size: .86rem; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--surface-line); background: var(--bg); }
.doc-toc a:hover { color: var(--orange-dark); border-color: var(--orange); text-decoration: none; }
.doc section { margin-bottom: 40px; scroll-margin-top: 90px; }
.doc h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 16px; padding-top: 24px; border-top: 1px solid var(--surface-line); color: var(--ink); }
.doc section:first-of-type h2 { border-top: none; padding-top: 0; }
.doc h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 26px 0 10px; color: var(--ink); }
.doc p { color: #3C382F; margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; color: #3C382F; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .92rem; }
.doc-table th, .doc-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--surface-line); }
.doc-table th { background: var(--surface); font-family: var(--font-display); font-weight: 600; }
.doc-contact { background: var(--surface); border: 1px solid var(--surface-line); border-radius: 12px; padding: 18px 20px; color: var(--ink); }
.doc-footnote { color: var(--muted); font-size: .85rem; font-style: italic; border-top: 1px solid var(--surface-line); padding-top: 24px; margin-top: 8px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #CFC9BD; margin-top: 0; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand img { height: 48px; width: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0 0 18px; max-width: 32ch; color: #A29B8D; }
.footer-play { display: inline-flex; align-items: center; gap: 8px; background: #0B0A08; border: 1px solid #4a4336; color: #fff; padding: 9px 16px; border-radius: 12px; font-size: .9rem; font-weight: 500; }
.footer-play:hover { text-decoration: none; border-color: var(--orange); color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-family: var(--font-display); color: #fff; margin: 0 0 6px; font-size: 1rem; }
.footer-col a { color: #A29B8D; font-size: .95rem; }
.footer-col a:hover { color: var(--orange); text-decoration: none; }
.footer-social { display: inline-flex; align-items: center; gap: 10px; }
.footer-bottom {
  max-width: var(--max); margin: 0 auto; padding: 22px 24px; border-top: 1px solid #332e25;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; color: #8d8678;
}
.footer-bottom a { color: #A29B8D; }
.footer-bottom a:hover { color: var(--orange); text-decoration: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-phones { height: 460px; margin-top: 20px; }
  .daily-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; text-align: center; padding: 44px 28px; }
  .cta-copy { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-menu {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 18px;
    background: var(--bg); padding: 18px 24px 24px; border-bottom: 1px solid var(--surface-line);
    box-shadow: 0 18px 30px rgba(23,20,15,.08);
    display: none;
  }
  .site-menu.open { display: flex; }
  .site-nav { flex-direction: column; gap: 4px; margin: 0; }
  .site-nav a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--surface-line); }
  .header-actions { justify-content: space-between; flex-wrap: wrap; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
  .hero { padding: 48px 0 100px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .daily-list { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .hero-phones { height: 400px; }
  .p-center { width: 190px; }
  .p-left, .p-right { width: 150px; top: 60px; }
  .p-left { left: -2%; } .p-right { right: -2%; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .cta-qr { display: none; }
  .doc-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}