*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --faq-bg: #0a0a0b;
    --faq-surface: rgba(18, 18, 22, 0.92);
    --faq-surface-soft: rgba(18, 18, 22, 0.76);
    --faq-surface-muted: rgba(255, 255, 255, 0.03);
    --faq-border: rgba(255, 255, 255, 0.08);
    --faq-border-strong: rgba(255, 255, 255, 0.14);
    --faq-text: #f7f7f8;
    --faq-text-soft: rgba(255, 255, 255, 0.78);
    --faq-text-muted: rgba(255, 255, 255, 0.56);
    --faq-orange: #3be22e;
    --faq-orange-dark: #30b129;
    --faq-shadow-sm: 0 16px 38px rgba(0, 0, 0, 0.28);
    --faq-shadow-md: 0 22px 56px rgba(0, 0, 0, 0.4);
    --faq-shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.52);
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.faq-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--main-font);
    color: #fff;
    background:
        radial-gradient(40% 18% at 50% 0%, rgba(48, 177, 41, 0.09), rgba(10, 10, 11, 0) 75%),
        linear-gradient(180deg, #0a0a0b 0%, #0e0e10 100%);
    padding-top: 96px;
    overflow-x: hidden;
}

.faq-page {
    flex: 1 0 auto;
}

.faq-body footer,
.faq-body .footer,
.faq-body .site-footer {
    margin-top: auto;
}

::selection {
    background: rgba(48, 177, 41, 0.22);
    color: #fff;
}

.faq-shell {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

/* HERO */

.faq-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 0 28px;
}

.faq-hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(36% 22% at 24% 18%, rgba(48, 177, 41, 0.08), rgba(10, 10, 11, 0) 72%),
        radial-gradient(28% 18% at 78% 20%, rgba(48, 177, 41, 0.05), rgba(10, 10, 11, 0) 72%);
    pointer-events: none;
}

.faq-hero__top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 28px;
    align-items: start;
}

.faq-hero__content {
    padding: 18px 0;
}

.faq-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(48, 177, 41, 0.98);
    background: rgba(48, 177, 41, 0.1);
    border: 1px solid rgba(48, 177, 41, 0.18);
}

.faq-hero__title {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.faq-hero__title span {
    display: block;
    background: linear-gradient(90deg, var(--servername-gradient));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 8px;
}

.faq-hero__text {
    margin: 20px 0 0;
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--faq-text-soft);
}

.faq-hero__side {
    display: flex;
}

.faq-sidecard {
    width: 100%;
    background: rgba(18, 18, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.30);
}

.faq-sidecard__eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faq-orange);
}

.faq-sidecard__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.15;
}

/* TOOLS PANEL */

.faq-content {
    padding: 8px 0 70px;
}

.faq-tools-panel {
    margin-bottom: 28px;
    padding: 24px;
    border-radius: 24px;
    background: var(--faq-surface);
    border: 1px solid var(--faq-border);
    box-shadow: var(--faq-shadow-sm);
}

.faq-tools-panel__intro {
    margin-bottom: 20px;
}

.faq-section-head__eyebrow {
    margin: 0 0 8px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(48, 177, 41, 0.9);
}

.faq-tools-panel__intro h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.faq-section-head__text {
    margin: 10px 0 0;
    max-width: 720px;
    font-size: 0.96rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.68);
}

.faq-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.faq-search {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 62px;
    border-radius: 18px;
    background: rgba(5, 7, 10, 0.82);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 16px 36px rgba(0,0,0,0.32);
    overflow: hidden;
}

.faq-search svg {
    width: 18px;
    height: 18px;
    margin-left: 18px;
    color: rgba(255,255,255,0.42);
    flex-shrink: 0;
}

.faq-search input {
    width: 100%;
    height: 100%;
    padding: 0 18px 0 12px;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-family: var(--main-font);
    font-size: 0.95rem;
}

.faq-search input::placeholder {
    color: rgba(255,255,255,0.42);
}

.faq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    border-radius: 18px;
    background: rgba(9, 10, 13, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 16px 36px rgba(0,0,0,0.32);
}

.faq-filter {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.76);
    border-radius: 14px;
    padding: 11px 16px;
    font-family: var(--main-font);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: 0.2s ease;
}

.faq-filter:hover {
    transform: translateY(-1px);
    border-color: rgba(48, 177, 41, 0.2);
    color: #fff;
}

.faq-filter.is-active {
    background: linear-gradient(135deg, #3be22e, #30b129);
    border-color: rgba(48, 177, 41, 0.42);
    box-shadow:
        0 12px 28px rgba(48, 177, 41, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/* STATS */

.faq-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
}

.faq-stat {
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(8, 9, 12, 0.64);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}

.faq-stat__value {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
}

.faq-stat__label {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.54);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* FAQ LIST */

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    position: relative;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
        rgba(10, 10, 12, 0.78);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.03);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(48, 177, 41,0), rgba(48, 177, 41,0.7), rgba(48, 177, 41,0));
    opacity: 0.55;
}

.faq-item:hover {
    transform: translateY(-2px);
    border-color: rgba(48, 177, 41, 0.16);
    box-shadow:
        0 24px 70px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.faq-item__trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px 24px 22px;
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font-family: var(--main-font);
}

.faq-item__meta h3 {
    margin: 10px 0 0;
    font-size: 1.06rem;
    line-height: 1.45;
    font-weight: 800;
    color: #fff;
}

.faq-item__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(48, 177, 41, 0.1);
    border: 1px solid rgba(48, 177, 41, 0.16);
    color: rgba(48, 177, 41, 0.96);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.faq-item__icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.76);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-item__icon svg {
    width: 20px;
    height: 20px;
}

.faq-item.is-open .faq-item__icon {
    transform: rotate(180deg);
    background: rgba(48, 177, 41, 0.12);
    color: rgba(48, 177, 41, 0.95);
    border-color: rgba(48, 177, 41, 0.16);
}

.faq-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.faq-item__content-inner {
    padding: 0 24px 24px;
}

.faq-item__content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.74);
}

.faq-empty {
    margin-top: 18px;
}

.faq-empty__box {
    padding: 34px 24px;
    border-radius: 22px;
    text-align: center;
    background: rgba(10,10,12,0.72);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.28);
}

.faq-empty__box h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.faq-empty__box p {
    margin: 0;
    color: rgba(255,255,255,0.65);
}

/* CTA */

.faq-cta {
    margin-top: 26px;
    padding: 30px;
    border-radius: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background:
        radial-gradient(70% 120% at 0% 0%, rgba(48, 177, 41,0.14), rgba(48, 177, 41,0) 45%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
        rgba(9, 10, 13, 0.84);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 24px 70px rgba(0,0,0,0.48),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.faq-cta__eyebrow {
    margin: 0 0 8px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(48, 177, 41, 0.92);
}

.faq-cta h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.05;
}

.faq-cta p {
    margin: 0;
    max-width: 700px;
    line-height: 1.8;
    color: rgba(255,255,255,0.72);
}

.faq-cta__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.faq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    transition: 0.2s ease;
}

.faq-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #3be22e, #30b129);
    box-shadow: 0 14px 30px rgba(48, 177, 41, 0.2);
}

.faq-btn--primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.faq-btn--secondary {
    color: #fff;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
}

.faq-btn--secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(48, 177, 41, 0.18);
}

.faq-footnote {
    margin: 26px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.56);
}

.reveal-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .faq-hero__top {
        grid-template-columns: 1fr;
    }

    .faq-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .faq-toolbar {
        grid-template-columns: 1fr;
    }

    .faq-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .faq-body {
        padding-top: 88px;
    }

    .faq-shell {
        width: min(100% - 24px, 1240px);
    }

    .faq-hero {
        padding-top: 24px;
    }

    .faq-hero__title {
        line-height: 1.02;
    }

    .faq-tools-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .faq-filters {
        padding: 8px;
    }

    .faq-filter {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
        text-align: center;
    }

    .faq-item__trigger {
        padding: 18px;
    }

    .faq-item__content-inner {
        padding: 0 18px 18px;
    }

    .faq-cta {
        padding: 22px 18px;
    }
}

@media (max-width: 520px) {
    .faq-hero__badge {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }

    .faq-search {
        min-height: 56px;
        border-radius: 16px;
    }

    .faq-item {
        border-radius: 18px;
    }

    .faq-item__meta h3 {
        font-size: 0.95rem;
    }

    .faq-item__icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .faq-btn {
        width: 100%;
    }

    .faq-cta__actions {
        width: 100%;
    }

    .faq-filter {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}