@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --bg-gradient-start: #4b6cb7;
    --bg-gradient-end: #182848;
    --card-bg: #2d3436; /* Dark gray */
    --text-light: #dfe6e9; /* Light gray */
    --text-medium: #b2bec3; /* Medium gray */
    --heading-color: #ffffff;
    --accent-color: #00cec9; /* Turquoise */
    --progress-bg: #636e72; /* Gray for progress bar background */
    --footer-link: #81ecec; /* Lighter turquoise */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    line-height: 1.7;
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: 750px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensure children conform to rounded corners */
}

.card-header {
    padding: 35px 45px 25px;
    background-color: rgba(0, 0, 0, 0.2); /* Slightly darker header */
    text-align: center;
}

.card-header h1 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    color: var(--heading-color);
    font-size: 2em;
    margin-bottom: 8px;
}

.card-header .tagline {
    color: var(--text-medium);
    font-size: 1.1em;
    font-weight: 300;
}

.card-body {
    padding: 30px 45px;
    display: flex;
    flex-direction: column;
    gap: 35px; /* Space between message and progress */
}

.message h2 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.message p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1em;
}

.message p:last-child {
    margin-bottom: 0;
}

.progress-area {
    text-align: center;
}

.progress-area h3 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.progress-bar {
    width: 100%;
    background-color: var(--progress-bg);
    border-radius: 5px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-inner {
    width: 75%; /* Example progress */
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
    animation: progress-pulse 2s infinite ease-in-out;
}

@keyframes progress-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.status-text {
    font-size: 0.9em;
    color: var(--text-medium);
}

.card-footer {
    padding: 25px 45px;
    background-color: rgba(0, 0, 0, 0.2); /* Match header */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.update-link {
    display: inline-block;
    color: var(--footer-link);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border: 1px solid var(--footer-link);
    border-radius: 5px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.update-link:hover,
.update-link:focus {
    background-color: var(--footer-link);
    color: var(--card-bg);
}

.copyright {
    font-size: 0.85em;
    color: var(--text-medium);
}

/* Responsive Adjustments */
@media (max-width: 650px) {
    body {
        padding: 15px;
        align-items: flex-start; /* Allow scrolling */
    }
    .container {
        margin-top: 15px;
    }
    .card-header {
        padding: 25px 30px 20px;
    }
    .card-header h1 {
        font-size: 1.7em;
    }
    .card-header .tagline {
        font-size: 1em;
    }
    .card-body {
        padding: 25px 30px;
        gap: 30px;
    }
    .message h2 {
        font-size: 1.3em;
    }
    .message p {
        font-size: 0.95em;
    }
    .progress-area h3 {
        font-size: 1.1em;
    }
    .card-footer {
        padding: 20px 30px;
    }
    .update-link {
        padding: 7px 12px;
        font-size: 0.9em;
    }
    .copyright {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .card-header h1 {
        font-size: 1.5em;
    }
    .card-header .tagline {
        font-size: 0.9em;
    }
    .message h2 {
        font-size: 1.2em;
    }
}