/* ── REVERSI EVO product page ─────────────────────────────────────────────────
   Hand-written static page (no build step) served at hoothall.com/reversievo/.
   Shares the corporate site's dark field, with the board green as the accent
   — the game IS the brand here. */

:root {
  --bg: #0b0c09;
  --bg-raise: #10130d;
  --ink: #f4f2ec;
  --muted: #a2a89a;
  --line: rgba(244, 242, 236, 0.1);
  --green: #37b04c;
  --green-soft: rgba(55, 176, 76, 0.14);
  --board: #1d7a34;
  --yellow: #f5c518;
  --card: rgba(244, 242, 236, 0.045);
  --radius: 20px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(55, 176, 76, 0.4); }

/* ── Nav: transparent over the hero, solid once the page scrolls ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 clamp(16px, 4vw, 40px);
  gap: 24px;
  background: rgba(11, 12, 9, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
.nav.is-solid {
  background: rgba(11, 12, 9, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.02em; }
.nav__brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: 0.92rem; color: var(--muted); }
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__lang {
  font-size: 0.85rem; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 99px;
  color: var(--muted); transition: color 0.2s, border-color 0.2s;
}
.nav__lang:hover { color: var(--ink); border-color: var(--muted); }
@media (max-width: 640px) { .nav__links { display: none; } }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 48px) 20px 64px;
  isolation: isolate;
}
.hero__glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 420px at 50% 30%, rgba(55, 176, 76, 0.16), transparent 70%),
    radial-gradient(500px 380px at 80% 85%, rgba(245, 197, 24, 0.06), transparent 70%);
  animation: glow-drift 9s ease-in-out infinite;
}
@keyframes glow-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  50% { transform: translate3d(0, -22px, 0) scale(1.05); opacity: 0.85; }
}
.hero__icon {
  width: clamp(88px, 14vw, 120px); height: auto;
  border-radius: 24%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
  margin-bottom: 20px;
}
.hero__name {
  font-weight: 800;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  letter-spacing: 0.22em;
  color: var(--green);
  margin-bottom: 6px;
}
.hero__icon.rise {
  animation: rise 0.7s ease forwards, icon-float 7s ease-in-out 1.4s infinite;
}
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__glow { animation: none; }
  .hero__icon.rise { animation: none; }
}
.hero h1 {
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  line-height: 1.15; letter-spacing: 0.01em; font-weight: 800;
}
.hero h1 .accent { color: var(--green); }
.hero__sub {
  max-width: 620px; margin: 18px auto 0;
  color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* Store badges: styled links, no external assets */
.badge {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  padding: 10px 22px 12px; min-width: 190px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--card);
  text-align: left; line-height: 1.25;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.badge:hover { border-color: var(--green); background: var(--green-soft); transform: translateY(-2px); }
.badge__pre { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.badge__store { font-size: 1.12rem; font-weight: 700; }

/* Animated mini board */
.board {
  --cell: clamp(30px, 6vw, 44px);
  display: grid;
  grid-template-columns: repeat(6, var(--cell));
  gap: 4px;
  padding: 10px;
  margin-top: 56px;
  background: #08260f;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(55, 176, 76, 0.25);
}
.board span {
  width: var(--cell); height: var(--cell);
  background: var(--board);
  border-radius: 6px;
  position: relative;
}
.board span::after {
  content: ""; position: absolute; inset: 12%;
  border-radius: 50%;
  transform: scale(0);
}
.board span.b::after { background: #101010; box-shadow: inset 0 -3px 6px rgba(255,255,255,0.12); }
.board span.w::after { background: #f2f0e8; box-shadow: inset 0 -3px 6px rgba(0,0,0,0.25); }
.board span.b::after, .board span.w::after {
  animation: drop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes drop { to { transform: scale(1); } }
/* A captured disc flips over (color swaps at class change; the shrink masks it) */
.board span.flip::after {
  animation: flip 0.5s ease forwards;
}
@keyframes flip {
  0% { transform: scale(1) rotateY(0); }
  50% { transform: scale(0.55) rotateY(90deg); }
  100% { transform: scale(1) rotateY(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .board span.b::after, .board span.w::after { animation: none; transform: scale(1); }
}

/* ── Sections ── */
.section { padding: clamp(64px, 10vw, 110px) clamp(16px, 5vw, 40px); max-width: 1080px; margin: 0 auto; }
.section__eyebrow {
  color: var(--green); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.8rem;
}
.section h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.3; margin-top: 8px; }
.section__lede { color: var(--muted); max-width: 640px; margin-top: 14px; }

/* Feature cards */
.grid {
  display: grid; gap: 18px; margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: rgba(55, 176, 76, 0.5); transform: translateY(-3px); }
.card__icon { font-size: 1.6rem; line-height: 1; margin-bottom: 14px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.tag {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  color: #0b0c09; background: var(--yellow);
  padding: 2px 8px; border-radius: 99px;
}

/* Quiet strip: offline / ad-free / privacy */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
}
.strip .grid { margin-top: 32px; }

/* ── Download / support ── */
.dl { text-align: center; }
.dl .hero__cta { margin-top: 28px; }
.dl__support { margin-top: 46px; color: var(--muted); font-size: 0.95rem; }
.dl__support a { color: var(--ink); border-bottom: 1px solid var(--green); }
.dl__support a:hover { color: var(--green); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 34px clamp(16px, 5vw, 40px);
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 0.88rem;
}
.footer a { border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.footer a:hover { color: var(--ink); border-bottom-color: var(--green); }

/* Entrance animation (hero, on load) */
.rise { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; transform: none; } }

/* Scroll reveal (sections, applied by js/page.js — without JS nothing is hidden) */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
