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

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #2563eb;
    --accent-blue: #3b82f6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
}

.header {
    background: var(--primary-blue);
    padding: 48px 40px;
    color: var(--white);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding: 0 40px;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 32px;
    filter: brightness(0) invert(1);
    display: block;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
    line-height: 1.2;
}

.header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    line-height: 1.6;
}

.header .info-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.download-section {
    text-align: left;
    margin-top: 32px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary-blue);
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.download-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.content {
    padding: 48px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.instructions-intro {
    margin-bottom: 32px;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.instructions h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 32px;
    font-weight: 600;
}

.instructions ol {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.instructions li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 60px;
    margin-bottom: 32px;
}

.instructions li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.step-text strong {
    font-weight: 600;
}

.alternative-downloads {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.alternative-downloads h3 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

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

.alt-link {
    color: var(--secondary-blue);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--secondary-blue);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9375rem;
    background: var(--white);
}

.alt-link:hover {
    background: var(--secondary-blue);
    color: var(--white);
}

.note {
    background: #f8fafc;
    border-left: 3px solid var(--secondary-blue);
    padding: 16px 20px;
    margin-top: 32px;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .header {
        padding: 32px 24px;
    }

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

    .logo {
        max-width: 160px;
        margin-bottom: 24px;
    }

    .content {
        padding: 32px 24px;
    }

    .instructions li {
        padding-left: 56px;
    }

    .instructions li::before {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .download-btn {
        padding: 12px 24px;
        font-size: 0.9375rem;
        width: 100%;
    }

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

    .alt-link {
        width: 100%;
        text-align: center;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Password Modal Styles */
.password-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.password-modal.hidden {
    display: none;
}

.password-modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.password-modal-content h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.password-modal-content p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

#password-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#password-input {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s ease;
}

#password-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.submit-btn {
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #1e40af;
}

.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    min-height: 20px;
    display: none;
}

.error-message.show {
    display: block;
}
