:root {
    color-scheme: light;
    --bg: #fffbf4;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-muted: rgba(255, 255, 255, 0.65);
    --fg: #141414;
    --fg-muted: rgba(20, 20, 20, 0.65);
    --accent: #4f01ff;
    --accent-hover: #3a00cc;
    --brand: #c5f403;
    --radius: 20px;
    --shadow: 0 12px 26px rgba(20, 20, 20, 0.08);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--fg);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(255, 251, 244, 0.9);
    border-bottom: 1px solid rgba(20, 20, 20, 0.06);
}

.hero__content,
.container,
.footer__inner {
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}


.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page--center {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: radial-gradient(circle at top, rgba(197, 244, 3, 0.18), transparent 50%), var(--bg);
}

.container {
    padding: 2.5rem 0 4rem;
}

.hero {
    padding: 3.2rem 0 1.5rem;
}

.hero__content {
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin: 0;
}

.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(20, 20, 20, 0.05);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.card h2 {
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.card--muted {
    background: var(--bg-muted);
    border: 1px dashed rgba(20, 20, 20, 0.08);
    box-shadow: none;
}

.card--error {
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--danger);
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: calc(var(--radius) - 4px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(20, 20, 20, 0.06);
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.file-item:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 1, 255, 0.25);
    box-shadow: 0 14px 32px rgba(79, 1, 255, 0.18);
}

.file-item__name {
    font-weight: 600;
    font-size: 1rem;
}

.file-item__details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.file-item__meta {
    display: block;
    color: var(--fg-muted);
    font-size: 0.9rem;
}

.file-item__actions {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 120ms ease, transform 120ms ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(79, 1, 255, 0.24);
}

.banner {
    padding: 1rem 1.25rem;
    border-radius: calc(var(--radius) - 8px);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(79, 1, 255, 0.15);
    background: rgba(79, 1, 255, 0.04);
}

.banner--warning {
    background: rgba(197, 244, 3, 0.18);
    border-color: rgba(197, 244, 3, 0.35);
    color: #374100;
}

.footer {
    margin-top: auto;
    padding: 2rem 0 3rem;
    background: transparent;
    color: var(--fg-muted);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    gap: 1rem;
    padding: 0 1.5rem;
}

.footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--fg);
    font-weight: 600;
}

.footer__brand img {
    width: 28px;
    height: 28px;
}

.footer__inner a {
    color: inherit;
    text-decoration: none;
}

.footer__inner a:hover,
.footer__inner a:focus {
    text-decoration: underline;
}

.availability-note {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--fg-muted);
    font-size: 0.9rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.page--center .card {
    text-align: center;
    max-width: 480px;
}

.page--center h1 {
    margin-top: 0;
}

.page--center p {
    color: var(--fg-muted);
}

@media (max-width: 720px) {
    .file-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .file-item__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .btn {
        width: 100%;
    }
}
