/* ==========================================
   KINGDOMS OF NOVA
   Original Gaming Website Stylesheet
   ========================================== */

/* ===== GLOBAL FOUNDATION ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body.nova-body {
    margin: 0;
    background: var(--nova-navy);
    color: var(--nova-ivory);
    font-family: var(--nova-font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    font-family: var(--nova-font-heading);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

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

.nova-container {
    width: min(92%, 1320px);
    margin-inline: auto;
}

:focus-visible {
    outline: 3px solid var(--nova-gold);
    outline-offset: 5px;
}

/* ===== ACCESSIBILITY ===== */

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 12px 20px;
    background: var(--nova-gold);
    color: var(--nova-navy);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ===== HEADER ===== */

.nova-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 19, 33, 0.97);
    border-bottom: 1px solid rgba(217, 174, 85, 0.28);
    backdrop-filter: blur(16px);
}

.nova-header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nova-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nova-brand img {
    width: 52px;
    height: 52px;
}

.nova-brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nova-brand-name small {
    color: var(--nova-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
}

.nova-brand-name strong {
    font-family: Georgia, serif;
    color: var(--nova-ivory);
    font-size: 29px;
    letter-spacing: 6px;
}

.nova-navigation {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 30px);
}

.nova-navigation a {
    color: #d5dce4;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nova-navigation a:hover,
.nova-navigation a:focus-visible {
    color: var(--nova-gold);
}

/* ===== BUTTONS ===== */

.nova-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 25px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.nova-button-gold {
    background: linear-gradient(
        135deg,
        #fff0ae,
        #d9ae55 60%,
        #b8893d
    );
    color: #091321;
    border-color: #e7c77b;
    box-shadow: 0 5px 22px rgba(217, 174, 85, 0.18);
}

.nova-button-outline {
    color: var(--nova-ivory);
    border-color: var(--nova-gold);
    background: rgba(9, 19, 33, 0.55);
}

.nova-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(217, 174, 85, 0.28);
}

.nova-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

/* ===== CINEMATIC HERO ===== */

.nova-hero {
    position: relative;
    min-height: 680px;
    min-height: clamp(620px, 82vh, 920px);
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}

.nova-hero-art,
.nova-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.nova-hero-art {
    object-fit: cover;
    object-position: center;
    z-index: -3;
}

.nova-hero-overlay {
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(9, 19, 33, 0.96) 0%,
            rgba(9, 19, 33, 0.83) 27%,
            rgba(9, 19, 33, 0.30) 62%,
            rgba(9, 19, 33, 0.05) 100%
        ),
        linear-gradient(
            0deg,
            #091321 0%,
            transparent 30%
        );
}

.nova-hero-content {
    position: relative;
    padding-block: 90px 110px;
}

.nova-eyebrow {
    display: inline-block;
    color: var(--nova-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.nova-hero h1 {
    font-size: clamp(43px, 5.6vw, 88px);
    line-height: 1.06;
    letter-spacing: -1.5px;
    margin-bottom: 26px;
    max-width: 900px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nova-hero h1 span {
    color: #edcb7c;
}

.nova-hero-content > p {
    max-width: 550px;
    color: #e0e5ec;
    font-size: clamp(16px, 1.5vw, 20px);
}

.nova-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.nova-hero-content .nova-development-label {
    color: #c4cdd8;
    font-size: 12px;
    margin-top: 24px;
    letter-spacing: 1px;
}

.nova-art-credit {
    position: absolute;
    right: 24px;
    bottom: 24px;
    color: #f4e8ce;
    font-size: 11px;
    background: rgba(9, 19, 33, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
}

/* ===== CONTENT SECTIONS ===== */

.nova-section {
    padding-block: 90px;
}

.nova-section-alt {
    background: linear-gradient(
        135deg,
        #102331,
        #0c1b2a
    );
    border-block: 1px solid rgba(217, 174, 85, 0.12);
}

.nova-section-heading {
    text-align: center;
    margin-bottom: 42px;
}

.nova-section-heading h2 {
    color: var(--nova-ivory);
    font-size: clamp(30px, 4vw, 50px);
    margin-bottom: 20px;
}

.nova-section-heading p {
    color: #becbd8;
    max-width: 760px;
    margin-inline: auto;
    font-size: 17px;
}

/* ===== FEATURE CARDS ===== */

.nova-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.nova-feature-card,
.nova-resource-card {
    position: relative;
    padding: 35px 26px;
    text-align: center;
    background: linear-gradient(
        145deg,
        #172b40,
        #10202f
    );
    border: 1px solid rgba(217, 174, 85, 0.25);
    border-radius: 14px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.nova-feature-card:hover,
.nova-resource-card:hover {
    transform: translateY(-5px);
    border-color: var(--nova-gold);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.nova-feature-icon {
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(217, 174, 85, 0.08);
    border: 1px solid rgba(217, 174, 85, 0.35);
    color: var(--nova-gold);
    font-size: 40px;
}

.nova-feature-card h3,
.nova-resource-card h3 {
    color: #e6c477;
    font-size: 24px;
    margin-bottom: 14px;
}

.nova-feature-card p,
.nova-resource-card p {
    color: #becbd8;
    margin-bottom: 0;
    font-size: 15px;
}

/* ===== RESOURCE CARDS ===== */

.nova-resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.nova-resource-card {
    border-top: 3px solid var(--nova-gold);
}

.nova-resource-card:nth-child(2) {
    border-top-color: #bc8956;
}

.nova-resource-card:nth-child(3) {
    border-top-color: #81b780;
}

.nova-resource-card:nth-child(4) {
    border-top-color: #79b9e9;
}

/* ===== MULTIPLAYER AND PLAY SECTIONS ===== */

#multiplayer {
    background:
        radial-gradient(
            ellipse at center,
            rgba(23, 79, 73, 0.3),
            transparent 70%
        ),
        var(--nova-navy);
}

.nova-play-section {
    background:
        radial-gradient(
            ellipse at center,
            rgba(217, 174, 85, 0.12),
            transparent 65%
        ),
        #0c1927;
}

.nova-play-section .nova-button {
    margin-top: 18px;
}

/* ===== FOOTER ===== */

.nova-footer {
    background: #060e19;
    border-top: 1px solid rgba(217, 174, 85, 0.3);
    padding-top: 55px;
}

.nova-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 45px;
    padding-bottom: 45px;
}

.nova-footer-logo {
    width: 200px;
    height: auto;
    margin-bottom: 18px;
}

.nova-footer h2 {
    font-size: 19px;
    color: var(--nova-gold);
    margin-bottom: 20px;
}

.nova-footer p,
.nova-footer a {
    color: #aebdcb;
    font-size: 14px;
}

.nova-footer-grid section > a {
    display: block;
    margin-bottom: 10px;
}

.nova-footer a:hover {
    color: var(--nova-gold);
}

.nova-footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(217, 174, 85, 0.15);
    padding-block: 22px;
}

.nova-footer-bottom p {
    margin: 0;
}

.nova-footer-bottom a {
    color: var(--nova-gold);
}

/* ===== MOBILE NAVIGATION FOUNDATION ===== */

.nova-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(217, 174, 85, 0.45);
    border-radius: 6px;
    cursor: pointer;
}

.nova-menu-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--nova-gold);
}

/* ===== TABLET ===== */

@media (max-width: 1050px) {

    .nova-header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding-block: 14px;
    }

    .nova-navigation {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .nova-hero h1 {
        font-size: clamp(42px, 7vw, 72px);
    }
}

/* ===== MOBILE ===== */

@media (max-width: 700px) {

    html {
        scroll-padding-top: 150px;
    }

    .nova-container {
        width: 90%;
    }

    .nova-header-inner {
        min-height: 72px;
        gap: 10px;
    }

    .nova-brand img {
        width: 40px;
        height: 40px;
    }

    .nova-brand-name strong {
        font-size: 22px;
        letter-spacing: 4px;
    }

    .nova-brand-name small {
        font-size: 8px;
    }

    .nova-header-inner > .nova-button {
        padding: 8px 12px;
        font-size: 10px;
        min-height: 40px;
    }

    .nova-navigation {
        gap: 14px;
        justify-content: flex-start;
        padding-bottom: 8px;
    }

    .nova-navigation a {
        font-size: 12px;
    }

    .nova-hero {
        min-height: 650px;
    }

    .nova-hero-art {
        object-position: 65% center;
    }

    .nova-hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(9, 19, 33, 0.88),
                rgba(9, 19, 33, 0.35)
            ),
            linear-gradient(
                0deg,
                #091321,
                transparent 50%
            );
    }

    .nova-hero-content {
        padding-block: 70px 100px;
    }

    .nova-hero h1 {
        font-size: clamp(36px, 9vw, 55px);
        letter-spacing: -0.8px;
    }

    .nova-hero-actions {
        gap: 10px;
    }

    .nova-button {
        font-size: 11px;
        padding: 12px 18px;
    }

    .nova-section {
        padding-block: 60px;
    }

    .nova-feature-grid,
    .nova-footer-grid {
        grid-template-columns: 1fr;
    }

    .nova-resource-grid {
        gap: 12px;
    }

    .nova-resource-card {
        padding: 25px 12px;
    }

    .nova-resource-card h3 {
        font-size: 20px;
    }

    .nova-footer-grid {
        gap: 28px;
    }

    .nova-footer-bottom {
        flex-direction: column;
    }
}

/* ===== REDUCED MOTION ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

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