/* ============================================================
   LI●T.CL — Professional Edition
   ============================================================ */

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "cv02", "cv03";
    text-rendering: optimizeLegibility;
}

/* Balanced headings, pretty body text */
h1, h2, h3, .section-title {
    text-wrap: balance;
}
p {
    text-wrap: pretty;
}

/* ---------- Ambient grain (premium texture) ---------- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

::selection {
    background: rgba(163, 230, 53, 0.35);
    color: #0f172a;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #a3e635, #39b8fd);
    z-index: 100;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 12px rgba(163, 230, 53, 0.6);
}

/* ---------- Glass navigation ---------- */
.glass-nav {
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    background-color: rgba(247, 249, 251, 0.72);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.glass-nav.scrolled {
    background-color: rgba(247, 249, 251, 0.9);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

/* ---------- Gradient text ---------- */
.liot-gradient-text {
    background: linear-gradient(96deg, #ffffff 20%, #a3e635 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease infinite;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.liot-gradient-dark {
    background: linear-gradient(92deg, #0f172a, #006591);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Reveal system (only when JS active: crawlers see full content) ---------- */
html.js [data-reveal] {
    opacity: 0;
    transition-property: opacity, transform, filter;
    transition-duration: 0.9s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, filter;
}
html.js [data-reveal="fade-up"] {
    transform: translateY(48px);
}
html.js [data-reveal="fade-down"] {
    transform: translateY(-40px);
}
html.js [data-reveal="fade-left"] {
    transform: translateX(-56px);
}
html.js [data-reveal="fade-right"] {
    transform: translateX(56px);
}
html.js [data-reveal="zoom"] {
    transform: scale(0.86);
}
html.js [data-reveal="blur"] {
    transform: translateY(24px);
    filter: blur(10px);
}
html.js [data-reveal].revealed {
    opacity: 1;
    transform: none;
    filter: none;
}

/* ---------- Stagger delays (only during reveal) ---------- */
html.js [data-reveal].delay-1:not(.revealed) { transition-delay: 0.1s; }
html.js [data-reveal].delay-2:not(.revealed) { transition-delay: 0.2s; }
html.js [data-reveal].delay-3:not(.revealed) { transition-delay: 0.3s; }
html.js [data-reveal].delay-4:not(.revealed) { transition-delay: 0.4s; }
html.js [data-reveal].delay-5:not(.revealed) { transition-delay: 0.5s; }
html.js [data-reveal].delay-6:not(.revealed) { transition-delay: 0.6s; }

/* ---------- Hero ---------- */
.hero-grid {
    background-image: radial-gradient(circle at 2px 2px, rgba(163, 230, 53, 0.35) 1px, transparent 0);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, #000 30%, transparent 100%);
}

.hero-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(90px);
    opacity: 0.5;
    animation: float 12s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.06); }
}

/* ---------- Marquee ---------- */
.marquee {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: marquee 28s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Cards ---------- */
.card-lift {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}
.card-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.18);
}

.feature-icon {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.4s ease, color 0.4s ease;
}
.card-lift:hover .feature-icon {
    transform: rotate(-6deg) scale(1.1);
}

/* ---------- Ecosystem orbit ---------- */
@keyframes orbit {
    from { transform: rotate(0deg) translateX(160px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}
.orbit-node-1 { animation: orbit 24s linear infinite; animation-delay: 0s; }
.orbit-node-2 { animation: orbit 24s linear infinite; animation-delay: -6s; }
.orbit-node-3 { animation: orbit 24s linear infinite; animation-delay: -12s; }
.orbit-node-4 { animation: orbit 24s linear infinite; animation-delay: -18s; }

@keyframes dash {
    to { stroke-dashoffset: -40; }
}
.flowing-line {
    stroke-dasharray: 8 12;
    animation: dash 2s linear infinite;
}

/* ---------- Buttons ---------- */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn-shine:hover::after {
    left: 140%;
}

/* ---------- Floating badge ---------- */
.pulse-dot {
    position: relative;
}
.pulse-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    border: 2px solid rgba(163, 230, 53, 0.6);
    animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Mobile menu ---------- */
[data-mobile-menu] {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
}
[data-mobile-menu].open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Section headings (premium display type) ---------- */
.section-title {
    font-family: "Space Grotesk", Inter, system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}
.section-eyebrow {
    font-family: "JetBrains Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 500;
}

/* ---------- Product mockup (dashboard preview) ---------- */
.mock-map {
    position: relative;
    aspect-ratio: 16 / 10;
    background-color: #0b1222;
    overflow: hidden;
}
.mock-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(163, 230, 53, 0.16) 1px, transparent 0);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 40%, transparent 100%);
}
.mock-map::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(57, 184, 253, 0.22), transparent 45%),
        radial-gradient(circle at 18% 85%, rgba(163, 230, 53, 0.14), transparent 45%);
}
.mock-route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.map-ping {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-ping::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: rgba(163, 230, 53, 0.35);
    animation: ping-ring 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping-ring {
    0% { transform: scale(1); opacity: 0.9; }
    80%, 100% { transform: scale(3.2); opacity: 0; }
}

/* ---------- WhatsApp float ---------- */
.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 9999px;
    background: #25d366;
    color: #fff;
    padding: 0.85rem 0.9rem;
    box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.65);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, background-color 0.3s ease;
    text-decoration: none;
}
.wa-float:hover {
    background: #1eb959;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -10px rgba(37, 211, 102, 0.75);
}
.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 2px solid rgba(37, 211, 102, 0.55);
    animation: pulse-ring 2.4s ease-out infinite;
}
@media (max-width: 1023px) {
    body.mini-cta-open .wa-float {
        bottom: 5.4rem;
    }
}

/* ---------- Mobile mini CTA bar ---------- */
.mini-cta {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    transform: translateY(105%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
body.mini-cta-open .mini-cta {
    transform: translateY(0);
}
body.menu-open .wa-float,
body.menu-open .mini-cta {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ---------- Accessible focus ---------- */
:focus-visible {
    outline: 2px solid #a3e635;
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- Footer ---------- */
footer a {
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html.js [data-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
    .hero-orb, .orbit-node-1, .orbit-node-2, .orbit-node-3, .orbit-node-4,
    .flowing-line, .marquee, .liot-gradient-text, .pulse-dot::after,
    .map-ping::before, .wa-float::before {
        animation: none;
    }
    .card-lift, .feature-icon, .glass-nav, .mini-cta, .wa-float {
        transition: none;
    }
}
