/* ==========================================================================
   TRUST SECTION — Dark elegance with floating glows, stagger entrance,
   border shimmer. Derived from: DarkTheme.glass, AppBackground dual glows.
   ========================================================================== */

#trust {
    background-color: var(--clr-bg-dark);
    padding-block: clamp(5rem, 10vw, 8rem);
    color: var(--clr-text-light);
    position: relative;
    overflow: hidden;
}

/* ── Header ──────────────────────────────────────────────────────── */

.trust-header {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: 4rem;
}

.trust-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.trust-header p {
    font-size: 1.125rem;
    opacity: 0.8;
}

/* ── Trust Pillars — Staggered entrance + dark glass ─────────────── */

.trust-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-block: 4rem 3rem;
}

.trust-pillar {
    background: rgba(255, 255, 255, 0.07);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition:
        transform 0.4s var(--ease-smooth),
        box-shadow 0.4s var(--ease-smooth),
        background 0.4s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.trust-pillar:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.10);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(244, 123, 37, 0.12);
}

/* Shimmer streak on dark glass cards */
.trust-pillar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.04) 45%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 55%,
        transparent 70%
    );
    transform: skewX(-15deg);
    transition: left 0.8s var(--ease-smooth);
    pointer-events: none;
}

.trust-pillar:hover::after {
    left: 120%;
}

/* ── Stagger entrance for trust pillars ──────────────────────────── */

.trust-pillars.stagger-children > .trust-pillar {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.trust-pillars.stagger-children.is-visible > .trust-pillar {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Per-pillar delays */
.trust-pillars.stagger-children.is-visible > .trust-pillar:nth-child(1) { transition-delay: 80ms; }
.trust-pillars.stagger-children.is-visible > .trust-pillar:nth-child(2) { transition-delay: 160ms; }
.trust-pillars.stagger-children.is-visible > .trust-pillar:nth-child(3) { transition-delay: 240ms; }
.trust-pillars.stagger-children.is-visible > .trust-pillar:nth-child(4) { transition-delay: 320ms; }
.trust-pillars.stagger-children.is-visible > .trust-pillar:nth-child(5) { transition-delay: 400ms; }
.trust-pillars.stagger-children.is-visible > .trust-pillar:nth-child(6) { transition-delay: 480ms; }

/* ── Trust Icon ──────────────────────────────────────────────────── */

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--clr-primary);
    width: 40px;
    height: 40px;
    transition: transform 0.3s var(--ease-bounce);
}

.trust-pillar:hover .trust-icon {
    transform: scale(1.15) rotate(-5deg);
}

.trust-icon svg {
    width: 100%;
    height: 100%;
}

.trust-badge {
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--clr-primary-glow);
    color: var(--clr-primary);
    align-self: flex-start;
}

.trust-pillar h3 {
    font-size: 1.25rem;
    margin-block: 0.25rem 0;
    color: var(--clr-text-light);
}

.trust-pillar p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
    margin: 0;
}

/* ── Auth Callout — Animated left border ─────────────────────────── */

.trust-auth-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.07);
    border-left: 3px solid var(--clr-primary);
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
}

/* Animated border glow pulse */
.trust-auth-callout::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--clr-primary) 40%,
        rgba(251, 191, 36, 0.8) 60%,
        transparent 100%
    );
    animation: borderGlowSlide 3s ease-in-out infinite;
}

@keyframes borderGlowSlide {
    0%, 100% { transform: translateY(-30%); opacity: 0.5; }
    50% { transform: translateY(30%); opacity: 1; }
}

.trust-auth-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--clr-primary);
    width: 32px;
    height: 32px;
}

.trust-auth-icon svg {
    width: 100%;
    height: 100%;
}

.trust-auth-text {
    flex: 1;
    font-size: 1rem;
    min-width: 250px;
}

.trust-auth-text--centered {
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.7;
    letter-spacing: 0.02em;
}

.trust-auth-text strong {
    color: var(--clr-text-light);
    font-weight: 600;
}

.trust-auth-text span {
    opacity: 0.75;
}

.trust-auth-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trust-chip {
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    color: var(--clr-text-light);
}

/* ── Mobile ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .trust-pillars {
        grid-template-columns: 1fr;
    }

    .trust-auth-callout {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
}