/* ============================================
   Teaser Page Styles (Overlay Mode)
   For Minimal Viable Teaser - Pre-Launch 2026
   ============================================ */

/* Overlay Container */
#teaser-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
    color: #F8FAFC;
    /* --text-light */
    background: rgba(0, 0, 0, 0.85);
    /* Semi-transparent backdrop */
    /* backdrop-filter: blur(8px); removed per user request */
    overflow-y: auto;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#teaser-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Close/Enter Button */
.enter-site-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 10001;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.enter-site-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Main content wrapper within overlay */
/* Main content wrapper within overlay - NOW A MODAL CARD */
.teaser-page {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    border-radius: 40px;
    /* Increased rounded corners */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
    /* overflow: hidden; Removed to ensure close button isn't clipped if something goes wrong, though inside padding it should be fine. */
    animation: floatUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Icon Button */
.teaser-close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 100;
    /* Increased z-index */
    pointer-events: auto;
    /* Ensure clickable */
}

.teaser-close-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

/* Magical floating particles effect */
.teaser-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Logo */
.teaser-logo {
    width: 120px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.2));
    position: relative;
    z-index: 1;
}

/* Main content container */
.teaser-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

/* Headline */
.teaser-headline {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Subline */
.teaser-subline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.teaser-coming {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--green-primary, #4CAF50);
    font-weight: 600;
    margin-bottom: 40px;
}

/* Email Form */
.teaser-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto 20px;
}

.teaser-form input[type="email"] {
    padding: 18px 20px;
    min-height: 56px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.teaser-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.teaser-form input[type="email"]:focus {
    outline: none;
    border-color: var(--green-primary, #4CAF50);
    background: rgba(255, 255, 255, 0.15);
}

.teaser-form button {
    padding: 18px 36px;
    min-height: 56px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-primary, #4CAF50) 0%, #2E7D32 100%);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}

.teaser-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(76, 175, 80, 0.5);
}

/* Privacy note */
.teaser-privacy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
}

.teaser-privacy a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* Consent checkbox - larger touch target */
.teaser-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.teaser-consent:hover {
    background: rgba(255, 255, 255, 0.05);
}

.teaser-consent input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--green-primary, #4CAF50);
    cursor: pointer;
}

.teaser-consent a {
    color: var(--green-primary, #4CAF50);
}

/* Footer (within overlay) */
.teaser-overlay-footer {
    position: relative;
    margin-top: 40px;
    text-align: center;
    z-index: 1;
}

.teaser-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.teaser-social a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 8px;
}

.teaser-social a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.teaser-legal {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.8rem;
}

.teaser-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    padding: 10px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.teaser-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .teaser-page {
        padding: 60px 20px;
        min-height: auto;
    }

    .enter-site-btn {
        display: none;
        /* Hide top text button on mobile, rely on X icon */
    }

    .teaser-logo {
        width: 100px;
    }

    /* Make close button larger and more visible on mobile */
    .teaser-close-icon {
        width: 48px;
        height: 48px;
        top: 16px;
        right: 16px;
        background: rgba(255, 255, 255, 0.15);
    }

    /* Form inputs - full width on mobile */
    .teaser-form input[type="email"],
    .teaser-form button {
        font-size: 1rem;
        padding: 16px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .teaser-page::before {
        animation: none;
    }
}

/* ============================================
   WORK IN PROGRESS INDICATOR
   ============================================ */
.teaser-progress {
    margin: 32px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.teaser-progress-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 16px;
}

/* Pulsing dot to show activity */
.progress-pulse {
    width: 10px;
    height: 10px;
    background: var(--green-primary, #4CAF50);
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
    box-shadow: 0 0 8px var(--green-primary, #4CAF50);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Progress bar container */
.teaser-progress-bar-container {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Animated fill */
.teaser-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--green-primary, #4CAF50) 0%, #81C784 100%);
    border-radius: 10px;
    transition: width 0.2s linear;
    position: relative;
}

/* Shine effect on progress bar */
.teaser-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Note text below bar */
.teaser-progress-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}