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

:root {
    --color-primary: #a76fc9;
    --color-primary-dark: #7b4fa0;
    --color-blush: #f4a9c4;
    --color-gold: #f2b84b;
    --color-sage: #8fb88a;
    --color-leaf: #6fa86b;
    --color-bg: #fdf9f5;
    --color-bg-alt-1: #f3e8fb;
    --color-bg-alt-2: #fdeff6;
    --color-text: #4a3b52;
    --color-text-soft: #7c6c86;
    --color-white: #ffffff;

    --font-heading: "Baloo 2", cursive;
    --font-body: "DM Sans", sans-serif;

    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    --gradient-gold: linear-gradient(135deg, var(--color-gold), var(--color-blush));
    --gradient-section: linear-gradient(180deg, var(--color-bg-alt-1) 0%, var(--color-bg-alt-2) 100%);

    --shadow-soft: 0 10px 30px rgba(123, 79, 160, 0.14);
    --shadow-card: 0 8px 24px rgba(123, 79, 160, 0.1);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --header-height: 84px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}
html.hide #preloader {
    opacity: 0;
    pointer-events: none;
}

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

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

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

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

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}
#preloader img {
    width: 80px;
    height: 80px;
}

/* ===== Decorative background blobs ===== */
.bg-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1100;
    background: transparent;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        height 0.3s ease;
}
.site-header.scrolled {
    background: rgba(253, 249, 245, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(123, 79, 160, 0.1);
    height: 72px;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 26px !important;
    color: var(--color-white);
    -webkit-text-stroke: 1.5px var(--color-primary-dark);
    paint-order: stroke fill;
    text-shadow: 0 3px 0 rgba(123, 79, 160, 0.35);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo:hover::after {
    width: 0 !important;
}

.main-nav {
    display: flex;
}
.main-nav ul {
    display: flex;
    gap: 26px;
}
.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
    position: relative;
    padding: 6px 2px;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.25s ease;
}
.nav-link:hover {
    color: var(--color-primary-dark);
}
.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 30px;
    border-radius: 100px;
    border: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gradient-gold);
    color: #5a3a12;
    box-shadow: 0 8px 20px rgba(242, 184, 75, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(242, 184, 75, 0.5);
}
.btn-header {
    padding: 12px 26px;
    font-size: 14px;
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 40px;
    background: transparent;
    border: 0;
    z-index: 1100;
}
.burger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--color-primary-dark);
    transition:
        transform 0.3s ease,
        opacity 0.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 {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background: var(--color-bg);
    z-index: 1050;
    padding: 130px 32px 40px;
    text-align: center;
    transition: opacity 0.3s ease;
}
#mobile-menu.opened {
    opacity: 1;
    pointer-events: auto;
}
#mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 36px;
}
#mobile-menu .nav-link {
    font-size: 22px;
}
#mobile-menu .btn {
    width: 100%;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: calc(var(--header-height) + 56px) 0 80px;
    background: var(--gradient-section);
    overflow: hidden;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(253, 249, 245, 0.95) 0%,
        rgba(253, 249, 245, 0.82) 38%,
        rgba(253, 249, 245, 0.35) 100%
    );
}
@media (min-width: 769px) {
    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(253, 249, 245, 0.96) 0%,
            rgba(253, 249, 245, 0.84) 40%,
            rgba(253, 249, 245, 0.3) 65%,
            rgba(253, 249, 245, 0.05) 100%
        );
    }
}
.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    min-height: 560px;
}
.hero-content h1 {
    font-size: 56px;
    color: var(--color-primary-dark);
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}
.hero-content p {
    font-size: 18px;
    color: var(--color-text-soft);
    margin-bottom: 16px;
    max-width: 520px;
}
.hero-content .btn {
    margin-top: 20px;
    padding: 20px 44px;
    font-size: 19px;
    gap: 12px;
}
.hero-content .btn svg {
    width: 24px;
    height: 24px;
}

.hero-cta-levitate {
    animation: levitate 3s ease-in-out infinite;
}
.hero-cta-levitate:hover {
    animation-play-state: paused;
}
@keyframes levitate {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

.hero-visual {
    position: relative;
    text-align: center;
}
.hero-visual img {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(123, 79, 160, 0.25));
}

/* ===== Generic section ===== */
.section {
    position: relative;
    padding: 100px 0;
}
.section-alt {
    background: var(--gradient-section);
}
.section-title {
    font-size: 40px;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}
.section-kicker {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(242, 184, 75, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}
.about-media {
    position: relative;
}
.about-media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.about-text p {
    color: var(--color-text-soft);
    font-size: 16px;
    margin-bottom: 18px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ===== How to Play ===== */
.how-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.how-text p {
    color: var(--color-text-soft);
    font-size: 16px;
    margin-bottom: 18px;
}
.how-media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    box-shadow: var(--shadow-card);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-icon svg {
    width: 28px;
    height: 28px;
}
.feature-icon.tint-violet {
    background: rgba(167, 111, 201, 0.14);
    color: var(--color-primary);
}
.feature-icon.tint-gold {
    background: rgba(242, 184, 75, 0.18);
    color: #b87f1e;
}
.feature-icon.tint-blush {
    background: rgba(244, 169, 196, 0.2);
    color: #c05a82;
}
.feature-icon.tint-sage {
    background: rgba(143, 184, 138, 0.2);
    color: var(--color-leaf);
}
.feature-card h3 {
    font-size: 21px;
    color: var(--color-text);
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 15px;
    color: var(--color-text-soft);
}

/* ===== Community ===== */
.community-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}
.community-media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.community-text p {
    color: var(--color-text-soft);
    font-size: 16px;
    margin-bottom: 18px;
}

/* ===== Contact ===== */
.contact-section {
    text-align: center;
}
.contact-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    box-shadow: var(--shadow-soft);
}
.contact-card p {
    color: var(--color-text-soft);
    font-size: 16px;
    margin-bottom: 22px;
}
.contact-email {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--color-primary-dark);
    padding: 12px 28px;
    border-radius: 100px;
    background: var(--color-bg-alt-1);
    margin-bottom: 22px;
    transition: transform 0.2s ease;
}
.contact-email:hover {
    transform: translateY(-2px);
}
.contact-card .note {
    font-size: 14px;
    color: var(--color-text-soft);
    margin-bottom: 0;
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    padding: 90px 0 32px;
    color: var(--color-white);
    overflow: hidden;
}
.footer-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(74, 59, 82, 0.46) 0%,
        rgba(74, 59, 82, 0.6) 50%,
        rgba(58, 42, 68, 0.86) 100%
    );
    z-index: 1;
}
.site-footer .container {
    position: relative;
    z-index: 2;
}
.footer-top {
    text-align: center;
    padding-bottom: 40px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 12px;
}
.footer-tagline {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 auto;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}
.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}
.footer-copy {
    font-size: 13px;
    opacity: 0.75;
}

/* ===== Legal pages ===== */
.legal-page {
    padding: calc(var(--header-height) + 64px) 0 100px;
    background: var(--gradient-section);
    min-height: 60vh;
}
.legal-content {
    max-width: 780px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 56px 60px;
    box-shadow: var(--shadow-soft);
}
.legal-content h1 {
    font-size: 38px;
    color: var(--color-primary-dark);
    margin-bottom: 28px;
}
.legal-content h2 {
    font-size: 22px;
    color: var(--color-primary-dark);
    margin: 32px 0 12px;
}
.legal-content h3 {
    font-size: 17px;
    color: var(--color-text);
    margin: 20px 0 8px;
}
.legal-content p {
    font-size: 15px;
    color: var(--color-text-soft);
    margin-bottom: 14px;
}
.legal-content a {
    color: var(--color-primary-dark);
    font-weight: 600;
}
.legal-content strong {
    color: var(--color-text);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 44px;
    }
    .section-title {
        font-size: 32px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid,
    .how-grid,
    .community-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .header-cta .btn-header {
        display: none;
    }
    .burger-btn {
        display: flex;
    }

    .hero .container,
    .about-grid,
    .how-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        max-width: 320px;
        margin: 32px auto 0;
    }
    .about-text {
        order: 1;
    }
    .about-media {
        order: 2;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .section {
        padding: 72px 0;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .contact-card {
        padding: 40px 28px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 30px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .section-title {
        font-size: 26px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .legal-content {
        padding: 36px 22px;
    }
    .btn-primary {
        padding: 13px 24px;
        font-size: 22px;
    }

    .contact-email {
        font-size: 16px;
    }
    .footer-logo {
        font-size: 22px;
    }
    .hero .container {
        gap: 0;
    }
}
