/* Resources page */

.resources-page {
    padding-top: clamp(5rem, 10vw, 7rem);
}

/* Hero */
.res-hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.res-hero__icon-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.res-hero__icon-chip {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--hp-surface-2, #14141a);
    border: 1px solid var(--hp-border, rgba(255, 255, 255, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
}

.res-hero__icon-chip img {
    width: 24px;
    height: 24px;
}

.res-hero .btn-outline-light {
    border-color: var(--hp-border, rgba(255, 255, 255, 0.15));
    color: #fff;
}

.res-hero .btn-outline-light:hover {
    background: var(--hp-surface-2, #14141a);
    border-color: var(--primary-color);
    color: #fff;
}

/* Tools bento */
.res-tools {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .res-tools {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
    }

    .res-tool-card--featured {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 2rem;
        align-items: center;
    }
}

.res-tool-card {
    padding: 2rem;
    background: var(--hp-surface-2, #14141a);
    border: 1px solid var(--hp-border, rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    transition: border-color 0.25s, transform 0.25s;
    position: relative;
    overflow: hidden;
}

.res-tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--hp-gradient, linear-gradient(90deg, var(--primary-color), var(--primary-color2)));
    opacity: 0;
    transition: opacity 0.25s;
}

.res-tool-card:hover {
    border-color: color-mix(in srgb, var(--primary-color) 35%, transparent);
    transform: translateY(-4px);
}

.res-tool-card:hover::before {
    opacity: 1;
}

.res-tool-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.res-tool-card__icon img {
    width: 28px;
    height: 28px;
}

.res-tool-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hp-text, #fff);
    margin-bottom: 0.65rem;
}

.res-tool-card p {
    font-size: 0.9rem;
    color: var(--hp-muted, #a1a1aa);
    line-height: 1.7;
    margin: 0;
}

.res-tool-card__tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* Security section */
.res-security {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 992px) {
    .res-security {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 4rem;
    }
}

.res-security__panel {
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--hp-border, rgba(255, 255, 255, 0.08));
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--primary-color) 12%, var(--hp-surface-2, #14141a)), var(--hp-surface-2, #14141a));
    position: relative;
    overflow: hidden;
}

.res-security__panel::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 25%, transparent), transparent 70%);
    pointer-events: none;
}

.res-security__panel-content {
    position: relative;
    z-index: 1;
}

.res-security__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary-color) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.res-security__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.res-security-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--hp-surface-2, #14141a);
    border: 1px solid var(--hp-border, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    transition: border-color 0.2s, background 0.2s;
}

.res-security-item:hover {
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
    background: color-mix(in srgb, var(--primary-color) 4%, var(--hp-surface-2, #14141a));
}

.res-security-item__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 40%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
}

.res-security-item__icon img {
    width: 32px;
    height: 32px;
}

.res-security-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hp-text, #fff);
    margin: 0 0 0.4rem;
}

.res-security-item p {
    font-size: 0.88rem;
    color: var(--hp-muted, #a1a1aa);
    line-height: 1.65;
    margin: 0;
}

/* Compliance chips */
.res-compliance-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.res-compliance-row span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    background: var(--hp-bg, #050508);
    border: 1px solid var(--hp-border, rgba(255, 255, 255, 0.08));
    color: var(--hp-muted, #a1a1aa);
}

/* CTA */
.res-cta {
    margin-top: 2rem;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 24px;
    border: 1px solid var(--hp-border, rgba(255, 255, 255, 0.08));
    background: var(--hp-surface-2, #14141a);
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .res-cta {
        grid-template-columns: 1fr auto;
    }
}

.res-cta h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hp-text, #fff);
    margin: 0 0 0.5rem;
}

.res-cta p {
    color: var(--hp-muted, #a1a1aa);
    margin: 0;
    font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
    .res-tool-card:hover {
        transform: none;
    }
}
