:root {
    --bg: #0b0f14;
    --surface: #121821;
    --surface-light: #18212c;
    --border: #273241;
    --text: #f4f7fa;
    --muted: #8d99a8;
    --accent: #3b9cff;
    --accent-hover: #5aabff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -20%,
            rgba(59, 156, 255, 0.12),
            transparent 45%),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

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

.container {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
}

.site-header {
    padding: 24px 0;
}

.header-inner {
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    font-weight: 800;
    font-size: 20px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 17px;
}

.brand-text small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.hero {
    padding: 70px 0 40px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero h1 span {
    color: var(--accent);
}

.hero-text {
    max-width: 520px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.upload-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(18, 24, 33, 0.88);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.drop-zone {
    padding: 42px 24px;
    border: 2px dashed var(--border);
    border-radius: 18px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.drop-zone:hover {
    border-color: var(--accent);
    background: rgba(59, 156, 255, 0.04);
}

.upload-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: rgba(59, 156, 255, 0.12);
    color: var(--accent);
    font-size: 28px;
    font-weight: 700;
}

.drop-zone h2 {
    margin: 0;
    font-size: 21px;
}

.drop-zone p {
    margin: 10px 0 22px;
    color: var(--muted);
}

.file-button {
    display: inline-flex;
    padding: 11px 18px;
    border-radius: 10px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 600;
}

.file-button:hover {
    border-color: var(--accent);
}

.file-button input {
    display: none;
}

.selected-file {
    min-height: 20px;
    margin-top: 18px;
    color: var(--accent);
    font-size: 14px;
}

.pin-section {
    margin-top: 26px;
}

.pin-section label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 600;
}

.pin-section input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    font-size: 20px;
    letter-spacing: 0.3em;
    text-align: center;
}

.pin-section input:focus {
    border-color: var(--accent);
}

.upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 22px;
    padding: 16px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.upload-button:hover {
    background: var(--accent-hover);
}

.upload-button span {
    font-size: 20px;
}

.security-note {
    margin: 22px 0 60px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.site-footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.site-header {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: block;
    width: 92px;
    height: 72px;
    object-fit: contain;
}

.message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
}

.message-error {
    border: 1px solid #7f3030;
    background: rgba(127, 48, 48, 0.15);
    color: #ff9b9b;
}

.message-success {
    border: 1px solid #28633e;
    background: rgba(40, 99, 62, 0.15);
    color: #8ee0aa;
}

.upload-result {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-light);
}

.upload-result span {
    color: var(--muted);
}

.upload-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.message-info {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-light);
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 600px) {
    .hero {
        padding-top: 45px;
    }

    .upload-card {
        padding: 16px;
    }

    .drop-zone {
        padding: 32px 16px;
    }
}