/* SLIMEY SLIDE landing page — zero JavaScript, all motion is CSS. */

@font-face { font-family: "Press Start 2P"; src: url("assets/fonts/press-start-2p.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("assets/fonts/baloo-2.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #eaf6e8;
  --deep: #0b1408;
  --sewer: #12332b;
  --goo: #7cb342;
  --goo-hot: #aee44a;
  --brick: #3a2a22;
  --accent: #ffd23f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--deep);
  color: var(--ink);
  font-family: "Baloo 2", system-ui, sans-serif;
  overflow-x: hidden;
}
img { user-select: none; }
h2 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1rem, 3.4vw, 1.6rem);
  color: var(--goo-hot);
  text-align: center;
  margin: 0 auto 2rem;
  text-shadow: 0 4px 0 #071008;
}

/* ---------- nav ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1.2rem;
  background: linear-gradient(#0b1408ee, #0b140800);
}
.brand { height: 2rem; image-rendering: pixelated; }
.navlinks a {
  color: var(--ink); text-decoration: none; margin-left: 1.1rem;
  font-weight: 600; letter-spacing: .04em; opacity: .85;
}
.navlinks a:hover { opacity: 1; color: var(--goo-hot); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(1.15);
}
.hero-shade {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 62%, #0b140800 30%, #0b1408d9 78%),
              linear-gradient(#0b140866, #0b140866);
}
.hero-inner { position: relative; z-index: 2; padding: 1rem; }
.hero-logo {
  width: min(74vw, 30rem); image-rendering: pixelated;
  animation: heroIn 900ms cubic-bezier(.2, 1.6, .35, 1) both, bob 3.2s ease-in-out 1s infinite alternate;
  filter: drop-shadow(0 10px 0 #071008);
}
.tag {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(.7rem, 2.4vw, 1.05rem);
  color: var(--accent);
  margin: 1.4rem 0 .6rem;
  animation: riseIn 700ms 350ms both;
}
.sub { font-size: clamp(1rem, 2.8vw, 1.3rem); opacity: .92; animation: riseIn 700ms 550ms both; }
.cta { display: flex; gap: .9rem; justify-content: center; margin-top: 1.8rem; animation: riseIn 700ms 750ms both; }
.badge {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: .65rem 1.5rem; border-radius: .8rem; text-decoration: none;
  background: var(--goo); color: #10200a; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 0 #4a6b23, 0 10px 22px #0009;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.badge em { font-style: normal; font-size: .68rem; opacity: .75; letter-spacing: .14em; text-transform: uppercase; }
.badge:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 9px 0 #4a6b23, 0 14px 26px #000b; }
.badge:active { transform: translateY(2px); box-shadow: 0 3px 0 #4a6b23; }
.badge[aria-disabled="true"] { cursor: default; }

/* the slime crossing the hero on its own track */
.hero-slime {
  position: absolute; z-index: 1; width: 5.5rem; image-rendering: pixelated;
  left: -8rem; bottom: 12%;
  animation: slideBy 11s linear 2s infinite;
  filter: drop-shadow(0 6px 0 #071008);
}

.scrollhint {
  position: absolute; bottom: 1.1rem; left: 50%; translate: -50% 0; z-index: 2;
  font-family: "Press Start 2P", monospace; font-size: .6rem; letter-spacing: .3em;
  color: var(--goo-hot); opacity: .8;
  animation: hintPulse 1.6s ease-in-out infinite;
}

/* ---------- screenshot marquee ---------- */
.marquee {
  overflow: hidden; padding: 2.2rem 0;
  background: linear-gradient(90deg, #071008, var(--sewer), #071008);
  border-block: 4px solid #071008;
}
.track {
  display: flex; gap: 1.2rem; width: max-content;
  animation: marquee 46s linear infinite;
}
.track img {
  height: 46vh; min-height: 17rem; border-radius: 1.1rem;
  box-shadow: 0 8px 0 #071008, 0 14px 30px #000a;
  transition: transform 160ms ease;
}
.track img:hover { transform: translateY(-6px) rotate(-1.2deg); }
.marquee:hover .track { animation-play-state: paused; }

/* ---------- features ---------- */
.features { padding: 4.5rem 1.2rem; max-width: 72rem; margin: 0 auto; }
.grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card {
  background: linear-gradient(160deg, #1b3d2f, #10251d);
  border: 3px solid #071008; border-radius: 1rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 6px 0 #071008;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.card:hover { transform: translateY(-5px) rotate(.4deg); box-shadow: 0 11px 0 #071008; }
.card h3 { color: var(--accent); font-size: 1.12rem; margin-bottom: .45rem; }
.card p { opacity: .9; line-height: 1.45; }

/* ---------- media ---------- */
.media { padding: 4rem 1.2rem; background: #0d1f18; border-block: 4px solid #071008; }
.phones {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  max-width: 72rem; margin: 0 auto;
}
.phone {
  width: min(80vw, 19rem);
  background: #050b05; border: 4px solid #071008; border-radius: 2.2rem;
  padding: .55rem .55rem 1rem;
  box-shadow: 0 12px 0 #071008, 0 20px 40px #000c;
  transition: transform 160ms ease;
}
.phone:hover { transform: rotate(-1.4deg) scale(1.02); }
.phone video { width: 100%; border-radius: 1.7rem; display: block; }
.phone p { text-align: center; margin-top: .7rem; font-weight: 600; opacity: .9; }
.wide { max-width: 60rem; margin: 3rem auto 0; text-align: center; }
.wide video {
  width: 100%; max-height: 30rem; object-fit: cover; object-position: top;
  border-radius: 1.4rem; border: 4px solid #071008; box-shadow: 0 10px 0 #071008;
}
.wide p { margin-top: .8rem; opacity: .9; }

/* ---------- screenshots + CSS-only lightbox ---------- */
.screens { padding: 4.5rem 1.2rem; max-width: 72rem; margin: 0 auto; }
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}
.gallery img {
  width: 100%; border-radius: 1rem; border: 3px solid #071008;
  box-shadow: 0 6px 0 #071008;
  transition: transform 140ms ease;
}
.gallery a:hover img { transform: translateY(-5px) rotate(-.6deg); }
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: #071008ee; opacity: 0; pointer-events: none;
  transition: opacity 180ms ease;
}
.lightbox img { max-height: 92svh; max-width: 92vw; border-radius: 1rem; }
.lightbox:target { opacity: 1; pointer-events: auto; }

/* ---------- footer ---------- */
footer {
  padding: 3rem 1.2rem 2.2rem; text-align: center;
  background: #071008;
}
.foot-logo { width: 9rem; image-rendering: pixelated; opacity: .9; animation: bob 3.6s ease-in-out infinite alternate; }
.footlinks { margin: 1rem 0; }
.footlinks a { color: var(--ink); opacity: .8; margin: 0 .8rem; text-decoration: none; font-weight: 600; }
.footlinks a:hover { opacity: 1; color: var(--goo-hot); }
.fine { opacity: .5; font-size: .85rem; }

/* ---------- keyframes ---------- */
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-9px); } }
@keyframes heroIn { from { transform: translateY(46px) scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes riseIn { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideBy {
  0%   { transform: translateX(0) translateY(0) rotate(0deg); }
  88%  { transform: translateX(calc(100vw + 16rem)) translateY(-2px) rotate(720deg); }
  100% { transform: translateX(calc(100vw + 16rem)) translateY(-2px) rotate(720deg); }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hintPulse { 0%, 100% { opacity: .3; } 50% { opacity: .9; } }

/* scroll-driven reveals where supported; static fallback otherwise */
@supports (animation-timeline: view()) {
  .card, .phone, .gallery img, .wide {
    animation: riseIn .7s both;
    animation-timeline: view();
    animation-range: entry 0% entry 62%;
  }
}

/* the game itself honors reduced motion; so does the page */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .track img { height: 30vh; }
  .track img:nth-child(n+7) { display: none; }
}

/* ---------- compliance doc pages (privacy / support / deletion) ---------- */
.doc {
  max-width: 44rem; margin: 0 auto; padding: 6rem 1.2rem 4rem;
  line-height: 1.55;
}
.doc h1 {
  font-family: "Press Start 2P", monospace; font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--goo-hot); margin-bottom: 1.6rem; text-shadow: 0 4px 0 #071008;
}
.doc h2 { font-size: clamp(.8rem, 2.4vw, 1rem); text-align: left; margin: 2rem 0 .8rem; }
.doc p, .doc li { opacity: .92; margin-bottom: .8rem; }
.doc ul { padding-left: 1.4rem; }
.doc li { margin-bottom: .45rem; }
.doc a { color: var(--accent); }
.doc .back { display: inline-block; margin-bottom: 1.6rem; font-weight: 700; color: var(--goo-hot); text-decoration: none; }
.doc .warn {
  border: 3px solid #071008; border-radius: .9rem; background: #1b3d2f;
  padding: .9rem 1.1rem; box-shadow: 0 5px 0 #071008;
}
