@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg: #FDF6E9;
  --bg-2: #F7EFDD;
  --bg-3: #F2E7CE;
  --card: #FFFDF8;
  --wood: #B87A4E;
  --wood-dark: #8B5A2B;
  --green: #A8D8A0;
  --cyan: #7FD4E0;
  --pink: #E896C4;
  --purple: #B08FD8;
  --gold: #F0B94D;
  --gold-dark: #E8A83C;
  --text: #4A3527;
  --text-soft: #806a57;
  --text-mute: #a08d7b;
  --line: #eaddc4;
  --white: #ffffff;

  --grad-cta: linear-gradient(135deg, #F5C65E 0%, #E8A83C 55%, #E0913A 100%);
  --grad-pink: linear-gradient(135deg, #F1A9D0 0%, #E896C4 100%);

  --shadow-sm: 0 4px 14px rgba(74, 53, 39, 0.08);
  --shadow-md: 0 12px 30px rgba(74, 53, 39, 0.12);
  --shadow-lg: 0 22px 50px rgba(74, 53, 39, 0.18);
  --shadow-card: 0 10px 24px rgba(74, 53, 39, 0.14);

  --radius: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --head: 'Baloo 2', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;

  --maxw: 1200px;
  --header-h: 78px;
}

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

html.hide #preloader { display: none; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.fixed { overflow: hidden; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
#preloader img { width: 64px; height: 64px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--wood);
  background: rgba(184, 122, 78, 0.12);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

h1, h2, h3, h4 { font-family: var(--head); color: var(--text); line-height: 1.15; }
h2.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 18px;
}
.section-lead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 620px;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 17px;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary {
  background: var(--grad-cta);
  color: #5a3a17;
  box-shadow: 0 10px 22px rgba(232, 168, 60, 0.42);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(232, 168, 60, 0.5); filter: brightness(1.03); }
.btn-outline {
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { transform: translateY(-3px); border-color: var(--wood); }
.btn-lg { font-size: 19px; padding: 18px 38px; }

/* Hero primary CTA levitation */
.btn-levitate { animation: levitate 3s ease-in-out infinite; }
.btn-levitate:hover { animation-play-state: paused; }
@keyframes levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.header.scrolled {
  background: rgba(253, 246, 233, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(74, 53, 39, 0.08);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo.nav-link::after { content: none; }
.logo img { width: 46px; height: 46px; }
.logo span {
  font-family: var(--head);
  font-weight: 800;
  font-size: 24px;
  color: var(--text);
  letter-spacing: .3px;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text-soft);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 3px;
  border-radius: 3px;
  background: var(--grad-cta);
  transition: width .25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.header-cta { padding: 12px 22px; font-size: 15px; }

/* Burger */
.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}
.burger-btn span {
  display: block;
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--text);
  margin: 5px auto;
  transition: transform .3s ease, opacity .3s ease;
}
.burger-btn.act span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link {
  font-family: var(--head);
  font-size: 26px;
  color: var(--text);
  padding: 12px;
}
#mobile-menu .btn {
  margin-top: 24px;
  width: auto;
  font-size: 20px;
  padding: 17px 40px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(253,246,233,0.86) 0%, rgba(253,246,233,0.7) 45%, rgba(247,239,221,0.92) 100%),
    url('../img/hero-bg.webp') center/cover no-repeat,
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
}
.hero-title {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.5px;
}
.hero-title .accent {
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: 19px;
  color: var(--text-soft);
  max-width: 540px;
}
.hero-sub + .hero-sub { margin-top: 14px; font-weight: 700; color: var(--text); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-pills {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.pill i {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block;
}
.pill:nth-child(1) i { background: var(--green); }
.pill:nth-child(2) i { background: var(--cyan); }
.pill:nth-child(3) i { background: var(--pink); }
.pill:nth-child(4) i { background: var(--purple); }

/* Phone screenshot */
.hero-visual { display: flex; justify-content: center; position: relative; }
.phone {
  position: relative;
  border-radius: 34px;
  padding: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 6px solid #fff;
  max-width: 320px;
  transform: rotate(3deg);
  transition: transform .4s ease;
}
.phone img { border-radius: 28px; }
.hero-visual .phone:hover { transform: rotate(0deg) translateY(-6px); }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: .5;
  z-index: -1;
}
.blob-1 { width: 220px; height: 220px; background: var(--cyan); top: -20px; right: 0; }
.blob-2 { width: 180px; height: 180px; background: var(--pink); bottom: -10px; left: 10px; }

/* ---------- About ---------- */
.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 60px;
}
.two-col.reverse { grid-template-columns: 1.1fr 0.9fr; }
.two-col .visual { display: flex; justify-content: center; }
.about-text p { color: var(--text-soft); margin-bottom: 16px; }
.about-text p:first-of-type { color: var(--text); font-weight: 700; font-size: 19px; }
.phone--sm { max-width: 290px; transform: rotate(-4deg); }

/* ---------- How to Play ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.step-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-num {
  font-family: var(--head);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  margin-bottom: 16px;
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}
.step-card:nth-child(1) .step-num { color: var(--green); -webkit-text-stroke-color: var(--text); }
.step-card:nth-child(2) .step-num { color: var(--cyan); }
.step-card:nth-child(3) .step-num { color: var(--pink); }
.step-card p { color: var(--text-soft); font-size: 16px; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.feature-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feat-icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feat-icon svg { width: 30px; height: 30px; stroke: var(--text); }
.feature-card:nth-child(1) .feat-icon { background: var(--green); }
.feature-card:nth-child(2) .feat-icon { background: var(--cyan); }
.feature-card:nth-child(3) .feat-icon { background: var(--pink); }
.feature-card:nth-child(4) .feat-icon { background: var(--purple); }
.feature-card:nth-child(5) .feat-icon { background: var(--gold); }
.feature-card:nth-child(6) .feat-icon { background: var(--wood); }
.feature-card:nth-child(6) .feat-icon svg { stroke: #fff; }
.feature-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-soft); font-size: 16px; }

/* ---------- Word Categories ---------- */
.categories {
  background:
    linear-gradient(180deg, rgba(253,246,233,0.9), rgba(247,239,221,0.9)),
    url('../img/categories-bg.webp') center/cover no-repeat;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
  max-width: 940px;
}
.chip {
  font-family: var(--head);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chip:hover { transform: translateY(-4px) rotate(-1.5deg); box-shadow: var(--shadow-md); }
.chip[data-c="green"]  { border-color: var(--green);  background: #f1f9ef; }
.chip[data-c="cyan"]   { border-color: var(--cyan);   background: #eefafc; }
.chip[data-c="pink"]   { border-color: var(--pink);   background: #fdeff7; }
.chip[data-c="purple"] { border-color: var(--purple); background: #f5f0fb; }
.chip[data-c="gold"]   { border-color: var(--gold);   background: #fdf5e3; }
.chip--count {
  color: #fff;
  background: var(--grad-cta);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(232,168,60,.4);
}

/* ---------- Word Lovers / CTA band ---------- */
.cta-band {
  position: relative;
  padding: 100px 0;
  color: #fff8ec;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(120,74,42,0.82), rgba(90,55,30,0.88)),
    url('../img/wood-texture.webp') center/cover no-repeat,
    var(--wood-dark);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  max-width: 780px;
  margin: 0 auto 22px;
}
.cta-band p {
  color: #f6e6d2;
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto 16px;
}
.cta-band .btn { margin-top: 24px; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 54px 46px;
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
}
.contact-card p { color: var(--text-soft); margin-bottom: 14px; }
.contact-card .lead { color: var(--text); font-weight: 700; font-size: 20px; }
.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 20px;
  color: var(--wood-dark);
  background: var(--bg-2);
  border: 2px dashed var(--wood);
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  margin: 10px 0 24px;
  transition: transform .2s ease, background .2s ease;
}
.email-btn:hover { transform: translateY(-3px); background: #f6ead2; }
.email-btn svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  color: #f3e7d6;
  flex-shrink: 0;
  padding: 46px 0 26px;
  background:
    linear-gradient(180deg, rgba(90,55,30,0.9), rgba(74,53,39,0.95)),
    url('../img/wood-texture.webp') center/cover no-repeat,
    var(--wood-dark);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand { max-width: 380px; }
.footer-brand .logo span { color: #fff; }
.footer-brand p { color: #e6d3bd; margin-top: 16px; font-size: 15.5px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  color: #f3e7d6;
  font-weight: 700;
  font-size: 15px;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 18px;
  text-align: center;
  color: #d8c4ad;
  font-size: 14px;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: calc(var(--header-h) + 60px) 0 90px;
  background: var(--bg);
  flex: 1 0 auto;
}
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 50px 48px;
}
.legal-content h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 26px;
  color: var(--text);
}
.legal-content h1::after {
  content: '';
  display: block;
  width: 80px; height: 5px;
  border-radius: 5px;
  background: var(--grad-cta);
  margin-top: 14px;
}
.legal-content p { color: var(--text-soft); margin-bottom: 18px; }
.legal-content strong { color: var(--text); }
.legal-content ol { margin: 0 0 18px 22px; color: var(--text-soft); }
.legal-content li { margin-bottom: 10px; }
.legal-content a { color: var(--wood-dark); font-weight: 700; text-decoration: underline; }
.legal-content .name { font-weight: 700; color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links, .header-cta { display: none; }
  .burger-btn { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub, .hero-title { max-width: none; }
  .hero-actions, .hero-pills { justify-content: center; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 36px; }
  .two-col .visual { order: 1; }
  .features-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .container { padding: 0 20px; }
  body { font-size: 16px; }
  .contact-card { padding: 40px 26px; }
  .legal-content { padding: 36px 24px; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand { max-width: none; }
  .footer-brand .logo { justify-content: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 640px) {
  .features-grid, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; }
  .phone, .phone--sm, .phone--sm2 { max-width: 260px; }
  .email-btn { width: 100%; justify-content: center; font-size: 16px; }
}
