/* ── Custom Cursor — disabled ────────────────────────────────────────── */
#cursor-dot,
#cursor-ring,
.cursor-glow {
    display: none !important;
}

/* ── Scroll Progress ────────────────────────────────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--accent-2));
    z-index: 10000;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
}

/* ── Skip Link ──────────────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent);
    color: #07091a;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    z-index: 999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 8px;
}

/* ── Focus ──────────────────────────────────────────────────────────── */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
    box-shadow: 0 0 0 6px var(--bg), 0 0 0 9px var(--accent);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.button {
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px var(--shadow);
}

.button.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #07091a;
    border: none;
    font-weight: 700;
}

.button.primary:hover {
    box-shadow: 0 16px 32px rgba(59, 210, 208, 0.3);
}

.button.ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
}

.button.ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.4);
}

.button.cta {
    padding: 14px 28px;
    font-size: 16px;
    letter-spacing: 0.2px;
    box-shadow: 0 18px 36px rgba(6, 10, 22, 0.45);
}

.button.cta-secondary {
    padding: 14px 28px;
    font-size: 16px;
    border-color: rgba(255, 255, 255, 0.3);
}

.button.tiny {
    padding: 6px 12px;
    font-size: 12px;
}

/* ── Pill badge ─────────────────────────────────────────────────────── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(59, 210, 208, 0.12);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(59, 210, 208, 0.2);
    margin-bottom: 20px;
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
    position: relative;
}

.card.note {
    background: var(--surface-2);
}

.card.highlight {
    background: rgba(59, 210, 208, 0.06);
    border-color: rgba(59, 210, 208, 0.25);
}

/* ── RC AI Widget ────────────────────────────────────────────────────── */
.rc-ai-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.rc-ai-launcher {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #07091a;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 32px rgba(59, 210, 208, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rc-ai-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(59, 210, 208, 0.45);
}

.rc-ai-launcher img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.rc-ai-panel {
    display: none;
    flex-direction: column;
    width: 360px;
    max-height: 500px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.rc-ai-panel.open {
    display: flex;
}

.rc-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.rc-ai-header strong {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    display: block;
}

.rc-ai-header small {
    color: var(--muted);
    font-size: 12px;
}

.rc-ai-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s;
}

.rc-ai-close:hover {
    color: var(--text);
}

.rc-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.rc-ai-msg {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.5;
    max-width: 85%;
    word-break: break-word;
}

.rc-ai-msg.bot {
    background: var(--surface-2);
    border: 1px solid var(--border);
    align-self: flex-start;
    color: var(--text);
}

/* Typing indicator */
.rc-typing {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 12px 16px;
}

.rc-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
    animation: rcBounce 1.2s ease-in-out infinite;
}

.rc-typing span:nth-child(2) { animation-delay: 0.2s; }
.rc-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes rcBounce {
    0%, 60%, 100% { transform: translateY(0);   opacity: 0.5; }
    30%            { transform: translateY(-6px); opacity: 1;   }
}

.rc-ai-msg.user {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #07091a;
    align-self: flex-end;
    font-weight: 500;
}

.rc-ai-msg a {
    color: var(--accent);
    text-decoration: underline;
}

.rc-ai-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.rc-ai-quick button {
    padding: 5px 12px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.rc-ai-quick button:hover {
    color: var(--text);
    border-color: var(--accent);
}

.rc-ai-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface-2);
}

.rc-ai-input input {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.rc-ai-input input:focus {
    border-color: var(--accent);
}

.rc-ai-input button {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    color: #07091a;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

/* ── Toast ───────────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text);
    max-width: 280px;
    z-index: 9990;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Cookie banner ───────────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 8500;
    max-width: 340px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.cookie-content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
}

.cookie-content p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Exit Intent Modal ───────────────────────────────────────── */
#exit-intent {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#exit-intent.open {
    display: flex;
}

.exit-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}

.exit-mascot {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.exit-modal p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.exit-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s;
}

.exit-close:hover {
    color: var(--text);
}

@media (max-width: 480px) {
    .exit-modal {
        padding: 32px 20px;
    }
}

/* ── Mobile Sticky CTA ───────────────────────────────────────── */
#mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: rgba(7, 9, 26, 0.96);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 7900;
    justify-content: center;
}

#mobile-sticky-cta .button {
    width: 100%;
    max-width: 420px;
    justify-content: center;
}

@media (max-width: 768px) {
    #mobile-sticky-cta {
        display: flex;
    }

    .rc-ai-widget {
        right: 12px;
        left: 12px;
        bottom: 84px;
        align-items: stretch;
    }

    .rc-ai-launcher {
        align-self: flex-end;
    }

    .rc-ai-panel {
        width: min(100%, 380px);
        max-height: min(70vh, 520px);
        align-self: flex-end;
    }
}
