/* BirdieLine Pro — Mysterious Landing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background: #050508;
}

body {
    width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
    font-family: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #050508;
    color: #f5f5f4;
    -webkit-tap-highlight-color: transparent;
}

/* Animated gradient mesh — always visible, creates depth */
.gradient-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 80, 40, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(60, 40, 80, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(40, 60, 80, 0.06), transparent);
    animation: meshPulse 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes meshPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Video container */
.video-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #050508;
    pointer-events: none;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.4;
}

@media (max-width: 768px) and (orientation: portrait) {
    .background-video {
        width: 177.78vh;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Heavy overlay — video becomes ambient, not literal */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(5, 5, 8, 0.3) 0%,
        rgba(5, 5, 8, 0.85) 40%,
        rgba(5, 5, 8, 0.95) 100%
    );
    pointer-events: none;
}

/* Vignette for cinematic feel */
.vignette {
    position: fixed;
    inset: 0;
    z-index: 3;
    background: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        transparent 40%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 1.5rem;
    padding-top: calc(1.5rem + env(safe-area-inset-top));
    padding-left: calc(1.5rem + env(safe-area-inset-left));
}

.logo {
    max-width: clamp(100px, 18vw, 160px);
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    opacity: 0.95;
}

/* Main content */
.main {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.hero {
    max-width: 720px;
    margin-bottom: 3rem;
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 245, 244, 0.6);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.eyebrow.revealed {
    opacity: 1;
    transform: translateY(0);
}

.headline {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #f5f5f4;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease 0.4s, transform 0.9s ease 0.4s;
}

.headline.revealed {
    opacity: 1;
    transform: translateY(0);
}

.subline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(245, 245, 244, 0.7);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.subline.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* CTA block */
.cta-block {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease 0.9s, transform 0.9s ease 0.9s;
}

.cta-block.revealed {
    opacity: 1;
    transform: translateY(0);
}

.notify-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 360px;
    margin: 0 auto 0.75rem;
    border: 1px solid rgba(245, 245, 244, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.notify-form:focus-within {
    border-color: rgba(245, 245, 244, 0.3);
    box-shadow: 0 0 0 1px rgba(245, 245, 244, 0.1);
}

.email-input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #f5f5f4;
    background: transparent;
    border: none;
    outline: none;
}

.email-input::placeholder {
    color: rgba(245, 245, 244, 0.4);
}

.submit-btn {
    padding: 1rem 1.25rem;
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f5f5f4;
    background: rgba(245, 245, 244, 0.1);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.submit-btn:hover {
    background: rgba(245, 245, 244, 0.2);
}

.submit-btn:active {
    background: rgba(245, 245, 244, 0.15);
}

.form-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(245, 245, 244, 0.35);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1rem 2rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(245, 245, 244, 0.35);
}

.footer-dot {
    opacity: 0.5;
}

/* Success state */
.notify-form.success .email-input,
.notify-form.success .submit-btn {
    pointer-events: none;
}

.notify-form.success .btn-text {
    font-size: 0;
}

.notify-form.success .btn-text::after {
    content: '✓';
    font-size: 1.25rem;
    display: inline-block;
}

/* Mobile */
@media (max-width: 768px) {
    .main {
        padding: 5rem 1.5rem 5rem;
    }

    .hero {
        margin-bottom: 2.5rem;
    }

    .notify-form {
        max-width: 100%;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gradient-mesh {
        animation: none;
    }

    .eyebrow,
    .headline,
    .subline,
    .cta-block {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .eyebrow.revealed,
    .headline.revealed,
    .subline.revealed,
    .cta-block.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Video loading fallback */
.video-container.loading {
    background: #050508;
}

.video-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
