/* ==========================================================================
   Home Landing Page (unauthenticated visitors)
   ========================================================================== */

/* ---- Animated background blobs (no gradients per design rules) ---------- */
.landing-stage {
    position: relative;
    overflow: hidden;
}

.landing-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    animation: blobFloat 18s ease-in-out infinite;
}

.landing-blob.b1 { width: 480px; height: 480px; top: -120px; left: -120px;  background: rgba(var(--bs-primary-rgb), 0.55); }
.landing-blob.b2 { width: 380px; height: 380px; top: 30%;    right: -140px; background: rgba(var(--bs-success-rgb), 0.45); animation-delay: -6s; }
.landing-blob.b3 { width: 420px; height: 420px; bottom: -160px; left: 30%;  background: rgba(var(--bs-warning-rgb), 0.35); animation-delay: -12s; }

[data-bs-theme="dark"] .landing-blob { opacity: 0.45; }

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.08); }
    66%      { transform: translate(-30px, 25px) scale(0.95); }
}

/* ---- Hero ---------------------------------------------------------------- */
.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

    .landing-hero .hero-inner { position: relative; z-index: 1; }

    .landing-hero .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 14px;
        border-radius: 999px;
        background: rgba(var(--bs-primary-rgb), 0.1);
        color: var(--bs-primary);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin-bottom: 24px;
    }

        .landing-hero .eyebrow .pulse-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--bs-success);
            animation: pulseDot 1.6s ease-in-out infinite;
        }

@keyframes pulseDot {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.6); opacity: 0.4; }
}

.landing-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

    .landing-hero h1 .accent {
        color: var(--bs-primary);
        position: relative;
        white-space: nowrap;
    }

        .landing-hero h1 .accent::after {
            content: "";
            position: absolute;
            left: 0; right: 0; bottom: -4px;
            height: 8px;
            background: rgba(var(--bs-primary-rgb), 0.18);
            border-radius: 4px;
            z-index: -1;
        }

.landing-hero .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 540px;
}

/* ---- 18:00 Day-clock ---------------------------------------------------- */
.day-clock {
    position: relative;
    width: min(100%, 480px);
    aspect-ratio: 1;
    margin: 0 auto;
}

    .day-clock svg { width: 100%; height: 100%; }

    .day-clock .clock-track   { fill: none; stroke: rgba(var(--bs-body-color-rgb, 33, 37, 41), 0.08); stroke-width: 14; }
    .day-clock .clock-segment { fill: none; stroke: var(--bs-primary); stroke-width: 14; stroke-linecap: round;
                                stroke-dasharray: 600; stroke-dashoffset: 600;
                                animation: drawArc 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards; }

@keyframes drawArc {
    to { stroke-dashoffset: 0; }
}

.day-clock .danger-zone {
    fill: none;
    stroke: var(--bs-danger);
    stroke-width: 18;
    stroke-linecap: round;
    opacity: 0;
    animation: dangerPulse 2.4s ease-in-out 4s infinite;
}

@keyframes dangerPulse {
    0%, 100% { opacity: 0.35; stroke-width: 18; }
    50%      { opacity: 0.85; stroke-width: 26; }
}

.day-clock .hour-label {
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    font-size: 14px;
    fill: var(--bs-body-color);
    opacity: 0.55;
}

    .day-clock .hour-label.danger {
        fill: var(--bs-danger);
        opacity: 1;
        font-weight: 800;
        font-size: 18px;
    }

.day-clock .center-time {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 64px;
    fill: var(--bs-body-color);
    text-anchor: middle;
}

.day-clock .center-label {
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    font-size: 14px;
    fill: var(--bs-danger);
    text-anchor: middle;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Floating chip cards around the clock */
.day-clock .chip {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: chipFloat 6s ease-in-out infinite;
    white-space: nowrap;
}

[data-bs-theme="dark"] .day-clock .chip {
    background: rgba(40, 44, 52, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

.day-clock .chip i { font-size: 18px; }

.day-clock .chip.c1 { top: 8%;  left: -6%;  animation-delay: -0s; }
.day-clock .chip.c2 { top: 38%; right: -8%; animation-delay: -2s; }
.day-clock .chip.c3 { bottom: 10%; left: 4%; animation-delay: -4s; }

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ---- CTAs --------------------------------------------------------------- */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--bs-primary);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 14px 40px rgba(var(--bs-primary-rgb), 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

    .btn-hero-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 48px rgba(var(--bs-primary-rgb), 0.45);
        color: #fff !important;
    }

    .btn-hero-primary i { transition: transform 0.25s ease; }
    .btn-hero-primary:hover i { transform: translateX(4px); }

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--bs-body-color);
    text-decoration: none;
    transition: background 0.2s ease;
}

    .btn-hero-ghost:hover {
        background: rgba(var(--bs-body-color-rgb, 33, 37, 41), 0.06);
        color: var(--bs-body-color);
    }

/* ---- Live stats strip --------------------------------------------------- */
.stats-strip {
    background: rgba(var(--bs-primary-rgb), 0.04);
    border-top: 1px solid rgba(var(--bs-body-color-rgb, 33, 37, 41), 0.06);
    border-bottom: 1px solid rgba(var(--bs-body-color-rgb, 33, 37, 41), 0.06);
    padding: 32px 0;
}

.stat-tile {
    text-align: center;
    padding: 12px;
}

    .stat-tile .num {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        line-height: 1;
        color: var(--bs-primary);
        font-variant-numeric: tabular-nums;
    }

    .stat-tile .label {
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--bs-secondary-color);
        margin-top: 8px;
    }

/* ---- Cinematic alternating sections ------------------------------------- */
.cinema-section { padding: 100px 0; }

.cinema-row { align-items: center; }

.cinema-art {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    background: rgba(var(--bs-primary-rgb), 0.08);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cinema-art .art-icon {
        font-size: 180px;
        color: var(--bs-primary);
        opacity: 0.85;
    }

    .cinema-art::before,
    .cinema-art::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(40px);
        opacity: 0.6;
    }

    .cinema-art::before { width: 220px; height: 220px; top: -60px; right: -60px; background: rgba(var(--bs-warning-rgb), 0.5); }
    .cinema-art::after  { width: 260px; height: 260px; bottom: -80px; left: -80px; background: rgba(var(--bs-info-rgb), 0.45); }

.cinema-section .pillar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.cinema-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.cinema-section .pillar-points {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
}

    .cinema-section .pillar-points li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 8px 0;
        font-size: 1rem;
    }

        .cinema-section .pillar-points li i {
            flex-shrink: 0;
            color: var(--bs-success);
            font-size: 22px;
            margin-top: 1px;
        }

/* ---- Feature grid ------------------------------------------------------- */
.landing-features { padding: 100px 0; }

.feature-tile {
    position: relative;
    padding: 32px 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

[data-bs-theme="dark"] .feature-tile {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

    .feature-tile:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    }

    .feature-tile .icon-wrap {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 18px;
    }

    .feature-tile .icon-wrap i { font-size: 28px; }

    .feature-tile h3 {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .feature-tile p {
        font-size: 0.95rem;
        color: var(--bs-secondary-color);
        margin-bottom: 0;
        line-height: 1.6;
    }

    .feature-tile .icon-primary { background: rgba(var(--bs-primary-rgb), 0.12); color: var(--bs-primary); }
    .feature-tile .icon-success { background: rgba(var(--bs-success-rgb), 0.12); color: var(--bs-success); }
    .feature-tile .icon-info    { background: rgba(var(--bs-info-rgb),    0.12); color: var(--bs-info); }
    .feature-tile .icon-warning { background: rgba(var(--bs-warning-rgb), 0.12); color: var(--bs-warning); }
    .feature-tile .icon-violet  { background: rgba(123, 86, 230, 0.12);          color: #7b56e6; }
    .feature-tile .icon-rose    { background: rgba(232, 72, 110, 0.12);          color: #e8486e; }

/* ---- How it works ------------------------------------------------------- */
.how-section { padding: 100px 0; }

.how-rail {
    position: relative;
}

@media (min-width: 768px) {
    .how-rail::before {
        content: "";
        position: absolute;
        left: 8%; right: 8%; top: 63px;
        height: 2px;
        background: repeating-linear-gradient(90deg,
            rgba(var(--bs-primary-rgb), 0.4) 0 8px,
            transparent 8px 16px);
        z-index: 0;
    }
}

.how-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

    .how-step .step-circle {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: var(--bs-body-bg);
        border: 3px solid var(--bs-primary);
        color: var(--bs-primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 20px;
        box-shadow: 0 8px 24px rgba(var(--bs-primary-rgb), 0.2);
    }

/* ---- Big CTA ------------------------------------------------------------ */
.landing-cta {
    padding: 100px 0;
}

.landing-cta-inner {
    position: relative;
    border-radius: 32px;
    padding: 80px 40px;
    background: rgba(var(--bs-primary-rgb), 0.06);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.15);
    overflow: hidden;
    text-align: center;
}

    .landing-cta-inner::before,
    .landing-cta-inner::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(60px);
    }

    .landing-cta-inner::before { width: 280px; height: 280px; top: -100px; left: -80px;  background: rgba(var(--bs-primary-rgb), 0.3); }
    .landing-cta-inner::after  { width: 320px; height: 320px; bottom: -120px; right: -80px; background: rgba(var(--bs-success-rgb), 0.25); }

    .landing-cta-inner h2 {
        position: relative;
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        margin-bottom: 16px;
        letter-spacing: -0.01em;
    }

    .landing-cta-inner p {
        position: relative;
        font-size: 1.15rem;
        color: var(--bs-secondary-color);
        margin-bottom: 32px;
    }

    .landing-cta-inner .btn-hero-primary { position: relative; }

/* ---- Mobile tweaks ------------------------------------------------------ */
@media (max-width: 991px) {
    .landing-hero { padding: 100px 0 60px; min-height: auto; text-align: center; }
    .landing-hero .lead { margin-left: auto; margin-right: auto; }
    .landing-hero .hero-ctas { justify-content: center; }
    .day-clock { margin-top: 60px; max-width: 360px; }
    .cinema-section, .landing-features, .how-section, .landing-cta { padding: 60px 0; }
    .cinema-row.reverse { flex-direction: column-reverse; }
    .landing-cta-inner { padding: 50px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .landing-blob,
    .day-clock .clock-segment,
    .day-clock .danger-zone,
    .day-clock .chip,
    .landing-hero .pulse-dot { animation: none !important; }
    .day-clock .clock-segment { stroke-dashoffset: 360; }
}
