:root {
  --bg: #0d0b1a;
  --bg-alt: #151229;
  --surface: #1c1836;
  --border: #2c2752;
  --text: #f4f2ff;
  --muted: #b3aed6;
  --brand: #ffb547;
  --brand-2: #ff5d8f;
  --brand-3: #5ad1ff;
  --radius: 18px;
  --wrap: 1120px;
  --display: "Fredoka", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .8em; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #1a0f00; padding: 13px 24px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 24px -8px rgba(255, 93, 143, .6);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(255, 93, 143, .8); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--brand-3); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--border); box-shadow: none; }
.btn-ghost:hover { border-color: var(--brand); box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-lg { padding: 16px 30px; font-size: 1.1rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(13, 11, 26, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 80px 0 100px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255, 93, 143, .25), transparent 65%); pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-art { position: relative; display: flex; justify-content: center; }
.phone {
  width: 250px; aspect-ratio: 9 / 19; border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, #2e2858, #14112a);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 0 0 2px #3b3470;
  transform: rotate(6deg);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, #2a1f63 0%, #5b2a86 55%, #ff7a8a 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(1px); animation: bob 5s ease-in-out infinite; }
.b1 { width: 70px; height: 70px; background: var(--brand); top: 18%; left: 12%; }
.b2 { width: 44px; height: 44px; background: var(--brand-3); top: 36%; right: 16%; animation-delay: -1.5s; }
.b3 { width: 56px; height: 56px; background: var(--brand-2); top: 58%; left: 30%; animation-delay: -3s; }
.hud { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; font: 600 .8rem var(--display); }
.player {
  position: absolute; bottom: 12%; left: 50%; width: 46px; height: 46px; margin-left: -23px;
  border-radius: 14px; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25);
  animation: jump 1.6s cubic-bezier(.3, 0, .3, 1) infinite;
}
.float { position: absolute; font-size: 2.2rem; animation: bob 6s ease-in-out infinite; }
.f1 { top: 6%; left: 4%; }
.f2 { bottom: 12%; right: 2%; animation-delay: -2s; }
.f3 { top: 44%; right: -2%; animation-delay: -4s; font-size: 1.6rem; }

@keyframes bob { 50% { transform: translateY(-14px); } }
@keyframes jump { 0%, 100% { transform: translateY(0) scale(1.05, .95); } 45% { transform: translateY(-90px) rotate(180deg); } }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-lede { color: var(--muted); max-width: 40em; margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card-art {
  height: 160px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 3.4rem;
}
.art-game { background: linear-gradient(135deg, #ff5d8f, #ffb547); }
.art-puzzle { background: linear-gradient(135deg, #5ad1ff, #7b5cff); }
.art-app { background: linear-gradient(135deg, #3ee0a1, #1f8bff); }
.card p { color: var(--muted); }
.card .store { font-size: .85rem; color: var(--brand-3); margin: 0; font-weight: 600; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(255, 93, 143, .15); color: var(--brand-2); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.tag-app { background: rgba(90, 209, 255, .15); color: var(--brand-3); }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 32px; }
.service { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.service p { color: var(--muted); margin: 0; }
.icon { font-size: 2rem; margin-bottom: 12px; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.about-copy p { color: var(--muted); font-size: 1.08rem; }
.stats { display: flex; gap: 16px; list-style: none; padding: 0; margin: 28px 0 0; flex-wrap: wrap; }
.stats li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 20px; display: flex; flex-direction: column; }
.stats strong { font-family: var(--display); font-size: 1.4rem; color: var(--brand); }
.stats span { color: var(--muted); font-size: .9rem; }

.contact { text-align: center; background: radial-gradient(ellipse at center, rgba(123, 92, 255, .22), transparent 70%); }
.contact-inner p { color: var(--muted); font-size: 1.15rem; margin-bottom: 28px; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .about { grid-template-columns: 1fr; }
  .hero-art { margin-top: 20px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .cards, .services { grid-template-columns: 1fr; }
  .phone { width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
