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

:root {
    --bg: #080808;
    --bg2: #0f0f0f;
    --bg3: #161616;
    --primary-color: #1845cc;
    --secondary-color: #6a2172;
    --amber: #1177dd;
    --white: #f0ece4;
    --muted: #7a7870;
    --border: #222;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Inconsolata', monospace;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: .5;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, .08) 2px, rgba(0, 0, 0, .08) 4px);
    pointer-events: none;
    z-index: 9998;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 4rem;
    background: linear-gradient(to bottom, rgba(8, 8, 8, .97), transparent);
    backdrop-filter: blur(4px);
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color)
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem
}

nav ul a {
    color: var(--muted);
    text-decoration: none;
    font-size: .78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color .2s;
}

nav ul a:hover {
    color: var(--white)
}

.nav-cta {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
    padding: .4rem 1.2rem;
    transition: background .2s, color .2s !important;
}

.nav-cta:hover {
    background: var(--primary-color);
    color: var(--white) !important
}

#hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(3, 103, 204, 0.2), transparent),
        radial-gradient(ellipse 80% 60% at 80% 80%, rgba(106, 33, 114, 0.1), transparent),
        var(--bg);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(192, 57, 43, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 57, 43, .06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}

.hero-eyebrow {
    position: relative;
    font-size: .7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--primary-color);
    opacity: .5;
}

h1 {
    position: relative;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(5rem, 14vw, 12rem);
    letter-spacing: 2px;
    line-height: .9;
    color: var(--white);
    text-shadow: 0 0 80px rgba(192, 57, 43, .3);
}

h1 em {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    color: var(--primary-color);
    font-size: clamp(3rem, 9vw, 8rem);
    display: block;
}

.hero-sub {
    position: relative;
    margin-top: 2rem;
    font-size: .85rem;
    letter-spacing: 2px;
    color: var(--muted);
    max-width: 380px;
    text-transform: uppercase;
}

.hero-actions {
    position: relative;
    margin-top: 3rem;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: .85rem 2.4rem;
    font-family: 'Inconsolata', monospace;
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white)
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px)
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(240, 236, 228, .2);
}

.btn-ghost:hover {
    border-color: var(--white);
    transform: translateY(-2px)
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: .65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: .4 }
    50% { opacity: 1 }
}

section {
    padding: 8rem 4rem
}

.container {
    max-width: 1200px;
    margin: 0 auto
}

.section-label {
    font-size: .65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .8rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--primary-color);
    opacity: .3;
    max-width: 80px
}

h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 2px;
    line-height: 1;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.text-muted {
    color: var(--muted)
}

.stats {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    margin: 6rem 0 0;
    background: var(--bg2);
}

.stat {
    flex: 1;
    padding: 2rem;
    border-right: 1px solid var(--border);
    text-align: center;
}

.stat:last-child {
    border-right: none
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: .65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted)
}

#games {
    background: var(--bg2)
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-top: 4rem
}

.game-card {
    position: relative;
    overflow: hidden;
    background: var(--bg3);
    padding: 3rem;
    border: 1px solid var(--border);
    transition: border-color .3s;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    border-color: var(--primary-color)
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s;
    background: radial-gradient(ellipse 70% 60% at 30% 40%, rgba(17, 119, 221, 0.07), transparent);
    pointer-events: none;
}

.game-card:hover::before {
    opacity: 1
}

.game-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    line-height: 1;
    color: rgba(240, 236, 228, .04);
    position: absolute;
    top: 1rem;
    right: 2rem;
    letter-spacing: -4px;
    user-select: none;
}

.game-status {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: .6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border: 1px solid;
}

.status-dev {
    color: var(--amber);
    border-color: var(--amber)
}

.status-coming {
    color: var(--muted);
    border-color: var(--border)
}

.game-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 3px;
    line-height: 1;
    color: var(--white);
    margin-bottom: .5rem;
}

.game-subtitle {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.game-desc {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.8;
    flex: 1
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem
}

.tag {
    font-size: .6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: .25rem .7rem;
    background: rgba(240, 236, 228, .05);
    border: 1px solid var(--border);
    color: var(--muted);
}

.game-link {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: .2rem;
    transition: color .2s, border-color .2s;
    cursor: pointer;
}

.game-link:hover {
    color: var(--primary-color)
}

#about .about-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    align-items: start
}

.about-visual {
    position: sticky;
    top: 120px;
    border: 1px solid var(--border);
    padding: 3rem;
    background: var(--bg2);
}

.glyph {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 8rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--amber);
    letter-spacing: 4px;
    user-select: none;
    display: block;
}

.founded {
    font-size: .65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.founded strong {
    color: var(--white)
}

.about-text h2 {
    margin-bottom: 2rem
}

.about-text p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: .95rem
}

.about-text p strong {
    color: var(--white);
    font-weight: 600
}

.manifesto {
    margin: 3rem 0;
    padding: 2rem;
    border-left: 2px solid var(--primary-color);
    background: rgba(106, 33, 114, .05)
}

.manifesto p {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--white);
    line-height: 1.6;
    margin: 0;
}

#community {
    background: var(--bg2)
}

.community-intro {
    max-width: 540px;
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 3rem
}

.embed-bracket {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 2;
}
.embed-bracket--tl {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
}
.embed-bracket--br {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}


.steam-strip {
    margin-bottom: 2rem;
}

.steam-strip-meta {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .6rem;
}

.steam-strip-label {
    font-size: .6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.steam-strip-slash {
    font-size: .6rem;
    color: var(--border);
    font-family: 'Inconsolata', monospace;
}

.steam-strip-sub {
    font-family: 'Inconsolata', monospace;
    font-size: .6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.steam-strip-frame {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    overflow: hidden;
    border-top-color: rgba(24, 69, 204, .5);
}

.steam-strip-frame iframe {
    display: block;
    width: 100%;
    height: 190px;
    border: none;
}


.community-lower {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2px;
    align-items: start;
}

.socials-grid--2col {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
}

.discord-panel {
    position: relative;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-top-color: rgba(24, 69, 204, .5);
    overflow: hidden;
    height: 100%;
}

.discord-panel-header {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.discord-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3ba55d;
    box-shadow: 0 0 6px rgba(59, 165, 93, .6);
    flex-shrink: 0;
    animation: blink-dot 2.4s ease-in-out infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: .35; }
}

.discord-panel-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .85rem;
    letter-spacing: .12em;
    color: var(--white);
}

.discord-panel-status {
    font-family: 'Inconsolata', monospace;
    font-size: .6rem;
    letter-spacing: .08em;
    color: var(--muted);
    margin-left: .1rem;
}

.discord-panel-body {
    position: relative;
    line-height: 0;
}

.discord-panel-body::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, .05) 2px,
        rgba(0, 0, 0, .05) 4px
    );
    pointer-events: none;
    z-index: 1;
}

.discord-panel iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}


@keyframes glitch {
    0%, 90%, 100% { clip-path: none; transform: none }
    91%  { clip-path: inset(20% 0 60% 0); transform: translate(-4px, 0) }
    92%  { clip-path: inset(60% 0 10% 0); transform: translate(4px, 0) }
    93%  { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 0) }
    94%  { clip-path: none; transform: none }
}

h1:hover {
    animation: glitch 2s ease-in-out
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: none
}


.socials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px
}

.social-card {
    padding: 2.5rem 2rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: border-color .3s, background .3s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-card:hover {
    border-color: var(--primary-color);
    background: var(--bg)
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(240, 236, 228, .03);
}

.social-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--muted);
    transition: fill .2s
}

.social-card:hover .social-icon svg {
    fill: var(--white)
}

.social-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--white);
}

.social-handle {
    font-size: .7rem;
    letter-spacing: 1px;
    color: var(--muted)
}


footer {
    padding: 3rem 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 4px;
    color: var(--white);
}

.footer-logo span {
    color: var(--primary-color)
}

.footer-copy {
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted)
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-link {
    font-size: .65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-color);
    text-decoration: none;
    border: 1px solid rgba(17, 119, 221, 0.35);
    padding: .45rem .85rem;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.footer-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px)
}

.footer-link:visited {
    color: var(--primary-color)
}

.footer-tagline {
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted)
}


@media(max-width: 900px) {
    nav {
        padding: 1rem 1.5rem
    }
    nav ul {
        gap: 1.5rem
    }
    section {
        padding: 5rem 1.5rem
    }
    .games-grid {
        grid-template-columns: 1fr
    }
    #about .about-layout {
        grid-template-columns: 1fr
    }
    .about-visual {
        position: static
    }
    .community-lower {
        grid-template-columns: 1fr
    }
    .socials-grid--2col {
        grid-template-columns: 1fr 1fr
    }
    .discord-panel iframe {
        height: 420px
    }
    .stats {
        flex-wrap: wrap
    }
    .stat {
        border-right: none;
        border-bottom: 1px solid var(--border)
    }
    footer {
        flex-direction: column;
        text-align: center
    }
    .footer-actions {
        justify-content: center
    }
}

@media(max-width: 540px) {
    nav ul {
        display: none
    }
    h1 {
        font-size: 4.5rem
    }
    .socials-grid,
    .socials-grid--2col {
        grid-template-columns: 1fr
    }
}