:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --bg-color: #0b0f19;
    --glass-bg: rgba(16, 24, 43, 0.6);
    --glass-border: rgba(0, 210, 255, 0.2);
    --text-color: #e2e8f0;
    --error-color: #ff4b4b;
    --success-color: #00ff88;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a2a42 0%, #080b12 100%);
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+') repeat;
    opacity: 0.3;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    z-index: 1;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                inset 0 0 20px rgba(0, 210, 255, 0.05);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
    margin-bottom: -5px;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
}

.subtitle {
    font-size: 1rem;
    letter-spacing: 8px;
    color: #8da2c0;
    font-weight: 600;
}

form h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-align: center;
}

.description {
    text-align: center;
    color: #8da2c0;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 210, 255, 0.4);
}

.btn-submit:active {
    transform: translateY(1px);
}

.message-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.message-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.message-box.error {
    background: rgba(255, 75, 75, 0.1);
    border: 1px solid rgba(255, 75, 75, 0.3);
    color: var(--error-color);
}

.message-box.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--success-color);
}

.hidden {
    display: none;
}

.nav-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--primary-color);
}

/* Download Box */
.download-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.08), rgba(58, 123, 213, 0.12));
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.download-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(58, 123, 213, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.download-box:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 210, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.2),
                0 0 60px rgba(0, 210, 255, 0.08),
                inset 0 0 30px rgba(0, 210, 255, 0.05);
}

.download-box:hover::before {
    opacity: 1;
}

.download-box:active {
    transform: translateY(0px);
}

.download-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 14px;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);
    position: relative;
    z-index: 1;
}

.download-icon svg {
    animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.download-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.download-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.download-sub {
    font-size: 0.8rem;
    color: #7da2c7;
    letter-spacing: 0.5px;
}

.download-arrow {
    flex-shrink: 0;
    color: var(--primary-color);
    opacity: 0.5;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.download-box:hover .download-arrow {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 480px) {
    body {
        padding: 80px 15px 40px;
        align-items: flex-start;
    }
    .glass-panel {
        padding: 30px 20px;
    }
    .download-box {
        padding: 18px 16px;
        gap: 14px;
    }
    .download-icon {
        width: 50px;
        height: 50px;
    }
    .download-icon svg {
        width: 36px;
        height: 36px;
    }
    .download-title {
        font-size: 1rem;
    }
}
