body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at top, rgba(78,205,196,0.08), transparent 60%),
                radial-gradient(ellipse at bottom, rgba(255,107,107,0.06), transparent 60%),
                #0a0a0a;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}
.nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}
.nav a.nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav a.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

.nav-links {
    display: flex; align-items: center; gap: 8px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px 60px;
}

.hero {
    text-align: center;
    max-width: 720px;
    margin-top: 40px;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 20px;
}
.hero h1 .accent {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .sub {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: #aaa;
    line-height: 1.55;
    max-width: 560px;
    margin: 0 auto 32px;
    font-weight: 300;
}
.hero-drop {
    border: 2px dashed #3a3a3c;
    border-radius: 18px;
    padding: 36px 32px;
    max-width: 420px;
    margin: 0 auto 18px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    min-height: 176px;
    box-sizing: border-box;
    display: grid;
    position: relative;
}
.hero-drop:hover,
.hero-drop.drag-over {
    border-color: rgba(78,205,196,0.6);
    background: rgba(78,205,196,0.04);
}
.hero-drop-icon {
    width: 36px; height: 36px;
    margin: 0 auto 14px;
    opacity: 0.5;
}
.hero-drop:hover .hero-drop-icon,
.hero-drop.drag-over .hero-drop-icon {
    opacity: 0.8;
}
.hero-drop-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.hero-drop-sub {
    font-size: 0.85rem;
    color: #888;
}
.hero-upload-content,
.hero-link-content {
    grid-column: 1;
    grid-row: 1;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}
.hero-link-content {
    opacity: 0;
    visibility: hidden;
}
.hero-link-content .hero-drop-icon {
    margin-bottom: 6px;
}
.hero-link-content .hero-drop-label {
    margin-bottom: 0;
}
.hero-drop.hero-link-mode .hero-upload-content {
    opacity: 0;
    visibility: hidden;
}
.hero-drop.hero-link-mode .hero-link-content {
    opacity: 1;
    visibility: visible;
}
.hero-drop.hero-link-mode {
    cursor: default;
}
.hero-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}
.hero-link-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    text-align: center;
}
.hero-link-input::placeholder {
    color: #666;
}
.hero-link-input:focus {
    border-color: rgba(78,205,196,0.6);
}
.hero-link-detected {
    font-size: 0.82rem;
    margin-top: 6px;
    color: #888;
}
.hero-link-detected.error {
    color: #ff6b6b;
}
.hero-link-detected:empty {
    display: none;
}
.hero-drop input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.hero-or-link {
    text-align: center;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: #888;
}
.hero-or-link a {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}
.hero-or-link a:hover { text-decoration: underline; }
.hero-drop.reject {
    border-color: #ff6b6b;
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.trust-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #d0d0d0;
    margin-top: 36px;
}
.trust-row span::before {
    content: "\2713 ";
    color: #4ecdc4;
    font-weight: 700;
}

footer {
    text-align: center;
    padding: 40px 20px 24px;
    color: #959595;
    font-size: 0.82rem;
}
footer a { color: #959595; text-decoration: none; }
footer a:hover { color: #ccc; }

@media (max-width: 600px) {
    .nav { padding: 16px 16px; }
    .nav .logo { font-size: 1.3rem; }
    main { padding: 16px 16px 40px; }
    .hero { margin-top: 18px; }
    .hero h1 { margin-bottom: 16px; }
    .hero-drop { padding: 28px 20px; min-height: 156px; }
    .hero-drop-sub { display: none; }
    .trust-row { gap: 12px; font-size: 0.85rem; }
    footer { padding: 30px 16px max(20px, env(safe-area-inset-bottom)); }
}
