:root {
  --bg: #f8f4ea;
  --paper: #fffaf0;
  --ink: #182033;
  --muted: #687187;
  --line: rgba(24, 32, 51, 0.12);
  --violet: #7357ff;
  --violet-dark: #4c34cb;
  --peach: #ffac81;
  --mint: #78dcca;
  --sky: #80d8ff;
  --shadow: 0 24px 70px rgba(59, 47, 109, 0.16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 0%, rgba(120, 220, 202, .32), transparent 34%),
    radial-gradient(circle at 98% 12%, rgba(255, 172, 129, .34), transparent 31%),
    linear-gradient(180deg, #fbf0d7 0%, var(--bg) 48%, #eef9fb 100%);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.page-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .42;
  pointer-events: none;
  z-index: -1;
}
.page-glow-a { left: -100px; top: 28%; background: var(--sky); }
.page-glow-b { right: -110px; bottom: 12%; background: var(--peach); }

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  padding: 12px 14px 12px 20px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255, 250, 240, .72);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 44px rgba(48, 36, 91, .11);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .25s ease;
}
.site-header.scrolled {
  top: 10px;
  background: rgba(255, 250, 240, .91);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -.03em;
  font-size: 1.2rem;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--violet), #9a76ff 50%, var(--peach));
  box-shadow: 0 10px 24px rgba(115, 87, 255, .28);
}
.brand.mini { font-size: 1rem; }
.brand.mini .brand-mark { width: 34px; height: 34px; border-radius: 13px; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #37405b;
}
.nav a {
  padding: 12px 14px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav a:hover { background: rgba(115, 87, 255, .10); color: var(--violet-dark); }
.nav .nav-cta { background: var(--ink); color: white; padding-inline: 18px; }
.nav .nav-cta:hover { background: var(--violet); color: white; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: white;
  margin: 4px auto;
  transition: transform .2s ease, opacity .2s ease;
}

.section-pad {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 96px 0;
}
.hero {
  min-height: 100vh;
  padding-top: 160px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  align-items: center;
  gap: 56px;
}

.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--violet-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
.eyebrow span {
  width: 34px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--peach));
}

h1, h2, h3 { margin: 0; font-family: "Space Grotesk", sans-serif; letter-spacing: -.055em; }
h1 {
  max-width: 680px;
  margin-top: 22px;
  font-size: clamp(3.15rem, 7vw, 6.9rem);
  line-height: .89;
}
h2 {
  font-size: clamp(2.2rem, 4vw, 4.15rem);
  line-height: .96;
}
h3 {
  font-size: 1.28rem;
  letter-spacing: -.04em;
}
p { margin: 0; color: var(--muted); line-height: 1.65; }
.hero-copy > p {
  max-width: 570px;
  margin-top: 24px;
  font-size: 1.12rem;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--violet), #9a76ff);
  box-shadow: 0 16px 32px rgba(115, 87, 255, .28);
}
.btn-ghost { background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.8); }

.hero-notes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-notes span {
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.75);
  color: #535c75;
  font-weight: 800;
  font-size: .92rem;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
}
.phone-shell {
  position: relative;
  width: min(360px, 82vw);
  height: 620px;
  padding: 16px;
  border-radius: 44px;
  background: #172033;
  box-shadow: 0 32px 90px rgba(31, 33, 58, .26), inset 0 0 0 2px rgba(255,255,255,.08);
  transform: rotate(3deg);
}
.phone-top {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 108px;
  height: 24px;
  border-radius: 999px;
  background: #0c1222;
  z-index: 2;
}
.game-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(180deg, #8de4ff 0%, #e7f8ff 42%, #f9dfad 100%);
}
.sun {
  position: absolute;
  right: 30px;
  top: 62px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffe078;
  box-shadow: 0 0 0 18px rgba(255,224,120,.22), 0 0 50px rgba(255, 189, 84, .65);
}
.screen-cloud, .cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 24px 2px 0 5px rgba(255,255,255,.72), 52px 7px 0 -2px rgba(255,255,255,.65);
}
.screen-cloud { width: 66px; height: 22px; }
.sc-1 { left: 28px; top: 118px; animation: drift 7s ease-in-out infinite; }
.sc-2 { right: 82px; top: 228px; transform: scale(.9); animation: drift 8s ease-in-out infinite reverse; }
.cloud { width: 108px; height: 34px; filter: blur(.2px); }
.cloud-1 { left: 4%; top: 14%; animation: floaty 6s ease-in-out infinite; }
.cloud-2 { right: 0; bottom: 20%; transform: scale(1.2); animation: floaty 7s ease-in-out infinite reverse; }

.gate {
  position: absolute;
  width: 142px;
  height: 82px;
  border-radius: 42px;
  border: 13px solid rgba(115,87,255,.48);
  box-shadow: 0 8px 22px rgba(115,87,255,.18);
  transform: perspective(300px) rotateX(54deg);
}
.gate-1 { left: 38px; top: 245px; }
.gate-2 { right: 30px; top: 392px; border-color: rgba(255,172,129,.62); }
.glider {
  position: absolute;
  left: 50%;
  bottom: 132px;
  width: 130px;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 24px rgba(47, 38, 103, .22));
  animation: gliderMove 2.8s ease-in-out infinite;
}
.track-line {
  position: absolute;
  bottom: -90px;
  width: 5px;
  height: 280px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  transform: rotate(16deg);
}
.t1 { left: 76px; }
.t2 { left: 164px; }
.t3 { right: 76px; }

.floating-card {
  position: absolute;
  display: grid;
  gap: 3px;
  min-width: 148px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 250, 240, .86);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: var(--shadow);
}
.floating-card strong { font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; color: var(--violet); }
.floating-card span { color: var(--muted); font-weight: 800; font-size: .92rem; }
.card-a { left: 1%; bottom: 23%; transform: rotate(-4deg); }
.card-b { right: 0; top: 19%; transform: rotate(5deg); }

.section-head {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head p { margin-top: 18px; font-size: 1.05rem; }
.section-head.compact { max-width: 860px; }
.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.1fr .72fr;
  gap: 30px;
  align-items: end;
  text-align: left;
}

.game-panel { padding-top: 34px; }
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr);
  gap: 28px;
  align-items: stretch;
}
.demo-card, .steps article, .feature-card, .screen-card, .cta-box, .faq-item {
  background: rgba(255, 250, 240, .72);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}
.demo-card {
  border-radius: var(--radius-xl);
  padding: 18px;
}
.demo-stage {
  position: relative;
  min-height: 390px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #72d7ff 0%, #ecfbff 58%, #ffe2ae 100%);
}
.demo-sky::before,
.demo-sky::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
}
.demo-sky::before { width: 146px; height: 42px; left: 8%; top: 14%; box-shadow: 46px 5px 0 -4px rgba(255,255,255,.6); }
.demo-sky::after { width: 190px; height: 55px; right: 8%; bottom: 14%; box-shadow: 58px 4px 0 -8px rgba(255,255,255,.55); }
.demo-ring {
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 10px solid rgba(115,87,255,.45);
  transform: perspective(260px) rotateX(62deg);
  animation: ringPulse 2.3s ease-in-out infinite;
}
.r1 { left: 18%; top: 34%; }
.r2 { left: 47%; top: 20%; border-color: rgba(255,172,129,.62); animation-delay: .4s; }
.r3 { right: 17%; top: 44%; border-color: rgba(120,220,202,.7); animation-delay: .8s; }
.demo-glider {
  position: absolute;
  width: 118px;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  transition: left .35s cubic-bezier(.2, .9, .2, 1), transform .35s ease;
  filter: drop-shadow(0 20px 20px rgba(47, 38, 103, .20));
}
.demo-glider.left { left: 28%; transform: translateX(-50%) rotate(-9deg); }
.demo-glider.right { left: 72%; transform: translateX(-50%) rotate(9deg); }
.demo-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.demo-controls button {
  flex: 1;
  min-width: 120px;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
  background: rgba(255,255,255,.78);
  transition: transform .2s ease, background .2s ease;
}
.demo-controls button:hover { transform: translateY(-1px); background: white; }

.steps { display: grid; gap: 16px; }
.steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  border-radius: 24px;
  padding: 24px;
}
.steps span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: var(--violet);
  box-shadow: 0 12px 22px rgba(115,87,255,.24);
}
.steps p { margin-top: 8px; }

.feature-grid, .screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.feature-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform .2s ease;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card img {
  width: 94px;
  height: 94px;
  margin-bottom: 22px;
}
.feature-card p { margin-top: 10px; }

.screen-card {
  border-radius: var(--radius-xl);
  padding: 16px 16px 20px;
  overflow: hidden;
  transition: transform .2s ease;
}
.screen-card:hover { transform: translateY(-5px) rotate(-1deg); }
.screen-card.featured { transform: translateY(-16px); }
.screen-card.featured:hover { transform: translateY(-21px) rotate(1deg); }
.screen-card img {
  width: 100%;
  border-radius: 24px;
  background: white;
}
.screen-card h3 { margin-top: 16px; padding-left: 4px; }

.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  padding: 46px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at 88% 10%, rgba(255,172,129,.42), transparent 30%),
    linear-gradient(135deg, rgba(255,250,240,.9), rgba(230,249,252,.9));
}
.cta-box > div { max-width: 720px; }
.cta-box p { margin-top: 14px; }

.faq-list { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.faq-item {
  border-radius: 22px;
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.faq-item button span { color: var(--violet); font-size: 1.4rem; transition: transform .2s ease; }
.faq-item.open button span { transform: rotate(45deg); }
.faq-body {
  display: none;
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.65;
}
.faq-item.open .faq-body { display: block; }

.footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto 28px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(24, 32, 51, .94);
  color: white;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}
.footer p { color: rgba(255,255,255,.68); font-size: .92rem; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 800; color: rgba(255,255,255,.8); }
.footer-links a:hover { color: white; }

@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes drift {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(22px); }
}
@keyframes gliderMove {
  0%,100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  50% { transform: translateX(-50%) translateY(-13px) rotate(3deg); }
}
@keyframes ringPulse {
  0%,100% { opacity: .72; transform: perspective(260px) rotateX(62deg) scale(1); }
  50% { opacity: 1; transform: perspective(260px) rotateX(62deg) scale(1.08); }
}

@media (max-width: 980px) {
  .section-pad { padding: 74px 0; }
  .hero { grid-template-columns: 1fr; padding-top: 132px; gap: 26px; }
  .hero-art { min-height: 560px; }
  .demo-grid, .section-head.split { grid-template-columns: 1fr; }
  .feature-grid, .screen-grid { grid-template-columns: 1fr; }
  .screen-card.featured { transform: none; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { top: 10px; min-height: 64px; border-radius: 26px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 250, 240, .96);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  body.nav-open .nav { display: flex; }
  .nav a { text-align: center; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding-top: 120px; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-art { min-height: 520px; }
  .phone-shell { height: 540px; width: min(320px, 88vw); }
  .floating-card { display: none; }
  .hero-actions .btn { width: 100%; }
  .demo-stage { min-height: 320px; }
  .cta-box { padding: 28px; border-radius: 28px; }
}

@media (max-width: 430px) {
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 36px; height: 36px; border-radius: 14px; }
  .hero-notes span { flex: 1; text-align: center; }
  .section-head { text-align: left; }
  .demo-controls button { min-width: 100%; }
}
