/* ============================================================
   GeetSuno — shared styles
   ============================================================ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Premium Glassmorphism Header */
.glass-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

/* Animations on Scroll — short and quiet, never distracting */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 60ms; }
.delay-200 { transition-delay: 120ms; }
.delay-300 { transition-delay: 180ms; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.45);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-outline {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn-outline:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
    color: #4f46e5;
}

/* Premium Card */
.premium-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.premium-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.2);
}
.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.premium-card:hover::before { opacity: 1; }

/* Marquee — seamless, always running */
.marquee {
    overflow: hidden;
}
.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
    will-change: transform;
}
.marquee__group {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
    flex: none;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Active Nav Link */
.nav-link.active-nav {
    background-color: #eef2ff;
    color: #4F46E5;
    font-weight: 600;
}

/* Accordion */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* Prose blocks (policy pages) */
.legal-prose h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.legal-prose p,
.legal-prose li {
    color: #4b5563;
    font-size: 0.925rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}
.legal-prose ul { list-style: disc; padding-left: 1.25rem; }
.legal-prose a { color: #4F46E5; text-decoration: underline; }

/* Platform filter buttons */
.filter-btn.is-active {
    background-color: #4F46E5;
    color: #ffffff;
    border-color: #4F46E5;
    box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.6);
}

/* Form states */
.form-status-success {
    background-color: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}
.form-status-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* Help page: the enquiry form comes first on phones */
.contact-form-col { order: 1; }
.contact-options-col { order: 2; }
.contact-info-col { order: 3; }

@media (min-width: 1024px) {
    .contact-options-col { order: 1; }
    .contact-info-col { order: 2; }
    .contact-form-col { order: 3; }
}

/* Phones: solid header avoids the cost of backdrop blur */
@media (max-width: 639px) {
    .glass-header {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .premium-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    /* The logo strip keeps moving: it is a decorative, low-contrast loop. */
    .animate-on-scroll { opacity: 1; transform: none; transition: none; }
}
