@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700;900&display=swap');

:root {
    color-scheme: dark;
    --bg: #080808;
    --surface: rgba(12, 12, 12, 0.75);
    --surface-strong: rgba(20, 20, 20, 0.95);
    --accent: #ac59c6;
    --accent-hover: #8e3e9e;
    --text-main: #ffffff;
    --text-muted: #cfcfcf;
    --text-subtle: #9b9b9b;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 2.25rem 5rem rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(14px, 0.95vw, 18px);
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

canvas#canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: #050505;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 5vw;
    background: rgba(4, 4, 4, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

.header-inner {
    width: min(1100px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.header-left-text {
    margin: 0;
    font-size: clamp(1.15rem, 1.3vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tabbar {
    display: inline-flex;
    gap: clamp(1.5rem, 2.5vw, 2.75rem);
}

.tab-btn {
    font-weight: 500;
    transition: color 0.2s ease;
    color: var(--text-muted);
}

.tab-btn:hover {
    color: var(--text-main);
}

#selected-tab {
    color: var(--accent);
    font-weight: 700;
}

.header-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    gap: clamp(1.1rem, 2vw, 2.25rem);
}

.header-right-icon {
    font-size: 1.35rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.header-right-icon:hover {
    color: var(--accent);
}

.main-body {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18vh 5vw 12vh;
    min-height: 100vh;
}

.main-body-stack {
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(2rem, 4vw, 3rem);
}

.home-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
    padding: clamp(2.5rem, 3vw, 4rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    box-shadow: var(--shadow);
}

.home-copy {
    max-width: 520px;
}

.home-copy h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(2.4rem, 5vw, 3.9rem);
    line-height: 1.1;
    font-weight: 800;
}

.home-copy p {
    margin: 0 0 1.75rem;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.05vw, 1.2rem);
    line-height: 1.7;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.75rem;
    border-radius: 999px;
    border: none;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    font-weight: 700;
    background: var(--accent);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1.75rem 3rem rgba(172, 89, 198, 0.25);
}

.download-btn i {
    font-size: 1.05em;
}

.download-btn:hover {
    transform: translateY(-3px);
    background: var(--accent-hover);
    box-shadow: 0 2.25rem 3.5rem rgba(142, 62, 158, 0.35);
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.secondary-link:hover {
    color: var(--text-main);
}

#download-notice {
    margin: 1.25rem 0 0;
    color: var(--text-subtle);
    font-size: clamp(0.85rem, 0.9vw, 1rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#download-notice counter {
    font-weight: 700;
    color: var(--text-main);
}

.home-visual {
    display: flex;
    justify-content: center;
}

.home-visual img {
    width: min(380px, 90%);
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.page-shell {
    width: min(940px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    padding: clamp(2.5rem, 4vw, 3.5rem);
    box-shadow: var(--shadow);
}

.page-shell h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
}

.page-shell p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.7;
}

.page-shell .page-meta {
    font-size: clamp(0.85rem, 0.95vw, 1rem);
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.downloads-hero {
    text-align: center;
}

.plans-grid {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
}

.plan-card {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    padding: clamp(2rem, 3vw, 2.75rem);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.community-layout {
    flex-direction: column;
    justify-content: center;
    gap: clamp(2rem, 4vw, 4rem);
}

.community-section {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
    gap: clamp(2rem, 4vw, 5rem);
}

.community-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.community-copy h1 {
    margin: 0;
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 800;
}

.community-copy p {
    margin: 0;
    max-width: 36rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.discord-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(1rem, 1.5vw, 1.15rem) clamp(2.75rem, 4vw, 3.5rem);
    border-radius: 1.75rem;
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    font-weight: 700;
    background: linear-gradient(120deg, #ba66ec, #9e46d3);
    color: var(--text-main);
    box-shadow: 0 1.5rem 3.4rem rgba(164, 70, 211, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.discord-cta:hover {
    transform: translateY(-3px);
    background: linear-gradient(120deg, #c679ff, #ab51e2);
    box-shadow: 0 1.9rem 3.8rem rgba(178, 90, 232, 0.4);
}

.discord-cta i {
    font-size: 1.3em;
}

.community-count {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.85rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(59, 13, 92, 0.65), rgba(23, 6, 36, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: clamp(0.88rem, 0.95vw, 1rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 1.2rem 2.5rem rgba(83, 25, 128, 0.35);
}

.community-widget-card {
    background: rgba(8, 8, 8, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.75rem;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 360px;
    margin: 0 auto;
}

.community-widget-card h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    font-weight: 700;
    text-align: center;
}

.community-widget-stats {
    display: flex;
    justify-content: center;
}

.widget-stat {
    min-width: 220px;
    padding: 1.1rem 1.65rem;
    border-radius: 1.9rem;
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.95), rgba(10, 10, 10, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    box-shadow: 0 1.4rem 2.8rem rgba(0, 0, 0, 0.42);
}

.widget-label {
    font-size: clamp(0.7rem, 0.85vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.72);
}

.widget-value {
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    font-weight: 800;
}

.discord-widget-wrap {
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, 0.4);
}

.discord-widget {
    display: block;
    background: transparent;
}

.plan-card-premium {
    background: linear-gradient(150deg, rgba(172, 89, 198, 0.18), rgba(8, 8, 8, 0.9));
    border: 1px solid rgba(172, 89, 198, 0.45);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.plan-header h2 {
    margin: 0;
    font-size: clamp(1.65rem, 2vw, 2rem);
    font-weight: 700;
}

.plan-badge {
    margin: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: clamp(0.75rem, 0.8vw, 0.9rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
}

.plan-price-old {
    position: relative;
    font-size: clamp(1.1rem, 1.6vw, 1.6rem);
    color: var(--text-muted);
}

.plan-price-old::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -0.2rem;
    right: -0.2rem;
    height: 0.15rem;
    background: linear-gradient(90deg, #ff5252, #b30000);
    transform: rotate(-6deg);
}

.plan-price-current {
    background: linear-gradient(120deg, #1fc91f, #91bb8c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.plan-features {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.65rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.plan-features li {
    list-style: disc;
}

.plan-cta {
    align-self: flex-start;
    min-width: 0;
}

.plan-stats {
    margin: 0;
    font-size: clamp(0.85rem, 0.95vw, 1rem);
    color: var(--text-subtle);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

footer {
    width: 100%;
    text-align: center;
    padding: 2.5rem 0 3rem;
    color: var(--text-subtle);
    font-size: clamp(0.75rem, 0.85vw, 0.95rem);
}

@media (max-width: 960px) {
    body {
        overflow-y: auto;
    }

    .header {
        padding: 0.75rem 6vw;
    }

    .tabbar {
        gap: 1.15rem;
    }

    .main-body {
        padding: 16vh 6vw 8vh;
    }

    .home-shell {
        padding: 2.25rem;
    }
}

@media (max-width: 720px) {
    .header {
        position: static;
    }

    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .header-left,
    .header-right {
        position: static;
        transform: none;
    }

    .header-right {
        order: 3;
    }

    .main-body {
        padding: 6vh 6vw 6vh;
    }

    .home-shell {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .home-copy {
        text-align: center;
        max-width: none;
    }

    .home-actions {
        justify-content: center;
    }

    .home-visual img {
        width: 72vw;
    }

    .community-section {
        grid-template-columns: 1fr;
    }

    .community-copy {
        gap: 1.5rem;
    }

    .community-widget-card {
        max-width: 420px;
    }
}
