/* ── Landing Page: Cosmic gateway ──────────────────── */

.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* 3D scene background */
#landing-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(70, 30, 120, 0.55) 0%, rgba(70, 30, 120, 0) 55%),
        radial-gradient(ellipse at 80% 90%, rgba(20, 60, 140, 0.5) 0%, rgba(20, 60, 140, 0) 55%),
        radial-gradient(circle at 50% 50%, #0a0820 0%, #050512 60%, #000006 100%);
    background-attachment: fixed;
}

#landing-scene canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Remove old static background */
.landing::before {
    display: none;
}

/* Subtle vignette overlay on top of 3D scene: darkened for the new colorful background */
.landing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(3, 1, 12, 0) 0%, rgba(2, 2, 10, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.landing-content {
    text-align: center;
    max-width: 550px;
    position: relative;
    z-index: 5;
}

.landing-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 30px rgba(140, 120, 255, 0.3), 0 0 60px rgba(100, 80, 200, 0.15);
    opacity: 0;
    animation: rise 1.4s ease-out 0.3s forwards;
}

.landing-subtext {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: rgba(220, 210, 240, 0.8);
    font-weight: 300;
    font-style: italic;
    margin-top: clamp(5rem, 22vw, 14rem);
    margin-bottom: 3rem;
    text-shadow: 0 1px 20px rgba(100, 80, 200, 0.2);
    opacity: 0;
    animation: rise 1.4s ease-out 0.7s forwards;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ── Date Selectors ────────────────────────────────── */

.birthday-form {
    opacity: 0;
    animation: rise 1.4s ease-out 1.1s forwards;
}

.date-selectors {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.date-select {
    background: rgba(160, 140, 255, 0.06);
    border: 1px solid rgba(180, 160, 255, 0.2);
    color: var(--text);
    color-scheme: dark;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a09a90' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.2rem;
    backdrop-filter: blur(12px);
}

.date-select:focus {
    border-color: rgba(200, 180, 255, 0.5);
    box-shadow: 0 0 20px rgba(160, 140, 255, 0.15);
}

.date-select:hover {
    border-color: rgba(200, 180, 255, 0.35);
}

.date-select option {
    background: #0a0818;
    color: var(--text);
}

#birth-month {
    min-width: 130px;
}

#birth-day {
    min-width: 80px;
}

#birth-year {
    min-width: 90px;
}

.birthday-input {
    background: rgba(160, 140, 255, 0.06);
    border: 1px solid rgba(180, 160, 255, 0.2);
    color: var(--text);
    color-scheme: dark;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    outline: none;
    width: 100%;
    max-width: 260px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.birthday-input:focus {
    border-color: rgba(200, 180, 255, 0.5);
    box-shadow: 0 0 20px rgba(160, 140, 255, 0.15);
}

/* ── Show Me Button: glowing, inviting ──────────────── */

.show-me-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: rgba(180, 160, 255, 0.1);
    border: 1px solid rgba(200, 185, 255, 0.4);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    text-shadow: 0 0 15px rgba(200, 180, 255, 0.4);
    animation: showMeGlow 2.5s ease-in-out infinite;
}

@keyframes showMeGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(160, 140, 255, 0.1), 0 0 50px rgba(130, 100, 255, 0.05);
        border-color: rgba(200, 185, 255, 0.35);
    }

    50% {
        box-shadow: 0 0 35px rgba(180, 160, 255, 0.25), 0 0 80px rgba(140, 120, 255, 0.1);
        border-color: rgba(220, 200, 255, 0.6);
    }
}

.show-me-btn:hover {
    background: rgba(180, 160, 255, 0.2);
    border-color: rgba(230, 220, 255, 0.7);
    transform: scale(1.05) translateY(-2px);
    animation: none;
    box-shadow: 0 4px 40px rgba(180, 160, 255, 0.3), 0 0 80px rgba(140, 120, 255, 0.12);
    letter-spacing: 0.3em;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

/* ── Top corners: logo + blog link, blending with the cosmic backdrop ── */
.landing-logo-link {
    position: fixed;
    top: 1.2rem;
    left: 1.5rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    opacity: 0.92;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.landing-logo-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}
.landing-logo-link img {
    height: 52px;
    width: auto;
    border-radius: 6px;
    filter: drop-shadow(0 0 12px rgba(160, 130, 255, 0.25));
}
.landing-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: rgba(232, 228, 223, 0.85);
    letter-spacing: 0.02em;
    text-shadow: 0 0 18px rgba(160, 130, 255, 0.2);
}

.landing-blog-link {
    position: fixed;
    top: 1.4rem;
    right: 1.5rem;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(220, 210, 255, 0.55);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    transition: color 0.4s ease, letter-spacing 0.4s ease, text-shadow 0.4s ease;
}
.landing-blog-link svg {
    stroke: currentColor;
    opacity: 0.75;
    transition: opacity 0.4s ease;
}
.landing-blog-link:hover {
    color: rgba(232, 228, 223, 0.98);
    letter-spacing: 0.22em;
    text-shadow: 0 0 18px rgba(180, 160, 255, 0.35);
}
.landing-blog-link:hover svg { opacity: 1; }

@media (max-width: 600px) {
    .landing-logo-link { top: 1rem; left: 1rem; gap: 0.5rem; }
    .landing-logo-link img { height: 36px; }
    .landing-logo-text { font-size: 0.85rem; }
    .landing-blog-link { top: 1.2rem; right: 1rem; font-size: 0.65rem; padding: 0.3rem 0.4rem; }
}

/* ── Language Selector ─────────────────────────────── */

.lang-selector {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 0.15rem;
}

.lang-option {
    color: rgba(200, 190, 255, 0.4);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 300;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    transition: all 0.3s;
}

.lang-option:hover {
    color: rgba(220, 210, 255, 0.8);
}

.lang-option.active {
    color: rgba(220, 210, 255, 0.9);
}

/* ── Mode Links ────────────────────────────────────── */

.mode-links {
    margin-top: 3rem;
    opacity: 0;
    animation: rise 1.4s ease-out 1.5s forwards;
}

.mode-link {
    color: rgba(200, 190, 230, 0.5);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 300;
    transition: all 0.3s;
}

.mode-link:hover {
    color: rgba(220, 210, 255, 0.9);
}

.mode-divider {
    color: rgba(200, 190, 230, 0.15);
    margin: 0 0.5rem;
}

.input-label {
    display: block;
    color: rgba(200, 190, 230, 0.5);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

/* ── Transition Overlay ────────────────────────────── */

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s;
}

.transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}
/* Gift + memorial forms: breathing room between the last field and the button */
#gift-form .show-me-btn,
#memorial-form .show-me-btn {
    margin-top: 1.75rem;
}

.lang-option { white-space: nowrap; }

/* Phones: too narrow for logo, languages and blog link on one row, so the
   languages get their own centred row below. (Kept last so it overrides the
   base .lang-selector rule above.) */
@media (max-width: 600px) {
    .lang-selector {
        top: 4rem;
        width: max-content;
        max-width: calc(100vw - 2rem);
        flex-wrap: wrap;
        justify-content: center;
    }
}
