/* ==============================================================================
 * HEADER BLOCK: "Question Before Making It"
 * ==============================================================================
 * WHAT THIS FILE DOES:
 *   Styles the Access Mode helper tool showcase section (#access) on the ProAffiliaters
 *   marketing website, displaying dual web dashboard vs Telegram bot access paths
 *   alongside an interactive animated chat simulator.
 *
 * WHY THIS FILE EXISTS:
 *   Users have distinct preferred operating environments: desktop power users prefer
 *   the comprehensive web converter, while mobile creators prefer lightning-fast
 *   Telegram bot automation. This section visualizes both paths side-by-side.
 *
 * WHAT MAJOR RESPONSIBILITY IT HANDLES:
 *   - PC 100vh Viewport Layout: Implements full 100vh height on PC/desktop devices
 *     with flex vertical centering so users experience a focused, immersive screen.
 *   - 3-Column Interactive Grid: Left Web Card, Center Mockup Frame, Right Bot Card.
 *   - Simulated Browser & Chat Window: Renders traffic input, conversion preview,
 *     and destination channel tags.
 *   - Fluid Responsiveness: Scales gracefully down to stacked viewports on tablets
 *     and mobile devices.
 *
 * HOW IT FITS INTO THE OVERALL MARKETING WEBSITE:
 *   Loaded globally in `app/layout.tsx` (`/css/access.css`), directly styling the
 *   `<section className="access-mode" id="access">` in `app/page.tsx`.
 * ==============================================================================
 */

:root {
    --am-ink: #0b1130;
    --am-muted: #5b6178;
    --am-blue: #2e5af8;
    --am-violet: #7b2ff7;
    --am-line: #e4e1fa;
    --am-grad: linear-gradient(135deg, var(--am-blue) 0%, var(--am-violet) 100%);
    --am-shadow: 0 30px 60px -25px rgba(90, 31, 214, 0.28);
}

.access-mode {
    position: relative;
    padding: 90px 6%;
    background: #888bb0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.am-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.32) 0%, rgba(99, 102, 241, 0.22) 50%, transparent 75%);
    opacity: 0.9;
    filter: blur(130px);
    border-radius: 50%;
    pointer-events: none;
}

.am-head {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto 70px;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.16,.8,.3,1), transform 0.7s cubic-bezier(.16,.8,.3,1);
}
.am-head.in-view { opacity: 1; transform: translateY(0); }

.am-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    padding: 7px 18px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.am-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: amDotPulse 1.8s ease-out infinite;
}

@keyframes amDotPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.am-head h2 {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.22;
    margin: 0 0 14px;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 14px rgba(11, 16, 43, 0.28);
}

.am-head h2 .highlight {
    background: linear-gradient(135deg, #ffffff 0%, #fed7aa 40%, #fde047 75%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    white-space: nowrap;
    filter: none;
}

.am-sub {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 450;
    line-height: 1.65;
    margin: 0;
    text-shadow: 0 1px 6px rgba(11, 16, 43, 0.20);
}

.am-grid {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 40px;
    align-items: center;
}

/* ---------- side cards ---------- */
.am-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.90);
    border-radius: 22px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 22px 55px -16px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform 0.35s cubic-bezier(.16,.8,.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
    opacity: 0;
    transform: translateY(24px);
}
.am-card.in-view { opacity: 1; transform: translateY(0); }

.am-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 75px -18px rgba(15, 23, 42, 0.38), 0 0 25px rgba(124, 58, 237, 0.20);
    border-color: rgba(124, 58, 237, 0.40);
}

.am-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--am-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 4px;
    box-shadow: 0 10px 24px -8px rgba(46, 90, 248, 0.45);
}

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

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

.am-btn {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4f6ef7 0%, #7c3aed 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 20px -6px rgba(79, 110, 247, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.am-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -6px rgba(124, 58, 237, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    filter: brightness(1.08);
    color: #ffffff;
}

/* ---------- center visual ---------- */
.am-visual {
    position: relative;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.16,.8,.3,1);
}
.am-visual.in-view { opacity: 1; transform: scale(1); }

.am-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 28px 70px -18px rgba(15, 23, 42, 0.32), 0 2px 8px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.am-frame-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.am-frame-bar span:nth-child(1),
.am-frame-bar span:nth-child(2),
.am-frame-bar span:nth-child(3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.am-frame-bar span:nth-child(1) { background: #ff5f57; }
.am-frame-bar span:nth-child(2) { background: #febc2e; }
.am-frame-bar span:nth-child(3) { background: #28c840; }

.am-frame-url {
    margin-left: 10px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    color: var(--am-muted);
    background: #fff;
    border: 1px solid var(--am-line);
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.am-frame-body {
    padding: 24px 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.am-chat-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    padding: 12px 14px;
    border-radius: 14px;
    max-width: 88%;
}

.am-chat-in {
    background: var(--bg-soft, #f6f5ff);
    color: var(--am-ink);
    border: 1px solid var(--am-line);
    border-bottom-left-radius: 4px;
}
.am-chat-in i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--am-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.am-chat-out {
    align-self: flex-end;
    background: var(--am-grad);
    color: #fff;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    border-bottom-right-radius: 4px;
}

.am-chat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--am-line);
    border-radius: 14px;
    padding: 12px 14px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 13px;
    color: var(--am-ink);
    box-shadow: 0 8px 20px -12px rgba(11, 17, 48, 0.2);
}
.am-chat-link i:first-child { color: var(--am-violet); }
.am-check { margin-left: auto; color: #1a9e4a; }

.am-chat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.am-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--am-muted);
    background: var(--bg-soft, #f6f5ff);
    border: 1px solid var(--am-line);
    padding: 6px 12px;
    border-radius: 999px;
}

.am-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.90);
    border-radius: 14px;
    padding: 10px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #0f172a;
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(15, 23, 42, 0.06);
    animation: amFloat 4.5s ease-in-out infinite;
}
.am-badge i { color: #7c3aed; font-size: 14px; }

.am-badge-a {
    top: -10px;
    right: -20px;
}
.am-badge-b {
    bottom: -10px;
    left: -20px;
    animation-delay: 1.2s;
}

@keyframes amFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* =========================================================
   ACCESS MEDIA PAGE & RESPONSIVE RULES
========================================================= */

/* PC / Desktop 100vh Viewport Layout */
@media (min-width: 1025px) {
    .access-mode {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: clamp(20px, 3vh, 45px) 6%;
        box-sizing: border-box;
    }

    .am-head {
        margin: 0 auto clamp(16px, 2.5vh, 32px);
    }

    .am-head h2 {
        font-size: clamp(28px, 2.4vw, 38px);
        margin: 0 0 8px;
    }

    .am-sub {
        font-size: clamp(14px, 1vw, 16px);
        max-width: 580px;
        margin: 0 auto;
    }

    .am-eyebrow {
        margin-bottom: 12px;
        padding: 5px 14px;
        font-size: 12px;
    }

    .am-grid {
        width: 100%;
        max-width: 1240px;
        gap: clamp(16px, 2vw, 32px);
    }

    .am-card {
        padding: clamp(20px, 2.8vh, 32px) clamp(16px, 1.8vw, 24px);
        gap: 12px;
    }

    .am-icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
        font-size: 20px;
        margin-bottom: 0;
    }

    .am-card h3 {
        font-size: 19px;
    }

    .am-card p {
        font-size: 13.5px;
        line-height: 1.55;
    }

    .am-btn {
        margin-top: 4px;
        padding: 10px 20px;
        font-size: 13.5px;
    }

    .am-frame {
        max-width: 350px;
    }

    .am-frame-body {
        padding: clamp(14px, 1.8vh, 20px) 16px;
        gap: 10px;
    }

    .am-chat-msg {
        padding: 9px 12px;
        font-size: 12px;
    }

    .am-badge {
        font-size: 11.5px;
        padding: 8px 13px;
    }
}

@media (max-width: 1100px) {
    .am-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .am-visual { order: -1; }
    .am-badge-a { right: 10px; }
    .am-badge-b { left: 10px; }
}

@media (max-width: 860px) {
    .am-visual {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .access-mode { padding: 90px 6%; }
    .am-head h2 { font-size: 32px; }
    .am-frame { max-width: 100%; }
    .am-badge { font-size: 11.5px; padding: 8px 12px; }
    .am-badge-a { top: -14px; right: 4px; }
    .am-badge-b { bottom: -14px; left: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .am-eyebrow-dot, .am-badge {
        animation: none !important;
    }
}

/* ==============================================================================
 * FOOTER BLOCK: "Answer in the End"
 * ==============================================================================
 * MAIN WORKFLOW & EXECUTION STEPS:
 *   1. Initial Render: The section displays an ambient radial gradient glow (.am-glow)
 *      with light purple/blue tint (#f6f5ff).
 *   2. PC 100vh Viewport Docking: On desktop screens (>=1025px), `.access-mode` is
 *      explicitly constrained to `height: 100vh; max-height: 100vh;` with flexbox
 *      vertical centering, ensuring the whole section fits on PC screens without scrolling.
 *   3. Interactive Card Elevations: Left (Web Access) and Right (Bot Access) feature
 *      hover translateY(-8px) elevation with colored brand glow.
 *   4. Center Frame Simulation: Renders a macOS-style browser header and active chat
 *      bubble demonstration with floating animated badges (.am-badge-a, .am-badge-b).
 *   5. Responsive Breakdown: Stacks gracefully on tablets (<1100px) and hides the
 *      visual preview on small mobile screens (<860px) for compact conversion focus.
 *
 * KEY DEPENDENCIES & CLASSES:
 *   - CSS Tokens: `--am-ink`, `--am-blue`, `--am-violet`, `--am-grad`.
 *   - Font families: 'Sora', 'JetBrains Mono', System Sans.
 *   - Linked via `app/layout.tsx` (`/css/access.css`).
 *
 * CRITICAL CAVEATS & BUG PREVENTION:
 *   - When in 100vh mode on PC, maintain clamped padding and gap spacing to prevent
 *     any inner overflow on compact 13-inch laptop screens (768px-826px heights).
 * ==============================================================================
 */