/* Common public-site styles (shared across landing, features, blog, docs, etc.) */

[id] { scroll-margin-top: 80px; }

/* Native details/summary: hide default marker across browsers */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.gradient-bg {
    background: linear-gradient(-45deg, #6366f1, #4f46e5, #6366f1);
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
}

.card-hover { transition: all 0.3s ease; }
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}
.dark .card-hover:hover {
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

.feature-icon { transition: all 0.3s ease; }
.feature-card:hover .feature-icon { transform: scale(1.1); }
.chat-bubble { animation: float-slow 4s ease-in-out infinite; }
.pricing-card { transition: all 0.3s ease; }
.pricing-card:hover { transform: scale(1.03); }
.demo-chat { max-height: 400px; overflow-y: auto; }

html.dark { background: #0f172a !important; }
html.dark body { background: #0f172a !important; color: #f9fafb !important; }
html:not(.dark) { background: #f9fafb !important; }
html:not(.dark) body { background: #f9fafb !important; color: #111827 !important; }

.cookie-banner {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}
.dark .cookie-banner {
    background: rgba(17, 24, 39, 0.95);
    border-top: 1px solid rgba(75, 85, 99, 0.8);
}
.cookie-banner-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}
.cookie-banner-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.section-heading {
    position: relative;
    display: inline-block;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    border-radius: 2px;
}

/* Click-to-expand images (lightbox) */
.image-zoomable {
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.image-zoomable:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.dark .image-zoomable:hover {
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.image-lightbox.is-open {
    display: flex;
    opacity: 1;
}
.image-lightbox img {
    max-width: 95vw;
    max-height: 92vh;
    border-radius: 0.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.97);
    transition: transform 0.25s ease;
}
.image-lightbox.is-open img {
    transform: scale(1);
}
.image-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}
body.lightbox-open {
    overflow: hidden;
}
