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

:root {
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --color-bg: #0F2A1E;
  --color-bg-alt: #123726;
  --color-bg-cream: #F5F1E4;
  --color-primary: #3F8F5D;
  --color-primary-light: #7CC576;
  --color-accent: #F2A65A;
  --color-accent2: #4FB3BF;
  --color-text: #EAF3EC;
  --color-text-muted: #AFC9BB;
  --color-text-dark: #16301F;
  --color-text-dark-muted: #4C6558;
  --color-border: rgba(234, 243, 236, 0.12);

  --gradient-cta: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  --shadow-card: 0 10px 30px rgba(9, 26, 18, 0.35);
}

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

html.hide #preloader {
  opacity: 0;
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.fixed {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

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

.section {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: 40px;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: var(--color-primary-light);
  transition: opacity 0.4s ease;
}

/* header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 600;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(15, 42, 30, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

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

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 600;
}

.burger-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.burger-btn span:nth-child(1) { top: 0; }
.burger-btn span:nth-child(2) { top: 10px; }
.burger-btn span:nth-child(3) { top: 20px; }

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

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 550;
  background: rgba(11, 31, 22, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

#mobile-menu .nav-link {
  font-size: 22px;
}

#mobile-menu .btn {
  margin-top: 10px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
}

.btn-play-icon {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--color-text-dark);
  box-shadow: 0 12px 28px rgba(242, 166, 90, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(242, 166, 90, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
}

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

.hero-actions .btn-primary {
  animation: floatCta 3s ease-in-out infinite;
  padding: 19px 38px;
  font-size: 20px;
}

.hero-actions .btn-primary:hover {
  animation-play-state: paused;
}

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  background-image: linear-gradient(180deg, rgba(15,42,30,0.55) 0%, rgba(15,42,30,0.85) 65%, var(--color-bg) 100%), url('../img/hero-bg.webp');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 680px;
  text-align: center;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.pill {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-primary-light);
  background: rgba(124, 197, 118, 0.12);
  border: 1px solid rgba(124, 197, 118, 0.35);
  padding: 7px 16px;
  border-radius: 100px;
}

.hero h1 {
  font-size: 52px;
  margin-bottom: 22px;
  color: var(--color-text);
}

.hero p {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}

.hero-actions-note {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 260px;
  margin: 0 auto;
}

/* how to play */
.how-section {
  background: var(--color-bg);
}

.how-section .section-tag,
.how-section .section-title {
  display: block;
  text-align: center;
}

.how-section .section-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.how-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.how-visual {
  align-self: start;
}

.how-visual img {
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.step-card {
  display: flex;
  gap: 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
  box-shadow: 0 14px 28px rgba(63, 143, 93, 0.18);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-bg);
  background: var(--gradient-cta);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
  color: var(--color-text);
}

.step-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
}

/* features */
.features-section {
  background: var(--color-bg-cream);
  color: var(--color-text-dark);
}

.features-section .section-tag {
  display: block;
  color: var(--color-primary);
  text-align: center;
}

.features-section .section-title {
  color: var(--color-text-dark);
  text-align: center;
}

.features-section .section-lead {
  color: var(--color-text-dark-muted);
}

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

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(22, 48, 31, 0.08);
  border-radius: 20px;
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(22, 48, 31, 0.14);
}

.feature-card img {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-text-dark);
}

.feature-card p {
  font-size: 14.5px;
  color: var(--color-text-dark-muted);
  margin: 0;
}

/* events */
.events-section {
  position: relative;
  background-image: linear-gradient(180deg, var(--color-bg) 0%, rgba(15,42,30,0.72) 30%, rgba(15,42,30,0.88) 100%), url('../img/events-bg.webp');
  background-size: cover;
  background-position: center;
}

.events-section .section-tag,
.events-section .section-title {
  display: block;
  text-align: center;
}

.events-content {
  max-width: 680px;
}

.events-content p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
  font-size: 16px;
}

/* contact / final */
.contact-section {
  position: relative;
  background-image: linear-gradient(180deg, var(--color-bg-cream) 0%, rgba(245,241,228,0.8) 30%, rgba(245,241,228,0.95) 100%), url('../img/cta-bg.webp');
  background-size: cover;
  background-position: center;
}

.contact-card {
  max-width: 620px;
  margin: 50px auto 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(22, 48, 31, 0.08);
  backdrop-filter: blur(6px);
  border-radius: 24px;
  padding: 46px 40px;
  box-shadow: var(--shadow-card);
}

.contact-section .section-tag {
  display: block;
  color: var(--color-primary);
}

.contact-section .section-title {
  color: var(--color-text-dark);
}

.contact-section .section-title,
.contact-section .section-lead,
.contact-section .section-tag {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.contact-card p {
  color: var(--color-text-dark-muted);
  margin-bottom: 16px;
  font-size: 15.5px;
}

.contact-section .contact-email {
  color: var(--color-primary);
}

.contact-email {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-accent);
  margin: 10px 0 24px;
}

/* footer */
.site-footer {
  background: #0A1F16;
  padding: 46px 0 30px;
  border-top: 1px solid var(--color-border);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

/* legal pages */
.legal-page {
  padding: 160px 0 100px;
  background: var(--color-bg);
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 50px;
}

.legal-content h1 {
  font-size: 34px;
  margin-bottom: 18px;
  color: var(--color-text);
}

.legal-content h2 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: var(--color-primary-light);
}

.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: 14px;
  font-size: 15px;
}

.legal-content ul {
  color: var(--color-text-muted);
  font-size: 15px;
  margin: 0 0 14px 20px;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--color-primary-light);
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-content a:hover {
  color: var(--color-accent);
}

.legal-content .date {
  color: var(--color-accent);
}

.legal-content .name {
  color: var(--color-primary-light);
}

/* responsive */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 44px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .section-title {
    font-size: 30px;
  }

  .hero {
    padding-top: 120px;
    min-height: auto;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 32px 22px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .section {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .step-card {
    flex-direction: column;
  }

  .contact-card {
    padding: 32px 22px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
