/* ============================================================
   🔒 FULLY SCOPED — .astro-benefits-wrapper prefix
   Pure CSS animations · No JS · No void space
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

.astro-benefits-wrapper *,
.astro-benefits-wrapper *::before,
.astro-benefits-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ══════════════════════════════
   WRAPPER
══════════════════════════════ */
.astro-benefits-wrapper {
    padding: clamp(48px, 6vw, 70px) clamp(16px, 4vw, 40px);
    background:
        radial-gradient(ellipse at 80% 20%, rgba(255,200,80,0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 80%, rgba(255,140,0,0.07) 0%, transparent 50%),
        linear-gradient(180deg, #fff 0%, #fff9f2 60%, #fff7f0 100%);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* ── shimmer top line ── */
.astro-benefits-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff8c00, #ffd700, #ff8c00, transparent);
    background-size: 200% 100%;
    animation: bnfShimmerBar 3.5s linear infinite;
}

/* ── bottom accent ── */
.astro-benefits-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,140,0,0.2), transparent);
}

/* ── floating orbs (pure CSS) ── */
.astro-benefits-wrapper .bnf-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.astro-benefits-wrapper .bnf-orb-1 {
    width: clamp(200px,25vw,360px);
    height: clamp(200px,25vw,360px);
    background: radial-gradient(circle, rgba(255,140,0,0.07), transparent 70%);
    top: -60px; right: -60px;
    animation: bnfOrbDrift 10s ease-in-out infinite alternate;
}
.astro-benefits-wrapper .bnf-orb-2 {
    width: clamp(150px,18vw,260px);
    height: clamp(150px,18vw,260px);
    background: radial-gradient(circle, rgba(255,215,0,0.09), transparent 70%);
    bottom: -40px; left: -40px;
    animation: bnfOrbDrift 13s ease-in-out 4s infinite alternate-reverse;
}

/* ── floating particles ── */
.astro-benefits-wrapper .bnf-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255,180,50,0.35) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255,140,0,0.2) 1px, transparent 1px);
    background-size: 160px 160px, 90px 90px;
    background-position: 0 0, 45px 45px;
    animation: bnfDotsDrift 20s linear infinite;
    opacity: 0.5;
}

/* ══════════════════════════════
   CONTAINER
══════════════════════════════ */
.astro-benefits-wrapper .astro-benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ══════════════════════════════
   HEADER
══════════════════════════════ */

/* eyebrow */
.astro-benefits-wrapper .bnf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,140,0,0.07);
    border: 1px solid rgba(255,140,0,0.2);
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #c4780a;
    margin-bottom: 14px;
    animation: bnfFadeUp 0.6s ease both;
}

.astro-benefits-wrapper .bnf-eyebrow-dot {
    width: 5px; height: 5px;
    background: #ff8c00;
    border-radius: 50%;
    animation: bnfBlink 2s ease-in-out infinite;
}

.astro-benefits-wrapper .astro-benefits-header h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(24px, 3.5vw, 42px);
    color: #2c2c54;
    margin-bottom: 14px;
    font-weight: 700;
    line-height: 1.2;
    animation: bnfFadeUp 0.65s ease 0.1s both;
}

.astro-benefits-wrapper .astro-benefits-header h2 em {
    font-style: normal;
    background: linear-gradient(45deg, #ff8c00, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: bnfShimmerText 4s ease infinite;
}

.astro-benefits-wrapper .astro-benefits-header p {
    color: #777;
    max-width: 620px;
    margin: 0 auto clamp(28px,4vw,44px);
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.7;
    animation: bnfFadeUp 0.65s ease 0.2s both;
}

/* divider */
.astro-benefits-wrapper .bnf-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: clamp(24px, 3.5vw, 38px);
    animation: bnfFadeUp 0.6s ease 0.25s both;
}
.astro-benefits-wrapper .bnf-divider-line {
    height: 1px; width: 50px;
    background: linear-gradient(90deg, transparent, rgba(255,140,0,0.4));
}
.astro-benefits-wrapper .bnf-divider-line.r {
    background: linear-gradient(90deg, rgba(255,140,0,0.4), transparent);
}
.astro-benefits-wrapper .bnf-divider-icon {
    font-size: 17px;
    animation: bnfSpin 8s linear infinite;
}

/* ══════════════════════════════
   GRID
══════════════════════════════ */
.astro-benefits-wrapper .astro-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 24px);
}

/* ══════════════════════════════
   CARD — pure CSS animations
══════════════════════════════ */
.astro-benefits-wrapper .astro-benefit-card {
    background: rgba(255,255,255,0.92);
    padding: clamp(22px, 2.5vw, 32px);
    border-radius: 22px;
    border: 1px solid rgba(255,140,0,0.1);
    box-shadow: 0 8px 28px rgba(255,140,0,0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: left;

    /* staggered fade-in using nth-child */
    animation: bnfCardReveal 0.6s ease both;
}

.astro-benefits-wrapper .astro-benefit-card:nth-child(1) { animation-delay: 0.05s; }
.astro-benefits-wrapper .astro-benefit-card:nth-child(2) { animation-delay: 0.13s; }
.astro-benefits-wrapper .astro-benefit-card:nth-child(3) { animation-delay: 0.21s; }
.astro-benefits-wrapper .astro-benefit-card:nth-child(4) { animation-delay: 0.29s; }
.astro-benefits-wrapper .astro-benefit-card:nth-child(5) { animation-delay: 0.37s; }
.astro-benefits-wrapper .astro-benefit-card:nth-child(6) { animation-delay: 0.45s; }

/* ── gradient border glow ── */
.astro-benefits-wrapper .astro-benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1.5px;
    background: linear-gradient(135deg, #ff8c00, #ffd700, #ffb347, #ff8c00);
    background-size: 300% 300%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: bnfGradShift 3s ease infinite paused;
    pointer-events: none;
}

/* ── shine sweep ── */
.astro-benefits-wrapper .astro-benefit-card::after {
    content: '';
    position: absolute;
    top: -100%; left: -100%;
    width: 200%; height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(25deg);
    transition: 0.65s ease;
    pointer-events: none;
}

/* ── icon wrapper ── */
.astro-benefits-wrapper .bnf-icon-wrap {
    width: clamp(50px, 6vw, 62px);
    height: clamp(50px, 6vw, 62px);
    background: rgba(255,140,0,0.08);
    border: 1px solid rgba(255,140,0,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.35s ease;
}

.astro-benefits-wrapper .astro-benefit-card span {
    font-size: clamp(24px, 3vw, 30px);
    display: block;
    transition: transform 0.35s ease;
    line-height: 1;
}

/* ── title ── */
.astro-benefits-wrapper .astro-benefit-card h3 {
    font-family: 'Cinzel', serif;
    font-size: clamp(14px, 1.4vw, 17px);
    margin-bottom: 8px;
    font-weight: 700;
    color: #2c2c54;
    transition: color 0.3s ease;
    line-height: 1.3;
}

/* ── body ── */
.astro-benefits-wrapper .astro-benefit-card p {
    font-size: clamp(12px, 1.1vw, 14px);
    color: #888;
    line-height: 1.65;
}

/* ── read more ── */
.astro-benefits-wrapper .bnf-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    color: #ff8c00;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
}

/* ── HOVER ── */
.astro-benefits-wrapper .astro-benefit-card:hover {
    transform: translateY(-10px) scale(1.025);
    box-shadow: 0 28px 56px rgba(255,140,0,0.2);
    border-color: rgba(255,140,0,0.25);
}

.astro-benefits-wrapper .astro-benefit-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

.astro-benefits-wrapper .astro-benefit-card:hover::after {
    top: 100%; left: 100%;
}

.astro-benefits-wrapper .astro-benefit-card:hover .bnf-icon-wrap {
    background: rgba(255,140,0,0.14);
    border-color: rgba(255,140,0,0.35);
    transform: scale(1.08) rotate(-4deg);
}

.astro-benefits-wrapper .astro-benefit-card:hover span {
    transform: scale(1.15) rotate(6deg);
}

.astro-benefits-wrapper .astro-benefit-card:hover h3 {
    color: #c4780a;
}

.astro-benefits-wrapper .astro-benefit-card:hover .bnf-read-more {
    opacity: 1;
    transform: translateX(0);
}

/* ══════════════════════════════
   CTA
══════════════════════════════ */
.astro-benefits-wrapper .astro-benefits-cta {
    margin-top: clamp(28px, 4vw, 44px);
    animation: bnfFadeUp 0.65s ease 0.5s both;
}

.astro-benefits-wrapper .astro-benefits-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(90deg, #ff8c00, #ffd700);
    color: #1a0800;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: clamp(13px, 1.2vw, 15px);
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 28px rgba(255,140,0,0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: bnfPulse 2.5s ease-in-out infinite;
}

.astro-benefits-wrapper .astro-benefits-cta a::before {
    content: '';
    position: absolute;
    width: 200%; height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    top: -100%; left: -100%;
    transition: 0.6s;
}

.astro-benefits-wrapper .astro-benefits-cta a:hover::before { top: 100%; left: 100%; }

.astro-benefits-wrapper .astro-benefits-cta a:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 16px 40px rgba(255,140,0,0.5);
}

/* ══════════════════════════════
   KEYFRAMES (bnf- prefixed)
══════════════════════════════ */
@keyframes bnfShimmerBar {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}
@keyframes bnfOrbDrift {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(20px,30px) scale(1.1); }
}
@keyframes bnfDotsDrift {
    0%   { background-position: 0 0, 45px 45px; }
    100% { background-position: 160px 160px, 205px 205px; }
}
@keyframes bnfFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bnfCardReveal {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bnfBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}
@keyframes bnfShimmerText {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes bnfGradShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes bnfSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes bnfPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,140,0,0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(255,140,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,140,0,0); }
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
    .astro-benefits-wrapper .astro-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .astro-benefits-wrapper .astro-benefits-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .astro-benefits-wrapper .astro-benefit-card {
        text-align: left;
    }
}