:root {
    --bg: #0b1220;
    --bg-2: #0f1830;
    --fg: #e6ecf8;
    --muted: #a8b8dc;
    --accent: #3aa0ff;
    --accent-2: #8ad0ff;
    --ok: #6bd69e;
    --warn: #ffb357;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --max: 1100px;
}

*,
*::before,
*::after {
    box-sizing: border-box
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Inter, Arial, sans-serif;
    color: var(--fg);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-image: radial-gradient(1400px 700px at 80% -10%, rgba(58, 160, 255, .10), transparent 60%),
        radial-gradient(900px 600px at 10% 10%, rgba(138, 208, 255, .08), transparent 60%),
        radial-gradient(700px 600px at 50% 120%, rgba(107, 214, 158, .10), transparent 60%);
    background-attachment: fixed;
}

a {
    color: var(--accent);
    text-decoration: none
}

a:hover {
    opacity: .9
}

/* Accessibility improvements */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 100;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
}

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: saturate(120%) blur(8px);
    background: rgba(11, 18, 32, .6);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0
}

.brand {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 6px 0;
    display: flex;
    gap: 12px;
    align-items: center;
    font-weight: 700;
    letter-spacing: .3px;
    overflow: visible;
}

.brand img.logo {
    height: 80px;
    max-height: 80px;
    width: auto;
    display: block;
    border: none;
    outline: none;
    background: transparent;
    object-fit: contain;
    clip-path: none;
    -webkit-mask-image: none;
    mask-image: none;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 20px rgba(58, 160, 255, 0.3));
}

.brand img.logo:hover {
    filter: drop-shadow(0 0 30px rgba(58, 160, 255, 0.5));
    transform: scale(1.05);
}

.brand span {
    display: inline-block;
    line-height: 1;
    font-size: 20px;
    margin-left: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--fg);
}

nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0
}

nav a {
    color: var(--fg);
    opacity: .9
}

nav a.active,
nav a:hover {
    color: var(--accent)
}

.mobile-toggle {
    display: none
}

/* Hero */
.hero {
    padding: 86px 0 40px
}

.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    margin: 0 0 14px
}

.hero p {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--muted);
    max-width: 760px
}

.cta {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, rgba(58, 160, 255, .20), rgba(58, 160, 255, .12));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .4);
}

.btn.secondary {
    background: rgba(255, 255, 255, .06);
    box-shadow: none
}

/* Sections */
section {
    padding: 64px 0;
    position: relative
}

section .section-title {
    font-size: clamp(22px, 3vw, 28px);
    margin: 0 0 16px
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow)
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px
}

.col-4 {
    grid-column: span 4
}

.col-6 {
    grid-column: span 6
}

.col-8 {
    grid-column: span 8
}

.col-12 {
    grid-column: span 12
}

/* Project */
.feature {
    display: flex;
    gap: 12px
}

.badge {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .15em;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--accent-2);
    background: rgba(58, 160, 255, .06)
}

/* Timeline */
.timeline {
    border-left: 2px solid rgba(255, 255, 255, .1);
    margin-left: 10px
}

.tl-item {
    padding: 10px 0 10px 18px
}

.tl-item .when {
    font-size: 12px;
    color: var(--muted)
}

/* Footer */
footer {
    padding: 36px 0;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02)
}

/* Games, Devlog, Trailers */
.meta {
    font-size: 12px;
    color: var(--muted)
}

.tag {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    margin: .15rem .25rem 0 0;
    color: var(--accent-2);
    background: rgba(58, 160, 255, .06)
}

.game-card {
    display: flex;
    gap: 16px;
    align-items: flex-start
}

.game-card img {
    width: 220px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1)
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px
}

.video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow)
}

.video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0
}

/* Loading states */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Social sharing */
.social-share {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-btn:hover {
    background: rgba(58, 160, 255, .15);
    transform: translateY(-2px);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--fg);
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 18, 32, .98);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    color: var(--muted);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 860px) {
    .grid {
        grid-template-columns: repeat(6, 1fr)
    }

    .col-4 {
        grid-column: span 6
    }

    .col-6 {
        grid-column: span 6
    }

    .col-8 {
        grid-column: span 6
    }

    .hero {
        padding-top: 64px
    }

    nav ul {
        display: none
    }

    .mobile-toggle {
        display: inline-flex;
        padding: 8px 12px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 12px;
        background: rgba(255, 255, 255, .06)
    }

    .mobile-open nav ul {
        display: flex;
        position: absolute;
        top: 56px;
        left: 10px;
        right: 10px;
        flex-direction: column;
        gap: 8px;
        background: rgba(11, 18, 32, .96);
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 12px;
        padding: 14px;
        animation: slideDown 0.3s ease-out
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px)
        }

        to {
            opacity: 1;
            transform: translateY(0)
        }
    }

    .brand img.logo {
        height: 60px;
        max-height: 60px;
    }

    .brand span {
        font-size: 16px;
        margin-left: 8px;
    }

    .game-card {
        flex-direction: column;
    }

    .game-card img {
        width: 100%;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Subtle animated lines background */
.ether-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .4
}

.ether-lines svg {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 280px;
    animation: float 8s ease-in-out infinite alternate, wave 12s ease-in-out infinite
}

@keyframes float {
    from {
        transform: translateY(0)
    }

    to {
        transform: translateY(-20px)
    }
}

@keyframes wave {

    0%,
    100% {
        transform: translateX(0) scaleX(1)
    }

    50% {
        transform: translateX(10px) scaleX(1.1)
    }
}