/*
|==========================================================================
| LANDING PAGES — additions on top of tokens.css / components.css
|==========================================================================
|
| Only loaded on /l/{slug} pages. References the same design tokens as
| the rest of the site, plus the per-page theme override injected inline
| in resources/views/landing/show.blade.php.
|
*/

body.landing-page {
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* ── Header / Footer (minimal, distraction-free) ─────────────────────── */
.landing-header {
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.landing-footer {
    padding-block: var(--space-8);
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.landing-hero {
    background-size: cover;
    background-position: center;
    padding-block: var(--space-24);
}

.landing-hero-content {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.landing-hero-content--on-image,
.landing-hero-content--on-image h1 {
    color: #fff;
}

.landing-hero-subheadline {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
}

.landing-hero-content--on-image .landing-hero-subheadline {
    color: rgba(255, 255, 255, 0.9);
}

/* ── Gradient CTA banner ──────────────────────────────────────────────── */
.landing-gradient-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.btn-invert {
    background-color: #fff;
    color: var(--color-primary);
}
.btn-invert:hover {
    background-color: var(--color-bg-alt);
}

.btn-outline-invert {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}
.btn-outline-invert:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ── FAQ accordion (native <details>, no JS needed) ──────────────────── */
.landing-faq-item {
    padding-inline: var(--space-5);
}

.landing-faq-question {
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    padding-block: var(--space-4);
    list-style: none;
}

.landing-faq-question::-webkit-details-marker {
    display: none;
}

.landing-faq-question::after {
    content: '+';
    float: inline-end;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.landing-faq-item[open] .landing-faq-question::after {
    content: '−';
}

.landing-faq-answer {
    padding-bottom: var(--space-4);
    line-height: var(--line-height-relaxed);
}

/* ── Countdown ────────────────────────────────────────────────────────── */
.landing-countdown {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.landing-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    padding: var(--space-3) var(--space-2);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.landing-countdown-item span {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.2;
}

.landing-countdown-item small {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/* ── Partner logos ────────────────────────────────────────────────────── */
.landing-partner-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter var(--transition-normal), opacity var(--transition-normal);
}
.landing-partner-logo:hover {
    filter: none;
    opacity: 1;
}

/* ── Video ────────────────────────────────────────────────────────────── */
.landing-video-wrapper {
    position: relative;
    padding-top: 56.25%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.landing-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Floating / sticky CTA ────────────────────────────────────────────── */
.landing-floating-cta {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: var(--z-fixed);
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .landing-floating-cta {
        inset-inline: auto;
        inset-inline-end: var(--space-6);
        bottom: var(--space-6);
        width: auto;
        min-width: 220px;
        border: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
}

/* ── Mobile spacing so the floating bar never covers content ─────────── */
@media (max-width: 767px) {
    body.landing-page {
        padding-bottom: 4.5rem;
    }
}

/* ==========================================================================
   PREMIUM & DYNAMIC DESIGN SYSTEM ADDITIONS
   ========================================================================== */

/* ── Section Background Types ────────────────────────────────────────── */
.landing-section--white {
    background-color: var(--color-bg) !important;
}
.landing-section--alt {
    background-color: var(--color-bg-alt) !important;
}
.landing-section--primary {
    background-color: var(--color-primary) !important;
    color: var(--color-on-brand, #fff) !important;
}
.landing-section--primary h2,
.landing-section--primary h3,
.landing-section--primary p,
.landing-section--primary span,
.landing-section--primary div,
.landing-section--primary .card-text {
    color: var(--color-on-brand, #fff) !important;
}
.landing-section--primary .card {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}
.landing-section--gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) !important;
    color: var(--color-on-brand, #fff) !important;
}
.landing-section--gradient h2,
.landing-section--gradient h3,
.landing-section--gradient p,
.landing-section--gradient span,
.landing-section--gradient div,
.landing-section--gradient .card-text {
    color: var(--color-on-brand, #fff) !important;
}
.landing-section--gradient .card {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}
.landing-section--dark {
    background-color: #0b1120 !important;
    color: #f4f7fc !important;
}
.landing-section--dark h2,
.landing-section--dark h3 {
    color: #ffffff !important;
}
.landing-section--dark p,
.landing-section--dark span,
.landing-section--dark div,
.landing-section--dark .card-text {
    color: #c3cee2 !important;
}
.landing-section--dark .card {
    background-color: #141d33 !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    box-shadow: var(--shadow-sm) !important;
}
.landing-section--glass {
    position: relative;
    background-color: var(--color-bg) !important;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 40%) !important;
}
.landing-section--glass .card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}
[data-theme="dark"] .landing-section--glass .card {
    background: rgba(20, 29, 51, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
}

/* ── Padding Sizes ──────────────────────────────────────────────────── */
.landing-section--padding-sm {
    padding-block: var(--space-8) !important;
}
.landing-section--padding-md {
    padding-block: var(--space-16) !important;
}
.landing-section--padding-lg {
    padding-block: var(--space-24) !important;
}

/* ── Border Radius overrides for blocks/cards ───────────────────────── */
.landing-card--radius-none,
.landing-card--radius-none .card,
.landing-card--radius-none img,
.landing-card--radius-none input,
.landing-card--radius-none textarea,
.landing-card--radius-none button,
.landing-card--radius-none .btn {
    border-radius: 0px !important;
}
.landing-card--radius-md,
.landing-card--radius-md .card,
.landing-card--radius-md img {
    border-radius: var(--radius-lg) !important;
}
.landing-card--radius-full,
.landing-card--radius-full .card,
.landing-card--radius-full img {
    border-radius: var(--radius-2xl) !important;
}
.landing-card--radius-full .btn,
.landing-card--radius-full button {
    border-radius: var(--radius-full) !important;
}

/* ── Scroll Animations ──────────────────────────────────────────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay classes for grid items */
.animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.animate-on-scroll:nth-child(6) { transition-delay: 500ms; }

/* ── Micro-animations & Interactive Lift ────────────────────────────── */
.card {
    transition: transform var(--transition-bounce), box-shadow var(--transition-bounce), border-color var(--transition-normal);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* If the minimal theme style is active, we disable lift */
[data-style="minimal"] .card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--color-primary) !important;
}

/* ── Lucide SVG Icons Integration ───────────────────────────────────── */
.landing-page svg.lucide {
    width: 2.25rem;
    height: 2.25rem;
    stroke: var(--color-primary);
    stroke-width: 1.75px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: inline-block;
    vertical-align: middle;
    transition: transform var(--transition-bounce), stroke var(--transition-normal);
}
.landing-section--primary svg.lucide,
.landing-section--gradient svg.lucide {
    stroke: var(--color-on-brand, #fff) !important;
}
.card:hover svg.lucide {
    transform: scale(1.15) rotate(5deg);
}
