:root {
    --bg-base: #1d232a;
    --bg-header: #18181b;
    --text-main: #a6adbb;
    --text-muted: rgba(166, 173, 187, 0.5);
    --border-color: #374151;
    --card-hover-bg: rgba(38, 38, 38, 0.3);
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-header);
    z-index: 40;
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.header-container {
    width: 100%;
    max-width: 1536px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.header-icon {
    margin-left: auto;
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

/* Main Layout */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px; /* Space for fixed header */
    width: 100%;
}

.logo {
    margin-top: 2.5rem;
    width: 300px;
    height: auto;
    user-select: none;
}

.grid-container {
    width: 100%;
    max-width: 1536px;
    padding: 2.5rem 1.25rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
    }
}

/* Cards */
.card {
    position: relative;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    padding: 1.25rem;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: background-color 0.2s, border-color 0.2s;
    user-select: none;
}

.card:hover {
    border-color: var(--border-color);
    background-color: var(--card-hover-bg);
}

.card-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 0;
}

.card-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    z-index: 0;
}

/* Overlay Colors */
.bg-orange { background-color: #3bcf6d; } /* orange-900 */
.bg-amber { background-color: #78350f; } /* amber-900 */
.bg-indigo { background-color: #312e81; } /* indigo-900 */
.bg-emerald { background-color: #064e3b; } /* emerald-900 */
.bg-red { background-color: #7f1d1d; } /* red-900 */
.bg-purple { background-color: #581c87; } /* purple-900 */

/* Card Content */
.card h2, .card h3, .card h4, .card .countdown-wrapper {
    position: relative;
    z-index: 10;
}

.card h2 {
    font-size: 2.25rem; /* 6xl */
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.card h3 {
    font-size: 1.25rem; /* xl */
    font-weight: 600;
    margin: 0.5rem 0 0 0;
    min-height: 1.75rem; /* Prevent layout shift if empty */
}

.card h4 {
    font-size: 0.875rem; /* sm */
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
}

/* Countdown */
.countdown-wrapper {
    font-size: 0.875rem;
    opacity: 0.5;
    max-width: 30ch;
}

.countdown-grid {
    display: grid;
    grid-auto-flow: column;
    gap: 1.25rem;
    text-align: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-family: monospace;
    font-size: 3rem; /* 5xl */
    line-height: 1;
}

.countdown-value-sm {
    font-family: monospace;
    font-size: 1.25rem; /* xl */
    line-height: 1;
}

.countdown-label {
    font-size: 1rem;
}

/* Intro Text */
.intro-container {
    width: 100%;
    max-width: 1536px;
    padding: 2.5rem 1.25rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .intro-container {
        text-align: left;
    }
}

.intro-container h1 {
    font-size: 1.875rem; /* 3xl */
    font-weight: 700;
    margin-bottom: 1rem;
}

.intro-container p {
    font-size: 1.125rem; /* lg */
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    padding: 1rem 2.5rem;
    background-color: #15191e; /* base-300 approx */
    display: flex;
    justify-content: center;
    gap: 1rem;
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding: 1rem 2.5rem;
    background-color: #191e24; /* base-200 approx */
    border-top: 1px solid var(--border-color);
}
