:root {
    --bg: #050505;
    --card: #0d0d0d;
    --border: #1a1a1a;
    --text: #ffffff;
    --text-muted: #888888;
    --accent: #ff5f5f;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* BACKGROUND */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #0a0a0a 0%, #050505 100%);
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.3;
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.05rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-links a.active {
    background: var(--accent);
    color: #000;
}

.nav-links a:hover:not(.active) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* CONTAINER */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 12rem 2rem 5rem;
}

.page {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HERO */
.hero {
    text-align: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.subtitle {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* BUTTONS */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn.primary {
    background: var(--accent);
    color: #000;
}

.btn.primary:hover {
    transform: translateY(-2px);
    background: #ff7676;
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn.secondary:hover {
    border-color: var(--accent);
    background: rgba(255, 95, 95, 0.05);
    transform: translateY(-2px);
}

/* DOWNLOADS */
.releases-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.section-header {
    margin-bottom: 2rem;
}

.accent-line {
    width: 40px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 1rem;
}

.accent-line.dim {
    background: #222;
}

.section-header h2, .section-header h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
}

.release-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.latest-card {
    border-color: var(--accent);
    background: linear-gradient(135deg, #111 0%, #0d0d0d 100%);
}

.release-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.version-badge {
    background: #1a1a1a;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
}

.release-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.asset-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.asset-row:hover {
    border-color: var(--accent);
    background: #050505;
    transform: translateX(4px);
}

.asset-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.asset-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.meta-val {
    color: var(--text);
}

.github-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 1rem;
}

.github-link:hover {
    color: var(--accent);
}

.btn-show-more {
    width: 100%;
    padding: 1rem;
    background: #111;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-show-more:hover {
    border-color: var(--text-muted);
}

/* FOOTER */
.footer {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.footer-left {
    display: flex;
    gap: 1rem;
}

.github-link { margin-top: 0; }

@media (max-width: 768px) {
    .nav-content { padding: 0 1rem; }
    .hero h1 { font-size: 3rem; }
    .asset-meta { display: none; }
}
