:root {
    color-scheme: dark;
    --bg: #09090a;
    --panel: #111113;
    --panel-2: #18181b;
    --text: #f5f3ef;
    --muted: #aaa6a2;
    --line: rgba(255, 255, 255, .10);
    --line-strong: rgba(255, 255, 255, .18);
    --orange: #f05a16;
    --orange-2: #ff7a1a;
    --header-h: 76px;
    --container: 1420px;
    --radius: 9px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 5%, rgba(240, 90, 22, .075), transparent 34rem),
        linear-gradient(180deg, #0d0d0e, var(--bg) 45%);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: .14;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.23'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--orange); color: white; }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 200;
    transform: translateY(-140%);
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--orange);
    color: #fff;
    font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.site-shell { min-height: 100vh; overflow: hidden; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    padding: 0 max(24px, calc((100vw - var(--container)) / 2));
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 34px;
    background: rgba(9, 9, 10, .93);
    border-bottom: 1px solid rgba(240, 90, 22, .28);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    backdrop-filter: blur(18px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}
.brand-mark {
    width: 47px;
    height: 47px;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 12px rgba(240, 90, 22, .22));
}
.brand-text {
    font-size: clamp(20px, 1.8vw, 31px);
    font-weight: 950;
    letter-spacing: .035em;
}
.brand-text strong { color: var(--orange); }

.primary-nav {
    justify-self: center;
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: clamp(18px, 2.1vw, 36px);
}
.primary-nav a {
    position: relative;
    display: grid;
    place-items: center;
    color: #bcb8b5;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
    transition: color .18s ease;
}
.primary-nav a::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 3px;
    transform: scaleX(0);
    background: var(--orange);
    box-shadow: 0 -4px 16px rgba(240, 90, 22, .75);
    transition: transform .2s ease;
}
.primary-nav a:hover,
.primary-nav a.is-active { color: #fff; }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); }

.steam-button,
.button {
    min-height: 48px;
    border: 1px solid rgba(255, 111, 25, .88);
    border-radius: 7px;
    padding: 0 22px;
    color: white;
    font-weight: 850;
    letter-spacing: .025em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.steam-button {
    background: linear-gradient(180deg, #792811, #3b120a);
    box-shadow: inset 0 1px rgba(255,255,255,.08), 0 0 24px rgba(240,90,22,.08);
}
.steam-button:hover { transform: translateY(-1px); border-color: #ff9a51; }
.steam-icon { margin-right: 8px; }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #111;
    cursor: pointer;
}
.menu-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #eee;
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: 650px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background:
        linear-gradient(90deg, rgba(5, 6, 7, .74) 0%, rgba(5, 6, 7, .56) 34%, rgba(5, 6, 7, .10) 66%, rgba(5, 6, 7, .18) 100%),
        url("../images/hero-apocalypse.svg") center / cover no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.06) 54%, rgba(6,6,7,.85) 100%),
        radial-gradient(circle at 56% 61%, rgba(255, 104, 30, .12), transparent 20rem);
}
.hero-inner {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 73px 0 72px;
    position: relative;
    z-index: 2;
}
.eyebrow {
    margin: 0 0 18px;
    color: #d3cfcb;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .18em;
}
.hero h1 {
    margin: 0;
    max-width: 760px;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(64px, 8vw, 124px);
    line-height: .83;
    letter-spacing: .006em;
    text-transform: uppercase;
    text-shadow: 0 5px 0 rgba(0,0,0,.18), 0 12px 30px rgba(0,0,0,.34);
}
.hero h1 span {
    color: var(--orange);
    text-shadow: 0 5px 0 rgba(93, 27, 4, .25), 0 0 36px rgba(240,90,22,.14);
}
.hero-lead {
    margin: 30px 0 0;
    padding-left: 16px;
    border-left: 4px solid var(--orange);
    color: #d1cdca;
    font-size: clamp(16px, 1.45vw, 21px);
    font-weight: 750;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}
.button {
    min-width: 260px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.button-primary {
    background: linear-gradient(180deg, #ff6d1a, #c93e0a);
    box-shadow: 0 12px 30px rgba(226,72,13,.24), inset 0 1px rgba(255,255,255,.28);
}
.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(226,72,13,.32), inset 0 1px rgba(255,255,255,.28);
}
.button-ghost {
    background: rgba(13,13,14,.70);
    border-color: rgba(255,255,255,.34);
}
.button-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.68);
    background: rgba(30,30,31,.86);
}
.hero-edge {
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    background: linear-gradient(90deg, transparent, var(--orange) 12%, rgba(240,90,22,.15) 30%, transparent 70%);
    opacity: .75;
}

.section {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 44px 0 18px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-heading h2 {
    margin: 0;
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -.035em;
}
.section-heading > p,
.text-link {
    margin: 0;
    color: #908c89;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.section-kicker {
    margin: 0;
    color: var(--orange)!important;
    font-size: 38px!important;
    line-height: .7!important;
}
.text-link {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--orange);
    cursor: pointer;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.server-card {
    position: relative;
    isolation: isolate;
    min-height: 232px;
    overflow: hidden;
    border: 1px solid rgba(255,100,25,.62);
    border-radius: var(--radius);
    background: #151516;
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.server-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}
.server-card__visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, filter .5s ease;
}
.server-card__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0,0,0,.02) 10%, rgba(0,0,0,.14) 47%, rgba(5,5,5,.96) 100%),
        linear-gradient(90deg, rgba(0,0,0,.15), transparent 60%);
}
.server-card__content {
    position: absolute;
    inset: auto 24px 20px;
    z-index: 3;
    padding-right: 44px;
}
.server-card h3 {
    margin: 0 0 12px;
    font: 48px/.9 Impact, Haettenschweiler, sans-serif;
    letter-spacing: .02em;
    text-shadow: 0 4px 16px rgba(0,0,0,.8);
}
.server-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #d1cdca;
    font-size: 13px;
}
.card-arrow {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: 58px;
    height: 58px;
    border: 0;
    border-left: 1px solid rgba(240,90,22,.65);
    background: rgba(18,18,19,.88);
    color: var(--orange);
    font-size: 28px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.server-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange-2);
    box-shadow: 0 20px 44px rgba(0,0,0,.28);
}
.server-card:hover .server-card__visual {
    transform: scale(1.055);
    filter: saturate(1.08) contrast(1.04);
}
.server-card:hover .card-arrow { background: var(--orange); color: white; }

.section-news { padding-top: 48px; padding-bottom: 62px; }
.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, .95fr);
    gap: 28px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-bottom-color: rgba(240,90,22,.78);
    border-radius: 8px;
    background: linear-gradient(180deg, #171719, #111113);
    box-shadow: 0 15px 35px rgba(0,0,0,.14);
}
.news-card__image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,.08);
    filter: saturate(.9) contrast(1.04);
}
.news-card__body { padding: 18px; }
.news-card h3 { margin: 0 0 9px; font-size: 21px; }
.news-card p {
    min-height: 58px;
    margin: 0 0 18px;
    color: #bab6b2;
    font-size: 14px;
    line-height: 1.5;
}
.news-card time { color: #8f8b88; font-size: 12px; }

.community-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(75,45,33,.32), transparent 45%),
        linear-gradient(135deg, #24211f, #111112 66%);
    box-shadow: inset 0 0 40px rgba(255,116,39,.03), 0 15px 35px rgba(0,0,0,.14);
}
.community-card__symbol {
    position: absolute;
    right: -32px;
    top: 2px;
    width: 190px;
    height: 190px;
    opacity: .16;
    transform: rotate(-8deg);
}
.community-card h3 {
    position: relative;
    max-width: 390px;
    margin: 0 0 8px;
    font-size: 23px;
}
.community-card > p {
    position: relative;
    max-width: 420px;
    margin: 0;
    color: #c1bdb9;
    line-height: 1.45;
}
.social-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
}
.social-grid a {
    min-height: 110px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 7px;
    background: rgba(255,255,255,.045);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.social-grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(240,90,22,.72);
    background: rgba(240,90,22,.08);
}
.social-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #27272d;
    font-size: 13px;
    font-weight: 900;
}

.shop-placeholder {
    min-height: 220px;
    padding: 56px max(24px, calc((100vw - var(--container)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 8% 50%, rgba(240,90,22,.15), transparent 26rem),
        linear-gradient(90deg, rgba(240,90,22,.06), transparent 55%);
}
.shop-placeholder > div { max-width: 830px; }
.shop-placeholder h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1;
}
.shop-placeholder p:last-child {
    margin-bottom: 0;
    color: #b7b3af;
    line-height: 1.6;
}
.shop-placeholder .button { flex: 0 0 auto; }

.footer {
    width: min(var(--container), calc(100% - 48px));
    min-height: 150px;
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
    color: #77736f;
    font-size: 13px;
}
.brand--footer { opacity: .74; }
.brand--footer .brand-text { font-size: 20px; }
.brand--footer .brand-mark { width: 32px; height: 32px; }

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    max-width: min(360px, calc(100vw - 48px));
    padding: 14px 18px;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(240,90,22,.75);
    border-radius: 7px;
    background: #1c1c1e;
    box-shadow: 0 18px 48px rgba(0,0,0,.45);
    color: #eee;
    transition: transform .2s ease, opacity .2s ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 1180px) {
    .topbar { grid-template-columns: auto 1fr auto; gap: 16px; }
    .menu-toggle { display: block; grid-column: 3; justify-self: end; }
    .steam-button { display: none; }
    .primary-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 20px;
        right: 20px;
        height: auto;
        display: none;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(12,12,13,.985);
        box-shadow: 0 20px 40px rgba(0,0,0,.45);
    }
    .primary-nav.is-open { display: grid; }
    .primary-nav a {
        min-height: 48px;
        justify-content: start;
        padding: 0 12px;
    }
    .primary-nav a::after { left: 12px; right: auto; width: 80px; }
    .news-layout { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
    :root { --header-h: 66px; }
    .topbar { padding: 0 18px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-text { font-size: 20px; }
    .hero {
        min-height: 590px;
        background-position: 58% center;
    }
    .hero-inner,
    .section,
    .footer { width: min(100% - 32px, var(--container)); }
    .hero-inner { padding-top: 64px; }
    .hero h1 { font-size: clamp(54px, 15vw, 86px); }
    .server-grid { grid-template-columns: 1fr; }
    .server-card { min-height: 225px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card {
        display: grid;
        grid-template-columns: 170px 1fr;
    }
    .news-card__image { height: 100%; min-height: 180px; }
    .section-heading { align-items: center; }
    .section-heading > p { display: none; }
    .shop-placeholder {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 46px;
        padding-bottom: 46px;
    }
    .footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .brand-text { font-size: 18px; }
    .brand-mark { width: 34px; height: 34px; }
    .hero {
        min-height: 570px;
        background-position: 63% center;
    }
    .hero::before {
        background:
            linear-gradient(90deg, rgba(5,6,7,.72), rgba(5,6,7,.44) 58%, rgba(5,6,7,.24)),
            linear-gradient(180deg, transparent 50%, rgba(6,6,7,.9));
    }
    .hero-inner { padding-top: 54px; }
    .hero h1 { font-size: clamp(50px, 18vw, 72px); }
    .hero-lead { font-size: 14px; }
    .button { width: 100%; min-width: 0; }
    .section { padding-top: 34px; }
    .section-heading h2 { font-size: 26px; }
    .news-card { display: block; }
    .news-card__image { height: 150px; min-height: 0; }
    .social-grid { grid-template-columns: 1fr; }
    .social-grid a {
        min-height: 72px;
        grid-template-columns: auto 1fr;
        justify-items: start;
        padding: 0 18px;
    }
    .community-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto!important;
        transition-duration: .01ms!important;
        animation-duration: .01ms!important;
        animation-iteration-count: 1!important;
    }
}
