/* ==========================================================================
   Sourcewall NL — Enhanced UI Features
   Scroll animations, glassmorphism, micro-interactions, parallax,
   animated SVGs, carousel, interactive timeline, counters
   ========================================================================== */

/* ---------- 1. Scroll Reveal Animations ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="fade"] { transform: none; }
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}
/* Stagger children */
[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal-stagger].revealed > * { opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0s; }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 0.2s; }
[data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 0.3s; }
[data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 0.4s; }
[data-reveal-stagger].revealed > *:nth-child(6) { transition-delay: 0.5s; }

/* ---------- 2. Glassmorphism ---------- */
.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: box-shadow var(--transition-smooth, 0.35s cubic-bezier(0.22, 1, 0.36, 1)),
                transform var(--transition-smooth, 0.35s cubic-bezier(0.22, 1, 0.36, 1));
}
.glass:hover {
    box-shadow: 0 12px 40px rgba(27, 58, 143, 0.12);
    transform: translateY(-3px);
}
.glass--dark {
    background: rgba(27, 58, 143, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------- 3. Micro-Interactions ---------- */
/* Button shimmer — uses ::after from style.css (light sweep on hover) */
.btn {
    transform: translateZ(0);
}
.btn:active { transform: translateY(0) scale(0.98); }

/* Card lift — enhanced from base */
.card:hover {
    box-shadow: 0 16px 48px rgba(27, 58, 143, 0.14);
}

/* Nav link underline animation */
.nav-link {
    position: relative;
    border-bottom: none;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Icon pulse on hover */
.card__icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.card:hover .card__icon {
    transform: scale(1.1);
    background-color: rgba(27, 58, 143, 0.12);
}

/* Process step hover */
.process-step__icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s;
}
.process-step:hover .process-step__icon {
    transform: scale(1.15);
    background: var(--color-accent);
}

/* Header logo hover */
.header__logo:hover span { letter-spacing: 1px; transition: letter-spacing 0.3s ease; }

/* Smooth form focus transition */
.form-control {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.form-control:focus {
    transform: scale(1.005);
}

/* Status badge pulse for active */
.status--transit {
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 196, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(37, 99, 196, 0); }
}

/* ---------- 5. Animated Number Counters ---------- */
.counter[data-target] {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ---------- 18. Parallax Hero ---------- */
.hero--parallax .hero__bg {
    will-change: transform;
    transition: none;
}
.page-header--parallax {
    position: relative;
    overflow: hidden;
}
.page-header--parallax::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(ellipse at 30% 50%, rgba(37,99,196,0.3) 0%, transparent 70%);
    will-change: transform;
    animation: parallaxFloat 12s ease-in-out infinite;
}
@keyframes parallaxFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -15px); }
}

/* ---------- 19. Animated SVG Icons ---------- */
.svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-bg-light);
    border-radius: 50%;
    margin-bottom: var(--space-sm);
}
.svg-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.svg-icon svg path,
.svg-icon svg circle,
.svg-icon svg polyline,
.svg-icon svg line,
.svg-icon svg rect {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.revealed .svg-icon svg path,
.revealed .svg-icon svg circle,
.revealed .svg-icon svg polyline,
.revealed .svg-icon svg line,
.revealed .svg-icon svg rect {
    stroke-dashoffset: 0;
}
.card:hover .svg-icon svg { stroke: var(--color-accent); }

/* ---------- 20. Logo Carousel ---------- */
.logo-carousel {
    overflow: hidden;
    position: relative;
    padding: var(--space-lg) 0;
}
.logo-carousel::before,
.logo-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.logo-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-bg-light) 0%, transparent 100%);
}
.logo-carousel::after {
    right: 0;
    background: linear-gradient(-90deg, var(--color-bg-light) 0%, transparent 100%);
}
.logo-carousel__track {
    display: flex;
    gap: var(--space-xl);
    animation: scrollLogos 30s linear infinite;
    width: max-content;
}
.logo-carousel__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 var(--space-md);
    opacity: 0.5;
    transition: opacity 0.3s;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-mid);
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.logo-carousel__item:hover { opacity: 1; }
@keyframes scrollLogos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- 21. How We Work — Modern Bento Process ---------- */
.hww {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: var(--space-md) 0;
}
.hww__card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px 24px 24px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: visible;
}
.hww__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}
/* Asymmetric offsets — desktop stagger */
.hww__card--1 { grid-column: 1; grid-row: 1; }
.hww__card--2 { grid-column: 2; grid-row: 1; margin-top: 32px; }
.hww__card--3 { grid-column: 3; grid-row: 1; margin-top: 8px; }
.hww__card--4 { grid-column: 3; grid-row: 2; margin-top: -8px; }
.hww__card--5 { grid-column: 2; grid-row: 2; margin-top: 24px; }
.hww__card--6 { grid-column: 1; grid-row: 2; margin-top: 16px; }

/* Phase number watermark */
.hww__num {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.06;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}
.hww__card:hover .hww__num { opacity: 0.12; }

/* Icon */
.hww__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: var(--transition);
}
.hww__icon svg { width: 22px; height: 22px; color: var(--color-primary); }
.hww__card:hover .hww__icon {
    background: var(--color-primary);
}
.hww__card:hover .hww__icon svg { color: #fff; }
.hww__icon--accent { background: rgba(192, 39, 45, 0.08); }
.hww__icon--accent svg { color: var(--color-accent); }
.hww__card:hover .hww__icon--accent { background: var(--color-accent); }

/* Text */
.hww__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}
.hww__desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-mid);
    margin: 0;
}

/* Connector arrows between cards (desktop) */
.hww__connector {
    display: none;
}
@media (min-width: 769px) {
    .hww__connector {
        display: block;
        position: absolute;
    }
    .hww__connector::after {
        content: '';
        display: block;
    }
    /* Right arrow: goes from card right edge toward next card */
    .hww__connector--r {
        right: -22px;
        top: 50%;
        transform: translateY(-50%);
        width: 22px;
        height: 2px;
    }
    .hww__connector--r::after {
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-medium-blue));
        border-radius: 1px;
    }
    .hww__connector--r::before {
        content: '';
        position: absolute;
        right: -1px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 6px solid var(--color-medium-blue);
    }
    /* Down arrow: goes from card bottom toward row below */
    .hww__connector--d {
        bottom: -22px;
        left: 50%;
        transform: translateX(-50%);
        height: 22px;
        width: 2px;
    }
    .hww__connector--d::after {
        height: 100%;
        width: 2px;
        background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
        border-radius: 1px;
    }
    .hww__connector--d::before {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid var(--color-accent);
    }
}

/* SVG flow path (desktop only) */
.hww__path { display: none; }

/* Staggered reveal animation */
.hww.revealed .hww__card { animation: hwwIn 0.6s ease both; }
.hww.revealed .hww__card--1 { animation-delay: 0s; }
.hww.revealed .hww__card--2 { animation-delay: 0.1s; }
.hww.revealed .hww__card--3 { animation-delay: 0.2s; }
.hww.revealed .hww__card--4 { animation-delay: 0.3s; }
.hww.revealed .hww__card--5 { animation-delay: 0.4s; }
.hww.revealed .hww__card--6 { animation-delay: 0.5s; }
@keyframes hwwIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Last card accent border */
.hww__card--6 { border-left: 3px solid var(--color-accent); }

/* Testimonial section */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}
.testimonial-carousel__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 0 var(--space-lg);
}
.testimonial-carousel__slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}
.testimonial-carousel__text {
    font-size: 20px;
    font-style: italic;
    color: var(--color-text-dark);
    max-width: 700px;
    line-height: 1.6;
    margin: 0 auto var(--space-sm);
}
.testimonial-carousel__author {
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--color-primary);
}
.testimonial-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: var(--space-md);
}
.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.testimonial-dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* ---------- General keyframes ---------- */

/* ============================================================
   FLOATING SOCIAL BAR — Left side
   ============================================================ */
.sw-social {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.sw-social--visible {
    opacity: 1;
    pointer-events: auto;
}

.sw-social__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 0 12px 12px 0;
    color: #fff;
    text-decoration: none;
    transition: width 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, transform 0.2s ease;
    overflow: hidden;
    box-shadow: 2px 2px 12px rgba(0,0,0,0.15);
}
.sw-social__btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.sw-social__btn::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 46px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.82);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-family: var(--font-primary);
}
.sw-social__btn:hover::before { opacity: 1; }
.sw-social__btn:hover {
    transform: translateX(4px) scale(1.05);
    box-shadow: 4px 4px 20px rgba(0,0,0,0.25);
}

.sw-social__btn--whatsapp { background: #25D366; }
.sw-social__btn--whatsapp:hover { background: #1ebe5d; }
.sw-social__btn--linkedin { background: #0A66C2; }
.sw-social__btn--linkedin:hover { background: #0958a8; }
.sw-social__btn--facebook { background: #1877F2; }
.sw-social__btn--facebook:hover { background: #0f69de; }
.sw-social__btn--x { background: #000; }
.sw-social__btn--x:hover { background: #222; }
.sw-social__btn--email { background: var(--color-primary); }
.sw-social__btn--email:hover { background: var(--color-medium-blue); }

/* Entrance animation */
.sw-social__btn { animation: socialSlideIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
.sw-social__btn:nth-child(1) { animation-delay: 0.1s; }
.sw-social__btn:nth-child(2) { animation-delay: 0.2s; }
.sw-social__btn:nth-child(3) { animation-delay: 0.3s; }
.sw-social__btn:nth-child(4) { animation-delay: 0.4s; }
.sw-social__btn:nth-child(5) { animation-delay: 0.5s; }

@keyframes socialSlideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   FLOATING KNOWLEDGE BASE WIDGET — Bottom right
   ============================================================ */
.sw-kb {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9100;
    font-family: var(--font-primary);
}

/* Toggle button */
.sw-kb__toggle {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-medium-blue) 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(27,58,143,0.45), 0 2px 8px rgba(27,58,143,0.2);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    outline: none;
    animation: kbPulse 3s ease-in-out infinite 2s;
}
.sw-kb__toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 36px rgba(27,58,143,0.55);
    animation: none;
}
.sw-kb__toggle:active { transform: scale(0.96); }
.sw-kb__toggle-icon { display: flex; align-items: center; justify-content: center; }
.sw-kb__toggle-icon svg { width: 26px; height: 26px; transition: all 0.3s ease; }
.sw-kb__toggle-icon--close { display: none; }
.sw-kb.is-open .sw-kb__toggle-icon--open { display: none; }
.sw-kb.is-open .sw-kb__toggle-icon--close { display: flex; }
.sw-kb.is-open .sw-kb__toggle { background: linear-gradient(135deg, var(--color-accent) 0%, #e03535 100%); animation: none; }

/* Notification badge */
.sw-kb__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--color-accent);
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes kbPulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(27,58,143,0.45), 0 0 0 0 rgba(27,58,143,0.35); }
    50% { box-shadow: 0 8px 28px rgba(27,58,143,0.45), 0 0 0 14px rgba(27,58,143,0); }
}
@keyframes badgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Panel */
.sw-kb__panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    max-height: 540px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(27,58,143,0.18), 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0.85) translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1), opacity 0.25s ease;
    border: 1px solid rgba(27,58,143,0.08);
}
.sw-kb.is-open .sw-kb__panel {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Panel header */
.sw-kb__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 20px 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-medium-blue) 100%);
    color: #fff;
    flex-shrink: 0;
}
.sw-kb__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0;
}
.sw-kb__subtitle {
    font-size: 13px;
    opacity: 0.8;
    margin: 3px 0 0;
}
.sw-kb__close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}
.sw-kb__close:hover { background: rgba(255,255,255,0.3); }

/* Search */
.sw-kb__search {
    position: relative;
    padding: 14px 16px 10px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(27,58,143,0.07);
}
.sw-kb__search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%) translateY(2px);
    width: 16px;
    height: 16px;
    color: var(--color-text-mid);
    pointer-events: none;
}
.sw-kb__search-input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1.5px solid rgba(27,58,143,0.12);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    background: var(--color-bg-light);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sw-kb__search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27,58,143,0.1);
    background: #fff;
}
.sw-kb__search-input::placeholder { color: #aab; }

/* Quick action buttons */
.sw-kb__quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 16px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(27,58,143,0.07);
}
.sw-kb__quick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1.5px solid rgba(27,58,143,0.1);
    border-radius: 10px;
    background: var(--color-bg-light);
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-text-dark);
    font-family: var(--font-primary);
    transition: all 0.2s ease;
    text-align: left;
    line-height: 1.2;
}
.sw-kb__quick-btn:hover {
    border-color: var(--color-primary);
    background: rgba(27,58,143,0.05);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27,58,143,0.1);
}
.sw-kb__quick-icon { font-size: 18px; flex-shrink: 0; }

/* Articles list */
.sw-kb__articles {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(27,58,143,0.2) transparent;
}
.sw-kb__articles::-webkit-scrollbar { width: 4px; }
.sw-kb__articles::-webkit-scrollbar-thumb { background: rgba(27,58,143,0.2); border-radius: 2px; }

/* Article item */
.sw-kb__article {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(27,58,143,0.05);
}
.sw-kb__article:last-child { border-bottom: none; }
.sw-kb__article:hover { background: rgba(27,58,143,0.04); }
.sw-kb__article-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: var(--color-bg-light);
}
.sw-kb__article-body { flex: 1; min-width: 0; }
.sw-kb__article-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin: 0 0 3px;
}
.sw-kb__article-meta {
    font-size: 11.5px;
    color: var(--color-text-mid);
}
.sw-kb__article-arrow {
    color: var(--color-text-mid);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.sw-kb__article:hover .sw-kb__article-arrow { transform: translateX(3px); color: var(--color-primary); }

/* Category label */
.sw-kb__cat-label {
    padding: 6px 16px 2px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-mid);
}

/* No results */
.sw-kb__no-results {
    text-align: center;
    padding: 32px 16px;
    color: var(--color-text-mid);
    font-size: 13.5px;
}
.sw-kb__no-results-icon { font-size: 36px; margin-bottom: 10px; }

/* Article detail */
.sw-kb__detail {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.sw-kb__back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(27,58,143,0.07);
    cursor: pointer;
    font-family: var(--font-primary);
    transition: gap 0.2s ease;
    flex-shrink: 0;
}
.sw-kb__back:hover { gap: 10px; }
.sw-kb__detail-content {
    padding: 16px 18px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--color-text-dark);
    flex: 1;
    overflow-y: auto;
}
.sw-kb__detail-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 12px;
}
.sw-kb__detail-content p { margin: 0 0 10px; color: var(--color-text-mid); }
.sw-kb__detail-content ul { padding-left: 18px; margin: 0 0 10px; }
.sw-kb__detail-content li { margin-bottom: 5px; color: var(--color-text-mid); }
.sw-kb__detail-content a { color: var(--color-primary); font-weight: 600; }

/* Panel footer */
.sw-kb__footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(27,58,143,0.08);
    text-align: center;
    flex-shrink: 0;
    background: var(--color-bg-light);
}
.sw-kb__footer p { font-size: 12px; color: var(--color-text-mid); margin: 0 0 4px; }
.sw-kb__footer-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.sw-kb__footer-link:hover { color: var(--color-accent); }

/* Mobile adjustments */
@media (max-width: 480px) {
    .sw-kb { bottom: 16px; right: 16px; }
    .sw-kb__panel { width: calc(100vw - 32px); max-height: 70vh; right: 0; }
    .sw-social__btn { width: 40px; height: 40px; }
    .sw-social__btn svg { width: 18px; height: 18px; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: none; }
}

/* Responsive overrides */
@media (max-width: 768px) {
    .hww {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .hww__card--1, .hww__card--2, .hww__card--3,
    .hww__card--4, .hww__card--5, .hww__card--6 {
        grid-column: 1;
        grid-row: auto;
        margin-top: 0;
    }
    .hww__card { padding: 20px 18px 18px; }
    .hww__num { font-size: 36px; }
    .logo-carousel__track { animation-duration: 20s; }
}

/* ============================================================
   HERO ANIMATED TRADE ROUTES
   ============================================================ */
/* ============================================================
   HERO DASHBOARD CARDS
   ============================================================ */
.hero__dashboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: dashboardFadeIn 1s ease-out 0.4s both;
}
@keyframes dashboardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    animation: cardSlideIn 0.6s ease-out both;
}
.hero__card:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.hero__card--1 { animation-delay: 0.5s; }
.hero__card--2 { animation-delay: 0.65s; }
.hero__card--3 { animation-delay: 0.8s; }
.hero__card--4 { animation-delay: 0.95s; }
.hero__card--5 { animation-delay: 1.1s; }

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero__card-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: rgba(94,143,247,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5E8FF7;
}
.hero__card-icon svg { width: 22px; height: 22px; }
.hero__card-icon--green { background: rgba(37,211,102,0.15); color: #25D366; }
.hero__card-icon--amber { background: rgba(255,200,50,0.15); color: #FFC832; }

.hero__card-data {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__card-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}

.hero__card-label {
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.3;
    font-weight: 500;
}

/* Live status card */
.hero__card--live {
    border-color: rgba(37,211,102,0.25);
    background: rgba(37,211,102,0.06);
}
.hero__card-pulse {
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 0 8px rgba(37,211,102,0.5);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(37,211,102,0.3); transform: scale(1); }
    50% { box-shadow: 0 0 16px rgba(37,211,102,0.6); transform: scale(1.15); }
}
.hero__card-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25D366;
    margin-right: 6px;
    animation: pulse 2s ease-in-out infinite;
}

/* Route card */
.hero__card--route {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.hero__card-route-line {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    font-weight: 700;
    font-size: 14px;
}
.hero__card-route-from,
.hero__card-route-to {
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}
.hero__card-route-dash {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.15);
    margin: 0 8px;
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}
.hero__card-route-dot-anim {
    position: absolute;
    top: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5E8FF7;
    box-shadow: 0 0 8px rgba(94,143,247,0.6);
    animation: routeDot 2.5s ease-in-out infinite;
}
@keyframes routeDot {
    0% { left: -6px; }
    100% { left: 100%; }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero__grid-layout { grid-template-columns: 1fr 320px; gap: var(--space-md); }
    .hero__card { padding: 14px 16px; }
    .hero__card-number { font-size: 28px; }
}

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid var(--color-border);
    border-radius: 18px;
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--color-text-mid);
    transition: all 0.3s ease;
    margin-right: 4px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.lang-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(27,58,143,0.06);
}
[data-theme="dark"] .lang-toggle:hover {
    background: rgba(75,123,229,0.12);
}
