:root {
    --bg: #080810;
    --bg-deep: #06060c;
    --bg-mid: #0d1a32;
    --bg-overlay: rgba(0, 0, 0, 0.55);
    --glow-cyan: rgba(42, 154, 168, 0.42);
    --glow-magenta: rgba(196, 92, 154, 0.32);
    --text: #e8e8ec;
    --text-muted: #9a9aab;
    --accent: #c45c9a;
    --accent-secondary: #2a9aa8;
    --button-bg: rgba(0, 0, 0, 0.75);
    --button-border: #ffffff;
    --link: #c8d4ff;
    --shadow: rgba(0, 0, 0, 0.6);
    --max-width: 1200px;
}

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

html {
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 100% 60% at 50% -5%, var(--glow-cyan), transparent 68%),
        radial-gradient(ellipse 55% 50% at 100% 100%, var(--glow-magenta), transparent 58%),
        radial-gradient(ellipse 50% 45% at 0% 100%, var(--glow-magenta), transparent 55%),
        radial-gradient(ellipse 40% 30% at 50% 55%, rgba(42, 154, 168, 0.08), transparent 70%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #0a1428 75%, var(--bg) 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
}

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

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0 auto;
    max-width: var(--max-width);
    min-height: 100vh;
    padding: 1.5rem 1rem 2.5rem;
    position: relative;
}

.hero {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.hero__brand {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 1.25rem;
    max-width: min(500px, 90vw);
    width: 100%;
}

.hero__logo {
    flex: 0 0 auto;
    width: 100%;
}

.hero__logo img {
    margin: 0 auto;
    width: 100%;
}

.tagline {
    border-image: linear-gradient(180deg, var(--accent-secondary), var(--accent)) 1;
    border-left: 3px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding-left: 1rem;
    width: 100%;
}

.tagline__line {
    animation: tagline-in 0.55s ease backwards;
    color: var(--text);
    display: block;
    font-size: clamp(0.95rem, 2.4vw, 1.125rem);
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
}

.tagline__line:nth-child(2) {
    animation-delay: 0.1s;
}

.tagline__line:nth-child(3) {
    animation-delay: 0.2s;
}

.tagline__line em {
    color: var(--accent-secondary);
    font-style: normal;
    text-shadow: 0 0 12px rgba(42, 154, 168, 0.45);
}

.tagline__line--finale {
    color: #f2f2f6;
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    letter-spacing: 0.14em;
}

.tagline__line--finale em {
    color: var(--accent);
    text-shadow: 0 0 14px rgba(196, 92, 154, 0.5);
}

@keyframes tagline-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero__video {
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 24px var(--shadow);
    flex: 1 1 auto;
    max-width: 100%;
    position: relative;
    width: min(720px, 100%);
}

.hero__video iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.video-placeholder {
    align-items: center;
    background: linear-gradient(145deg, #12121c, #1a1a28);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.video-placeholder p {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
}

.wishlist {
    align-items: center;
    background: linear-gradient(165deg, rgba(13, 26, 50, 0.82) 0%, rgba(8, 8, 16, 0.92) 100%);
    border: 1px solid rgba(42, 154, 168, 0.28);
    border-radius: 1rem;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 32px rgba(42, 154, 168, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0 auto;
    max-width: min(100%, 520px);
    padding: 1.75rem 2rem 2rem;
    position: relative;
    text-align: center;
}

.wishlist::before {
    background: linear-gradient(90deg, transparent, var(--accent-secondary), var(--accent), transparent);
    border-radius: 2px;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: min(220px, 70%);
}

.wishlist__label {
    background: none;
    box-shadow: none;
    color: #f4f4f8;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin: 0;
    padding: 0;
    text-shadow: 0 0 18px rgba(42, 154, 168, 0.4);
    text-transform: uppercase;
}

.wishlist__buttons {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.store-button {
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 2rem;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.45),
        0 0 12px rgba(42, 154, 168, 0.15);
    color: var(--text);
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    min-width: 0;
    padding: 0.9rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    width: 100%;
}

.store-button:hover {
    border-color: var(--accent-secondary);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(42, 154, 168, 0.35);
    text-decoration: none;
    transform: translateY(-2px);
}

.discord-cta {
    align-items: center;
    background: linear-gradient(165deg, rgba(20, 16, 40, 0.88) 0%, rgba(8, 8, 16, 0.94) 100%);
    border: 1px solid rgba(196, 92, 154, 0.35);
    border-radius: 1rem;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 36px rgba(196, 92, 154, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
    max-width: min(100%, 520px);
    padding: 1.75rem 2rem;
    position: relative;
    text-align: center;
}

.discord-cta::before {
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-secondary), transparent);
    border-radius: 2px;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: min(240px, 75%);
}

.discord-cta__title {
    color: #f4f4f8;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin: 0;
    text-shadow: 0 0 18px rgba(196, 92, 154, 0.35);
    text-transform: uppercase;
}

.discord-cta__text {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    max-width: 28rem;
}

.discord-cta__button {
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 2rem;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.45),
        0 0 16px rgba(196, 92, 154, 0.2);
    color: var(--text);
    display: inline-flex;
    font-size: 1.2rem;
    font-weight: 600;
    gap: 0.65rem;
    justify-content: center;
    line-height: 1;
    margin-top: 0.25rem;
    padding: 0.95rem 1.75rem;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.discord-cta__button:hover {
    border-color: var(--accent);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.5),
        0 0 24px rgba(196, 92, 154, 0.4);
    text-decoration: none;
    transform: translateY(-2px);
}

.discord-cta__icon {
    background-image: url(../gfx/discord.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    flex: 0 0 auto;
    height: 1.75rem;
    width: 1.75rem;
}

.page-footer {
    margin-top: auto;
    padding-top: 0.5rem;
    position: relative;
    width: 100%;
}

.page-footer__center {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.page-footer__row {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    width: 100%;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: center;
}

.site-footer__link {
    color: var(--link);
    font-size: 1rem;
    text-shadow: 0 0 8px var(--shadow);
}

.social-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.social-link {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    height: 2.5rem;
    opacity: 0.9;
    width: 2.5rem;
}

.social-link:hover {
    opacity: 1;
    text-decoration: none;
}

.social-link--twitter {
    background-image: url(../gfx/twitter.png);
}

.social-link--bluesky {
    background-image: url(../gfx/bluesky.svg);
}

.social-link--youtube {
    background-image: url(../gfx/youtube.svg);
}

.social-link--discord {
    background-image: url(../gfx/discord.png);
}

@media (prefers-reduced-motion: reduce) {
    .tagline__line {
        animation: none;
    }
}

.funding-logo {
    display: block;
    height: auto;
    margin: 0 auto;
    width: min(185px, 78vw);
}

@media screen and (min-width: 768px) {
    .page {
        gap: 2.5rem;
        padding: 2rem 2rem 2.5rem;
    }

    .hero {
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
    }

    .hero__brand {
        align-items: flex-start;
        max-width: 42%;
    }

    .hero__video {
        max-width: 58%;
        width: auto;
    }

    .wishlist__buttons {
        grid-template-columns: repeat(2, minmax(9.5rem, 1fr));
        width: auto;
    }

    .store-button {
        padding: 0.9rem 1.85rem;
        width: auto;
    }

    .page-footer {
        padding-top: 1rem;
    }

    .page-footer__row {
        align-items: flex-end;
        flex-direction: row;
        justify-content: center;
        min-height: 2.5rem;
    }

    .social-links {
        position: relative;
        z-index: 1;
    }

    .funding-logo {
        bottom: 0;
        margin: 0;
        position: absolute;
        right: 0;
        width: min(185px, 26vw);
    }

    .site-footer__link {
        font-size: 1.125rem;
    }
}

@media screen and (max-width: 767px) {
    html {
        background-image:
            radial-gradient(ellipse 110% 45% at 50% 0%, var(--glow-cyan), transparent 62%),
            radial-gradient(ellipse 80% 40% at 50% 100%, var(--glow-magenta), transparent 55%),
            linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, #0a1428 80%, var(--bg) 100%);
    }

    .hero__brand {
        max-width: min(360px, 88vw);
    }

    .tagline {
        border-left: none;
        border-top: 2px solid transparent;
        border-image: linear-gradient(90deg, var(--accent-secondary), var(--accent)) 1;
        padding-left: 0;
        padding-top: 0.85rem;
        text-align: center;
    }

    .tagline__line {
        letter-spacing: 0.08em;
    }

    @keyframes tagline-in {
        from {
            opacity: 0;
            transform: translateY(6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .wishlist {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .discord-cta {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .discord-cta__title {
        font-size: 1.15rem;
        letter-spacing: 0.08em;
    }

    .discord-cta__text {
        font-size: 1rem;
    }

    .discord-cta__button {
        font-size: 1.1rem;
        width: 100%;
        max-width: 16rem;
    }

    .wishlist__buttons {
        grid-template-columns: 1fr;
        max-width: 16rem;
    }

    .store-button {
        font-size: 1.1rem;
    }

    .social-link {
        height: 2rem;
        width: 2rem;
    }

    .page-footer__row {
        gap: 1rem;
    }

    .funding-logo {
        width: min(150px, 75vw);
    }
}
