:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --tint: #f3f1fb;
  --ink: #161a24;
  --muted: #5b6475;
  --line: #e8e6e1;
  --brand: #5b4bff;
  --brand-2: #8f4dff;
  --accent: #ff7a2f;
  --accent-2: #ffb347;
  --ok: #1f9d55;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(22, 26, 36, .05), 0 12px 32px rgba(22, 26, 36, .08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: #ebe8ff; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 248, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { color: var(--brand); font-weight: 600; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 9px 15px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .96rem; }
.menu a:hover { color: var(--ink); background: #efede8; }
.menu a[aria-current="page"] { color: var(--brand); background: #ebe8ff; }
.menu .cta { margin-left: 8px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.menu .cta:hover { color: #fff; background: linear-gradient(135deg, #4d3df0, #7f3ff5); }
.nav-toggle { display: none; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer; }
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 24px rgba(91, 75, 255, .28); }
.btn.primary:hover { color: #fff; transform: translateY(-1px); }
.btn.ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn.ghost:hover { color: var(--brand); border-color: var(--brand); }
.btn.soft { color: var(--ink); background: #efede8; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 70px; background: radial-gradient(900px 480px at 88% -10%, #e5e0ff 0, transparent 62%), radial-gradient(700px 400px at -5% 110%, #ffe7d4 0, transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; }
.hero.small { padding: 64px 0 44px; }
.hero.small h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .3em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { font-size: .88rem; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }

/* phone mockups */
.phone { border-radius: 30px; padding: 7px; background: #161a24; box-shadow: var(--shadow); }
.phone img { border-radius: 24px; width: 100%; height: auto; }
.phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.phones .phone { position: absolute; width: 210px; }
.phones .p1 { transform: translateX(-150px) rotate(-8deg); z-index: 1; }
.phones .p2 { width: 236px; z-index: 3; }
.phones .p3 { transform: translateX(150px) rotate(8deg); z-index: 2; }
.phones::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: linear-gradient(135deg, #d9d2ff, #ffe0c8); filter: blur(10px); z-index: 0; }
.phone-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- sections ---------- */
section { padding: 76px 0; }
.band { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 38px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card:hover { border-color: #cfc8ff; }
.icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.icon.o { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.icon.g { background: linear-gradient(135deg, #34c38f, #1f9d55); }
.icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* featured game */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.game-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.game-head img { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); }
.game-head h1, .game-head h2 { margin: 0; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--ok); background: #e3f5ea; padding: 4px 11px; border-radius: 999px; }
.banner { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { position: relative; padding-left: 32px; color: var(--muted); }
.facts li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #e3f5ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%231f9d55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* process */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #ebe8ff; color: var(--brand); font-weight: 800; margin-bottom: 14px; }
.step p { margin: 0; color: var(--muted); }

/* call to action band */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 28px; padding: 54px 36px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e6e1ff; max-width: 540px; margin: 0 auto 8px; }
.cta-band .btn.primary { background: #fff; color: var(--brand); box-shadow: none; }
.cta-band .btn.primary:hover { color: var(--brand-2); }

/* privacy / long text */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin: 1.9em 0 .5em; }
.prose p, .prose li { color: #3d4555; }
.prose ul { padding-left: 1.3em; }
.prose strong { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: #f3f1ec; border-top: 1px solid var(--line); padding: 54px 0 28px; margin-top: 20px; }
.foot-grid { display: grid; gap: 34px; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.foot-grid h4 { margin: 0 0 12px; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot-grid a:hover { color: var(--brand); }
.foot-brand p { color: var(--muted); max-width: 280px; margin: 12px 0 0; font-size: .95rem; }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .phones { min-height: 460px; margin-top: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 54px 0; }
  .hero { padding: 54px 0 44px; }
  .burger { display: flex; }
  .site-header nav { position: absolute; top: 70px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 22px 18px; display: none; }
  .nav-toggle:checked ~ nav { display: block; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu .cta { margin: 8px 0 0; text-align: center; }
  .phones { min-height: 400px; }
  .phones .phone { width: 132px; }
  .phones .p2 { width: 158px; }
  .phones .p1 { transform: translateX(-96px) rotate(-8deg); }
  .phones .p3 { transform: translateX(96px) rotate(8deg); }
  .phones::before { width: 300px; height: 300px; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; border-radius: 22px; }
}
