: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: 120px 8%;
    background: var(--bg-soft, #f6f5ff);
    overflow: hidden;
}

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

.am-head {
    position: relative;
    z-index: 1;
    max-width: 640px;
    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: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5a1fd6;
    background: rgba(123, 47, 247, 0.08);
    border: 1px solid var(--am-line);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

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

@keyframes amDotPulse {
    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); }
}

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

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

.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: var(--bg-card, #fff);
    border: 1px solid var(--am-line);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 45px -25px rgba(11, 17, 48, 0.15);
    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;
    opacity: 0;
    transform: translateY(24px);
}
.am-card.in-view { opacity: 1; transform: translateY(0); }

.am-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--am-shadow);
}

.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;
}

.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: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--am-ink);
    color: #fff;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 12px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.am-btn:hover {
    background: var(--am-grad);
    transform: translateY(-3px);
}

/* ---------- 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: var(--bg-card, #fff);
    border-radius: 20px;
    border: 1px solid var(--am-line);
    box-shadow: var(--am-shadow);
    overflow: hidden;
}

.am-frame-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #fafaff;
    border-bottom: 1px solid var(--am-line);
}
.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: var(--bg-card, #fff);
    border: 1px solid var(--am-line);
    border-radius: 14px;
    padding: 10px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--am-ink);
    box-shadow: 0 15px 30px -15px rgba(11, 17, 48, 0.25);
    animation: amFloat 4.5s ease-in-out infinite;
}
.am-badge i { color: var(--am-violet); 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
========================================================= */

@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;
    }
}