/* Smooth Scrolling & Navbar Offset */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

/* Minimalist Icon Styling System */
[data-lucide], svg.lucide {
    stroke-width: 1.85px;
    display: inline-block;
    vertical-align: middle;
}

/* Icon Box Badges */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
}

/* Background Patterns */
.bg-grid-pattern {
    background-image:
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px
        );
    background-size: 40px 40px;
}

/* Minimal floating bottle silhouettes for the hero background */
.bottle-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bottle {
    position: absolute;
    width: 3rem;
    height: 8.5rem;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 1.1rem 1.1rem 0.8rem 0.8rem;
    background: linear-gradient(
        90deg,
        rgba(14, 165, 233, 0.08),
        rgba(255, 255, 255, 0.08) 48%,
        rgba(14, 165, 233, 0.03)
    );
    box-shadow: inset 0 0 1.5rem rgba(125, 211, 252, 0.06);
    opacity: 0.7;
    animation: float-bottle 15s ease-in-out infinite;
}

.bottle::before {
    content: "";
    position: absolute;
    top: -1.35rem;
    left: 0.65rem;
    width: 1.7rem;
    height: 1.5rem;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-bottom: 0;
    border-radius: 0.45rem 0.45rem 0 0;
    background: rgba(14, 165, 233, 0.06);
}

.bottle::after {
    content: "";
    position: absolute;
    top: 3.2rem;
    left: -1px;
    right: -1px;
    height: 1.45rem;
    border-top: 1px solid rgba(125, 211, 252, 0.16);
    border-bottom: 1px solid rgba(125, 211, 252, 0.16);
    background: rgba(56, 189, 248, 0.08);
}

.bottle-one {
    top: 18%;
    left: 8%;
    transform: rotate(-14deg);
    animation-delay: -3s;
}

.bottle-two {
    top: 58%;
    left: 39%;
    width: 2.25rem;
    height: 6.5rem;
    opacity: 0.42;
    transform: rotate(12deg);
    animation-delay: -9s;
}

.bottle-two::before {
    left: 0.48rem;
    width: 1.25rem;
}

.bottle-three {
    top: 22%;
    right: 10%;
    width: 3.7rem;
    height: 10.5rem;
    opacity: 0.48;
    transform: rotate(13deg);
    animation-delay: -6s;
}

.bottle-three::before {
    left: 0.8rem;
    width: 2.1rem;
}

.bottle-four {
    top: 69%;
    right: 27%;
    width: 2rem;
    height: 5.8rem;
    opacity: 0.32;
    transform: rotate(-9deg);
    animation-delay: -12s;
}

.bottle-four::before {
    left: 0.4rem;
    width: 1.1rem;
}

.bottle-five {
    top: 8%;
    right: 42%;
    width: 1.7rem;
    height: 4.8rem;
    opacity: 0.24;
    transform: rotate(8deg);
    animation-delay: -1s;
}

.bottle-five::before {
    top: -0.9rem;
    left: 0.35rem;
    width: 0.9rem;
    height: 1rem;
}

@keyframes float-bottle {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bottle {
        animation: none;
    }
}

/* Keyframe Animations */
@keyframes subtle-glow {
    0%,
    100% {
        opacity: 0.5;
        box-shadow: 0 0 25px rgba(2, 132, 199, 0.2);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 0 45px rgba(14, 165, 233, 0.35);
    }
}

.animate-glow {
    animation: subtle-glow 4s ease-in-out infinite;
}

@keyframes liquid-morph {
    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.animate-liquid {
    animation: liquid-morph 8s ease-in-out infinite;
}

/* Multi-layer Fluid Wave Animation System */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
    z-index: 10;
}

.waves {
    position: relative;
    display: block;
    width: 100%;
    height: 3.5rem;
    margin-bottom: -1px;
}

@media (min-width: 640px) {
    .waves {
        height: 4.5rem;
    }
}

.waves use {
    animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.waves use:nth-child(1), .waves .wave-1 {
    animation-delay: -2s;
    animation-duration: 7s;
}

.waves use:nth-child(2), .waves .wave-2 {
    animation-delay: -3s;
    animation-duration: 10s;
}

.waves use:nth-child(3), .waves .wave-3 {
    animation-delay: -4s;
    animation-duration: 14s;
}

.waves use:nth-child(4), .waves .wave-4 {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Details & FAQ */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] {
    border-color: rgba(14, 165, 233, 0.35);
}

/* Typography & Layout Utilities */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.body-copy {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.75;
}

.cookie-banner {
    animation: cookie-banner-in 0.35s ease-out both;
}

@keyframes cookie-banner-in {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        animation: none;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.whatsapp-float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.65rem;
    height: 3.65rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.45), 0 4px 12px -2px rgba(0, 0, 0, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.whatsapp-float-btn svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.whatsapp-float:hover .whatsapp-float-btn {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 32px -4px rgba(37, 211, 102, 0.65), 0 6px 16px -2px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:active .whatsapp-float-btn {
    transform: scale(0.95);
}

.whatsapp-pulse-ring {
    position: absolute;
    inset: -5px;
    border-radius: 9999px;
    border: 2px solid rgba(37, 211, 102, 0.7);
    animation: whatsapp-pulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(0.92);
        opacity: 0.85;
    }
    60% {
        transform: scale(1.38);
        opacity: 0;
    }
    100% {
        transform: scale(1.42);
        opacity: 0;
    }
}

.whatsapp-online-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 9999px;
    background-color: #22c55e;
    border: 2px solid #0f172a;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 0.85rem);
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 65, 85, 0.85);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(15, 23, 42, 0.95);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 640px) {
    .whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
    }
    .whatsapp-float-btn {
        width: 3.35rem;
        height: 3.35rem;
    }
    /* Hide tooltip on touch devices */
    .whatsapp-tooltip {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-pulse-ring {
        animation: none;
    }
    .whatsapp-float-btn {
        transition: none;
    }
}

/* Hero Section Mockups & Animations */
@keyframes float-desktop {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes float-mobile {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(0.8deg);
    }
}

.animate-float-desktop {
    animation: float-desktop 7s ease-in-out infinite;
}

.animate-float-mobile {
    animation: float-mobile 6s ease-in-out infinite 0.7s;
}

.hero-showcase-container {
    perspective: 1200px;
}

.hero-desktop-frame {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.hero-showcase-container:hover .hero-desktop-frame {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px -15px rgba(2, 132, 199, 0.25), 0 0 40px rgba(14, 165, 233, 0.15);
}

.hero-mobile-frame {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.hero-showcase-container:hover .hero-mobile-frame {
    transform: translateY(-8px) scale(1.03) rotate(-1deg);
    filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.75));
}

/* App Mockup Floating Accents */
.tech-phone-showcase {
    perspective: 1000px;
}

@media (prefers-reduced-motion: reduce) {
    .animate-float-desktop,
    .animate-float-mobile {
        animation: none;
    }
    .hero-showcase-container:hover .hero-desktop-frame,
    .hero-showcase-container:hover .hero-mobile-frame {
        transform: none;
    }
}

