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

:root {
    --bg: #0a0e1a;
    --surface: #111827;
    --surface-2: #1a2236;
    --border: rgba(99, 179, 237, 0.15);
    --accent: #63b3ed;
    --accent-2: #9f7aea;
    --green: #68d391;
    --text: #e2e8f0;
    --text-muted: #718096;
    --radius: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Subtle animated grid background */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 179, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 179, 237, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

header,
main,
footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
}

/* ── Header ── */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.badge {
    display: inline-block;
    background: rgba(99, 179, 237, 0.1);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    animation: fadeIn 0.6s ease both;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeIn 0.6s ease 0.1s both;
}

.highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin-inline: auto;
    animation: fadeIn 0.6s ease 0.2s both;
}

/* ── Cards ── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    animation: slideUp 0.5s ease both;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 179, 237, 0.4);
    box-shadow: 0 8px 32px rgba(99, 179, 237, 0.1);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card h2 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    margin-top: 0.25rem;
}

.status {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    display: inline-block;
    width: fit-content;
}

.status.done {
    background: rgba(104, 211, 145, 0.12);
    color: var(--green);
    border: 1px solid rgba(104, 211, 145, 0.25);
}

/* ── Meta Box ── */
.meta-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    animation: slideUp 0.5s ease 0.5s both;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.meta-value.env {
    color: var(--accent);
    background: rgba(99, 179, 237, 0.1);
    padding: 0.15rem 0.75rem;
    border-radius: 100px;
    border: 1px solid var(--border);
}

/* ── Footer ── */
footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: fadeIn 0.6s ease 0.6s both;
}

/* ── Animations ── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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