* {
    box-sizing: border-box;
}

:root {
    --bg: #07090d;
    --surface: #0d1118;
    --surface-2: #111722;
    --border: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 255, 255, 0.18);
    --text: #f5f7fa;
    --muted: #8b93a1;
    --muted-2: #626b79;
    --accent: #ffffff;
    --success: #7ee787;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(255, 255, 255, 0.09),
            transparent 38%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(80, 110, 160, 0.08),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);
}


/* =========================================
   CONTAINER
========================================= */

.container {
    width: 100%;
    max-width: 820px;

    margin: 0 auto;

    padding: 60px 24px 80px;
}


/* =========================================
   CARD
========================================= */

.card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    border: 1px solid var(--border);

    border-radius: 28px;

    padding: 46px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(20px);
}


/* =========================================
   BRAND
========================================= */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.18em;

    color: #c9ced6;

    margin-bottom: 28px;
}

.brand::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 12px rgba(126, 231, 135, 0.7);
}


/* =========================================
   HEADINGS
========================================= */

h1,
h2 {
    margin: 0;

    color: var(--text);

    letter-spacing: -0.045em;
}

h1 {
    font-size: clamp(42px, 7vw, 68px);

    line-height: 0.98;

    font-weight: 750;
}

h2 {
    font-size: clamp(30px, 5vw, 42px);

    line-height: 1.05;
}


/* =========================================
   SUBTITLE
========================================= */

.subtitle {
    max-width: 560px;

    margin: 22px 0 34px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================
   DROP ZONE
========================================= */

.drop-zone {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 280px;

    padding: 40px 24px;

    text-align: center;

    border: 1px dashed rgba(255, 255, 255, 0.18);

    border-radius: 22px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.01)
        );

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;

    overflow: hidden;
}

.drop-zone::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            120deg,
            transparent 20%,
            rgba(255, 255, 255, 0.025),
            transparent 80%
        );

    pointer-events: none;
}

.drop-zone:hover {
    border-color: var(--border-hover);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    transform: translateY(-2px);
}

.drop-zone.dragging {
    border-color: #fff;

    background:
        rgba(255, 255, 255, 0.07);

    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.04),
        0 20px 60px rgba(0, 0, 0, 0.3);

    transform: scale(1.01);
}


/* =========================================
   UPLOAD ICON
========================================= */

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin-bottom: 20px;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.045);

    color: white;

    font-size: 30px;
    font-weight: 300;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25);
}


/* =========================================
   DROP TEXT
========================================= */

.drop-zone p {
    margin: 0 0 7px;

    font-size: 17px;

    font-weight: 650;

    color: var(--text);
}

.drop-zone span {
    display: block;

    margin-bottom: 18px;

    color: var(--muted-2);

    font-size: 13px;
}


/* =========================================
   BUTTONS
========================================= */

button {
    border: 0;

    border-radius: 12px;

    padding: 13px 21px;

    background: #f4f5f7;

    color: #080a0e;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

button:hover {
    background: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 8px 25px rgba(255, 255, 255, 0.1);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================
   FILE LIST
========================================= */

.file-list {
    margin-top: 22px;
}

.file-item {
    display: block;

    width: 100%;

    padding: 17px 18px;

    margin-bottom: 10px;

    border: 1px solid var(--border);

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.025);

    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.file-info {
    width: 100%;
}

.file-item strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: var(--text);

    font-size: 14px;
}

.file-item .file-size {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================
   PROGRESS
========================================= */

.progress-container {
    width: 100%;

    height: 7px;

    margin-top: 13px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.07);
}

.progress-bar {
    width: 0%;

    height: 100%;

    border-radius: inherit;

    background: linear-gradient(
        90deg,
        #ffffff,
        #9ca3af
    );

    box-shadow:
        0 0 14px rgba(255, 255, 255, 0.2);

    transition: width 0.15s ease;
}

.upload-status {
    display: block;

    margin-top: 8px !important;

    color: var(--muted) !important;

    font-size: 12px !important;
}


/* =========================================
   ACCESS CODE
========================================= */

.access-code {
    margin-top: 16px;

    padding: 20px;

    border: 1px solid rgba(126, 231, 135, 0.18);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(126, 231, 135, 0.06),
            rgba(255, 255, 255, 0.025)
        );

    text-align: center;
}

.access-code span {
    display: block;

    color: var(--muted);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.2em;
}

.access-code strong {
    display: block;

    margin-top: 5px;

    color: #fff;

    font-size: 34px;

    line-height: 1;

    letter-spacing: 0.2em;

    font-variant-numeric: tabular-nums;
}

.access-code small {
    display: block;

    margin-top: 9px;

    color: var(--muted-2);

    font-size: 11px;
}


/* =========================================
   RETENTION
========================================= */

.retention {
    margin: 22px 0 0;

    text-align: center;

    color: var(--muted-2);

    font-size: 11px;
}


/* =========================================
   DOWNLOAD CARD
========================================= */

.download-section {
    margin-top: 20px;
}

.download-section .brand {
    margin-bottom: 22px;
}


/* =========================================
   DOWNLOAD FORM
========================================= */

.download-form {
    display: flex;

    gap: 10px;

    margin-top: 28px;
}

.download-form input {
    flex: 1;

    min-width: 0;

    height: 48px;

    padding: 0 18px;

    border: 1px solid var(--border);

    border-radius: 12px;

    outline: none;

    background: rgba(255, 255, 255, 0.035);

    color: white;

    font-family: inherit;

    font-size: 18px;

    letter-spacing: 0.18em;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.download-form input::placeholder {
    color: #4f5764;

    letter-spacing: 0.12em;
}

.download-form input:focus {
    border-color: rgba(255, 255, 255, 0.35);

    background: rgba(255, 255, 255, 0.055);

    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.035);
}

.download-form button {
    min-width: 120px;
}


/* =========================================
   DOWNLOAD STATUS
========================================= */

.download-status {
    min-height: 20px;

    margin-top: 14px;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .container {
        padding: 20px 12px 40px;
    }

    .card {
        padding: 30px 20px;

        border-radius: 22px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

    .drop-zone {
        min-height: 240px;

        padding: 30px 16px;
    }

    .download-form {
        flex-direction: column;
    }

    .download-form input,
    .download-form button {
        width: 100%;
    }

    .download-form button {
        height: 48px;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}   
/* =========================================
   TOAST NOTIFICATIONS
========================================= */

.toast-container {
    position: fixed;

    right: 24px;
    bottom: 24px;

    display: flex;
    flex-direction: column;

    gap: 10px;

    width: min(380px, calc(100vw - 32px));

    z-index: 9999;

    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 14px 16px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    background:
        rgba(15, 18, 24, 0.94);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(18px);

    color: white;

    pointer-events: auto;

    animation:
        toastIn 0.3s ease forwards;
}

.toast.removing {
    animation:
        toastOut 0.25s ease forwards;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    font-size: 14px;
    font-weight: 800;
}

.toast-content {
    flex: 1;

    min-width: 0;
}

.toast-title {
    margin: 0;

    font-size: 13px;

    font-weight: 700;
}

.toast-message {
    margin: 3px 0 0;

    color: #9299a5;

    font-size: 12px;

    line-height: 1.45;
}

.toast-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    padding: 0;

    background: transparent;

    color: #737b88;

    font-size: 16px;

    box-shadow: none;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.07);

    color: white;

    box-shadow: none;

    transform: none;
}


/* SUCCESS */

.toast.success {
    border-color:
        rgba(126, 231, 135, 0.2);
}

.toast.success .toast-icon {
    background:
        rgba(126, 231, 135, 0.12);

    color: #7ee787;
}


/* ERROR */

.toast.error {
    border-color:
        rgba(255, 100, 100, 0.2);
}

.toast.error .toast-icon {
    background:
        rgba(255, 100, 100, 0.12);

    color: #ff8585;
}


/* WARNING */

.toast.warning {
    border-color:
        rgba(255, 200, 80, 0.2);
}

.toast.warning .toast-icon {
    background:
        rgba(255, 200, 80, 0.12);

    color: #ffd166;
}


/* INFO */

.toast.info {
    border-color:
        rgba(120, 170, 255, 0.2);
}

.toast.info .toast-icon {
    background:
        rgba(120, 170, 255, 0.12);

    color: #8ab4ff;
}


@keyframes toastIn {

    from {
        opacity: 0;

        transform:
            translateX(30px)
            scale(0.96);
    }

    to {
        opacity: 1;

        transform:
            translateX(0)
            scale(1);
    }
}


@keyframes toastOut {

    from {
        opacity: 1;

        transform:
            translateX(0)
            scale(1);
    }

    to {
        opacity: 0;

        transform:
            translateX(30px)
            scale(0.96);
    }
}


@media (max-width: 600px) {

    .toast-container {
        right: 16px;
        bottom: 16px;

        width: calc(100vw - 32px);
    }
}