/* Mossy Grid Studios - one stylesheet for the whole site. No external fonts, no trackers. */
:root {
  --bg: #000;
  --bg-2: #0b0d0a;
  --card: #111410;
  --line: #22281f;
  --text: #f5f5f7;
  --muted: #a1a8a0;
  --moss: #5cc534;
  --moss-2: #6bd13a;
  --moss-deep: #2e6b0f;
  --radius: 22px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--moss-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--moss); color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: 0; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav ul a { color: var(--muted); font-size: 14px; transition: color .2s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--text); text-decoration: none; }
@media (max-width: 520px) {
  .brand span { display: none; }
  .nav ul { gap: 18px; }
}

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(40px, 8vw, 80px); }
h2 { font-size: clamp(30px, 5.2vw, 52px); }
h3 { font-size: clamp(20px, 2.6vw, 24px); letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); line-height: 1.45; letter-spacing: -0.015em; }
.eyebrow { display: inline-block; color: var(--moss-2); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.muted { color: var(--muted); }
.accent { color: var(--moss-2); }

/* ---------- sections ---------- */
section { padding: clamp(72px, 12vw, 140px) 0; }
.center { text-align: center; }
.hero { padding-top: clamp(48px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(92, 197, 52, 0.16), transparent 70%);
  transform: translateY(-8%);
}
.hero-logo { width: min(560px, 88vw); margin: 0 auto 28px; position: relative; }
.hero .lead { max-width: 620px; margin: 0 auto; }
.hero .cta-row { margin-top: 36px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--moss); color: #041000; }
.btn-primary:hover { background: var(--moss-2); }
.btn-ghost { color: var(--text); border: 1px solid rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: var(--moss-2); color: var(--moss-2); }
.btn-play { background: #fff; color: #000; padding: 10px 22px 10px 18px; min-height: 56px; border-radius: 14px; }
.btn-play:hover { background: #e9f7e2; }
.btn-play svg { width: 26px; height: 26px; flex: none; }
.btn-play small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .02em; line-height: 1.1; opacity: .75; }
.btn-play b { display: block; font-size: 19px; line-height: 1.15; letter-spacing: -0.01em; }

/* ---------- featured game ---------- */
.feature {
  display: grid; gap: clamp(28px, 5vw, 64px); align-items: center;
  grid-template-columns: 1fr;
  background: linear-gradient(160deg, #0f1a0b 0%, #060805 60%);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  padding: clamp(28px, 5vw, 64px); overflow: hidden;
}
@media (min-width: 860px) { .feature { grid-template-columns: 1.05fr 1fr; } }
.feature .app { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.feature .app img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.feature .app span { display: block; color: var(--muted); font-size: 15px; }
.feature .app strong { display: block; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.phones { display: flex; justify-content: center; gap: 16px; }
.phones img { width: 46%; max-width: 230px; }
.phones img:nth-child(2) { transform: translateY(28px); }

.phone {
  border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 6px #0d0f0c;
  background: #0d0f0c;
}

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(92, 197, 52, .12); color: var(--moss-2); margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.contact-list .icon { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(92, 197, 52, .12); color: var(--moss-2); }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list span { display: block; color: var(--muted); font-size: 14px; }
.contact-list a, .contact-list address { color: var(--text); font-style: normal; font-size: 18px; word-break: break-word; }
@media (max-width: 400px) { .contact-list a, .contact-list address { font-size: 16px; } .contact-list li { padding: 18px; gap: 14px; } }
.contact-mini { padding: 0 0 56px; text-align: center; color: var(--muted); font-size: 15px; }
.contact-mini p { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
.contact-mini a { color: var(--muted); }
.contact-mini a:hover { color: var(--text); }
.legal-note { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 860px) { .shots { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.shots figure { margin: 0; }
.shots figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 14px; }

/* ---------- legal pages ---------- */
.doc { padding-top: clamp(48px, 8vw, 96px); }
.doc h1 { font-size: clamp(36px, 6vw, 60px); }
.doc h2 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 2.2em; letter-spacing: -0.02em; }
.doc h3 { font-size: 19px; margin-top: 1.6em; }
.doc p, .doc li { color: #d2d6d0; }
.doc ul { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: .45em; }
.doc li::marker { color: var(--moss); }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc strong { color: var(--text); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 32px 0 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 1; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { color: var(--text); font-weight: 600; background: #0c0f0b; }
td { color: #d2d6d0; }
tr:last-child td { border-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px 20px 66px; margin: 0 !important; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--moss); color: #041000; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.callout { border: 1px solid rgba(92, 197, 52, .35); background: rgba(92, 197, 52, .07); border-radius: 18px; padding: 20px 22px; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ---------- reveal on scroll (only when JS runs and motion is fine) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}
