/* ============================================================================
   FAQ PAGES — enterprise redesign
   Brand tokens from styles/global.css.
   ============================================================================ */

.faq-main {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px 80px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    font-size: 1.04rem;
}

/* ─── Hero ─── */
.faq-hero {
    position: relative;
    margin: 0 -24px 48px;
    padding: 90px 24px 50px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%,
        rgba(0, 212, 255, 0.14) 0%, rgba(45, 27, 105, 0.10) 35%, transparent 70%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.10);
}
.faq-hero-inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    z-index: 1;
}
.faq-breadcrumb {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 22px;
    letter-spacing: 0.4px;
}
.faq-breadcrumb a {
    color: var(--electric-blue);
    text-decoration: none;
    transition: color .2s ease;
}
.faq-breadcrumb a:hover { color: var(--electric-orange); }

.faq-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 22px;
    background: rgba(167, 139, 250, 0.10);
    border: 1px solid rgba(167, 139, 250, 0.32);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #a78bfa;
}

.faq-article h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.16;
    font-weight: 900;
    margin: 0 0 22px;
    background: linear-gradient(135deg, #ffffff 0%, var(--electric-blue) 60%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.4px;
}

/* ─── Body: two-column with sticky rail at desktop ─── */
.faq-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: start;
}
@media (max-width: 1024px) {
    .faq-body { grid-template-columns: 1fr; gap: 0; }
}
.faq-content { min-width: 0; }

/* ─── TL;DR — the centerpiece for single-question pages ─── */
.faq-tldr {
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.10), rgba(167, 139, 250, 0.10)),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 212, 255, 0.32);
    border-left: 4px solid var(--electric-blue);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 0 0 44px;
    position: relative;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}
.faq-tldr-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--electric-blue);
    margin-bottom: 10px;
}
.faq-tldr-label::before {
    content: '⚡';
    font-size: 0.9em;
}
.faq-tldr p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.08rem;
    line-height: 1.65;
    font-weight: 500;
}

/* ─── Body sections (H2/p) ─── */
.faq-article h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 44px 0 16px;
    color: #fff;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    letter-spacing: -0.2px;
}
.faq-article p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

/* ─── Related questions ─── */
.faq-related-section {
    margin: 56px 0 0;
    padding: 26px 28px;
    background: linear-gradient(160deg, rgba(167, 139, 250, 0.07), rgba(255, 0, 110, 0.05));
    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 16px;
}
.faq-related-section h3 {
    margin: 0 0 18px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.faq-related-section h3::before {
    content: '🔗';
    font-size: 0.95em;
}
.faq-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.faq-related-link {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all .25s ease;
    font-size: 0.94rem;
}
.faq-related-link:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateX(4px);
    color: var(--electric-blue);
}
.faq-related-link i {
    color: #a78bfa;
    font-size: 0.8em;
}
.faq-related-link:hover i {
    color: var(--electric-blue);
    transform: translateX(2px);
}

/* ─── Internal links ─── */
.faq-internal-links {
    margin: 36px 0 0;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}
.faq-internal-links h3 {
    margin: 0 0 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 1.4px;
}
.faq-internal-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-internal-links li::before {
    content: '→';
    color: var(--electric-blue);
    margin-right: 8px;
    font-weight: 800;
}
.faq-internal-links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color .2s ease;
}
.faq-internal-links a:hover { color: var(--electric-blue); }

/* ─── Sticky conversion rail ─── */
.faq-rail {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (max-width: 1024px) { .faq-rail { display: none; } }
.faq-rail-card {
    background: linear-gradient(160deg, rgba(0, 212, 255, 0.10), rgba(45, 27, 105, 0.18));
    border: 1px solid rgba(0, 212, 255, 0.32);
    border-radius: 16px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.faq-rail-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%; right: -20%; bottom: -50%;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.18) 0%, transparent 60%);
    pointer-events: none;
    animation: railGlowPulse 6s ease-in-out infinite;
}
.faq-rail-card > * { position: relative; z-index: 1; }
.faq-rail-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--electric-blue);
    margin-bottom: 8px;
}
.faq-rail-headline {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 10px;
}
.faq-rail-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.5;
    margin: 0 0 18px;
}
.faq-rail .faq-cta-btn { width: 100%; justify-content: center; margin: 0; }

/* ─── CTA block (used at bottom + in rail) ─── */
.faq-cta {
    margin-top: 56px;
    padding: 38px 32px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 0, 110, 0.15), transparent 60%),
        linear-gradient(135deg, rgba(255, 107, 0, 0.06), rgba(0, 212, 255, 0.06));
    border: 1px solid rgba(255, 107, 0, 0.28);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.faq-cta h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 12px;
    color: #fff;
    font-weight: 800;
}
.faq-cta p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 22px;
    font-size: 1rem;
}
.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--electric-orange), var(--nebula-pink));
    color: #fff;
    padding: 13px 26px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.98rem;
    margin: 0 6px;
    box-shadow: 0 10px 24px rgba(255, 0, 110, 0.32);
    transition: transform .2s ease, box-shadow .2s ease;
}
.faq-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(255, 0, 110, 0.42);
}
.faq-cta-btn-secondary {
    background: rgba(0, 212, 255, 0.10);
    color: var(--electric-blue);
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: none;
}
.faq-cta-btn-secondary:hover {
    background: rgba(0, 212, 255, 0.20);
    border-color: rgba(0, 212, 255, 0.75);
    box-shadow: 0 10px 24px rgba(0, 212, 255, 0.22);
}

/* ─── Hub page ─── */
.faq-hub-intro {
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.1rem;
    margin: 0 0 32px;
    max-width: 760px;
    line-height: 1.6;
}
.faq-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
}
.faq-hub-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    background:
        linear-gradient(160deg, rgba(0, 212, 255, 0.05), rgba(45, 27, 105, 0.12));
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 14px;
    padding: 22px 24px;
    transition: transform .3s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color .3s ease,
                box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}
.faq-hub-card::before {
    content: '?';
    position: absolute;
    top: 16px;
    right: 18px;
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 212, 255, 0.06);
    line-height: 1;
    pointer-events: none;
    transition: color .3s ease;
}
.faq-hub-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 44px rgba(0, 212, 255, 0.18);
}
.faq-hub-card:hover::before { color: rgba(0, 212, 255, 0.16); }
.faq-hub-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
    padding-right: 36px;
    position: relative;
    z-index: 1;
}
.faq-hub-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

/* ─── Mobile sticky CTA ─── */
.faq-mobile-cta {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 90;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.92), rgba(45, 27, 105, 0.92));
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: mobileCtaSlideIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 1.5s both;
}
@media (max-width: 1024px) { .faq-mobile-cta { display: flex; } }
.faq-mobile-cta-text {
    flex: 1;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}
.faq-mobile-cta-text small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    font-size: 0.74rem;
    margin-top: 2px;
}
.faq-mobile-cta a {
    background: #fff;
    color: var(--nebula-pink);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.86rem;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .faq-main { padding: 0 16px 100px; }
    .faq-hero { padding: 70px 16px 40px; margin: 0 -16px 32px; }
    .faq-tldr { padding: 20px 22px; }
    .faq-tldr p { font-size: 1rem; }
    .faq-cta-btn { display: flex; justify-content: center; margin: 8px 0; }
}
