* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1rem;
    line-height: 1.6;
}

.container {
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: #94a3b8;
}

/* Download Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

/* Download Cards */
.download-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.download-card:hover {
    transform: translateY(-4px);
}

.card-client:hover {
    border-color: rgba(56, 189, 248, 0.3);
}

.card-server:hover {
    border-color: rgba(52, 211, 153, 0.3);
}

/* Badges */
.badge {
    align-self: flex-start;
    font-size: 0.775rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-client {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-server {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.download-card h2 {
    font-size: 1.45rem;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.desc {
    color: #94a3b8;
    font-size: 0.925rem;
    margin-bottom: 1.25rem;
    min-height: 2.8em;
}

/* Feature Bullets inside Cards */
.card-features {
    list-style: none;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.card-features li {
    font-size: 0.875rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.card-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #38bdf8;
    font-weight: bold;
}

.card-server .card-features li::before {
    color: #34d399;
}

/* Download Buttons */
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-client {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-client:hover {
    background: linear-gradient(135deg, #0369a1, #1d4ed8);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

.btn-server {
    background: linear-gradient(135deg, #0d9488, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-server:hover {
    background: linear-gradient(135deg, #0f766e, #047857);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.meta-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 1rem;
}

.meta-info strong {
    color: #94a3b8;
}

/* Selection Guide Section */
.guide-section {
    margin-bottom: 2rem;
}

.guide-section h3, .guide h3 {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-weight: 600;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.guide-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.25rem;
}

.guide-icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.guide-item h4 {
    font-size: 0.95rem;
    color: #f1f5f9;
    margin-bottom: 0.3rem;
}

.guide-item p {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Steps Guide */
.guide {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.steps {
    padding-left: 1.2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.steps li {
    margin-bottom: 0.5rem;
}

.steps li:last-child {
    margin-bottom: 0;
}

.steps code {
    background: rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.8rem;
    color: #475569;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

@media (max-width: 640px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }

    .download-card {
        padding: 1.75rem 1.25rem;
    }

    .desc {
        min-height: auto;
    }
}
