/* Santa atFieldActivated landing — North Pole night theme.
   Decorative layers only; all content stays readable without them. */

:root {
    --night-900: #07142b;
    --night-800: #0b1d3a;
    --gold: #f2c14e;
    --gold-soft: #ffe3a3;
    --holly: #d64545;
    --paper: #fdf6e3;
    --ink: #2f2a26;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--night-900);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

.font-christmas {
    font-family: 'Mountains of Christmas', 'Inter', cursive;
}

/* --- Sky, stars, snow ------------------------------------------------ */

.aurora-sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 45% at 15% 0%, rgba(64, 224, 160, 0.16), transparent 70%),
        radial-gradient(55% 40% at 85% 10%, rgba(150, 110, 255, 0.14), transparent 70%),
        radial-gradient(70% 55% at 50% -10%, rgba(56, 130, 246, 0.18), transparent 75%),
        linear-gradient(180deg, #0b1d3a 0%, #07142b 55%, #050e1f 100%);
}

#starfield,
#snowfield {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 9999px;
    opacity: 0.7;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.9; }
}

.snowflake {
    position: absolute;
    top: -12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    filter: blur(0.5px);
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% { transform: translate3d(0, -5vh, 0); }
    100% { transform: translate3d(-6vw, 108vh, 0); }
}

/* --- Buttons, badges, links ------------------------------------------ */

.btn-gold {
    display: inline-block;
    background: linear-gradient(180deg, #ffd97a, #f2b53c);
    color: #231a05;
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    border-radius: 9999px;
    box-shadow: 0 6px 18px rgba(242, 181, 60, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(242, 181, 60, 0.45);
}

.btn-ghost {
    display: inline-block;
    border: 1px solid rgba(255, 227, 163, 0.55);
    color: var(--gold-soft);
    padding: 0.8rem 1.6rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.btn-ghost:hover {
    background: rgba(255, 227, 163, 0.12);
}

a:focus-visible,
.btn-gold:focus-visible,
.btn-ghost:focus-visible {
    outline: 3px solid var(--gold-soft);
    outline-offset: 2px;
}

.badge-honest {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 227, 163, 0.6);
    background: rgba(255, 227, 163, 0.1);
    color: var(--gold-soft);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
}

.parent-note {
    border-left: 3px solid var(--gold);
    background: rgba(242, 193, 78, 0.08);
    color: #f5ead0;
    padding: 0.7rem 1rem;
    border-radius: 0 0.6rem 0.6rem 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* --- Letter-to-Santa card (hero visual) ------------------------------- */

.letter-card {
    position: relative;
    background: var(--paper);
    background-image: repeating-linear-gradient(
        180deg,
        transparent 0 30px,
        rgba(120, 90, 40, 0.08) 30px 31px
    );
    color: var(--ink);
    border-radius: 14px;
    padding: 2rem;
    transform: rotate(-1.5deg);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.wax-seal {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: radial-gradient(circle at 35% 30%, #e5644f, #b3372a 70%);
    color: #ffe9d6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.4rem;
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.illustrative-tag {
    display: inline-block;
    margin-top: 1.1rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(179, 55, 42, 0.12);
    color: #8f2c22;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-weight: 600;
}

/* --- Example conversation (demo) -------------------------------------- */

.chat-demo {
    background: rgba(7, 20, 43, 0.78);
    border: 1px solid rgba(255, 227, 163, 0.25);
    border-radius: 1.25rem;
    backdrop-filter: blur(4px);
}

.bubble-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    color: #cdd9ec;
}

.user-bubble,
.ai-bubble {
    max-width: 88%;
    padding: 0.8rem 1.05rem;
    border-radius: 1rem;
    line-height: 1.55;
    font-size: 0.98rem;
}

.user-bubble {
    background: #27466e;
    color: #eaf2ff;
    margin-left: auto;
    border-bottom-right-radius: 0.25rem;
}

.ai-bubble {
    background: var(--paper);
    color: var(--ink);
    border-left: 4px solid var(--holly);
    border-bottom-left-radius: 0.25rem;
}

/* --- Numbered steps ---------------------------------------------------- */

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 9999px;
    background: var(--holly);
    color: #fff5ee;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Section cards ------------------------------------------------------ */

.night-card {
    background: rgba(11, 29, 58, 0.72);
    border: 1px solid rgba(255, 227, 163, 0.22);
    border-radius: 1rem;
}

/* --- Reduced motion ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .star,
    .snowflake {
        animation: none !important;
    }

    #snowfield {
        display: none;
    }

    .letter-card {
        transform: none;
    }

    .btn-gold:hover {
        transform: none;
    }
}
