/* ==============================================================================
 * HEADER BLOCK: "Question Before Making It"
 * ==============================================================================
 * WHAT THIS FILE DOES:
 *   Styles the "Why ProAffiliaters" Benefits section (#benefits) and its 4 key value
 *   pillars: Stay in your zone, Built for speed, Never miss a loot deal, and Zero manual work.
 *
 * WHY THIS FILE EXISTS:
 *   Translates raw platform features into concrete time savings and passive income
 *   benefits for affiliate marketers, supporting the conversion funnel before pricing.
 *
 * WHAT MAJOR RESPONSIBILITY IT HANDLES:
 *   - Alternating Color Rhythm: Uses soft lavender tint (#f6f5ff) with crisp white cards
 *     to provide clean visual separation from the preceding pure white Access Mode section.
 *   - 4-Card Responsive Grid: 4 columns on desktop, 2 columns on tablet, 1 column on mobile.
 *   - Interactive Card Elevations: Subtle hover translation and brand gradient border glow.
 *
 * HOW IT FITS INTO THE OVERALL MARKETING WEBSITE:
 *   Loaded globally in `app/layout.tsx` (`/css/benefits.css`), styling `<section className="benefits" id="benefits">`.
 * ==============================================================================
 */

:root {
    --bn-ink: #0b1130;
    --bn-muted: #5b6178;
    --bn-blue: #2e5af8;
    --bn-violet: #7b2ff7;
    --bn-line: #e4e1fa;
    --bn-grad: linear-gradient(135deg, var(--bn-blue) 0%, var(--bn-violet) 100%);
    --bn-shadow: 0 20px 45px -25px rgba(11, 17, 48, 0.18);
}

.benefits {
    position: relative;
    padding: 120px 8%;
    background: var(--bg-soft, #f6f5ff);
    overflow: hidden;
    text-align: center;
}

.bn-glow {
    position: absolute;
    top: -15%;
    right: 50%;
    transform: translateX(50%);
    width: 700px;
    height: 500px;
    background: var(--bn-grad);
    opacity: 0.07;
    filter: blur(150px);
    border-radius: 50%;
    pointer-events: none;
}

.bn-head {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto 64px;
}

.bn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5a1fd6;
    background: rgba(123, 47, 247, 0.08);
    border: 1px solid var(--bn-line);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.bn-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6);
    animation: bnDotPulse 1.8s ease-out infinite;
}

@keyframes bnDotPulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(40, 200, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); }
}

.bn-head h2 {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: 42px;
    font-weight: 700;
    color: var(--bn-ink);
    line-height: 1.2;
    margin: 0 0 14px;
}

.bn-head h2 .highlight {
    background: var(--bn-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bn-sub {
    font-size: 17px;
    color: var(--bn-muted);
    line-height: 1.7;
    margin: 0;
}

.bn-grid {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bn-card {
    background: #ffffff;
    border: 1px solid var(--bn-line);
    border-radius: 20px;
    padding: 36px 26px;
    text-align: left;
    box-shadow: 0 14px 34px -18px rgba(11, 17, 48, 0.10);
    transition: transform 0.35s cubic-bezier(.16,.8,.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.bn-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--bn-shadow);
    border-color: rgba(123, 47, 247, 0.35);
}

.bn-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--bn-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 20px;
}

.bn-card h3 {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--bn-ink);
    margin: 0 0 10px;
}

.bn-card p {
    font-size: 14.5px;
    color: var(--bn-muted);
    line-height: 1.7;
    margin: 0;
}

.bn-cta {
    position: relative;
    z-index: 1;
    margin-top: 54px;
}

.bn-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bn-grad);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15.5px;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: 0 20px 40px -16px rgba(90, 31, 214, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bn-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px -14px rgba(90, 31, 214, 0.5);
}

/* ---------- scroll reveal ---------- */
.benefits [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.16,.8,.3,1), transform 0.7s cubic-bezier(.16,.8,.3,1);
}
.benefits [data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}
.bn-grid .bn-card:nth-child(1)[data-reveal].in-view { transition-delay: 0s; }
.bn-grid .bn-card:nth-child(2)[data-reveal].in-view { transition-delay: 0.08s; }
.bn-grid .bn-card:nth-child(3)[data-reveal].in-view { transition-delay: 0.16s; }
.bn-grid .bn-card:nth-child(4)[data-reveal].in-view { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .benefits [data-reveal] { opacity: 1; transform: none; transition: none; }
    .bn-eyebrow-dot { animation: none !important; }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1080px) {
    .bn-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
    .benefits { padding: 80px 6%; }
    .bn-head h2 { font-size: 30px; }
    .bn-sub { font-size: 15px; }
    .bn-grid { grid-template-columns: 1fr; gap: 16px; }
    .bn-card { padding: 30px 22px; }
    .bn-btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
    .bn-head h2 { font-size: 26px; }
}

/* ==============================================================================
 * FOOTER BLOCK: "Answer in the End"
 * ==============================================================================
 * MAIN WORKFLOW & EXECUTION STEPS:
 *   1. Atmospheric Lighting: Radial ambient glow (.bn-glow) centered across the viewport.
 *   2. Header & Eyebrow: Displays "Why ProAffiliaters" badge with live pulsing dot.
 *   3. 4-Column Grid (.bn-grid): Stretches across 1280px with 4 feature cards (.bn-card).
 *   4. Interactive Hovers: Translates cards upward by 8px with enhanced elevation shadows.
 *   5. Responsive Breakpoints: Collapses into 2 columns under 1080px and single column under 640px.
 *
 * KEY DEPENDENCIES & CLASSES:
 *   - CSS Tokens: `--bn-ink`, `--bn-blue`, `--bn-violet`, `--bn-grad`, `--bn-shadow`.
 *   - Font families: Plus Jakarta Sans / Sora, DM Sans.
 *   - Linked via `app/layout.tsx` (`/css/benefits.css`).
 *
 * CRITICAL CAVEATS & BUG PREVENTION:
 *   - Retain background: #ffffff on .bn-card so cards contrast boldly against the #f6f5ff section background.
 * ==============================================================================
 */