:root {
    --primary: #00a8ff;
    --accent: #0077ff;
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --item-bg: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--dark-bg);
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 440px;
    padding: 3rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.container.wide {
    max-width: 500px;
    padding: 2rem;
    border-radius: 24px;
}

/* Logo & Brand */
.logo-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.3);
}

.brand-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.container.wide h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

p {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Download Button */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    padding: 18px 30px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.download-btn:not(.disabled):hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 168, 255, 0.4);
}

.download-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #94a3b8;
    box-shadow: none;
}

.download-btn svg {
    width: 24px;
    height: 24px;
}

/* TOS Checkbox */
.tos-area {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.tos-area input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.tos-area a { color: var(--primary); text-decoration: none; }
.tos-area a:hover { text-decoration: underline; }

/* Features */
.features { display: flex; justify-content: center; gap: 15px; margin-top: 2.5rem; }
.feature-item { font-size: 0.8rem; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.feature-item::before { content: ''; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }

/* Lists (Archive) */
.version-list { list-style: none; }
.version-item { background: var(--item-bg); margin-bottom: 0.8rem; border-radius: 12px; transition: all 0.2s; border: 1px solid transparent; }
.version-item:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.1); }
.version-link { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; color: var(--text-main); text-decoration: none; font-weight: 500; }
.version-number { font-size: 1.1rem; }
.download-icon { color: var(--primary); }

.hash-container { padding: 0 1.5rem 1rem 1.5rem; font-size: 0.85rem; color: var(--text-dim); text-align: left; }
.hash-value { font-family: monospace; word-break: break-all; margin-bottom: 0.25rem; font-size: 0.75rem; }
.hash-desc { font-size: 0.75rem; opacity: 0.7; }

/* Footer / Links */
.footer-link { display: block; text-align: center; margin-top: 2rem; color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-link:hover { color: var(--primary); }
.divider { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1.5rem;
    }
    .brand-title {
        font-size: 1.75rem;
    }
    .download-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
    h1 {
        font-size: 1.2rem;
    }
    .features {
        gap: 10px;
    }
}