/* ============================================================
   LANDING.CSS — Public marketing / hero (logged-out home)
   Pair with landing.js for scroll & pointer parallax.
   ============================================================ */

.landing-page {
    --landing-accent: #4f9eff;
    --landing-accent-2: #7c5cff;
    --landing-glow: rgba(79, 158, 255, 0.35);
}

.landing-page .navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.landing-page .navbar.scrolled {
    background: var(--bg-overlay) !important;
    border-bottom: 1px solid var(--border) !important;
    backdrop-filter: blur(12px);
}

.landing-main {
    padding: 0 !important;
    max-width: none;
}

.landing-main > .container {
    max-width: none;
    padding: 0;
    width: 100%;
}

/* ── Hero shell ───────────────────────────────────────────── */
.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 1.5rem 4rem;
}

.landing-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.landing-hero__mesh {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(79, 158, 255, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 20%, rgba(124, 92, 255, 0.18), transparent 50%),
        radial-gradient(ellipse 60% 70% at 50% 90%, rgba(8, 145, 178, 0.12), transparent 55%),
        linear-gradient(165deg, var(--bg-page) 0%, #0a0e14 45%, #121a28 100%);
    animation: landing-mesh-shift 18s ease-in-out infinite alternate;
}

@keyframes landing-mesh-shift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-2%, -1%); }
}

.landing-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(var(--border-strong) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-strong) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.landing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    will-change: transform;
}

.landing-orb--1 {
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    top: 10%;
    left: 5%;
    background: var(--landing-accent);
    animation: landing-float-1 14s ease-in-out infinite;
}

.landing-orb--2 {
    width: min(320px, 45vw);
    height: min(320px, 45vw);
    top: 55%;
    right: 8%;
    background: var(--landing-accent-2);
    animation: landing-float-2 16s ease-in-out infinite;
}

.landing-orb--3 {
    width: min(200px, 30vw);
    height: min(200px, 30vw);
    bottom: 15%;
    left: 40%;
    background: var(--info);
    animation: landing-float-3 12s ease-in-out infinite;
}

@keyframes landing-float-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -40px); }
}

@keyframes landing-float-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-35px, 25px); }
}

@keyframes landing-float-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 30px); }
}

.landing-hero__content {
    position: relative;
    z-index: 2;
    max-width: 52rem;
    text-align: center;
}

.landing-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--landing-accent);
    background: rgba(79, 158, 255, 0.12);
    border: 1px solid rgba(79, 158, 255, 0.25);
    margin-bottom: 1.25rem;
}

.landing-hero__title {
    font-size: clamp(2.25rem, 5vw + 1rem, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html[data-bs-theme="dark"] .landing-hero__title {
    background: linear-gradient(135deg, #ffffff 0%, #8b95a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.landing-hero__lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 38rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.landing-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.landing-btn-primary {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px var(--landing-glow);
    transition: transform var(--t-fast), box-shadow var(--t-base);
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--landing-glow);
}

.landing-btn-secondary {
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    background: var(--bg-surface);
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.landing-btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--landing-accent);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.landing-hero__hint {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.landing-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    animation: landing-bounce 2s ease-in-out infinite;
}

@keyframes landing-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ── Paths section ────────────────────────────────────────── */
.landing-section {
    padding: 5rem 1.5rem;
    position: relative;
}

.landing-section--alt {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.landing-section__header {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 3rem;
}

.landing-section__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.landing-section__lead {
    color: var(--text-secondary);
    margin: 0;
}

.landing-paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

.landing-path-card {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: transform var(--t-slow), border-color var(--t-base), box-shadow var(--t-base);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.landing-path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--landing-accent), var(--landing-accent-2));
    opacity: 0;
    transition: opacity var(--t-base);
}

.landing-path-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 158, 255, 0.35);
    box-shadow: var(--shadow-lg);
}

.landing-path-card:hover::before {
    opacity: 1;
}

.landing-path-card__icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.landing-path-card--crew .landing-path-card__icon {
    background: var(--warning-subtle);
    color: var(--warning);
}

.landing-path-card--production .landing-path-card__icon {
    background: var(--accent-subtle);
    color: var(--accent);
}

.landing-path-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.landing-path-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1.25rem;
}

/* ── Features strip ───────────────────────────────────────── */
.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 64rem;
    margin: 0 auto;
}

.landing-feature {
    text-align: center;
    padding: 1.5rem 1rem;
}

.landing-feature i {
    font-size: 1.75rem;
    color: var(--landing-accent);
    margin-bottom: 0.75rem;
    display: block;
}

.landing-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.landing-feature p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Final CTA band ───────────────────────────────────────── */
.landing-cta-band {
    text-align: center;
    padding: 4rem 1.5rem 5rem;
    max-width: 40rem;
    margin: 0 auto;
}

.landing-cta-band h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.landing-cta-band p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .landing-hero__mesh,
    .landing-orb,
    .landing-scroll-hint {
        animation: none !important;
    }

    .landing-path-card:hover {
        transform: none;
    }
}
