:root {
    --primary-background: #0f172a;
    --secondary-background: #1e1b4b;
    --accent-glow: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4);
    --text-main: #ffffff;
    --text-secondary: #94a3b8;
    --button-primary: #06b6d4;
    --button-secondary: #ec4899;
    --accent-background: #06b6d4;
    --accent-background-text: #ffffff;
    --border-radius: 1rem;
    --font-main: "Poppins", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    background-color: var(--primary-background);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    transition: transform 0.2s ease, filter 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    color: inherit;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h3 {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .long-text-element {
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 0.9rem;
    }
}

:focus-visible {
    outline: 2px solid var(--button-primary);
    outline-offset: 4px;
}

/* ===== header ===== */
.js-mobile-menu {
    transition: opacity 0.3s ease-in-out;
}

/* ===== hero_section ===== */
.bg-accent-glow {
    background: var(--accent-glow);
}

.text-gradient {
    background: var(--accent-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== game_features ===== */
.js-feature-card {
    will-change: transform, opacity;
}

/* ===== gameplay_showcase ===== */
#gameplay {
    width: 100%;
}

.js-card:hover {
    transform: translateY(-8px);
}

/* ===== game_stats ===== */
#stats {
    position: relative
}

.stats-gradient-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: var(--accent-glow);
    pointer-events: none
}

/* ===== user_reviews ===== */
#reviews {
    width: 100%;
}

.js-review-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.js-review-card:hover {
    transform: translateY(-8px);
    border-color: var(--button-primary);
}

/* ===== download_cta ===== */
#download {
    width: 100%;
    position: relative;
}

.js-start-playing {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.js-start-playing:hover {
    box-shadow: 0 0 50px rgba(236, 72, 153, 0.4);
}

/* ===== footer ===== */
#site-footer {
    width: 100%;
}

.js-scroll-link {
    cursor: pointer;
}