/*
 * AduanasFlex Login — Standalone Page Styles
 * Design: Corporate · Minimalist · Modern
 * Colors: Navy #1e2d5a  |  Teal #2ecfbe
 */

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
    --af-navy:        #1e2d5a;
    --af-navy-dark:   #141f3e;
    --af-navy-mid:    #253470;
    --af-teal:        #2ecfbe;
    --af-teal-dim:    rgba(46, 207, 190, 0.15);
    --af-teal-border: rgba(46, 207, 190, 0.30);

    --af-white:    #ffffff;
    --af-gray-50:  #f8fafc;
    --af-gray-100: #f1f5f9;
    --af-gray-200: #e2e8f0;
    --af-gray-300: #cbd5e1;
    --af-gray-400: #94a3b8;
    --af-gray-500: #64748b;
    --af-gray-600: #475569;
    --af-gray-800: #1e293b;

    --af-radius:    12px;
    --af-radius-sm: 8px;
    --af-radius-lg: 16px;

    --af-font: 'Inter', sans-serif;
    --af-font-display: 'Google Sans', 'Inter', sans-serif;
}

/* ─── BASE ───────────────────────────────────────────── */
body {
    font-family: var(--af-font);
    background: var(--af-gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    color: var(--af-gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════
   LOGIN PAGE LAYOUT
═══════════════════════════════════════════════════════ */

.af-login-page {
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport — excludes mobile browser chrome */
    display: flex;
    align-items: stretch;
}

/* ── LEFT: BRAND PANEL ──────────────────────────────── */
.af-brand-panel {
    flex: 0 0 48%;
    background: var(--af-navy);
    display: flex;
    flex-direction: column;
    padding: 48px 52px;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glows for depth */
.af-brand-panel::before {
    content: '';
    position: absolute;
    top: -100px; right: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,207,190,0.07) 0%, transparent 65%);
    pointer-events: none;
}
.af-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -60px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,207,190,0.05) 0%, transparent 65%);
    pointer-events: none;
}

/* Wordmark */
.af-brand-logo {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin-bottom: 6px;
}
.af-brand-logo-bold {
    font-size: 26px;
    font-weight: 700;
    color: var(--af-white);
    letter-spacing: -0.5px;
}
.af-brand-logo-light {
    font-size: 26px;
    font-weight: 300;
    color: var(--af-teal);
    letter-spacing: -0.5px;
}
.af-brand-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
    letter-spacing: 0.4px;
}

/* ── SVG ANIMATION STAGE ────────────────────────────── */
.af-svg-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.af-logo-svg {
    animation: floatBox 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(46,207,190,0.18));
}

/* SVG path draw-in animation uses pathLength="1" on each element */
.af-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: drawPath 0.8s ease forwards;
}
.af-draw-1 { animation-delay: 0.1s; }
.af-draw-2 { animation-delay: 0.4s; }
.af-draw-3 { animation-delay: 0.6s; }
.af-draw-4 { animation-delay: 0.9s; }
.af-draw-arrow { animation-delay: 1.1s; }

.af-arrow-group {
    opacity: 0;
    animation: arrowIn 0.5s ease 1.2s forwards;
}

/* ── FEATURE ITEMS ──────────────────────────────────── */
.af-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.af-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeSlideIn 0.4s ease forwards;
}
.af-feature-item:nth-child(1) { animation-delay: 0.7s; }
.af-feature-item:nth-child(2) { animation-delay: 0.9s; }
.af-feature-item:nth-child(3) { animation-delay: 1.1s; }

.af-feature-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--af-radius-sm);
    background: var(--af-teal-dim);
    border: 1px solid var(--af-teal-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.af-feature-icon i {
    font-size: 13px;
    color: var(--af-teal);
}

.af-feature-text {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    font-weight: 500;
    line-height: 1.4;
}

/* ── BRAND FOOTER ───────────────────────────────────── */
.af-brand-footer {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.af-brand-footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    font-weight: 400;
}
.af-brand-footer-copy strong {
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}
.af-brand-footer-version {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
}

/* ── RIGHT: FORM PANEL ──────────────────────────────── */
.af-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    background: var(--af-white);
}

.af-form-card {
    width: 100%;
    max-width: 360px;
}

/* Form header */
.af-form-header {
    margin-bottom: 32px;
}
.af-form-title {
    font-family: var(--af-font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--af-navy);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}
.af-form-subtitle {
    font-size: 13px;
    color: var(--af-gray-400);
    font-weight: 400;
}

/* Form groups */
.af-form-group {
    margin-bottom: 18px;
}

.af-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--af-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 7px;
}

.af-input-wrap {
    position: relative;
}

.af-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--af-gray-200);
    border-radius: var(--af-radius);
    font-size: 14px;
    font-family: var(--af-font);
    color: var(--af-gray-800);
    background: var(--af-gray-50);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.af-input:focus {
    border-color: var(--af-navy);
    background: var(--af-white);
    box-shadow: 0 0 0 3px rgba(30,45,90,0.08);
}
.af-input::placeholder { color: var(--af-gray-300); }
.af-input-with-icon { padding-right: 42px; }

.af-input-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--af-gray-400);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}
.af-input-toggle:hover { color: var(--af-navy); }

/* Inline row (show pass / forgot) */
.af-form-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.af-link {
    font-size: 12px;
    color: var(--af-navy);
    font-weight: 500;
    transition: color 0.2s;
}
.af-link:hover { color: var(--af-teal); }
.af-link-muted {
    font-size: 12px;
    color: var(--af-gray-400);
    cursor: pointer;
    transition: color 0.2s;
}
.af-link-muted:hover { color: var(--af-gray-600); }

/* reCAPTCHA */
.af-recaptcha-wrap {
    transform: scale(0.87);
    transform-origin: center top; /* center: aligns visually with the inputs above it */
    margin: 16px 0;
    /* Fix: limit layout height to match scaled visual height to avoid whitespace */
    height: 68px;
    overflow: hidden;
}

/* Submit */
.af-btn-submit {
    width: 100%;
    height: 46px;
    background: var(--af-navy);
    color: var(--af-white);
    border: none;
    border-radius: var(--af-radius);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--af-font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.2px;
    margin-top: 12px;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
.af-btn-submit:hover {
    background: var(--af-navy-mid);
    box-shadow: 0 4px 16px rgba(30,45,90,0.22);
}
.af-btn-submit:active { transform: scale(0.99); }

/* Loading dots */
.af-loading {
    display: none;
    text-align: center;
    padding: 10px 0;
}
.af-loading-text {
    font-size: 13px;
    color: var(--af-gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.af-dots span {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--af-teal);
    animation: dotBounce 1.2s infinite ease-in-out;
}
.af-dots span:nth-child(2) { animation-delay: 0.2s; }
.af-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Divider */
.af-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}
.af-divider::before,
.af-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--af-gray-200);
}
.af-divider span {
    font-size: 12px;
    color: var(--af-gray-300);
    font-weight: 500;
}

/* Signup link */
.af-signup {
    text-align: center;
    font-size: 13px;
    color: var(--af-gray-500);
}
.af-signup a {
    color: var(--af-navy);
    font-weight: 600;
}
.af-signup a:hover { color: var(--af-teal); }

/* ═══════════════════════════════════════════════════════
   MFA MODAL
═══════════════════════════════════════════════════════ */

.af-modal-content {
    border: none;
    border-radius: var(--af-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.af-modal-header {
    background: var(--af-navy);
    padding: 18px 24px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.af-modal-title {
    font-family: var(--af-font-display);
    font-size: 16px;
    font-weight: 500;
    color: var(--af-white);
    margin: 0;
}
.af-modal-close-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--af-white);
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s;
}
.af-modal-close-btn:hover { background: rgba(255,255,255,0.22); }

.af-mfa-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--af-radius);
    background: var(--af-teal-dim);
    border: 1px solid var(--af-teal-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.af-mfa-icon i {
    font-size: 20px;
    color: var(--af-teal);
}

/* Recover password page icon (same shape as mfa icon) */
.af-recover-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--af-radius);
    background: var(--af-teal-dim);
    border: 1px solid var(--af-teal-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.af-recover-icon i {
    font-size: 20px;
    color: var(--af-teal);
}

.af-input-mfa {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 8px;
}

/* ═══════════════════════════════════════════════════════
   INLINE STEP TRANSITION
═══════════════════════════════════════════════════════ */

.af-step {
    width: 100%;
}

@keyframes stepEnter {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes stepExit {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-24px); }
}

.af-step-enter {
    animation: stepEnter 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.af-step-exit {
    animation: stepExit 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

/* Back link in MFA inline step */
.af-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    margin-top: 20px;
    font-family: var(--af-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--af-gray-500);
    cursor: pointer;
    transition: color 0.2s;
    width: 100%;
    justify-content: center;
}
.af-back-btn:hover { color: var(--af-navy); }
.af-back-btn i { font-size: 12px; }

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */

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

@keyframes drawPath {
    from { stroke-dashoffset: 1; }
    to   { stroke-dashoffset: 0; }
}

@keyframes arrowIn {
    from { opacity: 0; transform: translate(8px, 8px); }
    to   { opacity: 1; transform: translate(0, 0); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50%       { opacity: 0.50; transform: scale(1.12); }
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes dotBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%           { transform: translateY(-6px); }
}

@keyframes pillsMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */

/* Mobile brand banner — hidden on desktop */
.af-mobile-brand { display: none; }

@media (max-width: 960px) {
    .af-brand-panel { display: none; }

    /* Parent container becomes a column so the form panel fills full height correctly */
    .af-login-page {
        flex-direction: column;
        align-items: stretch;
    }

    /* Panel becomes a column: brand banner on top, form card below */
    .af-form-panel {
        flex: 1;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        background: var(--af-white);
        /* Ensure the form panel itself fills at least the full screen height */
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Form card gets its own padding now */
    .af-form-card {
        max-width: 480px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 32px 24px 40px;
    }

    /* Brand banner — full-width, no negative margins needed */
    .af-mobile-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: var(--af-navy);
        padding: 52px 24px 44px; /* extra bottom padding for the card overlap */
        width: 100%;
        position: relative;
        overflow: hidden;
    }
    .af-mobile-brand::before {
        content: '';
        position: absolute;
        top: -60px; right: -40px;
        width: 260px; height: 260px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(46,207,190,0.08) 0%, transparent 70%);
        pointer-events: none;
    }
    .af-mobile-brand-wordmark {
        font-family: var(--af-font-display);
        display: flex;
        align-items: baseline;
        gap: 0;
        margin-bottom: 8px;
    }
    .af-mobile-brand-wordmark .af-brand-logo-bold {
        font-size: 36px;
        color: #ffffff;
        font-weight: 700;
        font-family: var(--af-font-display);
        letter-spacing: -0.5px;
    }
    .af-mobile-brand-wordmark .af-brand-logo-light {
        font-size: 36px;
        color: #2ecfbe;
        font-weight: 300;
        font-family: var(--af-font-display);
        letter-spacing: -0.5px;
    }
    .af-mobile-brand-sub {
        font-size: 12px;
        color: rgba(255,255,255,0.65);
        letter-spacing: 0.4px;
        margin-bottom: 20px;
    }

    /* Marquee pills — full brand width, fade on edges */
    .af-mobile-brand-pills {
        width: calc(100% + 48px);
        margin-left: -24px;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }
    .af-pills-track {
        display: flex;
        gap: 10px;
        width: max-content;
        animation: pillsMarquee 14s linear infinite;
        padding: 2px 24px;
    }
    .af-mobile-pill {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: rgba(46,207,190,0.10);
        border: 1px solid rgba(46,207,190,0.22);
        border-radius: 9999px;
        padding: 4px 12px;
        font-size: 11px;
        color: var(--af-teal);
        font-weight: 500;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Form — compact on mobile */
    .af-form-header { margin-bottom: 20px; }
    .af-form-title  { font-size: 20px; }
    .af-form-group  { margin-bottom: 14px; }
    .af-input       { height: 44px; font-size: 14px; } /* 44px = min recommended touch target */
    .af-btn-submit  { height: 48px; font-size: 14px; margin-top: 10px; }

    /* Separate form card visually from the navy brand section */
    .af-form-card {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -4px 20px rgba(30, 45, 90, 0.08);
        position: relative;
        margin-top: -20px; /* overlap slightly over the brand section */
        background: #fff;
        z-index: 1;
    }

    /* Hide scroll hint on mobile — user scrolls naturally */
    .af-scroll-hint { display: none; }

    /* Demo CTA */
    .af-demo-cta {
        background: var(--af-gray-50);
        border: 1px solid var(--af-gray-200);
        border-radius: var(--af-radius);
        padding: 14px 16px;
        text-align: center;
        flex-direction: column;
        gap: 6px;
    }
    .af-demo-link {
        display: inline-block;
        background: var(--af-navy);
        color: var(--af-white) !important;
        border-radius: 9999px;
        padding: 6px 18px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.2px;
        transition: background 0.2s;
    }
    .af-demo-link:hover { background: var(--af-navy-mid); }
}

@media (max-width: 400px) {
    .af-form-card    { padding: 28px 20px 36px; }
    .af-mobile-brand { padding: 44px 20px 40px; } /* extra bottom padding for card overlap */
    .af-mobile-brand-pills {
        width: calc(100% + 40px);
        margin-left: -20px;
    }
    /* Scale down reCAPTCHA more on very small screens (< 352px would overflow) */
    .af-recaptcha-wrap {
        transform-origin: center top; /* keep centered even at smaller scale */
        transform: scale(0.75);
        height: 59px;
    }
}


/* ═══════════════════════════════════════════════════════
   SCROLL HINT (login panel bottom)
═══════════════════════════════════════════════════════ */

.af-scroll-hint {
    margin-top: 28px;
    text-align: center;
}
.af-scroll-hint a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--af-gray-400);
    text-decoration: none;
    transition: color 0.2s;
    animation: scrollBounce 2s ease-in-out infinite;
    animation-delay: 2s;
}
.af-scroll-hint a:hover { color: var(--af-navy); }
.af-scroll-hint i { font-size: 11px; }

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(4px); }
}


/* ═══════════════════════════════════════════════════════
   LANDING SLIDES — BASE
═══════════════════════════════════════════════════════ */

.af-slide {
    width: 100%;
    padding: 100px 0;
}

.af-slide-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 48px;
}

.af-slide-inner-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Backgrounds */
.af-slide-navy  { background: var(--af-navy); }
.af-slide-white { background: var(--af-white); }
.af-slide-dim   { background: var(--af-gray-50); }

/* Eyebrow / tag */
.af-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}
.af-eyebrow-teal { color: var(--af-teal); }

.af-section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--af-navy);
    background: rgba(30,45,90,0.07);
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 20px;
}
.af-tag-teal {
    color: #0d9488;
    background: rgba(46,207,190,0.12);
}

/* Headlines */
.af-slide-headline {
    font-family: var(--af-font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--af-white);
    margin-bottom: 20px;
}
.af-dark-text { color: var(--af-navy); }

.af-teal-text  { color: var(--af-teal); }

/* Lead paragraph */
.af-slide-lead {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    font-weight: 400;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 48px;
}
.af-lead-dark {
    color: var(--af-gray-500);
    margin-bottom: 56px;
}


/* ═══════════════════════════════════════════════════════
   SLIDE 1 — PILLARS
═══════════════════════════════════════════════════════ */

.af-pillars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--af-radius-lg);
    overflow: hidden;
    background: rgba(255,255,255,0.04);
}

.af-pillar {
    flex: 1;
    padding: 36px 40px;
    text-align: center;
}

.af-pillar-num {
    font-family: var(--af-font-display);
    font-size: 44px;
    font-weight: 700;
    color: var(--af-teal);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 10px;
}

.af-pillar-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    line-height: 1.5;
}

.af-pillar-divider {
    width: 1px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════
   SLIDE 2 — AUDIENCE GRID
═══════════════════════════════════════════════════════ */

.af-audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.af-audience-card {
    background: var(--af-gray-50);
    border: 1.5px solid var(--af-gray-200);
    border-radius: var(--af-radius-lg);
    padding: 28px 24px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.af-audience-card:hover {
    border-color: rgba(30,45,90,0.2);
    box-shadow: 0 8px 32px rgba(30,45,90,0.08);
    transform: translateY(-2px);
}

.af-audience-card-featured {
    background: var(--af-navy);
    border-color: var(--af-navy);
}
.af-audience-card-featured:hover {
    border-color: var(--af-navy-mid);
    box-shadow: 0 12px 40px rgba(30,45,90,0.25);
}

.af-audience-badge {
    position: absolute;
    top: -11px;
    left: 20px;
    background: var(--af-teal);
    color: var(--af-navy);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 9999px;
}

.af-audience-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--af-radius-sm);
    background: rgba(30,45,90,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.af-audience-icon i { font-size: 17px; color: var(--af-navy); }
.af-audience-icon-teal { background: var(--af-teal-dim); }
.af-audience-icon-teal i { color: var(--af-teal); }

.af-audience-title {
    font-family: var(--af-font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--af-navy);
    margin-bottom: 10px;
    line-height: 1.3;
}
.af-audience-card-featured .af-audience-title { color: var(--af-white); }

.af-audience-desc {
    font-size: 13px;
    color: var(--af-gray-500);
    line-height: 1.65;
    margin-bottom: 16px;
}
.af-audience-card-featured .af-audience-desc { color: rgba(255,255,255,0.6); }

.af-audience-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.af-audience-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--af-gray-600);
}
.af-audience-card-featured .af-audience-list li { color: rgba(255,255,255,0.7); }
.af-audience-list i {
    font-size: 10px;
    color: var(--af-teal);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════
   SLIDE 3 — EXECUTIVE BLOCKS
═══════════════════════════════════════════════════════ */

.af-exec-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}
.af-exec-block:last-child { margin-bottom: 0; }
.af-exec-block-reverse { direction: rtl; }
.af-exec-block-reverse > * { direction: ltr; }

/* Mockup visuals */
.af-exec-mockup {
    border-radius: var(--af-radius-lg);
    border: 1.5px solid var(--af-gray-200);
    background: var(--af-white);
    padding: 24px;
    box-shadow: 0 4px 24px rgba(30,45,90,0.06);
}

.af-mockup-kpi .af-mock-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.af-mock-kpi {
    background: var(--af-gray-50);
    border-radius: var(--af-radius-sm);
    padding: 12px;
    text-align: center;
}
.af-mock-val {
    font-family: var(--af-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--af-navy);
    display: block;
}
.af-val-teal { color: #0d9488; }
.af-mock-lbl {
    font-size: 10px;
    color: var(--af-gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.af-mock-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 72px;
    padding: 0 4px;
}
.af-mock-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: rgba(30,45,90,0.1);
}
.af-bar-teal { background: var(--af-teal); opacity: 0.7; }

/* Client timeline mockup */
.af-mock-client-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--af-gray-200);
}
.af-mock-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--af-navy);
    color: var(--af-white);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.af-mock-name  { font-size: 13px; font-weight: 600; color: var(--af-gray-800); }
.af-mock-meta  { font-size: 11px; color: var(--af-gray-400); }
.af-mock-chip  {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    color: #0d9488;
    background: rgba(46,207,190,0.12);
    padding: 3px 10px;
    border-radius: 9999px;
}

.af-mock-timeline { display: flex; flex-direction: column; gap: 12px; }
.af-mock-tl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--af-gray-500);
}
.af-mock-tl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--af-gray-300);
}
.af-tl-done .af-mock-tl-dot  { background: var(--af-teal); }
.af-tl-done span              { color: var(--af-gray-700); }
.af-tl-active .af-mock-tl-dot {
    background: var(--af-navy);
    box-shadow: 0 0 0 3px rgba(30,45,90,0.15);
}
.af-tl-active span            { color: var(--af-navy); font-weight: 600; }

/* Alert mockup */
.af-mock-alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--af-radius-sm);
    margin-bottom: 10px;
}
.af-mock-alert-item:last-child { margin-bottom: 0; }
.af-mock-alert-item i {
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}
.af-alert-warn    { background: #fef7e0; }
.af-alert-warn i  { color: #b45309; }
.af-alert-info    { background: rgba(46,207,190,0.08); }
.af-alert-info i  { color: var(--af-navy); }
.af-alert-success { background: rgba(46,207,190,0.10); }
.af-alert-success i { color: #0d9488; }
.af-alert-title   { font-size: 12px; font-weight: 600; color: var(--af-gray-800); }
.af-alert-sub     { font-size: 11px; color: var(--af-gray-400); margin-top: 2px; }

/* Executive text block */
.af-exec-number {
    font-family: var(--af-font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--af-teal);
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.8;
}
.af-exec-title {
    font-family: var(--af-font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--af-navy);
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.af-exec-desc {
    font-size: 14px;
    color: var(--af-gray-500);
    line-height: 1.75;
    margin-bottom: 20px;
}
.af-exec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.af-exec-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--af-gray-600);
    font-weight: 500;
}
.af-exec-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--af-teal);
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════
   SLIDE 4 — MODULES GRID
═══════════════════════════════════════════════════════ */

.af-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.af-module-card {
    background: var(--af-gray-50);
    border: 1.5px solid var(--af-gray-200);
    border-radius: var(--af-radius-lg);
    padding: 24px 20px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.af-module-card:hover {
    border-color: rgba(30,45,90,0.18);
    box-shadow: 0 6px 24px rgba(30,45,90,0.07);
    transform: translateY(-2px);
}

.af-module-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--af-radius-sm);
    background: rgba(30,45,90,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.af-module-icon i { font-size: 16px; color: var(--af-navy); }
.af-icon-teal     { background: rgba(46,207,190,0.12); }
.af-icon-teal i   { color: #0d9488; }

.af-module-title {
    font-family: var(--af-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--af-navy);
    margin-bottom: 8px;
    line-height: 1.4;
}

.af-module-desc {
    font-size: 12px;
    color: var(--af-gray-500);
    line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════
   SLIDE 5 — AI SECTION
═══════════════════════════════════════════════════════ */

.af-slide-ai { padding: 100px 0; }

.af-ai-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    text-align: left;
}

.af-ai-caps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.af-ai-cap {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.af-ai-cap-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--af-radius-sm);
    background: var(--af-teal-dim);
    border: 1px solid var(--af-teal-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.af-ai-cap-icon i { font-size: 13px; color: var(--af-teal); }

.af-ai-cap-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--af-white);
    margin-bottom: 2px;
    line-height: 1.4;
}
.af-ai-cap-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* Chat mockup */
.af-chat-mockup {
    border-radius: var(--af-radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    overflow: hidden;
}

.af-chat-header {
    padding: 14px 18px;
    background: rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}
.af-chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--af-gray-400);
}
.af-dot-teal { background: var(--af-teal); }

.af-chat-body {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.af-chat-bubble {
    padding: 12px 14px;
    border-radius: var(--af-radius);
    font-size: 12px;
    line-height: 1.65;
    max-width: 90%;
}
.af-bubble-user {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    align-self: flex-end;
    border-radius: var(--af-radius) var(--af-radius) 4px var(--af-radius);
}
.af-bubble-ai {
    background: rgba(46,207,190,0.1);
    border: 1px solid rgba(46,207,190,0.2);
    color: rgba(255,255,255,0.82);
    align-self: flex-start;
    border-radius: 4px var(--af-radius) var(--af-radius) var(--af-radius);
}
.af-bubble-ai strong { color: var(--af-teal); font-weight: 600; }

.af-ai-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--af-teal);
    color: var(--af-navy);
    padding: 1px 6px;
    border-radius: 4px;
    margin-bottom: 6px;
    margin-right: 4px;
    vertical-align: middle;
}


/* ═══════════════════════════════════════════════════════
   SLIDE 6 — STATS
═══════════════════════════════════════════════════════ */

.af-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 16px;
}

.af-stat-card {
    background: var(--af-gray-50);
    border: 1.5px solid var(--af-gray-200);
    border-radius: var(--af-radius-lg);
    padding: 28px 24px;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.af-stat-card:hover {
    border-color: rgba(30,45,90,0.15);
    box-shadow: 0 6px 24px rgba(30,45,90,0.07);
    transform: translateY(-2px);
}

.af-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--af-radius-sm);
    background: rgba(30,45,90,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.af-stat-icon i { font-size: 17px; color: var(--af-navy); }
.af-stat-icon-teal { background: rgba(46,207,190,0.12); }
.af-stat-icon-teal i { color: #0d9488; }

.af-stat-val {
    font-family: var(--af-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--af-navy);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.af-stat-label {
    font-size: 12px;
    color: var(--af-gray-500);
    line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════
   SLIDE 7 — CTA
═══════════════════════════════════════════════════════ */

.af-slide-cta {
    background: linear-gradient(135deg, var(--af-navy) 0%, var(--af-navy-mid) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.af-slide-cta::before {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 450px; height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,207,190,0.08) 0%, transparent 65%);
    pointer-events: none;
}
.af-slide-cta::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,207,190,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.af-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--af-teal);
    border: 1px solid var(--af-teal-border);
    background: var(--af-teal-dim);
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 24px;
}

.af-cta-headline {
    font-family: var(--af-font-display);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 500;
    color: var(--af-white);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.af-cta-lead {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.af-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.af-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--af-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.af-cta-btn-solid {
    background: var(--af-teal);
    color: var(--af-navy);
    border: 2px solid var(--af-teal);
}
.af-cta-btn-solid:hover {
    background: var(--af-teal-light, #4dd9c8);
    box-shadow: 0 6px 24px rgba(46,207,190,0.3);
    color: var(--af-navy);
}
.af-cta-btn-outline {
    background: transparent;
    color: var(--af-white);
    border: 2px solid rgba(255,255,255,0.25);
}
.af-cta-btn-outline:hover {
    border-color: rgba(255,255,255,0.6);
    color: var(--af-white);
}


/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */

.af-footer {
    background: var(--af-navy-dark);
    padding: 60px 0 0;
}

.af-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 48px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.af-footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    margin-top: 8px;
}
.af-footer-tagline strong { color: rgba(255,255,255,0.65); }

.af-footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 16px;
}

.af-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.af-footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.af-footer-links a:hover { color: var(--af-teal); }

.af-footer-bottom {
    max-width: 1160px;
    margin: 0 auto;
    padding: 20px 48px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}


/* ═══════════════════════════════════════════════════════
   LANDING RESPONSIVE
═══════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .af-audience-grid { grid-template-columns: repeat(2, 1fr); }
    .af-modules-grid  { grid-template-columns: repeat(2, 1fr); }
    .af-stats-grid    { grid-template-columns: repeat(2, 1fr); }
    .af-footer-inner  { grid-template-columns: 1fr 1fr; gap: 32px; }
    .af-ai-inner      { gap: 48px; }
}

@media (max-width: 860px) {
    .af-slide           { padding: 72px 0; }
    .af-slide-inner     { padding: 0 24px; }
    .af-pillars         { flex-direction: column; }
    .af-pillar-divider  { width: 60px; height: 1px; }
    .af-exec-block      { grid-template-columns: 1fr; gap: 32px; }
    .af-exec-block-reverse { direction: ltr; }
    .af-ai-inner        { grid-template-columns: 1fr; }
    .af-footer-inner    { grid-template-columns: 1fr 1fr; }
    .af-footer-bottom   { padding: 20px 24px; flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 640px) {
    .af-audience-grid   { grid-template-columns: 1fr; }
    .af-modules-grid    { grid-template-columns: 1fr; }
    .af-stats-grid      { grid-template-columns: 1fr; }
    .af-footer-inner    { grid-template-columns: 1fr; padding: 0 24px 40px; }
    .af-cta-actions     { flex-direction: column; }
    .af-cta-btn         { justify-content: center; }
}
