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

html, body {
    height: 100%;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling and touch behavior */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 1;
    overflow: hidden;
    background: #000;
}

/* Desktop default - video covers screen */
#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Mobile - video fits with letterbox */
@media screen and (max-width: 767px) {
    .video-container {
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, #050505 0%, #0f0f0f 50%, #050505 100%);
    }
    
    #bg-video {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: auto;
        min-width: 0;
        min-height: 0;
        max-width: 100%;
        object-fit: contain;
    }
    
    .video-overlay {
        background: linear-gradient(180deg, 
            rgba(0,0,0,0.6) 0%, 
            rgba(0,0,0,0.1) 20%,
            rgba(0,0,0,0.1) 80%,
            rgba(0,0,0,0.6) 100%
        );
    }
}

/* Logo - Top Left */
.logo {
    position: fixed;
    top: 3rem;
    left: 3rem;
    z-index: 100;
    display: flex;
    align-items: center;
    height: 54px; /* Match notify button height */
}

.logo img {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

/* Notify Me - Top Right */
.notify-btn {
    position: fixed;
    top: 3rem;
    right: 3rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.notify-btn:hover {
    background: #3a3a3a;
    border-color: rgba(255, 255, 255, 0.15);
}

.notify-btn:active {
    background: #222;
}

/* Mute Button - Middle Right */
.mute-btn {
    position: fixed;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.mute-icon {
    width: 22px;
    height: 22px;
    opacity: 0.9;
}

/* X (Twitter) - Bottom Right */
.x-link {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    z-index: 100;
    transition: all 0.3s ease;
}

.x-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.x-link svg {
    width: 24px;
    height: 24px;
    opacity: 0.9;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .logo {
        top: 1.5rem;
        left: 1.5rem;
        height: 48px;
    }

    .logo img {
        height: 100px;
    }

    .notify-btn {
        top: 1.5rem;
        right: 1.5rem;
        padding: 0.85rem 1.75rem;
        font-size: 0.75rem;
    }

    .mute-btn {
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }

    .x-link {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .logo {
        top: 1rem;
        left: 1rem;
    }

    .logo img {
        height: 70px;
    }

    .notify-btn {
        top: 1rem;
        right: 1rem;
        padding: 0.7rem 1.25rem;
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .mute-btn {
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .mute-icon {
        width: 18px;
        height: 18px;
    }

    .x-link {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .x-link svg {
        width: 20px;
        height: 20px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 360px) {
    .logo img {
        height: 60px;
    }

    .notify-btn {
        padding: 0.6rem 1rem;
        font-size: 0.6rem;
    }

    .mute-btn,
    .x-link {
        width: 40px;
        height: 40px;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .logo {
        top: 1rem;
        left: 1rem;
    }

    .logo img {
        height: 60px;
    }

    .notify-btn {
        top: 1rem;
        right: 1rem;
        padding: 0.6rem 1.25rem;
        font-size: 0.7rem;
    }

    .mute-btn {
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .x-link {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .notify-btn:hover,
    .mute-btn:hover,
    .x-link:hover {
        transform: none;
    }

    .notify-btn:active {
        transform: scale(0.98);
        background: #222;
    }

    .mute-btn:active {
        transform: translateY(-50%) scale(0.95);
        background: rgba(255, 255, 255, 0.2);
    }

    .x-link:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 2.5rem;
    width: 90%;
    max-width: 420px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #3a3a3a;
    color: rgba(255, 255, 255, 0.9);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.modal-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.9);
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    outline: none;
    transition: all 0.2s ease;
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modal-input:focus {
    border-color: rgba(255, 255, 255, 0.15);
    background: #333;
}

.error-message {
    display: block;
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.9);
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    background: #3a3a3a;
    border-color: rgba(255, 255, 255, 0.15);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
}

.success-message svg {
    width: 64px;
    height: 64px;
    color: #4ade80;
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.1rem;
    color: #fff;
}

/* Modal Responsive - Tablet */
@media (max-width: 768px) {
    .modal {
        width: 92%;
        max-width: 400px;
        padding: 2rem;
    }
}

/* Modal Responsive - Mobile */
@media (max-width: 480px) {
    .modal {
        width: 94%;
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
        margin: 1rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }

    .modal-title {
        font-size: 1.2rem;
        padding-right: 2rem;
    }

    .modal-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .input-label {
        font-size: 0.8rem;
    }

    .modal-input {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 40px;
    }

    .submit-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 40px;
    }

    .success-message svg {
        width: 56px;
        height: 56px;
    }

    .success-message p {
        font-size: 1rem;
    }
}

/* Modal Responsive - Small Mobile */
@media (max-width: 360px) {
    .modal {
        padding: 1.5rem 1rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-input,
    .submit-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}
