:root {
    --bg: #0f172a;
    --card: #0b1224;
    --surface: #0b1833;
    --accent: #4ade80;
    --accent-strong: #22d3ee;
    --border: #1e293b;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.12), transparent 30%),
                radial-gradient(circle at 80% 0%, rgba(74, 222, 128, 0.12), transparent 36%),
                var(--bg);
    padding: 1.5rem;
}

.page {
    width: min(860px, 100%);
}

.card {
    background: linear-gradient(145deg, var(--card), var(--surface));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.brand-logo {
    width: 220px;
    max-width: 45vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.75rem, 2.6vw, 2.4rem);
    color: #f8fafc;
}

.lede {
    margin: 0 0 1.6rem;
    color: var(--muted);
    max-width: 48ch;
    line-height: 1.5;
}

.dropzone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.25rem;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.dropzone:hover {
    border-color: rgba(34, 211, 238, 0.6);
    transform: translateY(-1px);
}

.dropzone.dragging {
    border-color: var(--accent);
    background: rgba(74, 222, 128, 0.06);
}

.drop-icon {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(74, 222, 128, 0.2));
    border-radius: 14px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #0b1224;
    font-size: 1.1rem;
}

.drop-text {
    display: grid;
    gap: 0.2rem;
}

.drop-text .title {
    margin: 0;
    font-size: 1.15rem;
    color: #f1f5f9;
}

.drop-text .hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

.drop-text button {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.drop-text button:hover {
    text-decoration: underline;
}

.filename {
    margin: 0.2rem 0 0;
    color: #cbd5e1;
    font-weight: 500;
    word-break: break-word;
}

.progress-shell {
    margin-top: 1.5rem;
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width 120ms ease-out;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    display: inline-block;
}

.status-idle::before {
    background: var(--border);
}

.status-progress::before {
    background: var(--accent-strong);
}

.status-success {
    color: #a7f3d0;
}

.status-success::before {
    background: var(--accent);
}

.status-error {
    color: #fecdd3;
}

.status-error::before {
    background: #f87171;
}

.status-label {
    min-width: 52px;
    text-align: right;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .card {
        padding: 1.6rem;
    }

    .brand-logo {
        width: 180px;
    }

    .dropzone {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .drop-icon {
        justify-self: center;
        width: 88px;
    }

    .status-row {
        gap: 0.6rem;
    }
}
