@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0A0A11;
  --bg-2: #11111C;
  --surface: #161622;
  --surface-2: #1D1D2D;
  --line: #2A2A42;
  --cyan: #00E5FF;
  --magenta: #FF2ED1;
  --green: #39FF88;
  --yellow: #FFE156;
  --red: #FF4459;
  --text: #F4F4FA;
  --dim: #A3A3BA;
  --display: "Unbounded", "Trebuchet MS", system-ui, sans-serif;
  --body: "Manrope", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Faint game grid behind everything, same idea as the in-game background. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 72px 100%;
  opacity: 0.22;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 80%);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 17, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 42, 66, 0.7);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.55)); }
nav.site { display: flex; align-items: center; gap: 26px; }
nav.site a { color: var(--dim); font-weight: 600; font-size: 0.95rem; }
nav.site a:hover { color: var(--text); text-decoration: none; }
nav.site a.nav-cta {
  color: #06060B;
  background: var(--cyan);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 800;
}
nav.site a.nav-cta:hover { filter: brightness(1.1); }

/* ---------- Buttons / badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 13px 22px;
  font-weight: 800;
  line-height: 1.15;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.btn small { display: block; font-size: 0.72rem; font-weight: 600; opacity: 0.75; }
.btn-play {
  background: var(--cyan);
  color: #06060B;
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.5), 0 10px 40px -10px rgba(0, 229, 255, 0.7);
}
.btn-play:hover { box-shadow: 0 14px 50px -8px rgba(0, 229, 255, 0.9); }
.btn-apple {
  background: var(--text);
  color: #06060B;
  box-shadow: 0 10px 40px -14px rgba(255, 255, 255, 0.45);
}
.btn-apple:hover { box-shadow: 0 14px 50px -10px rgba(255, 255, 255, 0.6); }
.btn-soon {
  background: var(--surface);
  border-color: var(--line);
  color: var(--dim);
  cursor: default;
}
.btn-soon:hover { transform: none; }
.btn-soon strong { color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(22, 22, 34, 0.8);
  color: var(--dim);
  font-size: 0.88rem;
  font-weight: 700;
}
.pill b { color: var(--text); font-variant-numeric: tabular-nums; }
.pill .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(57, 255, 136, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(57, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 255, 136, 0); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; }
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: var(--cyan); top: -160px; left: -180px; opacity: 0.2; }
.hero::after { width: 460px; height: 460px; background: var(--magenta); bottom: -120px; right: -140px; opacity: 0.22; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 22px 0 22px;
}
.hero h1 .c { color: var(--cyan); text-shadow: 0 0 34px rgba(0, 229, 255, 0.55); }
.hero h1 .m { color: var(--magenta); text-shadow: 0 0 34px rgba(255, 46, 209, 0.5); }
.hero .lead { font-size: 1.2rem; color: var(--dim); max-width: 34em; margin-bottom: 30px; }
.hero .lead strong { color: var(--text); }
.hero .note { margin-top: 16px; font-size: 0.88rem; color: var(--dim); }

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 9 / 19;
  margin: 0 auto;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, #34344f, #14141f 40%, #232336);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 90px -20px rgba(0, 229, 255, 0.45);
}
.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #0D0D14;
}
.phone .screen img, .phone .screen canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.phone::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 78px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #06060B;
}
.phone.no-notch::after { display: none; }

.demo-wrap { position: relative; }
.demo-wrap .float-tag {
  position: absolute;
  z-index: 3;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 12px;
  white-space: nowrap;
  animation: bob 4s ease-in-out infinite;
}
.demo-wrap .tag-a { top: 14%; left: -4%; background: var(--yellow); color: #111; transform: rotate(-6deg); }
.demo-wrap .tag-b { bottom: 16%; right: -5%; background: var(--magenta); color: #fff; transform: rotate(5deg); animation-delay: -2s; }
@keyframes bob { 50% { translate: 0 -10px; } }

#demo { touch-action: pan-y; cursor: pointer; }
#demo.playing { touch-action: none; cursor: grabbing; }
.demo-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 18px 34px;
  text-align: center;
  pointer-events: none;
}
.demo-ui > * { pointer-events: auto; }
.demo-ui[hidden] { display: none; }
.demo-ui .result {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
}
.demo-ui .msg { color: var(--text); font-weight: 700; font-size: 0.95rem; text-shadow: 0 2px 12px #000; }
.demo-btn {
  font: inherit;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #06060B;
  background: var(--cyan);
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  box-shadow: 0 10px 40px -8px rgba(0, 229, 255, 0.9);
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: scale(1.06); } }
.demo-ui a.more { font-size: 0.85rem; font-weight: 700; color: var(--text); text-decoration: underline; text-shadow: 0 2px 10px #000; }
.demo-hint { text-align: center; color: var(--dim); font-size: 0.88rem; margin-top: 18px; }
.demo-hint kbd {
  font: inherit; font-size: 0.8rem; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 3px;
  border-radius: 6px; padding: 1px 7px; color: var(--text);
}

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 16px 0;
  transform: rotate(-1.2deg) scale(1.03);
  margin: 10px 0 30px;
}
.ticker .track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: slide 36s linear infinite;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker .track span:nth-child(3n+1) { color: var(--cyan); }
.ticker .track span:nth-child(3n+2) { color: var(--text); }
.ticker .track span:nth-child(3n) { color: var(--magenta); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
.section-head h2 em { font-style: normal; color: var(--cyan); }
.section-head p { color: var(--dim); margin-top: 16px; font-size: 1.08rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  overflow: hidden;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  right: 6px;
  top: -34px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 9rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--line);
}
.step .ico { font-size: 2rem; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; margin-bottom: 10px; position: relative; }
.step p { color: var(--dim); font-size: 0.98rem; position: relative; }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--dim); font-size: 0.98rem; max-width: 30em; }
.card .tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.c-daily { grid-column: span 4; }
.c-ghost { grid-column: span 2; }
.c-levels { grid-column: span 2; }
.c-board { grid-column: span 2; }
.c-free { grid-column: span 2; }
.c-daily { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; }
.c-daily:hover { border-color: var(--cyan); box-shadow: 0 20px 60px -30px rgba(0, 229, 255, 0.6); }
.c-ghost:hover { border-color: var(--magenta); box-shadow: 0 20px 60px -30px rgba(255, 46, 209, 0.6); }
.c-levels:hover { border-color: var(--yellow); box-shadow: 0 20px 60px -30px rgba(255, 225, 86, 0.5); }
.c-board:hover { border-color: var(--green); box-shadow: 0 20px 60px -30px rgba(57, 255, 136, 0.5); }
.c-free:hover { border-color: var(--cyan); }
.c-daily .tag { background: rgba(0, 229, 255, 0.14); color: var(--cyan); }
.c-ghost .tag { background: rgba(255, 46, 209, 0.14); color: var(--magenta); }
.c-levels .tag { background: rgba(255, 225, 86, 0.14); color: var(--yellow); }
.c-board .tag { background: rgba(57, 255, 136, 0.14); color: var(--green); }
.c-free .tag { background: rgba(244, 244, 250, 0.1); color: var(--text); }

.share-card {
  background: #0D0D14;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  padding: 16px 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: nowrap;
  transform: rotate(2.5deg);
  box-shadow: 0 18px 40px -18px #000;
}
.share-card .blocks { letter-spacing: 1px; }
.share-card small { display: block; color: var(--dim); font-size: 0.72rem; margin-top: 6px; }

.ghost-lane { position: relative; height: 92px; margin-top: 22px; }
.ghost-lane svg { position: absolute; width: 54px; height: 54px; top: 18px; }
.ghost-lane .g1 { left: 58%; filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.8)); animation: bob 2.4s ease-in-out infinite; }
.ghost-lane .g2 { left: 30%; opacity: 0.55; animation: bob 2.4s ease-in-out -0.9s infinite; }
.ghost-lane .g3 { left: 6%; opacity: 0.22; animation: bob 2.4s ease-in-out -1.6s infinite; }
.ghost-lane::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 46px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 20px);
  z-index: -1;
}

.stars-row { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.lvl {
  flex: 1 1 60px;
  background: #0D0D14;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 6px 8px;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
}
.lvl span { display: block; font-size: 0.72rem; color: var(--yellow); letter-spacing: 1px; margin-top: 2px; }
.lvl.locked { opacity: 0.4; }

.board { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.board li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0D0D14;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 0.92rem;
}
.board li span:nth-child(2) { flex: 1; }
.board li b { font-variant-numeric: tabular-nums; color: var(--dim); }
.board li.me { border-color: var(--green); color: var(--green); }
.board li.me b { color: var(--green); }
.board + small { display: block; margin-top: 10px; color: var(--dim); font-size: 0.75rem; }

.big-zero { font-family: var(--display); font-weight: 900; font-size: 4.4rem; line-height: 1; color: var(--cyan); margin-bottom: 8px; }

/* Screens gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: start; }
.gallery figure { margin: 0; text-align: center; }
.gallery .phone { width: 100%; padding: 7px; border-radius: 34px; transition: transform 0.3s ease; }
.gallery .phone .screen { border-radius: 27px; }
.gallery figure:nth-child(odd) .phone { transform: rotate(-2deg) translateY(14px); }
.gallery figure:nth-child(even) .phone { transform: rotate(2deg); }
.gallery figure:hover .phone { transform: rotate(0) translateY(-6px) scale(1.03); }
.gallery figcaption { margin-top: 26px; font-weight: 700; }
.gallery figcaption small { display: block; color: var(--dim); font-weight: 500; font-size: 0.86rem; }

/* Languages */
.langs { display: flex; flex-wrap: wrap; gap: 10px; }
.langs span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 22px;
}
.faq details[open] { border-color: var(--cyan); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--cyan); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--dim); padding-bottom: 20px; }

/* Final CTA */
.cta {
  position: relative;
  text-align: center;
  border-radius: 36px;
  padding: 72px 24px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(0, 229, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(255, 46, 209, 0.2), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cta svg.big-ghost { width: 96px; height: 96px; margin: 0 auto 22px; filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.8)); animation: bob 3s ease-in-out infinite; }
.cta h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.cta p { color: var(--dim); margin-bottom: 30px; font-size: 1.1rem; }
.cta .btn-row { justify-content: center; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--dim); font-size: 0.9rem; margin-top: 40px; }
footer.site .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site a { color: var(--dim); font-weight: 600; }
footer.site a:hover { color: var(--cyan); }
footer.site .legal { margin-top: 26px; font-size: 0.8rem; line-height: 1.7; }

/* Reveal on scroll (only when JS marks the page as ready) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Legal document pages ---------- */
main.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 96px; }
main.doc h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
main.doc .updated { color: var(--dim); font-size: 0.9rem; margin: 10px 0 36px; }
main.doc h2 { color: var(--cyan); font-size: 1.05rem; font-weight: 700; margin: 40px 0 12px; }
main.doc p { margin: 0 0 14px; color: #D5D5E4; }
main.doc ul { padding-left: 1.2em; color: #D5D5E4; }
main.doc li { margin-bottom: 8px; }
main.doc code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 0.88em; }
main.doc .contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  margin-top: 40px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero { text-align: center; padding-top: 40px; }
  .hero .lead { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .c-daily, .c-free { grid-column: span 2; }
  .c-ghost, .c-levels, .c-board { grid-column: span 1; }
  .c-board { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; max-width: 520px; margin: 0 auto; }
  nav.site a:not(.nav-cta) { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .bento { grid-template-columns: 1fr; }
  .bento .card { grid-column: auto; }
  .c-daily { grid-template-columns: 1fr; }
  .share-card { justify-self: start; }
  .demo-wrap .tag-a { left: 0; }
  .demo-wrap .tag-b { right: 0; }
  .btn { padding: 12px 18px; }
  .cta { padding: 54px 18px; border-radius: 28px; }
}

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