@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito+Sans:wght@300;400;600;700&display=swap");

:root {
    --bg: #12180f;
    --surface: #1b2416;
    --surface-raised: #243020;
    --green: #8fd14f;
    --amber: #f2a93b;
    --cream: #e8e2d0;
    --muted: #9aa88c;
    --soil: #3e2e22;
    --petal: #e5799a;
    --grad-cta: linear-gradient(135deg, #8fd14f 0%, #b6e36f 55%, #f2a93b 140%);
    --font-head: "Baloo 2", system-ui, sans-serif;
    --font-body: "Nunito Sans", system-ui, sans-serif;
    --radius: 24px;
    --radius-sm: 20px;
    --radius-lg: 28px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --speed: 0.5s;
    --glow-green: 0 0 40px rgba(143, 209, 79, 0.25);
    --glow-amber: 0 0 40px rgba(242, 169, 59, 0.25);
    --header-h: 84px;
}

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

html.fixed,
body.fixed {
    overflow: hidden;
}

body {
    background: var(--bg);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--speed) var(--ease);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--cream);
}

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

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

.preloader img {
    width: 96px;
    height: 96px;
}

html.hide .preloader {
    display: none;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
    background-image: url("../img/noise.png");
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.035;
    mix-blend-mode: overlay;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 500;
    transition:
        background var(--speed) var(--ease),
        box-shadow var(--speed) var(--ease);
}

.header.scrolled {
    background: rgba(18, 24, 15, 0.86);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

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

.nav__list {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav__list a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 17px;
    color: var(--cream);
    position: relative;
    padding-bottom: 4px;
}

.nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
    box-shadow: var(--glow-green);
    transition: width var(--speed) var(--ease);
}

.nav__list a:hover {
    color: var(--green);
}

.nav__list a:hover::after {
    width: 100%;
}

.burger-btn {
    display: none;
    background: transparent;
    border: 0;
    width: 46px;
    height: 46px;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.burger-btn span {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--cream);
    margin: 5px auto;
    transition:
        transform var(--speed) var(--ease),
        opacity var(--speed) var(--ease);
}

.burger-btn.act span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.act span:nth-child(2) {
    opacity: 0;
}

.burger-btn.act span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 24, 15, 0.97);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--speed) var(--ease);
}

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

.mobile-menu__list {
    text-align: center;
    display: grid;
    gap: 26px;
}

.mobile-menu__list a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 30px;
    color: var(--cream);
}

.mobile-menu__list a:hover {
    color: var(--green);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.01em;
    padding: 17px 40px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition:
        transform var(--speed) var(--ease),
        box-shadow var(--speed) var(--ease),
        background var(--speed) var(--ease),
        color var(--speed) var(--ease);
}

.btn--primary {
    background: var(--grad-cta);
    color: #11170e;
    box-shadow: 0 0 40px rgba(143, 209, 79, 0.35);
}

.btn--primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 56px rgba(143, 209, 79, 0.5);
}

.btn--ghost {
    background: transparent;
    color: var(--amber);
    border: 1px solid rgba(242, 169, 59, 0.55);
    box-shadow: 0 0 26px rgba(242, 169, 59, 0.12);
}

.btn--ghost:hover {
    transform: translateY(-4px);
    background: rgba(242, 169, 59, 0.1);
    box-shadow: var(--glow-amber);
}

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

.btn--float {
    animation: levitate 3s ease-in-out infinite;
}

.btn--float:hover {
    animation-play-state: paused;
}

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

.section__head {
    max-width: 720px;
    margin-bottom: 64px;
}

.section__title {
    font-size: 46px;
    margin-bottom: 18px;
}

.lead {
    font-size: 21px;
    color: var(--cream);
}

p {
    color: var(--cream);
}

.divider {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    z-index: 4;
}

.divider svg {
    width: 100%;
    height: 90px;
    display: block;
}

.divider--down svg path {
    fill: var(--surface);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 60px) 0 170px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 24, 15, 0.96) 0%, rgba(18, 24, 15, 0.82) 46%, rgba(18, 24, 15, 0.4) 100%),
        linear-gradient(180deg, rgba(18, 24, 15, 0.7) 0%, rgba(18, 24, 15, 0) 34%, rgba(18, 24, 15, 0.9) 100%);
}

.hero__glow {
    position: absolute;
    right: 6%;
    top: 42%;
    width: 620px;
    height: 620px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(242, 169, 59, 0.34) 0%,
        rgba(242, 169, 59, 0.08) 45%,
        rgba(242, 169, 59, 0) 70%
    );
    z-index: 1;
    pointer-events: none;
}

.fireflies {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.firefly {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 18px 4px rgba(242, 169, 59, 0.55);
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
        opacity: 0.15;
    }
    25% {
        opacity: 0.85;
    }
    50% {
        transform: translate(38px, -46px);
        opacity: 0.35;
    }
    75% {
        opacity: 0.8;
    }
    100% {
        transform: translate(0, 0);
        opacity: 0.15;
    }
}

.firefly:nth-child(1) {
    left: 12%;
    top: 34%;
    animation: drift 14s var(--ease) infinite;
}
.firefly:nth-child(2) {
    left: 62%;
    top: 22%;
    animation: drift 18s var(--ease) infinite 2s;
}
.firefly:nth-child(3) {
    left: 78%;
    top: 58%;
    animation: drift 16s var(--ease) infinite 4s;
}
.firefly:nth-child(4) {
    left: 44%;
    top: 74%;
    animation: drift 20s var(--ease) infinite 1s;
}
.firefly:nth-child(5) {
    left: 88%;
    top: 38%;
    animation: drift 15s var(--ease) infinite 6s;
    background: var(--green);
    box-shadow: 0 0 18px 4px rgba(143, 209, 79, 0.5);
}

.hero__inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
}

.hero__title {
    font-size: 64px;
    margin-bottom: 24px;
}

.hero__title span {
    color: var(--green);
    text-shadow: 0 0 44px rgba(143, 209, 79, 0.45);
}

.hero__text {
    max-width: 34em;
    color: var(--cream);
    margin-bottom: 38px;
}

.hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 34px;
}

.hero__btns .btn {
    min-width: 248px;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
}

.pills li {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.pills li + li {
    padding-left: 22px;
}

.pills li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 12px rgba(242, 169, 59, 0.7);
}

.hero__art {
    position: relative;
}

.hero__art img {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

.about {
    background: var(--surface);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 68px;
}

.about__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        var(--glow-green);
}

.about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__content p + p {
    margin-top: 20px;
}

.about__content .lead {
    margin-bottom: 24px;
    color: var(--green);
    font-weight: 600;
}

.about__content p:not(.lead) {
    color: var(--muted);
}

.gameplay {
    background: var(--bg);
}

.gameplay .lead {
    color: var(--muted);
}

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.steps::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 96px;
    height: 0;
    border-top: 2px dashed rgba(242, 169, 59, 0.35);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    padding: 34px 28px 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(242, 169, 59, 0.08) 0%, rgba(27, 36, 22, 0) 42%), var(--surface);
    overflow: hidden;
    transition:
        transform var(--speed) var(--ease),
        background var(--speed) var(--ease),
        box-shadow var(--speed) var(--ease);
}

.step:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(242, 169, 59, 0.14) 0%, rgba(36, 48, 32, 0) 42%), var(--surface-raised);
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.45),
        var(--glow-amber);
}

.step__num {
    position: absolute;
    right: 14px;
    top: -6px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 92px;
    line-height: 1;
    color: rgba(242, 169, 59, 0.14);
    pointer-events: none;
}

.step__icon,
.feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: rgba(242, 169, 59, 0.12);
    box-shadow: var(--glow-amber);
}

.step__icon svg,
.feature__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--green);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step__title {
    font-size: 23px;
    margin-bottom: 12px;
}

.step p {
    font-size: 16px;
    color: var(--muted);
}

.gameplay__cta {
    margin-top: 60px;
    text-align: center;
}

.features {
    background: var(--surface);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.feature {
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(232, 226, 208, 0.05) 0%, rgba(36, 48, 32, 0) 46%), var(--surface-raised);
    transition:
        transform var(--speed) var(--ease),
        box-shadow var(--speed) var(--ease);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow:
        0 26px 54px rgba(0, 0, 0, 0.45),
        var(--glow-green);
}

.feature__title {
    font-size: 25px;
    margin-bottom: 14px;
}

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

.why {
    background: var(--bg);
}

.why__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 68px;
    align-items: center;
}

.why__content p {
    color: var(--muted);
    margin-bottom: 36px;
}

.why__media {
    max-height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        var(--glow-amber);
}

.why__media img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.why__list {
    padding: 44px 40px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.35);
}

.why__list-title {
    font-size: 26px;
    margin-bottom: 26px;
    color: var(--amber);
}

.highlights li {
    position: relative;
    padding-left: 42px;
    padding-bottom: 20px;
    color: var(--cream);
    font-size: 17px;
}

.highlights li:last-child {
    padding-bottom: 0;
}

.highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 14px 2px 14px 2px;
    background: var(--green);
    box-shadow: var(--glow-green);
}

.footer {
    position: relative;
    overflow: hidden;
    background: var(--soil);
    border-top: 2px solid var(--green);
    padding: 84px 0 0;
}

.footer__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.footer__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.footer__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(62, 46, 34, 0.72) 0%, rgba(30, 22, 16, 0.92) 100%);
}

.footer__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer__brand p {
    margin-top: 22px;
    max-width: 40ch;
    color: var(--muted);
    font-size: 16px;
}

.footer__nav {
    display: grid;
    gap: 18px;
    align-content: start;
    justify-items: start;
}

.footer__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.footer__row a {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--cream);
}

.footer__row a:hover {
    color: var(--green);
}

.footer__row--legal a {
    color: var(--muted);
    font-weight: 500;
}

.footer__contact {
    color: var(--muted);
    font-size: 16px;
}

.footer__contact a {
    color: var(--amber);
}

.footer__contact a:hover {
    color: var(--green);
}

.footer__bottom {
    position: relative;
    z-index: 1;
    padding: 26px 24px;
    border-top: 1px solid rgba(232, 226, 208, 0.1);
}

.footer__bottom p {
    color: var(--muted);
    font-size: 15px;
}

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

.legal-content {
    padding: 52px 56px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.35);
}

.legal-content h1 {
    font-size: 44px;
    margin-bottom: 24px;
}

.legal-content h2 {
    font-size: 30px;
    margin: 44px 0 16px;
    color: var(--green);
}

.legal-content h3 {
    font-size: 24px;
    margin: 34px 0 14px;
    color: var(--amber);
}

.legal-content h4 {
    font-size: 20px;
    margin: 28px 0 12px;
}

.legal-content p {
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 17px;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 20px 0;
    padding-left: 0;
}

.legal-content li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 17px;
}

.legal-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 8px 2px 8px 2px;
    background: var(--amber);
}

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

.legal-content .date,
.legal-content .name,
.legal-content .domain {
    color: var(--cream);
    font-weight: 600;
}

a.domain {
    transition: all 0.3s ease-in-out;
}

a.domain:hover {
    color: var(--green);
}

@media (max-width: 1024px) {
    body {
        font-size: 17px;
    }
    .section {
        padding: 96px 0;
    }
    .section__title {
        font-size: 38px;
    }
    .hero__title {
        font-size: 50px;
    }
    .hero__inner {
        gap: 28px;
    }
    .hero__art img {
        max-width: 400px;
    }
    .nav {
        display: none;
    }
    .burger-btn {
        display: block;
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps::before {
        display: none;
    }
    .about__inner,
    .why__inner {
        gap: 44px;
    }
    .legal-content {
        padding: 42px 36px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 78px;
    }
    .logo img {
        height: 52px;
    }
    .section {
        padding: 78px 0;
    }
    .section__head {
        margin-bottom: 44px;
    }
    .section__title {
        font-size: 32px;
    }
    .lead {
        font-size: 19px;
    }
    .hero {
        min-height: auto;
        padding: calc(var(--header-h) + 48px) 0 130px;
    }
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__title {
        font-size: 40px;
    }
    .hero__text {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__btns {
        justify-content: center;
    }
    .pills {
        justify-content: center;
    }
    .hero__art img {
        max-width: 300px;
        margin: 0 auto;
    }
    .hero__glow {
        right: 50%;
        top: 26%;
        transform: translate(50%, -50%);
        width: 420px;
        height: 420px;
    }
    .about__inner,
    .why__inner,
    .features__grid,
    .footer__inner {
        grid-template-columns: 1fr;
    }
    .about__content {
        order: 1;
    }
    .about__media {
        order: 2;
    }
    .divider svg {
        height: 56px;
    }
    .feature {
        padding: 32px 28px;
    }
    .why__list {
        padding: 34px 28px;
    }
    .why__media,
    .why__media img {
        max-height: 320px;
        height: 320px;
    }
    .legal-content h1 {
        font-size: 34px;
    }
    .legal-content h2 {
        font-size: 25px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 18px;
    }
    .hero__title {
        font-size: 34px;
    }
    .section__title {
        font-size: 28px;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .btn {
        width: 100%;
        padding: 16px 28px;
        font-size: 17px;
    }
    .hero__btns .btn {
        min-width: 0;
    }
    .hero__btns {
        flex-direction: column;
        align-items: stretch;
    }
    .step__num {
        font-size: 74px;
    }
    .mobile-menu__list a {
        font-size: 25px;
    }
    .legal-content {
        padding: 30px 20px;
    }
    .footer {
        padding-top: 62px;
    }
    .footer__contact {
        padding-bottom: 20px;
    }
    .footer__bottom {
        padding: 16px 18px;
    }
}
