/* Homepage landing — premium, authority, performance-conscious */

.home-landing {
    --home-glass-bg: color-mix(in srgb, var(--bs-body-bg) 78%, transparent);
    --home-glass-border: color-mix(in srgb, var(--bs-border-color) 55%, transparent);
    --home-gradient-start: color-mix(in srgb, var(--bs-primary) 20%, transparent);
    --home-gradient-end: color-mix(in srgb, #6366f1 14%, transparent);
    --home-section-gap: clamp(2.5rem, 6vw, 4rem);
    --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.home-section {
    margin-bottom: var(--home-section-gap);
}

.home-section__title {
    font-size: clamp(1.45rem, 3.8vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.35rem;
    color: var(--bs-emphasis-color);
    line-height: 1.15;
}

/* Below-fold: paint/skip when off-screen */
.home-below-fold {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
}

/* Scroll reveal (class toggled by minimal JS) */
.home-reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.55s var(--home-ease), transform 0.55s var(--home-ease);
    will-change: opacity, transform;
}

.home-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: var(--home-reveal-delay, 0s);
}

/* CTA */
.home-cta-primary {
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow:
        0 4px 20px color-mix(in srgb, var(--bs-primary) 38%, transparent),
        0 0 0 0 color-mix(in srgb, var(--bs-primary) 25%, transparent);
    transition:
        transform 0.25s var(--home-ease),
        box-shadow 0.25s var(--home-ease);
}

.home-cta-primary:hover,
.home-cta-primary:focus-visible {
    transform: translate3d(0, -2px, 0);
    box-shadow:
        0 10px 32px color-mix(in srgb, var(--bs-primary) 48%, transparent),
        0 0 24px color-mix(in srgb, var(--bs-primary) 22%, transparent);
}

.home-hover-lift {
    transition:
        transform 0.28s var(--home-ease),
        box-shadow 0.28s var(--home-ease),
        border-color 0.28s ease;
}

.home-hover-lift:hover {
    transform: translate3d(0, -3px, 0);
}

/* Hero */
.home-hero {
    position: relative;
    padding: clamp(0.5rem, 2vw, 1rem) 0 0;
    margin-bottom: 0;
}

.home-hero__bg {
    position: absolute;
    inset: -0.5rem -1rem 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 85% 65% at 8% 0%, var(--home-gradient-start), transparent 58%),
        radial-gradient(ellipse 75% 55% at 92% 15%, var(--home-gradient-end), transparent 52%);
    pointer-events: none;
}

.home-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.75rem;
    align-items: center;
}

@media (min-width: 992px) {
    .home-hero__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(300px, 44%);
        gap: 2.75rem;
    }
}

.home-hero__inner {
    max-width: 36rem;
}

.home-hero__preview {
    display: block;
    padding: 0.65rem;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
    margin-inline: auto;
}

.home-map-interactive {
    transition: transform 0.35s var(--home-ease), box-shadow 0.35s var(--home-ease);
}

.home-map-interactive:hover {
    transform: translate3d(0, -4px, 0);
}

.home-map-interactive:hover .home-hero__preview-img {
    transform: scale3d(1.025, 1.025, 1);
}

.home-map-interactive:hover .home-hero__map-pulse {
    opacity: 0.85;
}

.home-hero__preview-frame {
    position: relative;
}

.home-live-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin: 0 0 0.55rem 0.1rem;
    max-width: 100%;
}

.home-live-status__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem 0.2rem 0.4rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #15803d;
    background: color-mix(in srgb, #22c55e 14%, var(--bs-body-bg));
    border: 1px solid color-mix(in srgb, #22c55e 35%, transparent);
    border-radius: 999px;
    box-shadow: 0 1px 6px color-mix(in srgb, #22c55e 12%, transparent);
}

[data-bs-theme="dark"] .home-live-status__badge {
    color: #86efac;
    background: color-mix(in srgb, #22c55e 18%, var(--bs-body-bg));
}

.home-live-status__live {
    line-height: 1;
}

.home-live-status__sync {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--bs-secondary-color);
    line-height: 1.35;
}

.home-live-status__line {
    display: inline;
}

.home-live-status__dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 color-mix(in srgb, #22c55e 55%, transparent);
    animation: home-live-pulse 2.2s ease-in-out infinite;
}

@keyframes home-live-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, #22c55e 45%, transparent);
    }

    50% {
        box-shadow: 0 0 0 5px color-mix(in srgb, #22c55e 0%, transparent);
    }
}

.home-hero__preview-media {
    display: block;
    position: relative;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow:
        0 20px 56px color-mix(in srgb, #000 18%, transparent),
        0 0 0 1px color-mix(in srgb, var(--bs-primary) 14%, var(--home-glass-border)),
        inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
    background: color-mix(in srgb, var(--bs-body-bg) 40%, transparent);
}

@media (min-width: 992px) {
    .home-hero__preview-media {
        animation: home-map-breathe 9s ease-in-out infinite;
    }
}

@keyframes home-map-breathe {
    0%,
    100% {
        transform: scale3d(1, 1, 1);
    }

    50% {
        transform: scale3d(1.012, 1.012, 1);
    }
}

.home-hero__map-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        125deg,
        transparent 35%,
        color-mix(in srgb, #fff 14%, transparent) 48%,
        transparent 62%
    );
    opacity: 0.5;
    transform: translate3d(-120%, 0, 0);
    animation: home-map-shine 4.5s ease-in-out 0.8s infinite;
}

@keyframes home-map-shine {
    0%,
    72%,
    100% {
        transform: translate3d(-120%, 0, 0);
        opacity: 0;
    }

    78% {
        opacity: 0.45;
    }

    88% {
        transform: translate3d(120%, 0, 0);
        opacity: 0;
    }
}

.home-hero__map-pulse {
    position: absolute;
    z-index: 1;
    border: 2px solid color-mix(in srgb, var(--bs-primary) 55%, transparent);
    pointer-events: none;
    animation: home-area-pulse 2.8s ease-in-out infinite;
}

.home-hero__map-pulse--a {
    left: 38%;
    top: 42%;
    width: 18%;
    height: 14%;
    margin-left: -9%;
    margin-top: -7%;
    border-radius: 40% 45% 42% 48%;
    opacity: 0.45;
}

.home-hero__map-pulse--b {
    left: 62%;
    top: 28%;
    width: 12%;
    height: 10%;
    margin-left: -6%;
    margin-top: -5%;
    border-radius: 48% 42% 45% 40%;
    opacity: 0.32;
    border-color: color-mix(in srgb, #6366f1 50%, transparent);
    animation-delay: 1.1s;
}

.home-hero__map-marker {
    position: absolute;
    z-index: 3;
    width: 0.55rem;
    height: 0.55rem;
    margin-left: -0.275rem;
    margin-top: -0.275rem;
    border-radius: 50%;
    background: var(--bs-primary);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--bs-primary) 28%, transparent),
        0 2px 8px color-mix(in srgb, #000 25%, transparent);
    pointer-events: none;
    animation: home-marker-drop 3.2s var(--home-ease) infinite;
}

.home-hero__map-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 180%;
    height: 180%;
    margin: -90% 0 0 -90%;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 45%, transparent);
    animation: home-marker-ring 3.2s ease-out infinite;
}

.home-hero__map-marker--1 {
    left: 34%;
    top: 48%;
    animation-delay: 0s;
}

.home-hero__map-marker--1::after {
    animation-delay: 0s;
}

.home-hero__map-marker--2 {
    left: 58%;
    top: 32%;
    background: color-mix(in srgb, #6366f1 90%, var(--bs-primary));
    animation-delay: 0.9s;
}

.home-hero__map-marker--2::after {
    animation-delay: 0.9s;
    border-color: color-mix(in srgb, #6366f1 45%, transparent);
}

.home-hero__map-marker--3 {
    left: 72%;
    top: 55%;
    animation-delay: 1.7s;
}

.home-hero__map-marker--3::after {
    animation-delay: 1.7s;
}

@keyframes home-marker-drop {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }

    45% {
        transform: translate3d(0, -3px, 0) scale3d(1.08, 1.08, 1);
    }
}

@keyframes home-marker-ring {
    0% {
        transform: scale3d(0.6, 0.6, 1);
        opacity: 0.7;
    }

    70%,
    100% {
        transform: scale3d(1.35, 1.35, 1);
        opacity: 0;
    }
}

@keyframes home-area-pulse {
    0%,
    100% {
        transform: scale3d(1, 1, 1);
        opacity: 0.35;
    }

    50% {
        transform: scale3d(1.12, 1.15, 1);
        opacity: 0.7;
    }
}

.home-hero__preview-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 900 / 602;
    object-fit: cover;
    object-position: center;
    transform: scale3d(1.04, 1.04, 1);
    opacity: 0;
    animation: home-map-enter 0.85s var(--home-ease) 0.1s forwards;
    transition: transform 0.45s var(--home-ease);
    will-change: transform, opacity;
}

@keyframes home-map-enter {
    from {
        opacity: 0;
        transform: scale3d(1.06, 1.06, 1);
    }

    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

.home-hero__preview-badge {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    color: var(--bs-primary);
}

.home-hero__kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin-bottom: 0.75rem;
}

.home-hero__headline {
    font-size: clamp(1.95rem, 5.8vw, 3.15rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin-bottom: 0.75rem;
    color: var(--bs-emphasis-color);
}

.home-hero__subtitle {
    font-size: clamp(1.05rem, 2.4vw, 1.15rem);
    line-height: 1.4;
    color: var(--bs-secondary-color);
    max-width: 26rem;
    margin-bottom: 1.5rem;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-hero__actions .btn {
    min-height: 3.2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-weight: 600;
}

/* Infrastructure trust strip */
.home-infra-strip {
    margin: 0 0 var(--home-section-gap);
    padding: 1.15rem 1.25rem;
    background: linear-gradient(
        155deg,
        var(--home-glass-bg),
        color-mix(in srgb, var(--bs-primary) 5%, var(--home-glass-bg))
    );
}

.home-infra-strip__header {
    margin-bottom: 0.85rem;
}

.home-infra-strip__title {
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin: 0 0 0.25rem;
}

.home-infra-strip__lead {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    margin: 0;
    line-height: 1.4;
    max-width: 36rem;
}

.home-infra-strip__sources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.home-infra-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-emphasis-color);
    text-decoration: none;
    background: color-mix(in srgb, var(--bs-body-bg) 55%, transparent);
    border: 1px solid var(--home-glass-border);
    border-radius: 0.5rem;
    transition:
        transform 0.22s var(--home-ease),
        border-color 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
}

.home-infra-chip:hover {
    transform: translate3d(0, -2px, 0);
    color: var(--bs-primary);
    border-color: color-mix(in srgb, var(--bs-primary) 35%, var(--home-glass-border));
    box-shadow: 0 6px 16px color-mix(in srgb, var(--bs-primary) 10%, transparent);
}

.home-infra-strip__sync {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
    line-height: 1.4;
}

.home-infra-strip__sync-dot {
    flex-shrink: 0;
    width: 0.4rem;
    height: 0.4rem;
    margin-top: 0.35em;
    border-radius: 50%;
    background: #22c55e;
    animation: home-live-pulse 2.4s ease-in-out infinite;
}

/* Use cases */
.home-use-cases__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .home-use-cases__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .home-use-cases__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.home-use-cases__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    margin: 0;
}

.home-use-cases__icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.55rem;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--bs-primary) 85%, #6366f1),
        color-mix(in srgb, var(--bs-primary) 55%, transparent)
    );
    box-shadow: 0 4px 12px color-mix(in srgb, var(--bs-primary) 28%, transparent);
    position: relative;
}

.home-use-cases__icon::before {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border-radius: 0.2rem;
    background: color-mix(in srgb, #fff 75%, transparent);
    opacity: 0.9;
}

.home-use-cases__icon--fpv {
    background: linear-gradient(145deg, #7c3aed, #a855f7);
    box-shadow: 0 4px 12px color-mix(in srgb, #7c3aed 35%, transparent);
}

.home-use-cases__icon--photo {
    background: linear-gradient(145deg, #0ea5e9, #38bdf8);
    box-shadow: 0 4px 12px color-mix(in srgb, #0ea5e9 35%, transparent);
}

.home-use-cases__icon--inspect {
    background: linear-gradient(145deg, #f59e0b, #fbbf24);
    box-shadow: 0 4px 12px color-mix(in srgb, #f59e0b 35%, transparent);
}

.home-use-cases__icon--mapping {
    background: linear-gradient(145deg, #059669, #34d399);
    box-shadow: 0 4px 12px color-mix(in srgb, #059669 35%, transparent);
}

.home-use-cases__icon--rec {
    background: linear-gradient(145deg, var(--bs-primary), #6366f1);
}

.home-use-cases__label {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--bs-emphasis-color);
    line-height: 1.3;
}

/* De ce Drone Log */
.home-why {
    padding: 1.65rem 1.6rem;
}

.home-why__list {
    display: grid;
    gap: 0.65rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--bs-emphasis-color);
}

@media (min-width: 576px) {
    .home-why__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.home-why__list li {
    position: relative;
    padding-left: 1.4rem;
    line-height: 1.35;
}

.home-why__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--bs-primary);
    box-shadow: 0 0 8px color-mix(in srgb, var(--bs-primary) 40%, transparent);
}

/* Ghiduri */
.home-guides__grid {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .home-guides__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .home-guides__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-guides__card {
    display: block;
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.home-guides__card-title {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--bs-emphasis-color);
    line-height: 1.35;
}

.home-guides__more a {
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}

.home-guides__more a:hover {
    text-decoration: underline;
}

/* Glass cards */
.home-glass-card {
    background: var(--home-glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--home-glass-border);
    border-radius: 1.05rem;
    box-shadow:
        0 2px 20px color-mix(in srgb, #000 5%, transparent),
        inset 0 1px 0 color-mix(in srgb, #fff 6%, transparent);
}

.home-glass-card:hover {
    border-color: color-mix(in srgb, var(--bs-primary) 28%, var(--home-glass-border));
    box-shadow:
        0 12px 36px color-mix(in srgb, var(--bs-primary) 12%, transparent),
        inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
}

/* Steps */
.home-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .home-steps__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-step-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.3rem;
    margin: 0;
}

.home-step-card__num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    background: linear-gradient(
        145deg,
        var(--bs-primary),
        color-mix(in srgb, var(--bs-primary) 70%, #6366f1)
    );
    color: #fff;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--bs-primary) 35%, transparent);
}

.home-step-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--bs-emphasis-color);
}

.home-step-card__body {
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
    margin: 0;
    line-height: 1.35;
}

.home-faq .seo-faq-details__summary {
    font-weight: 600;
    font-size: 0.9375rem;
}

.home-faq .seo-faq-details__body {
    font-size: 0.875rem;
    line-height: 1.45;
}

.home-final-cta {
    padding: 2rem 1.6rem;
    text-align: center;
    margin-bottom: 5.25rem;
    background: linear-gradient(
        165deg,
        var(--home-glass-bg),
        color-mix(in srgb, var(--bs-primary) 6%, var(--home-glass-bg))
    );
}

@media (min-width: 992px) {
    .home-final-cta {
        margin-bottom: 2.75rem;
    }
}

.home-final-cta__lead {
    font-size: 0.9375rem;
    color: var(--bs-secondary-color);
    margin: -0.35rem auto 1.35rem;
    max-width: 24rem;
    line-height: 1.4;
}

.home-final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.home-final-cta__legal {
    max-width: 28rem;
    margin-inline: auto;
    line-height: 1.4;
    font-size: 0.8125rem;
}

/* Sticky mobile CTA */
.home-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--bs-body-bg) 96%, transparent);
    backdrop-filter: blur(18px);
    border-top: 1px solid color-mix(in srgb, var(--bs-primary) 18%, var(--bs-border-color));
    box-shadow: 0 -8px 40px color-mix(in srgb, #000 18%, transparent);
    transform: translate3d(0, 110%, 0);
    opacity: 0;
    transition: transform 0.32s var(--home-ease), opacity 0.32s var(--home-ease);
    pointer-events: none;
    will-change: transform, opacity;
}

.home-sticky-cta.is-visible {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
}

.home-sticky-cta .btn {
    min-height: 3.35rem;
    font-weight: 700;
    width: 100%;
    font-size: 1.0625rem;
}

@media (min-width: 992px) {
    .home-sticky-cta {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .home-hero__map-shine {
        animation: none;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .home-hero__preview-media {
        animation: none;
    }

    .home-hero__preview-img,
    .home-hero__map-shine,
    .home-hero__map-pulse,
    .home-hero__map-marker,
    .home-hero__map-marker::after,
    .home-live-status__dot,
    .home-infra-strip__sync-dot {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .home-hero__actions .btn,
    .home-cta-primary,
    .home-sticky-cta,
    .home-glass-card,
    .home-hero__preview,
    .home-hover-lift,
    .home-map-interactive {
        transition: none;
    }

    .home-cta-primary:hover,
    .home-hero__preview:hover,
    .home-map-interactive:hover,
    .home-hover-lift:hover,
    .home-infra-chip:hover {
        transform: none;
    }

    .home-map-interactive:hover .home-hero__preview-img {
        transform: none;
    }
}
