:root {
    color-scheme: dark;
    --bg: #061026;
    --bg-deep: #030713;
    --panel: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.18);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.72);
    --mint: #5cf5df;
    --pink: #ff5a9d;
    --gold: #ffd244;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.boingly-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 24%, rgba(92, 245, 223, 0.22), transparent 28%),
        radial-gradient(circle at 84% 12%, rgba(255, 90, 157, 0.2), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
}

.brand,
.topbar-links {
    display: flex;
    align-items: center;
}

.brand {
    flex: 0 1 auto;
}

.brand-logo {
    display: block;
    width: min(220px, 52vw);
    height: auto;
}

.topbar-links {
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.topbar-menu,
.footer-menu {
    display: contents;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-cta,
.secondary-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 16px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 48px;
    align-items: center;
    min-height: 660px;
    padding: 42px 0 72px;
}

.front-page-content {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 70px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--mint);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 20px;
    font-size: clamp(68px, 12vw, 150px);
    line-height: 0.84;
    letter-spacing: 0;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(28px, 4vw, 54px);
    line-height: 0.96;
    letter-spacing: 0;
}

.lede {
    max-width: 640px;
    color: var(--muted);
    font-size: clamp(19px, 2.3vw, 25px);
    line-height: 1.35;
}

.hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 30px;
}

.app-store-link {
    display: inline-block;
    width: 175px;
    height: 58px;
    line-height: 0;
    cursor: pointer;
}

.app-store-link img {
    display: block;
    width: 175px;
    height: 58px;
    pointer-events: none;
}

.secondary-button {
    color: var(--text);
    font-weight: 900;
}

.hero-art {
    position: relative;
    min-height: 430px;
}

.hero-icon {
    width: min(100%, 430px);
    border-radius: 86px;
    box-shadow: 0 35px 120px rgba(0, 0, 0, 0.45), 0 0 80px rgba(255, 90, 157, 0.22);
}

.score-chip {
    position: absolute;
    right: 0;
    bottom: 54px;
    border: 1px solid rgba(255, 210, 68, 0.6);
    border-radius: 999px;
    padding: 13px 18px;
    background: rgba(6, 16, 38, 0.86);
    color: var(--gold);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 1.2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--line);
}

.feature-grid article {
    min-height: 220px;
    padding: 28px;
    background: rgba(3, 7, 19, 0.72);
}

.feature-grid span {
    color: var(--pink);
    font-weight: 950;
}

.feature-grid h2 {
    margin: 38px 0 14px;
    font-size: 24px;
    line-height: 1.05;
}

.feature-grid p,
.pro-band p,
.site-footer p {
    color: var(--muted);
    line-height: 1.55;
}

.characters {
    padding: 96px 0 72px;
}

.section-heading {
    max-width: 680px;
}

.character-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.character-row img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.pro-band {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 36px;
    align-items: end;
    margin-bottom: 80px;
    border-radius: 28px;
    padding: 38px;
    background: linear-gradient(135deg, rgba(92, 245, 223, 0.14), rgba(255, 90, 157, 0.12));
    border: 1px solid var(--line);
}

.pro-band h2 {
    margin-bottom: 0;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    border-top: 1px solid var(--line);
    padding: 34px 0 38px;
}

.site-footer img {
    width: min(420px, 72vw);
}

.site-footer p {
    margin: 0;
}

.footer-brand {
    display: grid;
    gap: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.footer-links a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    padding-bottom: 3px;
}

.footer-contact {
    min-width: 230px;
    text-align: right;
}

.footer-contact h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 16px;
    line-height: 1;
}

.footer-contact a {
    color: var(--mint);
    font-weight: 900;
}

.content-page {
    min-height: 58vh;
    padding: 72px 0 96px;
}

.page-card {
    width: min(820px, 100%);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: clamp(26px, 5vw, 54px);
    background: rgba(3, 7, 19, 0.72);
}

.page-card h1 {
    margin-bottom: 24px;
    font-size: clamp(44px, 8vw, 92px);
}

.page-content {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.page-content h2 {
    margin: 34px 0 12px;
    color: var(--text);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
}

.page-content ul {
    padding-left: 1.25rem;
}

.page-content li + li {
    margin-top: 8px;
}

.page-content a {
    color: var(--mint);
    font-weight: 800;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.legal-page .page-card {
    width: min(900px, 100%);
}

.support-contact-card {
    margin: 28px 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.06);
}

.support-contact-card h2 {
    margin-top: 0;
}

@media (max-width: 820px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-links {
        width: 100%;
        justify-content: space-between;
    }

    .brand-logo {
        width: min(190px, 68vw);
    }

    .hero,
    .feature-grid,
    .pro-band {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 26px;
        min-height: 0;
        padding-top: 28px;
    }

    .hero-art {
        min-height: 0;
    }

    .hero-icon {
        border-radius: 56px;
    }

    .score-chip {
        right: 14px;
        bottom: 18px;
    }

    .feature-grid article {
        min-height: 180px;
    }

    .character-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .footer-contact {
        min-width: 0;
        text-align: left;
    }
}

@media (max-width: 520px) {
    .site-shell,
    .site-footer {
        width: min(100% - 28px, 1120px);
    }

    .topbar-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .secondary-button {
        width: 100%;
        text-align: center;
    }
}
