/* =============================================================
   IJ7 Game: Homepage-only styles
   Loaded after style.css, on index.html only.
   ============================================================= */

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 8vw, 88px) clamp(32px, 6vw, 64px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(680px 420px at 78% 4%, rgba(224, 33, 44, .24), transparent 60%),
    radial-gradient(520px 380px at 14% 96%, rgba(240, 180, 41, .12), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: radial-gradient(600px 400px at 70% 10%, #000, transparent);
}

.hero-stack { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Same real "i.7" mark as the header (web-app-manifest-512x512.png), which
   has genuine alpha transparency, so no mix-blend-mode trick is needed here
   (the old JPEG wordmark this replaced had a hard black background and
   needed one). */
.hero-logo-wrap {
  position: relative; display: inline-block; margin-bottom: 18px;
  width: min(40vw, 160px); overflow: hidden; border-radius: var(--r-lg);
}
.hero-logo { display: block; width: 100%; height: auto; }
.hero-logo-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%);
  transform: translateX(-160%);
  animation: logo-shine 5s ease-in-out infinite;
  animation-delay: 1.4s;
}
@keyframes logo-shine {
  0%, 26% { transform: translateX(-160%); }
  52%, 100% { transform: translateX(160%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-wrap::after { animation: none; display: none; }
}

.hero .eyebrow { margin-bottom: 4px; }
.hero h1 { max-width: 20ch; margin: 6px 0 16px; }
.hero .lede { max-width: 56ch; margin: 0 auto 28px; }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; max-width: 460px; }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.02rem; }
.hero-cta .btn { flex: 1 1 200px; }

.hero-trust { margin: 18px 0 0; font-size: .82rem; color: var(--text-dim); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; width: 100%; max-width: 460px; }
.hero-stat { text-align: center; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 8px; }
.hero-stat b { display: block; font-family: var(--head); font-size: 1.3rem; color: var(--brand-lt); }
.hero-stat span { font-size: .72rem; color: var(--text-dim); }

/* ---------- Screenshot gallery ----------
   A static grid, not a scroll strip: every screen is visible at once,
   nothing is implied to be "off to the side" requiring a swipe. On phones
   each screenshot runs full-width, one at a time, instead of a cramped
   2-up row, large enough to actually read. Widens into a grid once
   there's room for full-size screens side by side. */
.screens-head { text-align: center; max-width: 60ch; margin-inline: auto; }
.screens-strip {
  display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px;
  max-width: 420px; margin-inline: auto;
}
.screen-card {
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 12px; box-shadow: var(--sh-sm); transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.screen-card:hover { transform: translateY(-4px); border-color: var(--line-soft); box-shadow: var(--sh-md); }
/* Source captures carry a black status-bar strip at the very top; cropping
   to a slightly shorter box and anchoring to the bottom trims it off. */
.screen-card img {
  width: 100%; aspect-ratio: 722 / 1510; object-fit: cover; object-position: bottom;
  border-radius: var(--r-md);
}
.screen-card figcaption { margin-top: 10px; font-size: .85rem; color: var(--text-mid); text-align: center; }
.screens-note { max-width: 60ch; margin: 18px auto 0; text-align: center; font-size: .8rem; color: var(--text-dim); }

@media (min-width: 700px) {
  .screens-strip { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
}
@media (min-width: 1000px) {
  .screens-strip { grid-template-columns: repeat(4, 1fr); max-width: none; }
}

/* ---------- Feature grid ---------- */
.features { background: var(--surface-0); border-block: 1px solid var(--line); }

/* ---------- Game category spotlight ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cat-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 10px; background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r-lg); color: var(--text); text-align: center;
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}
.cat-chip:hover { transform: translateY(-3px); border-color: var(--brand); background: var(--surface-2); color: var(--white); }
.cat-chip span:last-child { font-family: var(--head); font-weight: 600; font-size: .85rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 50%; background: var(--brand); color: #04160e; font-family: var(--head); font-weight: 800;
}

/* ---------- Our take (pros / cons) ---------- */
.take-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); }
.take-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.take-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.take-card li { display: flex; gap: 10px; font-size: .93rem; color: var(--text-mid); line-height: 1.5; }
.take-card li::before { flex-shrink: 0; font-weight: 800; margin-top: 1px; }
.take-good li::before { content: "\2713"; color: var(--brand-lt); }
.take-watch li::before { content: "!"; color: var(--go); }
.take-note { margin-top: 18px; font-size: .8rem; color: var(--text-dim); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .inner {
  background: linear-gradient(150deg, var(--brand-dk), var(--surface-2));
  border: 1px solid var(--line-soft); border-radius: var(--r-xl);
  padding: clamp(30px, 6vw, 56px); box-shadow: var(--sh-md);
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { margin: 0 auto 22px; max-width: 52ch; color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { flex: 1 1 auto; width: 100%; }
}
