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

:root {
    --primary-color: #ef3f46;
    --secondary-color: #00a95b;
    --accent-color: #1664c0;
    --dark-bg: #f8f9ff;
    --darker-bg: #f0f2ff;
    --light-text: #20243a;
    --gray-text: #687187;
    --card-bg: #ffffff;
    --line-color: rgba(32, 36, 58, 0.1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    color: var(--light-text);
    background: var(--darker-bg);
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    letter-spacing: 0;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

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

.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(248, 249, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(240, 242, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-wrapper {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-text);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 8px;
}

.logo-text {
    overflow-wrap: anywhere;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.nav-link {
    position: relative;
    display: block;
    padding: 24px 0 20px;
    color: var(--gray-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--light-text);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.hamburger {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--line-color);
    border-radius: 8px;
    cursor: pointer;
}

.hamburger span {
    width: 23px;
    height: 3px;
    background: var(--light-text);
    border-radius: 3px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.game-hero {
    padding: 132px 0 84px;
    background: var(--darker-bg);
}

.game-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-hero-image {
    width: 100%;
    max-width: 900px;
    margin-bottom: 36px;
}

.game-main-image {
    width: 100%;
    aspect-ratio: 512 / 250;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(32, 36, 58, 0.16);
}

.game-title {
    margin-bottom: 14px;
    color: var(--light-text);
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.game-tagline {
    max-width: 760px;
    margin-bottom: 30px;
    color: var(--gray-text);
    font-size: 19px;
    line-height: 1.7;
}

.game-download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.btn-download {
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    color: var(--light-text);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    opacity: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-download:hover {
    border-color: rgba(22, 100, 192, 0.35);
    box-shadow: 0 10px 24px rgba(32, 36, 58, 0.12);
    transform: translateY(-2px);
}

.btn-download svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    fill: currentColor;
}

.download-label,
.download-text {
    display: block;
}

.download-label {
    color: var(--gray-text);
    font-size: 11px;
}

.download-text {
    font-size: 14px;
    font-weight: 600;
}

.content-section {
    padding: 96px 0;
}

.design-philosophy,
.game-screenshots {
    background: var(--dark-bg);
}

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

.section-header {
    margin-bottom: 52px;
    text-align: center;
}

.section-title {
    margin-bottom: 12px;
    color: var(--light-text);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.section-title::after {
    content: "";
    width: 84px;
    height: 4px;
    display: block;
    margin: 18px auto 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 4px;
}

.section-subtitle {
    color: var(--gray-text);
    font-size: 18px;
}

.intro-copy {
    max-width: 920px;
    margin: 0 auto 44px;
    color: var(--gray-text);
    font-size: 17px;
    text-align: center;
}

.intro-copy p + p {
    margin-top: 16px;
}

.philosophy-features {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.philosophy-feature {
    min-width: 0;
    padding: 24px 20px;
    background: var(--card-bg);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(32, 36, 58, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.philosophy-feature:hover {
    border-color: rgba(22, 100, 192, 0.35);
    box-shadow: 0 16px 36px rgba(32, 36, 58, 0.12);
    transform: translateY(-5px);
}

.philosophy-feature {
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    color: #ffffff;
    background: var(--accent-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.philosophy-feature:nth-child(2) .feature-icon,
.philosophy-feature:nth-child(5) .feature-icon {
    background: var(--secondary-color);
}

.philosophy-feature:nth-child(3) .feature-icon {
    background: var(--primary-color);
}

.philosophy-feature h3,
.gameplay-step h3 {
    margin-bottom: 8px;
    color: var(--light-text);
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: 0;
}

.philosophy-feature p,
.gameplay-step p {
    color: var(--gray-text);
    font-size: 14px;
}

.gameplay-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(40px, 7vw, 84px);
    align-items: center;
}

.gameplay-art {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 54px rgba(32, 36, 58, 0.2);
}

.gameplay-art img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.gameplay-steps {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line-color);
}

.gameplay-step {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line-color);
}

.gameplay-step > span {
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 700;
}

.screenshots-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.screenshot-card {
    flex: 0 1 calc((100% - 96px) / 5);
    min-width: 0;
    margin: 0;
    text-align: center;
    transition: transform 0.25s ease;
}

.screenshot-card:hover {
    transform: translateY(-5px);
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(32, 36, 58, 0.16);
}

.screenshot-card figcaption {
    margin-top: 12px;
    color: var(--gray-text);
    font-size: 14px;
}

.download-callout {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 22px;
    align-items: center;
    margin-top: 56px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--line-color);
    border-radius: 8px;
}

.callout-icon {
    width: 72px;
    height: 72px;
    border-radius: 8px;
}

.download-callout h2 {
    margin-bottom: 4px;
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: 0;
}

.download-callout p {
    color: var(--gray-text);
}

.coming-soon {
    padding: 10px 16px;
    color: #ffffff;
    background: var(--primary-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.footer {
    padding: 68px 0 24px;
    color: rgba(255, 255, 255, 0.78);
    background: #20243a;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.8fr;
    gap: 60px;
    padding-bottom: 38px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.footer-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
}

.footer-description {
    max-width: 380px;
    color: rgba(255, 255, 255, 0.62);
}

.footer-title {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0;
}

.footer-links {
    display: grid;
    gap: 10px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 22px;
    color: rgba(255, 255, 255, 0.48);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 18px;
    }

    .philosophy-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 800px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        right: 0;
        left: 0;
        display: grid;
        gap: 0;
        padding: 14px 20px 20px;
        background: rgba(248, 249, 255, 0.99);
        box-shadow: 0 15px 30px rgba(32, 36, 58, 0.14);
        transform: translateY(-130%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        visibility: visible;
    }

    .nav-link {
        padding: 13px 0;
        border-bottom: 1px solid var(--line-color);
    }

    .nav-link::after {
        display: none;
    }

    .philosophy-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gameplay-layout {
        grid-template-columns: 1fr;
    }

    .gameplay-art {
        width: min(100%, 420px);
        margin: 0 auto;
    }

    .screenshot-card {
        flex-basis: calc((100% - 24px) / 2);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 16px;
    }

    .logo-text {
        max-width: 190px;
        font-size: 17px;
    }

    .game-hero {
        padding: 104px 0 64px;
    }

    .game-hero-image {
        margin-bottom: 28px;
    }

    .game-title {
        font-size: 42px;
    }

    .game-tagline {
        font-size: 16px;
    }

    .game-download-buttons,
    .btn-download {
        width: 100%;
    }

    .content-section {
        padding: 68px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: 31px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .philosophy-features {
        grid-template-columns: 1fr;
    }

    .screenshot-card {
        flex-basis: calc((100% - 16px) / 2);
    }

    .download-callout {
        grid-template-columns: 56px 1fr;
    }

    .callout-icon {
        width: 56px;
        height: 56px;
    }

    .coming-soon {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-section:first-child {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
