:root {
  --bg: #0b0a1f;
  --bg2: #141235;
  --card: rgba(30, 26, 72, 0.62);
  --line: rgba(160, 150, 255, 0.16);
  --text: #ece8ff;
  --dim: #aba6cc;
  --amber: #ffb347;
  --orange: #ff8a3d;
  --mint: #7dffb2;
  --cyan: #5ef2ff;
  --violet: #b48cff;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(180, 140, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(94, 242, 255, 0.10), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(255, 138, 61, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.65 Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #b8ffd6; }
h1, h2, h3 { font-family: Fredoka, Nunito, system-ui, sans-serif; line-height: 1.15; margin: 0 0 12px; letter-spacing: 0.2px; }
h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 600; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 14px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.eyebrow { font-family: Fredoka, sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 2.4px; font-size: 13px; color: var(--amber); margin-bottom: 10px; }
.lead { font-size: 19px; color: #d9d4f5; }
.muted, .note { color: var(--dim); }
.note { text-align: center; margin-top: 28px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 10, 31, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: Fredoka, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 1px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { margin-left: auto; display: flex; gap: 22px; }
.top nav a { color: var(--dim); text-decoration: none; font-weight: 700; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Sections */
section { padding: 84px 0; }
section + section { border-top: 1px solid var(--line); }
.head { text-align: center; max-width: 760px; margin: 0 auto 40px; }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(54px, 9vw, 92px); font-weight: 700; letter-spacing: 3px; color: var(--amber); text-shadow: 0 0 40px rgba(255, 179, 71, 0.35); margin-bottom: 18px; }
.hero h1 em { display: block; font-style: normal; font-size: 0.3em; letter-spacing: 6px; color: var(--mint); text-shadow: 0 0 24px rgba(125, 255, 178, 0.45); margin-top: 6px; text-transform: uppercase; }
.soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(125, 255, 178, 0.35); background: rgba(125, 255, 178, 0.08); color: var(--mint); font-weight: 700; font-size: 15px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }

/* Screenshots in a landscape phone frame */
figure { margin: 0; }
.device { padding: 9px; border-radius: 26px; background: linear-gradient(145deg, #2c2850, #121027); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.4) inset; }
.device img { border-radius: 18px; width: 100%; height: auto; aspect-ratio: 1434 / 660; object-fit: cover; }
.hero-shot .device { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 90px rgba(180, 140, 255, 0.18); }
figcaption { margin-top: 12px; text-align: center; color: var(--dim); font-size: 15px; }
figcaption b { display: block; color: var(--text); font-family: Fredoka, sans-serif; font-weight: 600; font-size: 17px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 28px; margin-top: 48px; }
.gallery.single { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; }

/* Cards */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 12px; }
.card p { color: #cdc8ea; }
.num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 14px; font-family: Fredoka, sans-serif; font-weight: 700; font-size: 20px; color: #2a1606; background: linear-gradient(180deg, #ffc56b, var(--orange)); box-shadow: 0 6px 18px rgba(255, 138, 61, 0.35); }
.controls { margin-top: 18px; border-color: rgba(94, 242, 255, 0.28); background: rgba(20, 50, 72, 0.4); }

/* Worlds */
.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.world { position: relative; padding: 16px 14px 14px; border-radius: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, #15122f), #110f28); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); overflow: hidden; }
.world b { display: block; font-family: Fredoka, sans-serif; font-size: 13px; letter-spacing: 1.5px; color: var(--c); text-transform: uppercase; }
.world b::before { content: "Stop "; }
.world span { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 17px; }

/* FAQ */
details { border: 1px solid var(--line); background: var(--card); border-radius: 14px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: Fredoka, sans-serif; font-size: 24px; color: var(--amber); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 20px 6px; color: #cdc8ea; }

/* Text pages */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); font-weight: 600; }
.doc h2 { font-size: 23px; margin-top: 34px; color: var(--amber); }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 8px; }
.button { display: inline-block; margin-top: 10px; padding: 12px 24px; border-radius: 999px; background: linear-gradient(180deg, #9dffc8, var(--mint)); color: #0f2a1c; text-decoration: none; font-family: Fredoka, sans-serif; font-weight: 600; }
.button:hover { color: #0f2a1c; filter: brightness(1.06); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--dim); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--dim); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .worlds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .top nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: rgba(11, 10, 31, 0.97); border-bottom: 1px solid var(--line); padding: 6px 16px 12px; }
  .top .wrap.open nav { display: flex; }
  .top nav a { padding: 12px 0; font-size: 17px; }
  .top .wrap.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .top .wrap.open .menu-btn span:nth-child(2) { opacity: 0; }
  .top .wrap.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  section { padding: 60px 0; }
  .hero { padding: 36px 0 56px; }
  .g3, .gallery { grid-template-columns: 1fr; }
  .device { padding: 6px; border-radius: 18px; }
  .device img { border-radius: 13px; }
  .lead { font-size: 18px; }
}

/* ---- Motion ---------------------------------------------------------------- */

/* Gameplay clips in the same frame as the screenshots. */
.device video { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 542; border-radius: 18px; background: #0d0b22; object-fit: cover; }
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }

/* Glimlets' light drifting up behind the title. */
.glow-field { position: absolute; inset: 0; pointer-events: none; }
.glow-field i { position: absolute; bottom: -20px; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px 4px rgba(125, 255, 178, 0.55); opacity: 0; animation: rise 14s linear infinite; }
.glow-field i:nth-child(3n) { background: var(--cyan); box-shadow: 0 0 14px 4px rgba(94, 242, 255, 0.5); width: 7px; height: 7px; }
.glow-field i:nth-child(4n) { background: var(--amber); box-shadow: 0 0 14px 4px rgba(255, 179, 71, 0.45); width: 6px; height: 6px; }
.glow-field i:nth-child(1) { left: 6%; animation-delay: 0s; animation-duration: 15s; }
.glow-field i:nth-child(2) { left: 14%; animation-delay: 5s; animation-duration: 18s; }
.glow-field i:nth-child(3) { left: 22%; animation-delay: 9s; animation-duration: 13s; }
.glow-field i:nth-child(4) { left: 31%; animation-delay: 2s; animation-duration: 17s; }
.glow-field i:nth-child(5) { left: 39%; animation-delay: 11s; animation-duration: 14s; }
.glow-field i:nth-child(6) { left: 47%; animation-delay: 6s; animation-duration: 19s; }
.glow-field i:nth-child(7) { left: 55%; animation-delay: 1s; animation-duration: 16s; }
.glow-field i:nth-child(8) { left: 62%; animation-delay: 8s; animation-duration: 12s; }
.glow-field i:nth-child(9) { left: 70%; animation-delay: 3s; animation-duration: 18s; }
.glow-field i:nth-child(10) { left: 77%; animation-delay: 12s; animation-duration: 15s; }
.glow-field i:nth-child(11) { left: 84%; animation-delay: 7s; animation-duration: 13s; }
.glow-field i:nth-child(12) { left: 91%; animation-delay: 4s; animation-duration: 17s; }
.glow-field i:nth-child(13) { left: 96%; animation-delay: 10s; animation-duration: 20s; }
.glow-field i:nth-child(14) { left: 2%; animation-delay: 13s; animation-duration: 16s; }
@keyframes rise {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  10% { opacity: 0.9; }
  50% { transform: translate(18px, -45vh) scale(1); }
  85% { opacity: 0.6; }
  100% { transform: translate(-12px, -95vh) scale(0.7); opacity: 0; }
}

/* The title breathes, the "coming soon" dot pulses, the hero clip floats. */
.hero h1 { animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { text-shadow: 0 0 60px rgba(255, 179, 71, 0.6); } }
.dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); box-shadow: 0 0 20px var(--mint); } }
.hero-shot .device { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Cards lift a little under the pointer. */
.card, .world, .gallery .device { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
@media (hover: hover) {
  .card:hover, .world:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
  .gallery .device:hover { transform: translateY(-4px) scale(1.01); }
}

/* Things ease in as they scroll into view (only when scripts run). */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover, .js .world.reveal.in:hover { transform: translateY(-4px); }

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