:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg-dark: #1b1b1f;
    --bg-card: #1e293b;
    --section-bg-1: rgba(255, 255, 255, 0.01);
    --section-bg-2: rgba(255, 255, 255, 0.02);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #22d3ee;
    --success: #10b981;
    --warning: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
}

#nav-root nav {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    gap: 4px;
    flex-direction: column;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    display: block;
}

.hero {
    padding: 6rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero .hero-content {
    flex: 1;
    text-align: left;
}

.hero .hero-image {
    width: 360px;
    max-width: 40%;
    display: flex;
    justify-content: center;
}

.hero .hero-image img {
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 0 1.5rem;
    text-align: left;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: .875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

#donate,
#versions,
#credits {
    width: 100%;
    margin: 0 auto;
    padding: 2.25rem 1rem;
    display: flex;
    justify-content: center;
}

.section-div {
    width: 70%;
}

.card:last-child {
    border-bottom: none;
}

section:nth-of-type(odd) {
    background: var(--section-bg-1);
}

section:nth-of-type(even) {
    background: var(--section-bg-2);
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.card {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.card h3 {
    margin-bottom: .5rem;
}

.card h4 {
    color: var(--accent);
    margin: 1rem 0 .5rem;
}

.card p,
.card li {
    color: var(--text-secondary);
}

.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.version-card {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 10px;
}

.version-badge {
    padding: .25rem .75rem;
    border-radius: 20px;
    font-weight: 600;
}

.badge-nightly {
    background: var(--warning);
    color: var(--bg-dark);
}

.badge-stable {
    background: var(--success);
    color: #fff;
}

.donate-card {
    padding: 15px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.07)
}

.donate-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

ul {
    padding-left: 15px;
}

.credits-list li {
    background: rgba(99, 102, 241, 0.07);
    padding: 1rem;
    border-left: 4px solid var(--primary);
    margin-bottom: .5rem;
}

.note-box {
    margin-top: 20px;
    background: rgba(34, 211, 238, 0.07);
    padding: 1rem;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
}

.warning-box {
    margin-top: 20px;
    background: rgba(245, 158, 11, 0.07);
    padding: 1rem;
    border-left: 4px solid var(--warning);
    border-radius: 6px;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-wrap {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 6rem auto 4rem;
    padding: 0 1rem;
}

.guide-sidebar {
    width: 260px;
    position: sticky;
    top: 90px;
    align-self: flex-start;
    background: #161618;
    padding: 1rem;
    border-radius: 8px;
}

.guide-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .75rem;
}

.guide-sidebar a {
    display: block;
    padding: .5rem .75rem;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
}

.guide-sidebar a:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--primary);
}

.platform-links {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    gap: .5rem;
    align-items: center;
}

.platform-links a {
    color: var(--accent);
    text-decoration: none;
    padding: .25rem .35rem;
}

.platform-links a.active {
    color: var(--primary);
    ;
}

.guide-main {
    flex: 1;
    border-radius: 8px;
}

.card a,
.donate-card a,
.credits-list li a,
footer a {
    color: lightblue;
}

.updater-banner {
    display: flex;
    justify-content: space-between;
    margin-top: 5%;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(34, 211, 238, 0.04));
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
    .guide-wrap {
        flex-direction: column;
        margin-top: 5rem;
    }

    .guide-sidebar {
        width: 100%;
        position: relative;
        top: auto;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        padding: 3rem 1rem;
    }

    .hero .hero-content {
        text-align: center;
    }

    .hero .hero-image {
        max-width: 320px;
        width: 80%;
        margin-top: 1rem;
    }
}

.download {
    background: var(--primary);
    color: #fff;
    padding: .5rem .75rem;
    border-radius: 8px;
    text-decoration: none;
}

.code-block {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.12);
    padding: .75rem;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: monospace;
}

.platform-select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding: .4rem;
    border-radius: 6px;
}

.small-action {
    font-size: .9rem;
    color: var(--text-secondary);
}