/* SciDive Landing Page Styles */

:root {
    /* Primary Colors */
    --abyss-blue: #0A1628;
    --depth-navy: #1A365D;
    --surface-blue: #2B6CB0;

    /* Accent Colors */
    --biolume-cyan: #00D4FF;
    --insight-teal: #0D9488;
    --discovery-gold: #F6AD55;

    /* Neutral Colors */
    --pearl-white: #F7FAFC;
    --foam-gray: #E2E8F0;
    --sediment-gray: #718096;
}

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

body {
    margin: 0;
    overflow: hidden;
    background-color: var(--abyss-blue);
    font-family: 'Sansation', 'Inter', sans-serif;
    color: var(--pearl-white);
}

/* Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 2s ease;
}

/* Vignette Overlay */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 300px rgba(10, 22, 40, 0.9);
    pointer-events: none;
    z-index: 2;
}

/* Main App Overlay */
#app-overlay {
    position: relative;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo-img {
    width: clamp(200px, 40vw, 350px);
    height: auto;
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.3));
}

.tagline {
    font-family: 'Sansation', sans-serif;
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #A8A8FF;
    margin: 0;
    margin-top: 1rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.4);
}

.tagline span {
    white-space: nowrap;
}

.description {
    max-width: 600px;
    margin-top: 1rem;
}

.description p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: var(--foam-gray);
    font-weight: 300;
}

/* Waitlist Section */
.waitlist {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.waitlist-cta {
    font-family: 'Sansation', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--pearl-white);
    letter-spacing: 0.1em;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

/* Button Test Row */
.btn-test-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    pointer-events: auto;
}

.btn-test-row button {
    padding: 0.875rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 1. Gold (Discovery Gold) */
.btn-gold {
    background: var(--discovery-gold);
    border: 1px solid var(--discovery-gold);
    color: var(--abyss-blue);
}
.btn-gold:hover {
    background: #f9c077;
    box-shadow: 0 0 25px rgba(246, 173, 85, 0.4);
    transform: translateY(-2px);
}

/* 2. Violet Light (Dark logo #A8A8FF) */
.btn-violet-light {
    background: #a8a8ff;
    border: 1px solid #a8a8ff;
    color: var(--abyss-blue);
}
.btn-violet-light:hover {
    background: #bcbcff;
    box-shadow: 0 0 25px rgba(168, 168, 255, 0.4);
    transform: translateY(-2px);
}

/* 3. Violet Dark (Light logo #5555FF) */
.btn-violet-dark {
    background: #5555ff;
    border: 1px solid #5555ff;
    color: var(--pearl-white);
}
.btn-violet-dark:hover {
    background: #6b6bff;
    box-shadow: 0 0 25px rgba(85, 85, 255, 0.4);
    transform: translateY(-2px);
}

/* 3. Cyan (Biolume Cyan) */
.btn-cyan {
    background: var(--biolume-cyan);
    border: 1px solid var(--biolume-cyan);
    color: var(--abyss-blue);
}
.btn-cyan:hover {
    background: #33ddff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

/* 3. Teal (Insight Teal) */
.btn-teal {
    background: var(--insight-teal);
    border: 1px solid var(--insight-teal);
    color: var(--pearl-white);
}
.btn-teal:hover {
    background: #10b9a6;
    box-shadow: 0 0 25px rgba(13, 148, 136, 0.4);
    transform: translateY(-2px);
}

/* 4. Blue (Surface Blue) */
.btn-blue {
    background: var(--surface-blue);
    border: 1px solid var(--surface-blue);
    color: var(--pearl-white);
}
.btn-blue:hover {
    background: #3b82c4;
    box-shadow: 0 0 25px rgba(43, 108, 176, 0.4);
    transform: translateY(-2px);
}

/* 5. Outline (Ghost) */
.btn-outline {
    background: transparent;
    border: 1px solid var(--biolume-cyan);
    color: var(--biolume-cyan);
}
.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* Primary Button */
.btn-primary {
    pointer-events: auto;
    padding: 1rem 2.5rem;
    background: #5555ff;
    border: 1px solid #5555ff;
    color: var(--pearl-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #6b6bff;
    border-color: #6b6bff;
    box-shadow: 0 0 30px rgba(85, 85, 255, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
}

.footer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--sediment-gray);
    letter-spacing: 0.05em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(180deg, var(--depth-navy) 0%, var(--abyss-blue) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--sediment-gray);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--pearl-white);
}

.modal-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--pearl-white);
}

.modal-content > p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--foam-gray);
    margin-bottom: 2rem;
}

#waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

#email-input {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    color: var(--pearl-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#email-input::placeholder {
    color: var(--sediment-gray);
}

#email-input:focus {
    border-color: var(--biolume-cyan);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.modal-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--sediment-gray);
    margin-top: 1rem;
}

/* Modal States */
.modal-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.modal-state[hidden] {
    display: none;
}

#waitlist-form-state[hidden] {
    display: none;
}

/* State Icons */
.state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.success-icon {
    background: linear-gradient(135deg, var(--insight-teal), var(--biolume-cyan));
    position: relative;
}

.success-icon::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 30px;
    width: 10px;
    height: 20px;
    border: solid var(--pearl-white);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.error-icon {
    background: linear-gradient(135deg, #e53e3e, #fc8181);
    position: relative;
}

.error-icon::before,
.error-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 3px;
    background: var(--pearl-white);
    border-radius: 2px;
}

.error-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.error-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Button Loading State */
#submit-btn {
    position: relative;
    min-width: 140px;
}

#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--pearl-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-spinner[hidden] {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    #app-overlay {
        padding: 1.5rem;
        padding-bottom: 6rem;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 15vh;
    }

    .description p br {
        display: none;
    }

    .footer {
        position: relative;
        bottom: auto;
        margin-top: 3rem;
        padding-bottom: 2rem;
        pointer-events: auto;
    }

    .modal-content {
        padding: 2rem;
    }
}
