/* =========================================
   Base
========================================= */

:root {
    --primary: #6c56e8;
    --primary-dark: #523ac9;
    --primary-light: #eeeaff;

    --secondary: #ffb84d;
    --green: #4fc7a0;
    --pink: #ff7597;
    --blue: #58a6ff;

    --background: #fbfaff;
    --surface: #ffffff;
    --surface-soft: #f5f3ff;

    --text: #242236;
    --text-muted: #6b687d;

    --border: #e9e6f2;

    --shadow-sm:
        0 8px 25px rgba(39, 33, 73, 0.08);

    --shadow-lg:
        0 24px 60px rgba(39, 33, 73, 0.14);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;

    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--text);
    background: var(--background);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}


/* =========================================
   Header
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    border-bottom: 1px solid rgba(233, 230, 242, 0.8);

    background: rgba(251, 250, 255, 0.88);
    backdrop-filter: blur(18px);
}

.nav-container {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    font-weight: 800;
}

.logo-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    color: white;
    background: var(--primary);

    border-radius: 13px;

    font-size: 1.3rem;
}

.logo-text {
    font-size: 1.06rem;
}

.logo-text span {
    color: var(--primary);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation > a:not(.nav-button) {
    color: var(--text-muted);

    font-size: 0.94rem;
    font-weight: 600;

    transition:
        color 180ms ease,
        transform 180ms ease;
}

.main-navigation > a:not(.nav-button):hover {
    color: var(--primary);
}

.nav-button {
    padding: 11px 20px;

    color: #fff;
    background: var(--primary);

    border-radius: 999px;

    font-size: 0.92rem;
    font-weight: 700;

    transition:
        background 180ms ease,
        transform 180ms ease;
}

.nav-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;

    width: 44px;
    height: 44px;

    padding: 10px;

    border: 0;
    background: transparent;
}

.mobile-menu-button span {
    width: 100%;
    height: 2px;

    display: block;

    margin: 5px 0;

    background: var(--text);

    border-radius: 999px;
}


/* =========================================
   Hero
========================================= */

.hero {
    position: relative;

    overflow: hidden;

    padding: 90px 0 105px;
}

.hero-container {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 80px;
}

.hero-decoration {
    position: absolute;

    border-radius: 50%;

    filter: blur(4px);

    pointer-events: none;
}

.hero-decoration-one {
    width: 520px;
    height: 520px;

    top: -270px;
    right: -150px;

    background:
        radial-gradient(
            circle,
            rgba(108, 86, 232, 0.19),
            rgba(108, 86, 232, 0)
        );
}

.hero-decoration-two {
    width: 500px;
    height: 500px;

    bottom: -320px;
    left: -220px;

    background:
        radial-gradient(
            circle,
            rgba(255, 184, 77, 0.18),
            rgba(255, 184, 77, 0)
        );
}

.eyebrow {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 7px 13px;

    margin-bottom: 22px;

    color: var(--primary-dark);
    background: var(--primary-light);

    border-radius: 999px;

    font-size: 0.82rem;
    font-weight: 750;
}

.eyebrow span {
    color: var(--secondary);
}

.hero h1 {
    max-width: 660px;

    margin: 0;

    font-size: clamp(3.4rem, 7vw, 6rem);
    line-height: 0.97;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: var(--primary);
}

.hero-description {
    max-width: 610px;

    margin: 26px 0 0;

    color: var(--text-muted);

    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;

    margin-top: 34px;
}

.button {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 23px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-weight: 750;

    transition:
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: var(--primary);

    box-shadow:
        0 10px 30px rgba(108, 86, 232, 0.24);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    background: #fff;
    border-color: var(--border);
}

.button-secondary:hover {
    box-shadow: var(--shadow-sm);
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;

    margin-top: 42px;
}

.hero-highlights div {
    display: flex;
    flex-direction: column;
}

.hero-highlights strong {
    font-size: 0.95rem;
}

.hero-highlights span {
    color: var(--text-muted);

    font-size: 0.8rem;
}


/* =========================================
   Hero Visual
========================================= */

.hero-visual {
    position: relative;

    min-height: 460px;

    display: grid;
    place-items: center;
}

.visual-card-main {
    width: min(100%, 455px);

    padding: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(108, 86, 232, 0.14),
            rgba(255, 184, 77, 0.17)
        );

    border: 1px solid rgba(108, 86, 232, 0.14);
    border-radius: 38px;

    transform: rotate(2deg);

    box-shadow: var(--shadow-lg);
}

.game-window {
    overflow: hidden;

    background: #fff;

    border-radius: 27px;
}

.window-top {
    display: flex;
    gap: 6px;

    padding: 15px 17px;

    background: #f6f5fa;
}

.window-top span {
    width: 8px;
    height: 8px;

    background: #d8d5e3;

    border-radius: 50%;
}

.word-demo {
    min-height: 330px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 35px;
}

.word-demo p {
    margin: 0 0 22px;

    color: var(--text-muted);

    font-weight: 650;
}

.letter-row {
    display: flex;
    gap: 9px;
}

.letter-row span {
    width: 62px;
    height: 69px;

    display: grid;
    place-items: center;

    color: white;
    background: var(--primary);

    border-radius: 15px;

    font-size: 1.7rem;
    font-weight: 850;

    box-shadow:
        inset 0 -5px 0 rgba(0, 0, 0, 0.08);
}

.letter-row span:nth-child(2) {
    background: var(--green);
}

.letter-row span:nth-child(3) {
    background: var(--secondary);
}

.letter-row span:nth-child(4) {
    background: var(--pink);
}

.progress-line {
    width: 78%;
    height: 8px;

    overflow: hidden;

    margin-top: 30px;

    background: #eceaf3;

    border-radius: 999px;
}

.progress-line div {
    width: 70%;
    height: 100%;

    background: var(--green);

    border-radius: inherit;
}

.floating-badge {
    position: absolute;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 12px 16px;

    background: rgba(255, 255, 255, 0.95);

    border: 1px solid var(--border);
    border-radius: 16px;

    box-shadow: var(--shadow-sm);

    animation: float 4s ease-in-out infinite;
}

.floating-badge > span {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    background: var(--surface-soft);

    border-radius: 11px;
}

.floating-badge div {
    display: flex;
    flex-direction: column;
}

.floating-badge strong {
    font-size: 0.83rem;
}

.floating-badge small {
    color: var(--text-muted);

    font-size: 0.7rem;
}

.badge-one {
    top: 36px;
    right: -20px;
}

.badge-two {
    bottom: 38px;
    left: -20px;

    animation-delay: -2s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}


/* =========================================
   General section headings
========================================= */

.section-label {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--primary);

    font-size: 0.8rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.section-heading h2,
.centered-heading h2,
.about-copy h2,
.cta-card h2 {
    margin: 0;

    font-size: clamp(2.1rem, 5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading h2 span,
.about-copy h2 span {
    color: var(--primary);
}

.section-heading > p {
    max-width: 430px;

    margin: 0;

    color: var(--text-muted);
}


/* =========================================
   Games
========================================= */

.games-section {
    padding: 100px 0;

    background: #fff;
}

.game-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 42px;
}

.filter-button {
    padding: 9px 15px;

    color: var(--text-muted);
    background: var(--surface-soft);

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 0.86rem;
    font-weight: 700;

    transition:
        background 180ms ease,
        color 180ms ease;
}

.filter-button:hover,
.filter-button.active {
    color: #fff;
    background: var(--primary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;

    margin-top: 28px;
}

.game-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.game-card:hover {
    transform: translateY(-6px);

    border-color: rgba(108, 86, 232, 0.25);

    box-shadow: var(--shadow-lg);
}

.game-card-image {
    min-height: 210px;

    position: relative;

    display: grid;
    place-items: center;

    padding: 30px;

    background: var(--game-background);
}

.game-card-icon {
    width: 90px;
    height: 90px;

    display: grid;
    place-items: center;

    background: rgba(255, 255, 255, 0.92);

    border-radius: 25px;

    font-size: 2.7rem;

    box-shadow:
        0 12px 35px rgba(40, 35, 70, 0.12);
}

.game-card-status {
    position: absolute;
    top: 15px;
    right: 15px;

    padding: 6px 10px;

    color: #fff;
    background: rgba(36, 34, 54, 0.76);

    border-radius: 999px;

    font-size: 0.68rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.game-card-body {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 23px;
}

.game-card-category {
    color: var(--primary);

    font-size: 0.72rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.game-card h3 {
    margin: 6px 0 7px;

    font-size: 1.35rem;
}

.game-card p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.9rem;
}

.game-card-footer {
    margin-top: auto;
    padding-top: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.skill-tag {
    padding: 5px 9px;

    color: var(--text-muted);
    background: var(--surface-soft);

    border-radius: 8px;

    font-size: 0.7rem;
    font-weight: 700;
}

.play-link {
    color: var(--primary);

    font-size: 0.84rem;
    font-weight: 800;
}

.play-link:hover {
    text-decoration: underline;
}

.coming-soon .game-card-image,
.coming-soon .game-card-body {
    opacity: 0.76;
}


/* =========================================
   How It Works
========================================= */

.how-it-works {
    padding: 100px 0;
}

.centered-heading {
    max-width: 700px;

    margin-inline: auto;

    text-align: center;
}

.centered-heading p {
    max-width: 570px;

    margin: 16px auto 0;

    color: var(--text-muted);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;

    margin-top: 55px;
}

.step-card {
    position: relative;

    padding: 32px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.step-number {
    position: absolute;
    top: 25px;
    right: 27px;

    color: #e2def8;

    font-size: 2rem;
    font-weight: 900;
}

.step-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    background: var(--primary-light);

    border-radius: 17px;

    font-size: 1.65rem;
}

.step-card h3 {
    margin: 20px 0 8px;
}

.step-card p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.91rem;
}


/* =========================================
   About
========================================= */

.about-section {
    padding: 105px 0;

    background: #fff;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 85px;
}

.about-copy p {
    max-width: 600px;

    color: var(--text-muted);
}

.about-copy p:first-of-type {
    margin-top: 24px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 10px;

    color: var(--primary);

    font-weight: 800;
}

.about-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;

    padding: 22px;

    background: var(--surface-soft);

    border-radius: var(--radius-lg);
}

.about-stat {
    min-height: 155px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 25px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 20px;
}

.about-stat strong {
    color: var(--primary);

    font-size: 2rem;
    line-height: 1;
}

.about-stat span {
    margin-top: 9px;

    color: var(--text-muted);

    font-size: 0.82rem;
    font-weight: 650;
}


/* =========================================
   CTA
========================================= */

.cta-section {
    padding: 95px 0;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    padding: clamp(35px, 7vw, 72px);

    color: white;

    background:
        linear-gradient(
            135deg,
            #6049d8,
            #836ff0
        );

    border-radius: var(--radius-lg);

    box-shadow:
        0 24px 70px rgba(82, 58, 201, 0.25);
}

.cta-card > div {
    max-width: 700px;
}

.cta-label {
    display: inline-block;

    margin-bottom: 10px;

    color: #ded8ff;

    font-size: 0.8rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cta-card p {
    margin: 15px 0 0;

    color: rgba(255, 255, 255, 0.78);
}

.button-light {
    flex-shrink: 0;

    color: var(--primary-dark);
    background: white;
}


/* =========================================
   Footer
========================================= */

.site-footer {
    padding: 68px 0 25px;

    background: #242236;

    color: white;
}

.footer-container {
    display: flex;
    align-items: center;
    gap: 35px;
}

.footer-logo .logo-icon {
    background: white;
    color: var(--primary);
}

.footer-logo .logo-text span {
    color: #bdb2ff;
}

.footer-container > p {
    margin-right: auto;

    color: #aaa6b8;

    font-size: 0.86rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;

    color: #c6c3cf;

    font-size: 0.84rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 42px;
    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;

    color: #817e8d;

    font-size: 0.76rem;
}


/* =========================================
   Responsive
========================================= */

@media (max-width: 980px) {

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
    }

    .hero-container {
        gap: 40px;
    }

    .hero-copy {
        text-align: center;
    }

    .eyebrow,
    .hero-description {
        margin-inline: auto;
    }

    .hero-actions,
    .hero-highlights {
        justify-content: center;
    }

    .hero-visual {
        min-height: 430px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        gap: 45px;
    }
}

@media (max-width: 760px) {

    .mobile-menu-button {
        display: block;
    }

    .main-navigation {
        position: fixed;
        inset:
            76px
            0
            auto
            0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        padding: 25px;

        background: #fff;

        border-bottom: 1px solid var(--border);

        box-shadow: var(--shadow-sm);
    }

    .main-navigation.open {
        display: flex;
    }

    .main-navigation a {
        text-align: center;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-container {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-container > p {
        margin: 0;
    }
}

@media (max-width: 600px) {

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .hero {
        padding: 65px 0 80px;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 17vw, 4.6rem);
    }

    .hero-highlights {
        gap: 18px;
    }

    .hero-visual {
        min-height: 360px;
    }

    .letter-row span {
        width: 49px;
        height: 58px;

        font-size: 1.35rem;
    }

    .floating-badge {
        transform: scale(0.86);
    }

    .badge-one {
        right: -12px;
    }

    .badge-two {
        left: -12px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .about-panel {
        grid-template-columns: 1fr;
    }

    .games-section,
    .how-it-works,
    .about-section {
        padding: 75px 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}