/* ==========================================================================
   WC Game — Landing / Site-visitka
   ========================================================================== */

:root {
    --bg-primary: #11111b;
    --bg-secondary: #101018;
    --bg-card: #23232F;
    --bg-elevated: #33334a;
    --bg-surface-1: #1d1d22;

    --text-primary: #F2F2F7;
    --text-secondary: #E7E7EF;
    --text-muted: #A5A5B6;
    --text-subtle: #898994;

    --accent: #4751D7;
    --accent-mid: #3636BF;
    --accent-dark: #342D9F;
    --accent-gradient: linear-gradient(135deg, #342D9F, #3636BF, #4751D7);
    --accent-gradient-soft: linear-gradient(135deg, rgba(52, 45, 159, .35), rgba(71, 81, 215, .35));

    --color-red: #D32222;
    --color-red-light: #E43A3A;
    --red-gradient: linear-gradient(135deg, #9c1f1f, #D32222, #E43A3A);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    --card-w: 150px;
    --card-h: 96px;
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    max-width: 100%;
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ---------- Background FX ---------- */

.bg-fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    will-change: transform;
}

.blob--1 {
    width: 620px; height: 620px;
    top: -220px; left: -160px;
    background: radial-gradient(circle at 30% 30%, var(--accent) 0%, transparent 70%);
}

.blob--2 {
    width: 520px; height: 520px;
    bottom: -200px; right: -140px;
    background: radial-gradient(circle at 60% 60%, var(--accent-dark) 0%, transparent 70%);
}

.blob--3 {
    width: 420px; height: 420px;
    top: 40%; left: 55%;
    background: radial-gradient(circle, var(--color-red) 0%, transparent 72%);
    opacity: .18;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
}

/* ---------- Layout ---------- */

.app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 560px) auto;
    grid-template-areas:
        "logo     showcase"
        "title    showcase"
        "text     showcase"
        "cta      showcase"
        "stats    showcase";
    align-items: center;
    justify-content: center;
    column-gap: 56px;
    row-gap: 18px;
    max-width: 1160px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 40px;
}

.hero__logo   { grid-area: logo; }
.hero__title  { grid-area: title; }
.hero__text   { grid-area: text; }
.hero__cta    { grid-area: cta; }
.hero__stats  { grid-area: stats; }
.hero__showcase { grid-area: showcase; }

/* ---------- Logo / Brand ---------- */

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

.logo-badge {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 8px 32px rgba(71, 81, 215, .5), 0 0 24px rgba(71, 81, 215, .25), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.logo-badge img { width: 100%; height: 100%; object-fit: cover; }

.hero__brand { display: flex; flex-direction: column; line-height: 1.1; }
.hero__brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: .04em;
    background: linear-gradient(135deg, #fff, #c9cdf9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* ---------- Headline / text ---------- */

.hero__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.18;
    margin: 0;
    letter-spacing: -.01em;
}

.accent-text {
    background: linear-gradient(120deg, #7d88ef, #4751D7 55%, #E43A3A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__text {
    margin: 0;
    max-width: 540px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
}
.hero__text strong { color: var(--text-primary); font-weight: 600; }

/* ---------- CTA buttons ---------- */

.hero__cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.hero__or {
    color: var(--text-subtle);
    font-size: 14px;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    isolation: isolate;
    overflow: hidden;
    transition: transform .28s var(--ease-spring), box-shadow .28s var(--ease-out);
}
.btn__icon { flex-shrink: 0; }

.btn--vk {
    background: var(--accent-gradient);
    box-shadow: 0 10px 28px rgba(71, 81, 215, .38);
}
.btn--site {
    background: var(--red-gradient);
    box-shadow: 0 10px 28px rgba(211, 34, 34, .32);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: translateX(-120%);
    transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }

.btn:hover {
    transform: translateY(-3px) scale(1.03);
}
.btn--vk:hover { box-shadow: 0 14px 34px rgba(71, 81, 215, .55); }
.btn--site:hover { box-shadow: 0 14px 34px rgba(211, 34, 34, .5); }
.btn:active { transform: translateY(-1px) scale(.98); }

/* ---------- Stats ---------- */

.hero__stats {
    display: flex;
    gap: 32px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat__value {
    display: flex;
    align-items: baseline;
}
.stat__num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 30px;
    color: var(--text-primary);
}
.stat__plus {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--accent);
    margin-left: 2px;
}
.stat__label {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 140px;
}

/* ---------- Showcase: game icon marquee ---------- */

.hero__showcase {
    position: relative;
    display: flex;
    gap: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: min(420px, 52vh);
    padding: 4px 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.marquee {
    flex: none;
    width: var(--card-w);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.marquee__track {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: var(--card-w);
}

.game-card {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: var(--card-w);
    height: var(--card-h);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 8px 20px rgba(0,0,0,.35);
    transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out);
}

.game-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease-out);
}

.game-card:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 14px 30px rgba(71,81,215,.45);
}
.game-card:hover img { transform: scale(1.08); }

/* ---------- Footer ---------- */

.footer {
    position: relative;
    z-index: 1;
    padding: 22px 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer__links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links a {
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    transition: color .2s, background .2s, transform .2s;
}
.footer__links a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,.09);
    transform: translateY(-1px);
}

.footer__copy {
    font-size: 12px;
    color: var(--text-subtle);
    margin: 0;
}

/* Reveal-on-load animations live in animations.css (.reveal / .reveal--d1..4)
   and run purely via CSS — no JavaScript required. */

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "title"
            "text"
            "showcase"
            "cta"
            "stats";
        padding: 40px 28px 20px;
        row-gap: 22px;
        justify-items: center;
        text-align: center;
    }
    .hero__logo { flex-direction: column; }
    .hero__text { max-width: 640px; }
    .hero__stats { justify-content: center; }
    .stat { align-items: center; }
    .stat__label { text-align: center; }

    /* Showcase becomes a single-row horizontal marquee on tablets/phones */
    .hero__showcase {
        width: 100%;
        height: auto;
        -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
        mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    }
    .marquee--down { display: none; }
    .marquee--up {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 92px;
    }
    .marquee__track {
        flex-direction: row;
        height: 100%;
        width: max-content;
    }
    .game-card { width: 144px; height: 92px; flex-shrink: 0; }
}

@media (max-width: 640px) {
    .hero { padding: 28px 18px 12px; }
    .hero__title { font-size: clamp(24px, 7vw, 30px); }
    .hero__text { font-size: 14.5px; }
    .hero__cta { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .hero__or { display: none; }
    .marquee--up { height: 74px; }
    .game-card { width: 116px; height: 74px; }
    .hero__stats { gap: 20px; }
    .footer { padding: 16px 18px 22px; }
    .footer__links a { font-size: 12px; padding: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
