:root {
  --bg: #000;
  --bg-2: #070907;
  --ink: #f3f7ee;
  --muted: #9aa597;
  --lime: #8fea25;
  --lime-2: #b8f65e;
  --lime-deep: #57a812;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Fredoka", system-ui, sans-serif; letter-spacing: -0.02em; margin: 0; }
.lime { color: var(--lime); }

/* splash: logo fades in, then the curtain lifts */
.splash {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: grid; place-items: center; pointer-events: none;
  animation: curtain 0.5s var(--ease) 1.1s forwards;
}
.splash .wordmark { animation: logoIn 0.9s var(--ease) both; }
@keyframes logoIn { from { opacity: 0; transform: scale(0.9); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes curtain { to { opacity: 0; visibility: hidden; } }

.wordmark {
  display: inline-flex; align-items: center; gap: 0.22em;
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; line-height: 1; letter-spacing: -0.03em;
}
.wordmark .wm { height: 0.78em; width: auto; display: block; color: var(--ink); margin-top: 0.1em; }
.wordmark img { width: 1.15em; height: 1.15em; display: block;
  filter: drop-shadow(0 0 14px rgba(143, 234, 37, 0.35)); }

/* nav */
.nav {
  position: sticky; top: 12px; z-index: 50; margin: 12px auto 0; width: min(1120px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(10, 12, 10, 0.55); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.nav nav { display: flex; gap: 26px; font-size: 15px; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.nav .nav-studio { color: var(--lime); font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  color: #0c1a02; background: linear-gradient(180deg, var(--lime-2), var(--lime));
  box-shadow: 0 0 0 1px rgba(184, 246, 94, 0.5) inset, 0 10px 30px -8px rgba(143, 234, 37, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(184, 246, 94, 0.6) inset, 0 16px 40px -8px rgba(143, 234, 37, 0.7); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 30px; font-size: 17px; }
.btn-glass {
  color: var(--ink); background: var(--glass); border: 1px solid var(--line); box-shadow: none;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { background: var(--glass-2); box-shadow: none; }
.spark { color: var(--lime); }
.btn:not(.btn-glass) .spark { color: inherit; }

/* hero */
.hero {
  position: relative; width: min(1120px, calc(100% - 32px)); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px;
  padding: 72px 0 64px;
}
.hero-glow, .studio-glow {
  position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(143, 234, 37, 0.28), transparent);
}
.hero-glow { width: 720px; height: 720px; right: -140px; top: -80px; }
.eyebrow { color: var(--lime); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 16px; }
h1 { font-size: clamp(52px, 8.4vw, 104px); line-height: 0.95; font-weight: 700; }
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 34em; margin: 22px 0 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.pills li { font-size: 13px; color: var(--muted); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); }
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 1.2s; }
.hero-copy > :nth-child(1) { animation-delay: 1.15s; }
.hero-copy > :nth-child(3) { animation-delay: 1.25s; }
.hero-copy > :nth-child(4) { animation-delay: 1.3s; }
.hero-copy > :nth-child(5) { animation-delay: 1.35s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* phone + looping feed */
.phone {
  --w: min(300px, 72vw);
  position: relative; justify-self: center; width: var(--w); aspect-ratio: 9 / 19.5;
  border-radius: calc(var(--w) * 0.15); padding: 10px; overflow: hidden;
  background: linear-gradient(145deg, #2a2d29, #0b0c0b 40%, #1b1d1a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 90px -20px rgba(143, 234, 37, 0.35), 0 30px 60px -20px #000;
  animation: rise 1s var(--ease) 1.2s both;
}
.phone::after {
  content: ''; position: absolute; inset: 10px; border-radius: calc(var(--w) * 0.12); pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 30%);
}
.phone-notch { position: absolute; z-index: 3; top: 18px; left: 50%; width: 30%; height: 24px; transform: translateX(-50%); background: #000; border-radius: 999px; }
.feed-track {
  position: absolute; inset: 10px; border-radius: calc(var(--w) * 0.12); overflow: hidden; background: #000;
}
.feed-track .slide { position: absolute; inset: 0; animation: feed 18s var(--ease) infinite; }
.feed-track .slide img, .tile img, .d3 img { position: absolute; inset: 0; width: 100%; height: 100%; }
.feed-track .slide img { object-fit: cover; object-position: top; }
/* 6 games, 3s each; each slide sits one screen lower and the track steps up */
.slide:nth-child(1) { --i: 0; } .slide:nth-child(2) { --i: 1; } .slide:nth-child(3) { --i: 2; }
.slide:nth-child(4) { --i: 3; } .slide:nth-child(5) { --i: 4; } .slide:nth-child(6) { --i: 5; } .slide:nth-child(7) { --i: 6; }
.slide { top: calc(var(--i) * 100%) !important; bottom: auto !important; height: 100%; }
@keyframes feed {
  0%, 13% { transform: translateY(0); }
  16.6%, 29.6% { transform: translateY(-100%); }
  33.3%, 46.3% { transform: translateY(-200%); }
  50%, 63% { transform: translateY(-300%); }
  66.6%, 79.6% { transform: translateY(-400%); }
  83.3%, 96.3% { transform: translateY(-500%); }
  100% { transform: translateY(-600%); }
}
.slide-ui {
  position: absolute; left: 12px; right: 52px; bottom: 16px; padding: 10px 12px; border-radius: 16px;
  display: flex; flex-direction: column; gap: 4px; font-size: 14px;
  background: rgba(0, 0, 0, 0.42); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip { align-self: flex-start; font-size: 11px; font-weight: 700; color: #0c1a02; background: var(--lime); padding: 2px 8px; border-radius: 999px; }
.phone-top { position: absolute; z-index: 3; top: 50px; left: 0; right: 0; display: flex; justify-content: center; gap: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.phone-top .on { color: #fff; border-bottom: 2px solid var(--lime); padding-bottom: 3px; }
.rail { position: absolute; z-index: 3; right: 18px; bottom: 90px; display: flex; flex-direction: column; gap: 16px; }
.ic { display: block; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, 0.4) center / 18px no-repeat; border: 1px solid var(--line); }
.heart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 21s-7.5-4.6-9.5-9.2C1.1 8.4 3.2 5 6.6 5c2 0 3.3 1.1 4.1 2.3h2.6C14.1 6.1 15.4 5 17.4 5c3.4 0 5.5 3.4 4.1 6.8C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E"); }
.chat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.share { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M14 4l8 8-8 8v-5C8 15 4.5 17 2 21c1-6 4-11 12-12z'/%3E%3C/svg%3E"); }
.swipe-hint {
  position: absolute; z-index: 4; left: 50%; bottom: 34%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 8px #000; animation: hint 18s ease-in-out infinite;
}
.finger {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 8px rgba(143, 234, 37, 0.35); animation: swipe 1.5s var(--ease) infinite;
}
@keyframes swipe { 0% { transform: translateY(26px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-34px); opacity: 0; } }
@keyframes hint { 0%, 3% { opacity: 0; } 5%, 12% { opacity: 1; } 15%, 100% { opacity: 0; } }

/* ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 16px 0; }
.ticker > div { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker span { white-space: nowrap; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 22px; color: #cfd6cb; padding-right: 0.6em; }
.ticker b { color: var(--lime); margin: 0 0.6em; font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* sections */
.section { position: relative; width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 110px 0 0; }
.section h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1; font-weight: 700; max-width: 14em; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 26em; line-height: 1.55; margin: 0; }
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.card { padding: 28px; transition: transform 0.4s var(--ease), border-color 0.4s; }
.card:hover { transform: translateY(-4px); border-color: rgba(143, 234, 37, 0.45); }
.card .num { font-family: "Fredoka", sans-serif; color: var(--lime); font-weight: 600; }
.card h3 { font-size: 30px; margin: 14px 0 10px; }
.card p { color: var(--muted); line-height: 1.55; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 40px; }
.tile {
  position: relative; aspect-ratio: 416 / 774; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #111; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile img { object-fit: cover; object-position: top; transition: transform 0.6s var(--ease); }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-weight: 700; font-size: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(143, 234, 37, 0.5); }
.tile:hover img { transform: scale(1.05); }
.center { display: flex; justify-content: center; margin-top: 32px; }

/* studio */
.studio {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  margin-top: 110px; padding: 64px; border-radius: 36px; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, rgba(143, 234, 37, 0.16), transparent 55%), var(--bg-2);
  border: 1px solid rgba(143, 234, 37, 0.28);
}
.studio-glow { width: 600px; height: 600px; left: -200px; bottom: -300px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.steps li {
  counter-increment: s; position: relative; padding: 14px 16px 14px 56px; line-height: 1.5; color: var(--muted);
  background: var(--glass); border: 1px solid var(--line); border-radius: 16px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #0c1a02; background: var(--lime);
}
.steps b { color: var(--ink); }
.fine { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
/* studio demo: a CSS-only loop of prompt → build → play */
.studio-demo {
  justify-self: center; width: min(300px, 72vw); aspect-ratio: 9 / 16; padding: 10px; border-radius: 40px;
  background: linear-gradient(145deg, #2a2d29, #0b0c0b 40%, #1b1d1a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 90px -20px rgba(143, 234, 37, 0.3), 0 30px 60px -20px #000;
}
.demo-screen { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: radial-gradient(100% 70% at 50% 0%, #1b2a14, #0a0d09); }
.demo-step { position: absolute; inset: 0; padding: 26px 18px; opacity: 0; animation: demo 12s var(--ease) infinite; }
.d2 { animation-delay: 4s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.d3 { animation-delay: 8s; padding: 0; }
.d3 img { object-fit: cover; object-position: top; }
@keyframes demo { 0% { opacity: 0; transform: translateY(14px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-14px); } }
.demo-h { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 22px; line-height: 1.15; margin: 18px 0 16px; }
.demo-input { position: relative; min-height: 120px; padding: 14px 14px 44px; border-radius: 18px; font-size: 14px; line-height: 1.45; background: var(--glass); border: 1px solid rgba(143, 234, 37, 0.5); }
.typed { display: block; clip-path: inset(0 100% 100% 0); animation: type 12s steps(28, end) infinite; }
@keyframes type { 0%, 3% { clip-path: inset(0 100% 0 0); } 6% { clip-path: inset(0 0 66% 0); } 10% { clip-path: inset(0 0 33% 0); } 14%, 100% { clip-path: inset(0 0 0 0); } }
.send { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #0c1a02; background: var(--lime); }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.demo-chips span { font-size: 12px; color: var(--muted); padding: 6px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.ring {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, #0d120b 78%, transparent 80% 100%), conic-gradient(var(--lime) var(--p), rgba(255, 255, 255, 0.1) 0);
  animation: fill 12s linear 4s infinite;
}
.ring span { font-family: "Fredoka", sans-serif; font-weight: 600; }
@keyframes fill { 0% { --p: 0%; } 30%, 100% { --p: 100%; } }
.demo-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.demo-log li::before { content: '✓'; color: var(--lime); margin-right: 8px; }
.demo-ready { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); white-space: nowrap; font-weight: 700; font-size: 14px; color: #0c1a02; background: var(--lime); padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px -8px rgba(143, 234, 37, 0.7); }

/* final */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: 40px; }
.final h2 { margin: 18px auto 0; max-width: 12em; }
.final-star { width: 140px; height: auto; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(143, 234, 37, 0.35)); }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-4deg); } }

/* footer */
.footer {
  width: min(1120px, calc(100% - 32px)); margin: 80px auto 0; padding: 32px 0 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.footer p { margin: 8px 0 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a:hover { color: var(--ink); }
.footer .copy { width: 100%; margin: 0; }

/* legal placeholders */
.legal { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 80px 0; line-height: 1.6; color: var(--muted); }
.legal h1 { font-size: 48px; color: var(--ink); margin-bottom: 20px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 48px; gap: 44px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede { margin-inline: auto; }
  .ctas, .pills { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .studio { grid-template-columns: 1fr; padding: 36px 20px; }
  .nav nav a:not(.nav-studio) { display: none; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: 80px; }
  .ctas .btn { flex: 1 1 100%; }
  .nav { padding-left: 14px; }
  .nav nav { gap: 0; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  /* No motion at all: every element shows its resting state, the feed and studio demo show their first frame. */
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .splash { display: none; }
  .demo-step.d1 { opacity: 1; }
  .typed { clip-path: none; }
}
