@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg: #FFF8EE;
  --bg-alt: #FFFFFF;
  --bg-soft: #FFEFDA;
  --bg-mint: #EAF9E4;
  --primary: #FF8A1F;
  --primary-2: #FFC531;
  --accent: #E5399B;
  --accent-2: #A855F7;
  --lime: #7ED321;
  --ink: #2B2035;
  --muted: #6B6076;
  --line: rgba(43, 32, 53, .14);
  --font-head: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --shadow: 0 8px 0 rgba(43, 32, 53, .12);
  --shadow-hard: 6px 6px 0 var(--ink);
  --radius: 22px;
  --header-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html.hide #preloader { display: none; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body.fixed { overflow: hidden; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(52px, 8vw, 96px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 22px; }

p + p { margin-top: 16px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(229, 57, 155, .1);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
}

/* ---------- preloader ---------- */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--primary) 55%, var(--accent));
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 14px 30px;
  box-shadow: var(--shadow-hard);
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-sm { padding: 10px 20px; font-size: 15px; box-shadow: 4px 4px 0 var(--ink); }
.btn-sm svg { width: 17px; height: 17px; }
.btn-sm:hover { box-shadow: 2px 2px 0 var(--ink); }

.btn-lg { padding: 18px 40px; font-size: 20px; }

@keyframes float-cta {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.btn-float { animation: float-cta 3s ease-in-out infinite; }
.btn-float:hover { animation-play-state: paused; }

/* ---------- header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .25s ease, box-shadow .25s ease;
}

.header.scrolled {
  background: rgba(255, 248, 238, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  flex-shrink: 0;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
}

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .25s ease;
}

.nav-link:hover::after { width: 100%; }

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 34px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

.burger-btn span {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 4px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}

.burger-btn.act span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- mobile menu ---------- */

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

#mobile-menu.opened { opacity: 1; pointer-events: auto; }

#mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

#mobile-menu .nav-link { font-size: 27px; font-weight: 600; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(255, 197, 49, .32), transparent 65%),
    radial-gradient(760px 480px at 88% 78%, rgba(229, 57, 155, .18), transparent 62%),
    var(--bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.webp') center/cover no-repeat;
  opacity: .3;
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  margin-bottom: 20px;
}

.hero h1::before,
.hero h1::after {
  content: attr(data-text);
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

.hero h1::before {
  -webkit-text-stroke: clamp(4px, .5vw, 7px) var(--ink);
  color: transparent;
}

.hero h1::after {
  -webkit-text-stroke: unset;
  background: linear-gradient(135deg, var(--primary-2), var(--primary) 45%, var(--accent));
  background-size: 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  pointer-events: none;
}

.hero-sub {
  font-size: 21px;
  font-weight: 600;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-shot {
  border: 3px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 9px 9px 0 rgba(43, 32, 53, .18);
  transform: rotate(2deg);
  max-width: 300px;
  margin-left: auto;
}

/* ---------- sections ---------- */

.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-features { background: var(--bg-mint); }

.section-kingdom {
  position: relative;
  background: var(--bg-alt);
  overflow: hidden;
}

.section-kingdom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/kingdom-bg.webp') center/cover no-repeat;
  opacity: .16;
}

.section-kingdom > .container { position: relative; z-index: 1; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 54px;
}

.split {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.split-rev,
.final .split {
  grid-template-columns: minmax(0, 1fr) 290px;
}

.split-rev .split-media { order: 2; }

.split-media img {
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 rgba(43, 32, 53, .16);
}

.split-text p { color: var(--muted); }

.split-text h2 { margin-bottom: 20px; }

.lead {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink) !important;
}

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-alt);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 6px 6px 0 rgba(43, 32, 53, .14);
  transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 rgba(43, 32, 53, .14);
}

.feature-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--lime), var(--primary));
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card p {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
}

/* ---------- final ---------- */

.final {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/footer-bg.webp') center/cover no-repeat;
  opacity: .28;
}

.final > .container { position: relative; z-index: 1; }

.final .split-media { order: 2; }

.details {
  background: rgba(255, 255, 255, .82);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 32px 0;
  box-shadow: 6px 6px 0 rgba(43, 32, 53, .14);
}

.details h3 { margin-bottom: 14px; }

.details dl { display: grid; gap: 10px; }

.details dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px dashed var(--line);
  padding-bottom: 9px;
}

.details dl > div:last-child { border-bottom: 0; padding-bottom: 0; }

.details dt {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--muted);
}

.details dd { font-weight: 700; text-align: right; }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.footer .logo { color: #fff; }
.footer .logo img { border-color: rgba(255, 255, 255, .5); }

.copy { font-size: 15px; }

.footer-links { display: flex; gap: 24px; font-size: 15px; }
.footer-links a { transition: color .2s ease; }
.footer-links a:hover { color: var(--primary-2); }

/* ---------- legal ---------- */

.legal-page { padding: calc(var(--header-h) + 70px) 0 90px; }

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-alt);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 46px 48px;
  box-shadow: 8px 8px 0 rgba(43, 32, 53, .12);
}

.legal-content h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 26px; }
.legal-content h3 { margin: 32px 0 12px; color: var(--accent); }
.legal-content p { color: var(--muted); margin-bottom: 14px; }
.legal-content b { color: var(--ink); }

.legal-content a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--primary);
  text-decoration-color: var(--primary);
}
.legal-content .name, .legal-content .app-domain { font-weight: 800; color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger-btn { display: flex; }
  .header .btn-sm { display: none; }
  .split { gap: 44px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .hero { padding: calc(var(--header-h) + 44px) 0 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot { margin: 0 auto; transform: none; max-width: 260px; }
  .split,
  .split-rev,
  .final .split { grid-template-columns: 1fr; gap: 34px; }
  .split-rev .split-media,
  .final .split-media { order: 0; }
  .split-media img { max-width: 260px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .legal-content { padding: 32px 24px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-sub { font-size: 18px; }
  .btn-lg { display: flex; justify-content: center; padding: 15px 28px; font-size: 18px; }
  .details dl > div { flex-direction: column; gap: 2px; }
  .details dd { text-align: left; }
  .footer-links { flex-direction: column; gap: 12px; }
}
