:root {
    --dark-void: #0a0a0f;
    --dark-curtain: #1c1816;
    --dark-stage: #26211e;
    --dark-wood: #3c342f;
    --gold-spotlight: #fac459;
    --gold-frame: #d4af37;
    --gold-dim: #8b7355;
    --gold-glow: rgba(250, 196, 89, 0.15);
    --text-parchment: #e8dcc8;
    --text-silver: #ccc3bf;
    --text-dim: #7a6f65;
    --accent-crimson: #8b1a1a;
    --accent-copper: #b87333;
    --radius-card: 12px;
    --radius-btn: 6px;
    --shadow-stage: 0 4px 24px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.2);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --max-width: 1200px;
    --font-display: "Cinzel", serif;
    --font-body: "Cormorant Garamond", serif;
    --font-ui: "Onest", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--text-parchment);
    font-family: var(--font-body);
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0.15), rgba(10, 10, 15, 0.9)),
        url("../assets/background/bk_main.png") top center / cover no-repeat fixed,
        var(--dark-curtain);
}

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

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

button,
a {
    transition: var(--transition);
}

.shell {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

.gold-text {
    background: linear-gradient(135deg, #d4af37, #fac459, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--gold-dim);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.26rem;
    text-transform: uppercase;
}

.quote {
    margin: 0 0 1rem;
    color: var(--text-silver);
    font-family: var(--font-ui);
    font-size: 0.95rem;
}

.section-copy {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    letter-spacing: 0.15rem;
    text-transform: uppercase;
}

.section-lead {
    margin: 1rem 0 0;
    color: var(--text-silver);
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    line-height: 1.65;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-gold {
    border-color: rgba(250, 196, 89, 0.6);
    background: linear-gradient(180deg, #fac459, #d4af37);
    color: var(--dark-void);
    box-shadow: 0 12px 30px rgba(250, 196, 89, 0.14);
}

.btn-gold:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.btn-ghost {
    border-color: rgba(232, 220, 200, 0.2);
    background: rgba(12, 10, 9, 0.35);
    color: var(--text-parchment);
}

.btn-ghost:hover {
    border-color: rgba(250, 196, 89, 0.5);
    color: var(--gold-spotlight);
}

.btn-large {
    min-height: 3.35rem;
    padding: 0 1.6rem;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    border-bottom: 1px solid var(--dark-wood);
    background: rgba(28, 24, 22, 0.85);
    backdrop-filter: blur(10px);
}

.header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    letter-spacing: 0.18rem;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(250, 196, 89, 0.3);
    border-radius: 50%;
    color: var(--text-silver);
    font-size: 0.8rem;
}

.brand-text {
    font-size: 1.05rem;
    font-weight: 700;
}

.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.1rem;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    color: var(--text-silver);
}

.site-nav a:hover {
    color: var(--gold-spotlight);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.hero {
    position: relative;
    padding: 8rem 0 5rem;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0.18) 0%, rgba(10, 10, 15, 0.75) 85%),
        url("../assets/background/bk_03.jpg") center center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(250, 196, 89, 0.08) 0%, transparent 60%),
        rgba(10, 10, 15, 0.7);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 14rem;
    background: linear-gradient(180deg, transparent, rgba(10, 10, 15, 0.95));
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 2rem;
}

.hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
    text-transform: uppercase;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
}

.hero-subtitle {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-parchment);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    letter-spacing: 0.24rem;
}

.hero-lead {
    max-width: 36rem;
    margin: 1.35rem 0 0;
    color: var(--text-silver);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.hero-facts li {
    padding: 1rem 1rem 0.9rem;
    border: 1px solid rgba(139, 115, 85, 0.28);
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, rgba(38, 33, 30, 0.72), rgba(10, 10, 15, 0.72));
    box-shadow: var(--shadow-stage);
}

.hero-facts strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--gold-spotlight);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
}

.hero-facts span {
    color: var(--text-silver);
    font-size: 1rem;
}

.hero-visual {
    position: relative;
    min-height: 32rem;
}

.spotlight-frame {
    position: absolute;
    right: 0;
    bottom: -1rem;
    width: min(100%, 34rem);
    padding: 1.5rem 1.5rem 0;
    border: 1px solid rgba(250, 196, 89, 0.12);
    border-radius: 18rem 18rem 1rem 1rem;
    background:
        radial-gradient(circle at 50% 20%, rgba(250, 196, 89, 0.16), transparent 52%),
        linear-gradient(180deg, rgba(28, 24, 22, 0.18), transparent);
    box-shadow: var(--shadow-stage);
    overflow: hidden;
}

.spotlight-frame img {
    width: 100%;
    opacity: 0.88;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55));
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 2.2rem;
    z-index: 2;
    transform: translateX(-50%);
}

.scroll-cue span {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    border-right: 2px solid var(--gold-spotlight);
    border-bottom: 2px solid var(--gold-spotlight);
    transform: rotate(45deg);
    animation: bounce 1.8s infinite;
}

.servers-section,
.features-section,
.community-section {
    position: relative;
    padding: 6rem 0;
}

.servers-section::before,
.community-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.82), rgba(28, 24, 22, 0.92));
    pointer-events: none;
}

.servers-section .shell,
.features-section .shell,
.community-section .shell {
    position: relative;
    z-index: 1;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.server-card {
    position: relative;
    min-height: 24rem;
    border: 1px solid rgba(139, 115, 85, 0.45);
    border-radius: var(--radius-card);
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0.12), rgba(10, 10, 15, 0.84)),
        var(--card-image) center center / cover no-repeat;
    box-shadow: var(--shadow-stage);
    overflow: hidden;
}

.server-card--origins { --card-image: url("../assets/background/bk2_origins2.png"); }
.server-card--signature { --card-image: url("../assets/background/bk2_signature.png"); }
.server-card--essence { --card-image: url("../assets/background/bk2_essence.png"); }
.server-card--eternal { --card-image: url("../assets/background/bk2_eternal.png"); }
.server-card--forever { --card-image: url("../assets/background/bk2_forever.png"); }
.server-card--arena { --card-image: url("../assets/background/bk2_arena.png"); }

.server-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(250, 196, 89, 0.02), rgba(10, 10, 15, 0.7));
}

.server-card:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3), inset 0 0 0 1px rgba(250, 196, 89, 0.4);
    transform: translateY(-4px) scale(1.03);
}

.server-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 1.5rem;
}

.server-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: auto;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

.is-live {
    background: rgba(37, 112, 61, 0.85);
    color: #c6ffd6;
}

.is-soon {
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold-spotlight);
}

.server-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--gold-spotlight);
}

.server-meta {
    margin: 0.4rem 0 0;
    color: var(--text-silver);
    font-family: var(--font-ui);
    font-size: 0.88rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

.server-copy {
    margin: 1rem 0 0;
    color: var(--text-parchment);
    font-size: 1.08rem;
    line-height: 1.45;
}

.server-link {
    margin-top: 1.25rem;
    color: var(--gold-spotlight);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
}

.server-link:hover {
    color: #fff4c7;
}

.features-section {
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0.68), rgba(10, 10, 15, 0.84)),
        url("../assets/background/baium.png") center center / cover no-repeat fixed;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-card {
    padding: 1.5rem;
    border: 1px solid rgba(139, 115, 85, 0.35);
    border-radius: var(--radius-card);
    background: rgba(18, 15, 14, 0.62);
    box-shadow: var(--shadow-stage);
    text-align: left;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(250, 196, 89, 0.25);
    border-radius: 50%;
    color: var(--gold-spotlight);
    font-size: 1.25rem;
}

.feature-card h3 {
    margin: 0 0 0.7rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-parchment);
}

.feature-card p {
    margin: 0;
    color: var(--text-silver);
    font-size: 1.03rem;
    line-height: 1.55;
}

.community-panel {
    padding: 3rem;
    border: 1px solid rgba(139, 115, 85, 0.38);
    border-radius: 1.25rem;
    background:
        linear-gradient(180deg, rgba(28, 24, 22, 0.94), rgba(10, 10, 15, 0.94)),
        url("../assets/background/bk_footer.png") center top / cover no-repeat;
    box-shadow: var(--shadow-stage);
    text-align: center;
}

.community-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 2rem;
}

.cta-final {
    margin-top: 2rem;
}

.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--dark-wood);
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0.88), rgba(10, 10, 15, 0.96)),
        url("../assets/background/bk_footer.png") center top / cover no-repeat;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 2rem;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.footer-brand img {
    width: 9rem;
    height: auto;
}

.footer-brand p {
    margin: 0;
    color: var(--text-parchment);
    font-family: var(--font-display);
    letter-spacing: 0.12rem;
}

.footer-brand span {
    color: var(--text-dim);
    font-family: var(--font-ui);
    font-size: 0.86rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    justify-content: center;
    font-family: var(--font-ui);
    color: var(--text-silver);
}

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

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(139, 115, 85, 0.5);
    border-radius: 50%;
    background: rgba(12, 10, 9, 0.45);
}

.footer-social a:hover {
    border-color: rgba(250, 196, 89, 0.55);
    box-shadow: var(--shadow-gold);
}

.footer-social img {
    width: 1.15rem;
    height: 1.15rem;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translate(0, 0);
    }
    40% {
        transform: rotate(45deg) translate(0.2rem, 0.2rem);
    }
    60% {
        transform: rotate(45deg) translate(0.1rem, 0.1rem);
    }
}

@media (max-width: 1023px) {
    .header-row {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 0.85rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-facts {
        justify-content: center;
    }

    .hero-facts {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 22rem;
    }

    .spotlight-frame {
        position: relative;
        margin: 0 auto;
        bottom: 0;
    }

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

    .footer-brand,
    .footer-nav,
    .footer-social {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .shell {
        width: min(calc(100% - 1.5rem), var(--max-width));
    }

    .site-header {
        background: rgba(28, 24, 22, 0.96);
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .site-nav {
        gap: 0.8rem;
        font-size: 0.88rem;
    }

    .hero {
        padding-top: 11rem;
    }

    .community-panel {
        padding: 2rem 1.25rem;
    }
}
