:root {
    --bg: #050c1f;
    --bg-secondary: #091634;

    --surface: #0b1730;
    --surface-2: #112045;
    --surface-3: #152856;

    --text: #f4f7ff;
    --text-secondary: #9fb2d9;

    --border: rgba(103, 143, 255, 0.18);

    --primary: #22c7ff;
    --primary-2: #5b5dff;

    --accent: #ffcf33;
    --green: #34f5c5;

    --shadow:
        0 10px 35px rgba(0, 0, 0, 0.35);

    --max-width: 1200px;

    --header-bg:
        rgba(4, 10, 24, 0.82);
}


/* =====================================================
   LIGHT MODE
===================================================== */

[data-theme="light"] {
    --bg: #eff5ff;
    --bg-secondary: #dce8ff;

    --surface: #ffffff;
    --surface-2: #eef4ff;
    --surface-3: #e6efff;

    --text: #09162c;
    --text-secondary: #516684;

    --border:
        rgba(17, 62, 151, 0.12);

    --primary: #0ba8ff;
    --primary-2: #4d57ff;

    --accent: #f0b400;
    --green: #0fcf98;

    --shadow:
        0 10px 30px
        rgba(50, 87, 160, 0.12);

    --header-bg:
        rgba(255, 255, 255, 0.88);
}


/* =====================================================
   GLOBAL
===================================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at top,
            rgba(34, 199, 255, 0.12),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            var(--bg),
            var(--bg-secondary)
        );

    color: var(--text);

    line-height: 1.6;

    min-height: 100vh;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


a {
    color: inherit;

    text-decoration: none;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =====================================================
   HEADER
===================================================== */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        var(--header-bg);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    border-bottom:
        1px solid var(--border);
}


.header-content {
    width: 100%;

    max-width:
        var(--max-width);

    margin: auto;

    padding:
        12px 24px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 20px;
}


/* =====================================================
   MAIN LOGO
===================================================== */

.logo {
    display: flex;

    align-items: center;

    flex-shrink: 0;
}


.site-logo-image {
    display: block;

    width: auto;

    height: 52px;

    max-width: 280px;

    object-fit: contain;
}


/* =====================================================
   MAIN NAVIGATION
===================================================== */

.main-nav {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    margin-left: auto;
}


.main-nav a {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding:
        8px 12px;

    border-radius: 12px;

    color:
        var(--text-secondary);

    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.main-nav a:hover {
    color:
        var(--text);

    background:
        var(--surface-2);

    transform:
        translateY(-1px);
}


/* =====================================================
   THEME BUTTON
===================================================== */

.theme-toggle {
    width: 42px;

    height: 42px;

    flex: 0 0 42px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background:
        var(--surface);

    color:
        var(--text);

    cursor: pointer;

    font-size: 1.1rem;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}


.theme-toggle:hover {
    background:
        var(--surface-2);

    transform:
        translateY(-1px);
}


/* =====================================================
   HERO
===================================================== */

.hero {
    padding:
        90px 24px 75px;
}


.hero-content {
    max-width: 900px;

    margin: auto;

    text-align: center;
}


.hero-badge {
    display: inline-block;

    padding:
        8px 14px;

    margin-bottom: 20px;

    border-radius: 999px;

    background:
        rgba(34, 199, 255, 0.08);

    border:
        1px solid
        rgba(34, 199, 255, 0.22);

    color:
        var(--primary);

    font-size: 0.82rem;

    font-weight: 800;

    letter-spacing: 0.08em;
}


.hero h1 {
    margin: 0;

    font-size:
        clamp(
            2.8rem,
            7vw,
            5.2rem
        );

    line-height: 1.05;

    letter-spacing: -0.04em;
}


.hero-subtitle {
    margin:
        18px 0 10px;

    font-size:
        clamp(
            1.15rem,
            2vw,
            1.45rem
        );

    color:
        var(--accent);

    font-weight: 700;
}


.hero-text {
    max-width: 700px;

    margin:
        0 auto 32px;

    color:
        var(--text-secondary);

    font-size: 1.05rem;
}


.hero-buttons {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 14px;
}


.primary-button,
.secondary-button {
    min-width: 170px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        13px 22px;

    border-radius: 14px;

    font-weight: 800;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.primary-button {
    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-2)
        );

    color: #051120;

    box-shadow:
        0 8px 25px
        rgba(34, 199, 255, 0.16);
}


.primary-button:hover {
    transform:
        translateY(-2px);
}


.secondary-button {
    background:
        var(--surface);

    border:
        1px solid var(--border);
}


.secondary-button:hover {
    background:
        var(--surface-2);

    transform:
        translateY(-2px);
}


/* =====================================================
   SECTIONS
===================================================== */

.app-section,
.info-section {
    width: 100%;

    max-width:
        var(--max-width);

    margin: auto;

    padding:
        50px 24px 70px;
}


.section-heading {
    margin-bottom: 30px;
}


.section-label {
    font-size: 0.8rem;

    font-weight: 800;

    letter-spacing: 0.12em;

    color:
        var(--primary);
}


.section-heading h2 {
    margin:
        10px 0 6px;

    font-size:
        clamp(
            1.9rem,
            4vw,
            2.6rem
        );

    line-height: 1.2;
}


.section-heading p {
    margin: 0;

    color:
        var(--text-secondary);
}


/* =====================================================
   APP GRID
===================================================== */

.apps-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                320px,
                420px
            )
        );

    justify-content: center;

    gap: 24px;
}


/* =====================================================
   APP CARD
===================================================== */

.app-card {
    width: 100%;

    max-width: 420px;

    overflow: hidden;

    border-radius: 24px;

    border:
        1px solid
        var(--border);

    background:
        linear-gradient(
            180deg,
            rgba(
                15,
                29,
                62,
                0.92
            ),
            rgba(
                8,
                18,
                42,
                0.98
            )
        );

    box-shadow:
        var(--shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


[data-theme="light"]
.app-card {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f1f6ff
        );
}


.app-card:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(
            34,
            199,
            255,
            0.4
        );

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.28);
}


/* =====================================================
   APP IMAGE
===================================================== */

.app-image-wrap {
    position: relative;

    width: 100%;

    aspect-ratio:
        16 / 9;

    overflow: hidden;

    background:
        #081228;
}


.app-image {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.35s ease;
}


.app-card:hover
.app-image {
    transform:
        scale(1.025);
}


/* =====================================================
   APP BADGE
===================================================== */

.app-badge {
    position: absolute;

    top: 14px;

    left: 14px;

    padding:
        7px 11px;

    border-radius: 999px;

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    color: white;

    background:
        rgba(
            0,
            0,
            0,
            0.35
        );

    backdrop-filter:
        blur(8px);
}


.app-badge.utility {
    color: #041224;

    background:
        rgba(
            255,
            207,
            51,
            0.94
        );
}


.app-badge.game {
    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-2)
        );
}


/* =====================================================
   APP CONTENT
===================================================== */

.app-content {
    padding: 22px;
}


.app-title-row {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 10px;

    margin-bottom: 8px;
}


.app-title-row h3 {
    margin: 0;

    font-size: 1.35rem;

    line-height: 1.25;
}


.app-status {
    color:
        var(--green);

    font-size: 0.74rem;

    font-weight: 800;

    letter-spacing: 0.08em;
}


.app-description {
    min-height: 56px;

    margin:
        0 0 18px;

    color:
        var(--text-secondary);
}


.app-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 18px;
}


.meta-pill {
    padding:
        6px 10px;

    border-radius: 999px;

    background:
        var(--surface-2);

    border:
        1px solid
        var(--border);

    color:
        var(--text-secondary);

    font-size: 0.78rem;

    font-weight: 700;
}


.app-button {
    width: 100%;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        12px 16px;

    border-radius: 14px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-2)
        );

    color: #051120;

    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.app-button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 8px 20px
        rgba(
            34,
            199,
            255,
            0.15
        );
}


/* =====================================================
   INFO
===================================================== */

.info-card {
    padding: 36px;

    border:
        1px solid
        var(--border);

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(
                14,
                28,
                60,
                0.96
            ),
            rgba(
                8,
                18,
                42,
                0.98
            )
        );

    box-shadow:
        var(--shadow);
}


[data-theme="light"]
.info-card {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f4f8ff
        );
}


.info-card h2 {
    margin:
        10px 0 15px;
}


.info-card h3 {
    margin-top: 34px;

    margin-bottom: 14px;
}


.info-card p {
    max-width: 900px;

    color:
        var(--text-secondary);
}


/* =====================================================
   DONATION OPTIONS
===================================================== */

.donation-options {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 20px;

    margin-top: 22px;
}


.donation-card {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 22px;

    background:
        var(--surface-2);

    border:
        1px solid
        var(--border);

    border-radius: 18px;
}


.donation-icon {
    width: 58px;

    height: 58px;

    min-width: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    color: white;

    font-size: 1.5rem;

    font-weight: 800;
}


.paypal-icon {
    background:
        linear-gradient(
            135deg,
            #003087,
            #009cde
        );
}


.stripe-icon {
    background:
        linear-gradient(
            135deg,
            #635bff,
            #8f88ff
        );
}


.donation-content {
    flex: 1;

    min-width: 0;
}


.donation-content h4 {
    margin:
        0 0 5px;
}


.donation-content p {
    margin:
        0 0 14px;
}


.donation-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        10px 15px;

    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-2)
        );

    color: #051120;

    font-weight: 800;

    transition:
        transform 0.2s ease;
}


.donation-button:hover {
    transform:
        translateY(-1px);
}


/* =====================================================
   CRYPTO
===================================================== */

.crypto-section {
    margin-top: 44px;
}


.crypto-list {
    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 18px;
}


.crypto-row {
    display: grid;

    grid-template-columns:
        70px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    padding:
        13px 15px;

    background:
        var(--surface-2);

    border:
        1px solid
        var(--border);

    border-radius: 14px;
}


.crypto-name {
    font-size: 0.92rem;
}


.crypto-row code {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color:
        var(--text-secondary);

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.8rem;
}


.copy-button {
    padding:
        8px 13px;

    border-radius: 10px;

    border:
        1px solid
        var(--border);

    background:
        var(--surface-3);

    color:
        var(--text);

    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.copy-button:hover {
    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-2)
        );

    color:
        #041224;

    transform:
        translateY(-1px);
}


.copy-button.copied {
    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-2)
        );

    color:
        #041224;
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    border-top:
        1px solid
        var(--border);

    background:
        rgba(
            4,
            10,
            24,
            0.3
        );
}


.footer-content {
    width: 100%;

    max-width:
        var(--max-width);

    margin: auto;

    padding: 24px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 18px;

    color:
        var(--text-secondary);
}


.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 18px;
}


.footer-links a:hover {
    color:
        var(--text);
}


/* =====================================================
   TABLET
===================================================== */

@media
(max-width: 860px) {

    .donation-options {
        grid-template-columns:
            1fr;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media
(max-width: 760px) {

    .header-content {
        padding:
            10px 16px;

        gap: 10px;
    }


    .site-logo-image {
        height: 38px;

        max-width: 205px;
    }


    .main-nav {
        gap: 2px;
    }


    .main-nav span {
        display: none;
    }


    .main-nav a {
        padding:
            8px;

        font-size: 1.05rem;
    }


    .theme-toggle {
        width: 38px;

        height: 38px;

        flex-basis: 38px;
    }


    .hero {
        padding:
            70px 18px 50px;
    }


    .app-section,
    .info-section {
        padding:
            40px 18px 55px;
    }


    .apps-grid {
        grid-template-columns:
            minmax(
                0,
                420px
            );
    }


    .info-card {
        padding:
            28px 22px;
    }


    .footer-content {
        flex-direction: column;

        justify-content: center;

        text-align: center;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media
(max-width: 560px) {

    .site-logo-image {
        height: 34px;

        max-width: 180px;
    }


    .header-content {
        padding:
            9px 12px;
    }


    .hero {
        padding:
            60px 16px 45px;
    }


    .hero h1 {
        font-size:
            clamp(
                2.4rem,
                13vw,
                3.4rem
            );
    }


    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }


    .primary-button,
    .secondary-button {
        width: 100%;
    }


    .apps-grid {
        grid-template-columns:
            1fr;
    }


    .app-card {
        max-width: 100%;
    }


    .app-description {
        min-height: 0;
    }


    .crypto-row {
        grid-template-columns:
            1fr auto;

        gap: 8px;
    }


    .crypto-name {
        grid-column:
            1 / -1;
    }


    .crypto-row code {
        font-size:
            0.68rem;
    }


    .copy-button {
        padding:
            8px 10px;

        font-size:
            0.8rem;
    }


    .donation-card {
        align-items:
            flex-start;
    }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media
(max-width: 420px) {

    .site-logo-image {
        height: 31px;

        max-width: 155px;
    }


    .main-nav a {
        padding: 6px;
    }


    .theme-toggle {
        width: 36px;

        height: 36px;

        flex-basis: 36px;

        font-size: 1rem;
    }


    .info-card {
        padding:
            24px 17px;
    }

}
