/* ================================================
   FAQ SECTION — Staggered Glassmorphic Cards
   ================================================ */
.faq-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: transparent;
}

/* ── Scroll-reactive fluid background ── */
.faq-fluid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.faq-fluid-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.4;
    will-change: transform;
    mix-blend-mode: screen;
    transition: transform 0.15s linear;
}

.faq-fluid-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0.03) 60%, transparent 80%);
    top: -5%;
    left: -8%;
    animation: faqFluidPulse1 12s ease-in-out infinite;
}

.faq-fluid-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.14) 0%, rgba(236, 72, 153, 0.02) 55%, transparent 80%);
    top: 30%;
    right: -6%;
    animation: faqFluidPulse2 15s ease-in-out infinite;
}

.faq-fluid-orb--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    bottom: 5%;
    left: 20%;
    animation: faqFluidPulse3 18s ease-in-out infinite;
}

.faq-fluid-orb--4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 65%);
    top: 60%;
    right: 15%;
    border-radius: 40% 60% 55% 45%;
    animation: faqFluidMorph 20s ease-in-out infinite;
}

/* Flowing streaks */
.faq-fluid-streak {
    position: absolute;
    height: 2px;
    border-radius: 2px;
    will-change: transform, opacity;
    transition: transform 0.15s linear, opacity 0.15s linear;
}

.faq-fluid-streak--1 {
    width: 65%;
    top: 25%;
    left: -5%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.15), transparent);
}

.faq-fluid-streak--2 {
    width: 55%;
    top: 70%;
    right: -5%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.15), rgba(139, 92, 246, 0.12), transparent);
}

/* Noise */
.faq-fluid-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Orb ambient pulse animations */
@keyframes faqFluidPulse1 {

    0%,
    100% {
        opacity: 0.35;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes faqFluidPulse2 {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.45;
    }
}

@keyframes faqFluidPulse3 {

    0%,
    100% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes faqFluidMorph {

    0%,
    100% {
        border-radius: 40% 60% 55% 45%;
        opacity: 0.3;
    }

    50% {
        border-radius: 55% 45% 40% 60%;
        opacity: 0.45;
    }
}



/* ── Container ── */
.faq-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================================
   HEADER
   ================================================ */
.faq-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.faq-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-main-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -2px;
}

.faq-title-gradient {
    background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.25));
}

/* ================================================
   STAGGERED GRID (Zigzag)
   ================================================ */
.faq-stagger-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Vertical connector line */
.faq-connector {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    border-radius: 2px;
    overflow: hidden;
}

/* Scroll-animated fill */
.faq-connector-fill {
    width: 100%;
    background: linear-gradient(180deg,
            rgba(139, 92, 246, 0.6) 0%,
            rgba(236, 72, 153, 0.5) 50%,
            rgba(249, 115, 22, 0.4) 100%);
    border-radius: 2px;
    transition: height 0.15s linear;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

/* ── Single FAQ Card ── */
.faq-card {
    position: relative;
    width: 55%;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    border-radius: 24px;
    padding: 2rem;

    /* GLASS: multi-layer background */
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(30px) saturate(1.3);
    -webkit-backdrop-filter: blur(30px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);

    /* Transition for reveal + interactions (NOT animation) */
    transition:
        opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        background 0.4s ease;
}

/* Zigzag alignment */
.faq-card--left {
    align-self: flex-start;
}

.faq-card--right {
    align-self: flex-end;
}

/* Active state */
.faq-card--active {
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.04) 100%);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

/* ── Glass layers ── */

/* Layer 1: Base glass tint */
.faq-card__glass-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.03) 0%,
            transparent 40%,
            rgba(0, 0, 0, 0.05) 100%);
    border-radius: 24px;
    pointer-events: none;
    z-index: 0;
}

/* Layer 2: Diagonal reflection */
.faq-card__glass-reflection {
    position: absolute;
    top: -60%;
    left: -40%;
    width: 180%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 255, 255, 0.02) 25%,
            transparent 50%);
    transform: rotate(-12deg);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease;
}

/* Layer 3: Inner edge shadow for depth */
.faq-card__inner-shadow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 1;
}

/* Layer 4: Animated shine streak */
.faq-card__shine {
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 35%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 65%,
            transparent 100%);
    pointer-events: none;
    z-index: 3;
    transition: left 0.8s ease;
}

/* Layer 5: Gradient border glow */
.faq-card__border-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    filter: blur(45px);
    transition: opacity 0.5s ease;
}

/* ── Top row: number + icon ── */
.faq-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.faq-card-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    letter-spacing: -1px;
    transition: color 0.5s ease;
}

.faq-card--active .faq-card-number {
    color: rgba(255, 255, 255, 0.14);
}

.faq-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: faqIconFloat 5s ease-in-out infinite;
}

@keyframes faqIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ── Question ── */
.faq-card-question {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

/* ── Answer — grid-based height transition (smooth!) ── */
.faq-card-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 2;
}

.faq-card-answer--open {
    grid-template-rows: 1fr;
}

.faq-card-answer-inner {
    overflow: hidden;
}

.faq-card-answer-inner p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    padding: 0.5rem 0 0.8rem;
    transition: color 0.3s ease;
}

.faq-card--active .faq-card-answer-inner p {
    color: rgba(255, 255, 255, 0.65);
}

/* ── Toggle button ── */
.faq-card-toggle {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
}

.faq-toggle-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.faq-toggle-icon--open {
    transform: rotate(45deg);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

/* SVG vertical line animates out on open */
.faq-toggle-vline {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: center;
}

.faq-toggle-icon--open .faq-toggle-vline {
    opacity: 0;
    transform: scaleY(0);
}

/* ── Card ambient glow ── */
.faq-card-glow {
    position: absolute;
    bottom: -25px;
    left: 12%;
    right: 12%;
    height: 60px;
    filter: blur(35px);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: -1;
}

.faq-card--active .faq-card-glow {
    opacity: 0.3;
    animation: faqGlowPulse 4s ease-in-out infinite;
}

@keyframes faqGlowPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scaleX(0.9);
    }

    50% {
        opacity: 0.4;
        transform: scaleX(1.1);
    }
}

/* ================================================
   HOVER EFFECTS
   ================================================ */
@media (hover: hover) {
    .faq-card:hover {
        transform: translateY(-6px) !important;
        border-color: rgba(255, 255, 255, 0.18);
        box-shadow:
            0 30px 60px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(139, 92, 246, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }

    .faq-card:hover .faq-card__shine {
        left: 140%;
    }

    .faq-card:hover .faq-card__border-glow {
        opacity: 0.12;
    }

    .faq-card:hover .faq-card__glass-reflection {
        opacity: 0.8;
    }

    .faq-card:hover .faq-card-icon {
        transform: scale(1.12) rotate(-5deg) translateY(-5px);
        animation: none;
    }

    .faq-card:hover .faq-card-number {
        color: rgba(255, 255, 255, 0.12);
    }

    .faq-card:hover .faq-card-glow {
        opacity: 0.2;
    }

    .faq-card:hover .faq-toggle-icon {
        transform: scale(1.15);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }

    .faq-card--active:hover .faq-toggle-icon {
        transform: rotate(45deg) scale(1.15);
    }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    .faq-card {
        width: 80%;
    }

    .faq-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 80px 0;
    }

    .faq-card {
        width: 100%;
    }

    .faq-card--left,
    .faq-card--right {
        align-self: stretch;
    }

    .faq-main-title {
        font-size: 2.5rem;
    }

    .faq-header {
        margin-bottom: 3rem;
    }

    .faq-stagger-grid {
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-card {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .faq-card-question {
        font-size: 1rem;
    }

    .faq-main-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }
}

/* ================================================
   CONTACT SUPPORT CTA
   ================================================ */
.faq-cta-wrapper {
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.faq-cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow:
        0 8px 30px rgba(139, 92, 246, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease,
        filter 0.35s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.faq-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.faq-cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 100%);
    transition: left 0.6s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .faq-cta-btn:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow:
            0 16px 50px rgba(139, 92, 246, 0.45),
            0 0 60px rgba(236, 72, 153, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.12) inset;
        filter: brightness(1.08);
    }

    .faq-cta-btn:hover::after {
        left: 140%;
    }
}

.faq-cta-btn:active {
    transform: translateY(-1px) scale(0.98);
}

@media (max-width: 480px) {
    .faq-cta-wrapper {
        margin-top: 2.5rem;
    }

    .faq-cta-btn {
        padding: 12px 28px;
        font-size: 0.92rem;
    }

    .faq-cta-text {
        font-size: 0.95rem;
    }
}