/* Landing home — premium redesign (body.landing-home) */

:root {
    --landing-navy: #0c2356;
    --landing-navy-deep: #071833;
    --landing-green: #1b753a;
    --landing-green-light: #34d399;
    --landing-surface: #ffffff;
    --landing-muted: #64748b;
    --landing-border: #e2e8f0;
    --landing-shadow: 0 24px 60px rgba(12, 35, 86, 0.12);
    --landing-radius: 20px;
    --landing-font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

body.landing-home {
    font-family: var(--landing-font);
    line-height: 1.55;
    background: #f0f4fa;
    color: #0f172a;
    overflow-x: hidden;
}

html:has(body.landing-home) {
    scroll-behavior: smooth;
}

body.landing-home .section-header {
    background: rgba(7, 24, 51, 0.82);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 40px rgba(7, 24, 51, 0.2);
    border-bottom: none;
}

body.landing-home .navbar {
    padding: 0.7rem 0;
    background: transparent !important;
}

body.landing-home .navbar-brand {
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    color: #ffffff !important;
    font-size: 1.15rem !important;
}

body.landing-home .nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78) !important;
    border-radius: 10px;
    padding: 0.5rem 0.9rem !important;
    transition: all 0.2s ease;
}

body.landing-home .nav-link:hover,
body.landing-home .nav-link:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}

body.landing-home footer {
    background: var(--landing-navy-deep) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 3.5rem !important;
}

body.landing-home footer h5 {
    color: var(--landing-green-light) !important;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.landing-home .landing-page {
    padding-top: 5.25rem;
}

.landing-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Reveal animations */
@keyframes landing-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes landing-glow-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes landing-shine {
    0% { transform: translateX(-120%) rotate(12deg); }
    100% { transform: translateX(220%) rotate(12deg); }
}

@keyframes landing-scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* Scroll & load reveal animations */
.landing-animate,
.landing-animate--scroll {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--reveal-delay, 0) * 1ms);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.landing-animate.is-visible,
.landing-animate--scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.landing-scroll-hint.landing-animate {
    transform: translate3d(-50%, 36px, 0);
}

.landing-scroll-hint.landing-animate.is-visible {
    transform: translate3d(-50%, 0, 0);
}

/* Hero */
.landing-hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 5rem;
    background:
        radial-gradient(ellipse 100% 80% at 50% -20%, rgba(52, 211, 153, 0.15) 0%, transparent 50%),
        linear-gradient(155deg, var(--landing-navy-deep) 0%, var(--landing-navy) 45%, #0a2d5c 100%);
    color: #ffffff;
}

.landing-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: landing-glow-drift 12s ease-in-out infinite;
}

.landing-hero__glow--a {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: rgba(59, 130, 246, 0.35);
}

.landing-hero__glow--b {
    width: 320px;
    height: 320px;
    bottom: -60px;
    left: -60px;
    background: rgba(27, 117, 58, 0.4);
    animation-delay: -4s;
}

.landing-hero__glow--c {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 45%;
    background: rgba(139, 92, 246, 0.2);
    animation-delay: -8s;
}

.landing-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.landing-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.landing-hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--landing-green-light);
    box-shadow: 0 0 12px var(--landing-green-light);
    animation: landing-scroll-bounce 2s ease-in-out infinite;
}

.landing-hero__title {
    margin: 0 0 1.25rem;
    font-size: clamp(2.25rem, 5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.landing-hero__title-accent {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 40%, #a7f3d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-hero__subtitle {
    margin: 0 0 1.75rem;
    max-width: 480px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
}

.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.22s ease;
    border: 2px solid transparent;
}

.landing-btn--primary {
    background: linear-gradient(135deg, var(--landing-green) 0%, #22a355 100%);
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(27, 117, 58, 0.45);
}

.landing-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(27, 117, 58, 0.55);
    color: #ffffff;
}

.landing-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.landing-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.landing-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.landing-hero__stat {
    padding: 0.75rem 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.landing-hero__stat strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

.landing-hero__stat span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Bill preview mockup */
.landing-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 340px;
}

.landing-bill-preview {
    position: relative;
    width: 100%;
    max-width: 320px;
    padding: 1.25rem;
    border-radius: 18px;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 0 1px rgba(12, 35, 86, 0.06),
        0 32px 64px rgba(0, 0, 0, 0.35),
        0 0 80px rgba(52, 211, 153, 0.15);
    color: var(--landing-navy);
    overflow: hidden;
    transform-origin: center;
    animation: none;
}

.landing-bill-preview.is-floating {
    animation: landing-float 5.5s ease-in-out infinite;
}

.landing-bill-preview__shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: landing-shine 4s ease-in-out infinite;
    pointer-events: none;
}

.landing-bill-preview__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--landing-navy);
}

.landing-bill-preview__chip {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: var(--landing-navy);
    color: #ffffff;
}

.landing-bill-preview__month {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--landing-green);
}

.landing-bill-preview__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.75rem;
    border-bottom: 1px solid #eef2f6;
}

.landing-bill-preview__row span {
    color: var(--landing-muted);
    font-weight: 500;
}

.landing-bill-preview__row strong {
    font-weight: 700;
    font-size: 0.8rem;
}

.landing-bill-preview__row--highlight {
    margin-top: 0.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: none;
}

.landing-bill-preview__row--highlight strong {
    font-size: 1.1rem;
    color: var(--landing-green);
}

.landing-bill-preview__footer {
    margin-top: 1rem;
    text-align: center;
}

.landing-bill-preview__barcode {
    height: 28px;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    background: repeating-linear-gradient(
        90deg,
        #0f172a 0 2px,
        #fff 2px 4px,
        #0f172a 4px 5px,
        #fff 5px 8px
    );
}

.landing-bill-preview__footer span {
    font-size: 0.62rem;
    color: var(--landing-muted);
    font-weight: 600;
}

.landing-hero__orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.landing-hero__orbit--1 {
    width: 380px;
    height: 380px;
    animation: landing-float 8s ease-in-out infinite reverse;
}

.landing-hero__orbit--2 {
    width: 300px;
    height: 300px;
    border-color: rgba(52, 211, 153, 0.2);
    animation: landing-float 6s ease-in-out infinite;
}

.landing-scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    text-decoration: none;
    z-index: 3;
}

.landing-scroll-hint span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.7);
    animation: landing-scroll-bounce 1.8s ease-in-out infinite;
}

/* Features strip */
.landing-features {
    margin-top: -2.5rem;
    position: relative;
    z-index: 5;
    padding: 0 0 1rem;
}

.landing-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.landing-feature {
    padding: 1.5rem 1.35rem;
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: var(--landing-radius);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.landing-feature.landing-animate--scroll {
    transition-property: opacity, transform, box-shadow;
    transition-duration: 0.9s, 0.9s, 0.22s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1), cubic-bezier(0.16, 1, 0.3, 1), ease;
    transition-delay: calc(var(--reveal-delay, 0) * 1ms), calc(var(--reveal-delay, 0) * 1ms), 0ms;
}

.landing-feature.landing-animate--scroll.is-visible {
    transition-duration: 0.22s, 0.22s, 0.22s;
    transition-delay: 0ms, 0ms, 0ms;
}

.landing-feature.landing-animate--scroll.is-visible:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: var(--landing-shadow);
}

.landing-feature__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.landing-feature__icon--blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.landing-feature__icon--green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: var(--landing-green);
}

.landing-feature__icon--navy {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: var(--landing-navy);
}

.landing-feature h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--landing-navy);
    letter-spacing: -0.02em;
}

.landing-feature p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--landing-muted);
    line-height: 1.55;
}

/* Disco section */
.landing-disco-section {
    padding: 3rem 0 5rem;
    scroll-margin-top: 5.5rem;
}

.landing-section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.landing-section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--landing-green);
    margin-bottom: 0.65rem;
}

.landing-section-head h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: var(--landing-navy);
    letter-spacing: -0.03em;
}

.landing-section-head p {
    margin: 0 auto;
    font-size: 1rem;
    color: var(--landing-muted);
    max-width: 480px;
}

.landing-search-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.landing-search__icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.landing-search {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    font-family: var(--landing-font);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--landing-navy);
    background: var(--landing-surface);
    border: 2px solid var(--landing-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.landing-search:focus {
    border-color: var(--landing-green);
    box-shadow: 0 0 0 4px rgba(27, 117, 58, 0.12), 0 8px 28px rgba(15, 23, 42, 0.08);
}

.landing-search::placeholder {
    color: #94a3b8;
}

.landing-search__count {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    pointer-events: none;
    background: #f1f5f9;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.landing-no-results {
    text-align: center;
    color: var(--landing-muted);
    font-size: 0.95rem;
    margin: -1rem 0 1.5rem;
}

.landing-disco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.15rem;
}

.landing-disco-card[hidden] {
    display: none;
}

.landing-disco-card__link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 1.35rem 1.15rem 1.25rem;
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: var(--landing-radius);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.landing-disco-card__link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--disco-accent, #0c2356) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.landing-disco-card__link:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: transparent;
    box-shadow:
        0 20px 50px rgba(12, 35, 86, 0.14),
        0 0 0 1px rgba(12, 35, 86, 0.06);
    color: inherit;
    text-decoration: none;
}

.landing-disco-card__link:hover::before {
    opacity: 0.08;
}

.landing-disco-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--disco-accent, #0c2356), transparent);
    border-radius: var(--landing-radius) var(--landing-radius) 0 0;
}

.landing-disco-card__code {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--disco-accent, var(--landing-navy));
    opacity: 0.7;
}

.landing-disco-card__logo {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    padding: 0.45rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    transition: transform 0.28s ease;
    position: relative;
    z-index: 1;
}

.landing-disco-card__link:hover .landing-disco-card__logo {
    transform: scale(1.06);
}

.landing-disco-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.landing-disco-card__name {
    position: relative;
    z-index: 1;
    margin: 0 0 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--landing-navy);
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-disco-card__cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--landing-navy);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.22s ease;
}

.landing-disco-card__link:hover .landing-disco-card__cta {
    background: var(--landing-navy);
    color: #ffffff;
    gap: 0.6rem;
}

.landing-disco-card__cta svg {
    transition: transform 0.22s ease;
}

.landing-disco-card__link:hover .landing-disco-card__cta svg {
    transform: translateX(2px);
}

/* Responsive */
@media (max-width: 991px) {
    .landing-hero__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .landing-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-hero__actions,
    .landing-hero__stats {
        justify-content: center;
    }

    .landing-hero__visual {
        min-height: 280px;
    }

    .landing-features__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .landing-scroll-hint {
        display: none;
    }
}

@media (max-width: 767px) {
    body.landing-home .landing-page {
        padding-top: 4.5rem;
    }

    .landing-hero {
        padding: 2.5rem 0 3.5rem;
    }

    .landing-features {
        margin-top: -1.5rem;
    }

    .landing-disco-section {
        padding: 2rem 0 3.5rem;
    }

    .landing-search__count {
        display: none;
    }

    .landing-search {
        padding-right: 1rem;
    }

    .landing-hero__stat {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.landing-home) {
        scroll-behavior: auto;
    }

    .landing-animate,
    .landing-animate--scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .landing-bill-preview,
    .landing-bill-preview.is-floating,
    .landing-hero__glow,
    .landing-hero__orbit,
    .landing-scroll-hint span,
    .landing-hero__badge-dot,
    .landing-bill-preview__shine {
        animation: none !important;
    }

    .landing-disco-card__link:hover {
        transform: none;
    }
}
