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

/* ── Header scroll transition ── */
.header-transparent {
    background: transparent;
}

.header-solid {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Nav links: white on transparent hero, dark on solid */
.header-nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}
.header-nav-link:hover {
    color: #fff;
}
.header-solid .header-nav-link {
    color: #374151;
}
.header-solid .header-nav-link:hover {
    color: #4f46e5;
}

/* Logo text */
.header-logo-text {
    color: #fff;
    transition: color 0.3s ease;
}
.header-solid .header-logo-text {
    color: #111827;
}

/* Lang separator */
.header-lang-sep {
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}
.header-solid .header-lang-sep {
    color: #d1d5db;
}

/* Lang links in header */
.header-lang-link {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s ease;
}
.header-lang-link:hover {
    color: #fff;
}
.header-lang-link-active {
    color: #fff;
    font-weight: 600;
}
.header-solid .header-lang-link {
    color: #6b7280;
}
.header-solid .header-lang-link:hover {
    color: #4f46e5;
}
.header-solid .header-lang-link-active {
    color: #4f46e5;
    font-weight: 600;
}

/* Mobile menu button */
.header-menu-btn {
    color: #fff;
    transition: color 0.3s ease;
}
.header-solid .header-menu-btn {
    color: #374151;
}

/* ── Fade in animation ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-1 { animation-delay: 0.15s; }
.stagger-2 { animation-delay: 0.3s; }
.stagger-3 { animation-delay: 0.45s; }

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Counter animation ── */
.counter-value {
    display: inline-block;
}

/* ── Pricing card popular glow ── */
.pricing-popular {
    box-shadow: 0 0 0 2px #4f46e5, 0 20px 50px -12px rgba(79, 70, 229, 0.25);
}

/* ── FAQ accordion ── */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.open {
    max-height: 500px;
}

/* ── Gradient text utility ── */
.text-gradient {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Numbered step card ── */
.step-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

/* ── Dark hero gradient mesh ── */
.hero-mesh {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(124, 58, 237, 0.15), transparent),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(79, 70, 229, 0.1), transparent);
}

/* ── Glow ring on hover ── */
.glow-card {
    transition: all 0.3s ease;
}
.glow-card:hover {
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.1), 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ── Glass card (updated) ── */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
