/* Download Page Styles */
:root {
    --primary-blue: #2563EB;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Download Section */
.download-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

/* Download Button - Main CTA */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-blue);
    color: white;
    padding: 18px 40px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
    margin-bottom: 16px;
}

.download-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
}

.download-btn:active {
    transform: translateY(0);
}

.download-icon {
    width: 24px;
    height: 24px;
}

/* Version Info */
.version-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Other Platforms */
.other-platforms {
    margin-bottom: 20px;
}

.other-platforms>p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.platform-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
}

.platform-link:hover {
    background: var(--primary-blue);
    color: white;
}

/* Releases Link */
.releases-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.releases-link:hover {
    color: var(--primary-blue);
}

/* Security Guide */
.security-guide {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    display: none;
    /* Hidden by default, shown after download click */
}

.security-guide.visible {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.security-guide h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.guide-intro {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    gap: 20px;
    text-align: left;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.code-block-container {
    position: relative;
    margin-bottom: 12px;
}

.step-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px 20px;
    padding-right: 100px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    position: relative;
}

.step-content pre code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
}

.copy-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.copy-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-55%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.copy-btn:active {
    transform: translateY(-45%);
}

.copy-btn.copied {
    background: #10b981;
    /* Success green */
}

.copy-btn svg {
    flex-shrink: 0;
}

/* Step Image Placeholder */
.step-image-placeholder {
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.step-image-placeholder img {
    width: 100%;
    display: block;
}

.step-image-placeholder.missing {
    padding: 40px;
    text-align: center;
}

.step-image-placeholder.missing img {
    display: none;
}

.step-image-placeholder .placeholder-text {
    display: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.step-image-placeholder.missing .placeholder-text {
    display: block;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px 16px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .download-section {
        padding: 30px 20px;
    }

    .download-btn {
        padding: 16px 32px;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
    }

    .platform-links {
        flex-direction: column;
    }

    .platform-link {
        width: 100%;
        justify-content: center;
    }

    .security-guide {
        padding: 24px 20px;
    }
}