/* ==========================================================================
   FEATURES PAGE STYLES
   ========================================================================== */

/* Global font enforcement for features page — matches site's Ubuntu font */
.page-template-page-features,
.page-template-page-features * {
    font-family: 'Ubuntu', system-ui, -apple-system, sans-serif;
}
body.page-template-page-features .site-header {
    background: transparent !important;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
body.page-template-page-features .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
body.page-template-page-features .site-header.scrolled .nav-list a,
body.page-template-page-features .site-header.scrolled .logo-text,
body.page-template-page-features .site-header.scrolled .btn-link,
body.page-template-page-features .site-header.scrolled .mobile-menu-toggle {
    color: #0f172a !important;
}
body.page-template-page-features .site-header.scrolled .nav-list a:hover,
body.page-template-page-features .site-header.scrolled .btn-link:hover {
    color: #3b82f6 !important;
}
body.page-template-page-features .site-header.scrolled .logo a img,
body.page-template-page-features .site-header.scrolled .logo-link img {
    filter: none !important;
}

/* ---------- Hero Section ---------- */
.features-hero {
    position: relative;
    background: linear-gradient(135deg, #02203c 0%, #0f172a 100%) !important;
    padding: 160px 0 140px;
    overflow: hidden;
    text-align: center;
    min-height: 520px;
}
.features-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
}
.features-hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}
.features-hero h1 {
    font-size: 3rem !important;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.features-hero h1 span {
    background: linear-gradient(135deg, #60a5fa 30%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.features-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 780px;
    margin: 0 auto 40px;
    line-height: 1.75;
}
.features-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}
.btn-hero-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    transition: transform 0.25s, box-shadow 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.5);
}
.btn-hero-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    display: inline-flex;
    align-items: center;
}
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* ---------- Ecosystem Section ---------- */
.ecosystem-section {
    padding: 60px 0 80px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}
.ecosystem-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.ecosystem-heading {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}
.ecosystem-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    margin-bottom: 20px;
}
.ecosystem-heading h2 {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.ecosystem-heading h2 span {
    background: linear-gradient(135deg, #2563eb 30%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ecosystem-heading p {
    font-size: 1.05rem;
    color: #475569;
    max-width: 700px;
    margin: 18px auto 0;
    line-height: 1.7;
}

/* Ecosystem Interactive Hub */
.ecosystem-hub {
    position: relative;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    height: 680px;
}
.ecosystem-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Connection Lines Glow Styling */
.eco-conn {
    stroke: #cbd5e1;
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
    transition: stroke 0.3s, stroke-width 0.3s, stroke-opacity 0.3s;
    stroke-opacity: 0.5;
}
.eco-conn.active-line {
    stroke: #2563eb;
    stroke-width: 2.5;
    stroke-dasharray: none;
    stroke-opacity: 1;
}

/* Glow Pulse Animation */
.eco-pulse {
    fill: #3b82f6;
    filter: url(#glow);
}

/* Center Dashboard Frame */
.eco-circle-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    height: 720px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
    animation: ecoCircleSpin 60s linear infinite;
}

@keyframes ecoCircleSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.eco-dashboard {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 620px;
    z-index: 3;
}
.eco-dashboard-frame {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.45), 0 15px 40px rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    padding: 6px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    animation: dashFloatInner 5.5s ease-in-out infinite;
}
@keyframes dashFloatInner {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.eco-dashboard-frame.dashboard-glow,
.eco-dashboard-frame:hover {
    box-shadow: 0 0 80px rgba(59, 130, 246, 0.65), 0 15px 45px rgba(37, 99, 235, 0.3) !important;
    border-color: rgba(37, 99, 235, 0.6) !important;
}
.eco-dashboard-frame img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

/* Module Cards around center */
.eco-module {
    position: absolute;
    width: 296px;
    z-index: 4;
    cursor: pointer;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.eco-module-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 11px 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04), 0 1px 4px rgba(15, 23, 42, 0.02);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 90px;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s;
}
.eco-module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(37, 99, 235, 0.04);
    border-color: rgba(37, 99, 235, 0.2);
}
.eco-module-card:hover .eco-module-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.eco-module-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.eco-module-icon svg {
    width: 18px;
    height: 18px;
}
.eco-module-text {
    flex: 1;
    min-width: 0;
}
.eco-module-text h4 {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.eco-module-text p {
    font-size: 0.71rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

/* Individual Module Icon Colored Backgrounds */
.eco-module[data-module="module-1"] .eco-module-icon { background: #2563eb; color: #ffffff; } /* Lead - Blue */
.eco-module[data-module="module-2"] .eco-module-icon { background: #ef4444; color: #ffffff; } /* CRM - Red */
.eco-module[data-module="module-3"] .eco-module-icon { background: #a855f7; color: #ffffff; } /* Pipeline - Purple */
.eco-module[data-module="module-4"] .eco-module-icon { background: #10b981; color: #ffffff; } /* Property - Green */
.eco-module[data-module="module-5"] .eco-module-icon { background: #06b6d4; color: #ffffff; } /* Site Visit - Teal */
.eco-module[data-module="module-6"] .eco-module-icon { background: #f97316; color: #ffffff; } /* Payments - Orange */
.eco-module[data-module="module-7"] .eco-module-icon { background: #6366f1; color: #ffffff; } /* Channel Partner - Indigo */
.eco-module[data-module="module-8"] .eco-module-icon { background: #1e3a8a; color: #ffffff; } /* Post-Sales - Navy */
.eco-module[data-module="module-9"] .eco-module-icon { background: #3b82f6; color: #ffffff; } /* Reports & AI - Royal Blue */

/* Individual Module Card Hover Backgrounds — solid white bg, colored border only */
.eco-module[data-module="module-1"]:hover .eco-module-card { background: #ffffff !important; border-color: rgba(37, 99, 235, 0.4) !important; }
.eco-module[data-module="module-2"]:hover .eco-module-card { background: #ffffff !important; border-color: rgba(239, 68, 68, 0.4) !important; }
.eco-module[data-module="module-3"]:hover .eco-module-card { background: #ffffff !important; border-color: rgba(168, 85, 247, 0.4) !important; }
.eco-module[data-module="module-4"]:hover .eco-module-card { background: #ffffff !important; border-color: rgba(16, 185, 129, 0.4) !important; }
.eco-module[data-module="module-5"]:hover .eco-module-card { background: #ffffff !important; border-color: rgba(6, 182, 212, 0.4) !important; }
.eco-module[data-module="module-6"]:hover .eco-module-card { background: #ffffff !important; border-color: rgba(249, 115, 22, 0.4) !important; }
.eco-module[data-module="module-7"]:hover .eco-module-card { background: #ffffff !important; border-color: rgba(99, 102, 241, 0.4) !important; }
.eco-module[data-module="module-8"]:hover .eco-module-card { background: #ffffff !important; border-color: rgba(30, 58, 138, 0.4) !important; }
.eco-module[data-module="module-9"]:hover .eco-module-card { background: #ffffff !important; border-color: rgba(59, 130, 246, 0.4) !important; }

/* Staggered entrance initial states */
.eco-hub-reveal .eco-module {
    opacity: 0;
    transform: scale(0.9) translateY(15px);
}
.eco-hub-reveal .eco-module.revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Floating animation loops for Cards with distinct timmings */
.eco-module[data-module="module-1"] { animation: cardFloat1 4.5s ease-in-out infinite; }
.eco-module[data-module="module-2"] { animation: cardFloat2 5.0s ease-in-out infinite 0.3s; }
.eco-module[data-module="module-3"] { animation: cardFloat3 4.8s ease-in-out infinite 0.6s; }
.eco-module[data-module="module-4"] { animation: cardFloat1 5.2s ease-in-out infinite 0.9s; }
.eco-module[data-module="module-5"] { animation: cardFloat2 4.6s ease-in-out infinite 1.2s; }
.eco-module[data-module="module-6"] { animation: cardFloat3 5.4s ease-in-out infinite 0.2s; }
.eco-module[data-module="module-7"] { animation: cardFloat1 4.9s ease-in-out infinite 0.5s; }
.eco-module[data-module="module-8"] { animation: cardFloat2 5.1s ease-in-out infinite 0.8s; }
.eco-module[data-module="module-9"] { animation: cardFloat3 4.7s ease-in-out infinite 1.1s; }

@keyframes cardFloat1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes cardFloat2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}
@keyframes cardFloat3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Circular Positions (9 Nodes) */
.pos-top-center    { top: -10px;  left: 50%; transform: translateX(-50%) !important; }
.pos-top-left      { top: 60px;  left: 3%; }
.pos-mid-left      { top: 240px; left: -2%; }
.pos-low-left      { bottom: 180px; left: 3%; }
.pos-bottom-left   { bottom: 15px; left: 14%; }
.pos-top-right     { top: 60px;  right: 3%; }
.pos-mid-right     { top: 240px; right: -2%; }
.pos-low-right     { bottom: 180px; right: 3%; }
.pos-bottom-right  { bottom: 15px; right: 14%; }

/* Scroll reveal helper */
.eco-heading-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.eco-heading-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive Layout ---------- */

/* Tablet landscape (768px–1080px): keep the floating desktop layout,
   but scale the entire hub down so it fits inside the viewport without overflow. */
@media (min-width: 768px) and (max-width: 1080px) {
    .ecosystem-section {
        overflow-x: hidden;
    }
    .ecosystem-hub {
        transform-origin: top center;
        transform: scale(0.72);
        margin-bottom: -180px; /* compensate for the scale shrinkage */
    }
}

/* Mobile Stacked Swipe Card Deck Base Styles (Hidden on >= 768px) */
.eco-mobile-deck-section {
    display: none;
}

/* Mobile: ≤ 767px — Stacked Swipe Card Deck */
@media (max-width: 767px) {
    .eco-mobile-deck-section {
        display: block;
        width: 100%;
        margin-top: 16px;
        text-align: center;
        box-sizing: border-box;
    }
    .eco-circle-bg,
    .ecosystem-svg,
    .eco-modules-grid {
        display: none !important;
    }
    .ecosystem-hub {
        display: block !important;
        height: auto !important;
        padding: 0 16px !important;
        margin-bottom: 0 !important;
    }
    .eco-dashboard {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 480px !important;
        margin: 0 auto 24px !important;
        animation: none !important;
    }

    /* Mobile Deck Header */
    .mobile-deck-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 360px;
        margin: 0 auto 14px;
        padding: 0 4px;
        box-sizing: border-box;
    }
    .mobile-deck-title {
        font-size: 0.85rem;
        font-weight: 700;
        color: #1e293b;
        text-transform: uppercase;
        letter-spacing: 1.5px;
    }
    .mobile-deck-counter {
        font-size: 0.85rem;
        font-weight: 800;
        color: #2563eb;
        background: rgba(37, 99, 235, 0.08);
        border: 1px solid rgba(37, 99, 235, 0.15);
        padding: 3px 12px;
        border-radius: 20px;
    }

    /* Mobile Deck Container & Stack */
    .mobile-deck-container {
        position: relative;
        width: 100%;
        max-width: 360px;
        height: 240px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: pan-y;
        user-select: none;
        outline: none;
    }

    .mobile-deck-stack {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    /* Mobile Cards Base */
    .mobile-deck-card {
        position: absolute;
        top: 0;
        left: 50%;
        width: calc(100% - 32px);
        max-width: 340px;
        height: 215px;
        background: #ffffff;
        border: 1.5px solid rgba(226, 232, 240, 0.9);
        border-radius: 20px;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
        padding: 22px 24px;
        box-sizing: border-box;
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease, box-shadow 0.35s ease;
        cursor: grab;
        user-select: none;
        will-change: transform, opacity;
        text-align: left;
    }
    .mobile-deck-card:active {
        cursor: grabbing;
    }

    .deck-card-inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: flex-start;
    }

    .deck-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
        flex-shrink: 0;
    }
    .deck-card-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Icon color themes */
    .deck-card-icon.icon-blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
    .deck-card-icon.icon-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
    .deck-card-icon.icon-cyan { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
    .deck-card-icon.icon-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
    .deck-card-icon.icon-orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
    .deck-card-icon.icon-navy { background: rgba(15, 23, 42, 0.1); color: #0f172a; }

    .deck-card-title {
        font-size: 1.05rem;
        font-weight: 800;
        color: #0f172a;
        margin: 0 0 6px 0;
        line-height: 1.3;
    }

    .deck-card-desc {
        font-size: 0.85rem;
        color: #64748b;
        line-height: 1.5;
        margin: 0;
    }

    /* Stacked Position States */
    .mobile-deck-card.card-pos-0 {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
        z-index: 3;
        pointer-events: auto;
    }
    .mobile-deck-card.card-pos-1 {
        transform: translate(-50%, 12px) scale(0.95);
        opacity: 0.75;
        z-index: 2;
        pointer-events: none;
    }
    .mobile-deck-card.card-pos-2 {
        transform: translate(-50%, 22px) scale(0.90);
        opacity: 0.45;
        z-index: 1;
        pointer-events: none;
    }
    .mobile-deck-card.card-pos-hidden {
        transform: translate(-50%, 30px) scale(0.85);
        opacity: 0;
        z-index: 0;
        pointer-events: none;
    }

    /* Nav Buttons */
    .mobile-deck-nav {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        color: #2563eb;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
        z-index: 10;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
        cursor: pointer;
        transition: transform 0.2s, background 0.2s, border-color 0.2s;
    }
    .mobile-deck-nav:active {
        transform: translateY(-50%) scale(0.92);
        background: #f8fafc;
    }
    .mobile-deck-nav.prev-btn { left: -6px; }
    .mobile-deck-nav.next-btn { right: -6px; }

    /* Segmented Progress Bar */
    .mobile-deck-progress {
        display: flex;
        gap: 5px;
        justify-content: center;
        align-items: center;
        max-width: 240px;
        margin: 18px auto 8px;
    }
    .progress-segment {
        flex: 1;
        height: 4px;
        border-radius: 4px;
        background: #e2e8f0;
        transition: background 0.3s ease;
    }
    .progress-segment.active {
        background: #2563eb;
    }

    /* Swipe Hint */
    .mobile-deck-hint {
        font-size: 0.75rem;
        color: #94a3b8;
        font-weight: 500;
        letter-spacing: 0.5px;
        margin-top: 4px;
    }
}

/* Mobile portrait: ≤ 480px — single column */
@media (max-width: 480px) {
    .eco-modules-grid {
        grid-template-columns: 1fr;
    }
    .eco-dashboard {
        max-width: 95%;
    }
}

/* ======================================================
   PROPERTY SALES JOURNEY SECTION
   ====================================================== */

.journey-section {
    background: #f8fafc;
    padding: 80px 0 120px;
}
.journey-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Mobile chip nav — hidden on desktop */
.mobile-chip-nav {
    display: none;
}

/* Two-column layout */
.journey-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    align-items: start;
}

/* ---- LEFT: Sticky Timeline ---- */
.journey-timeline {
    position: sticky;
    top: 88px;
    align-self: start;
    background: #ffffff;
    border-right: 1px solid #e8edf3;
    padding: 40px 28px 40px 32px;
    border-radius: 20px 0 0 20px;
    box-shadow: 4px 0 20px rgba(15,23,42,0.03);
}

.timeline-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.timeline-subtitle {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 32px;
}

/* The vertical line + items container */
.timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Thin gray track */
.timeline-list::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 0;
}

/* Animated blue progress line */
.timeline-progress-line {
    position: absolute;
    left: 15px;
    top: 10px;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, #2563eb, #3b82f6);
    border-radius: 2px;
    z-index: 1;
    transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Each timeline step */
.timeline-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.25s ease;
    border-radius: 10px;
}
.timeline-item:hover .timeline-item-label { color: #2563eb; }
.timeline-item:hover .timeline-icon { transform: scale(1.18); color: #2563eb; }

/* Dot */
.timeline-dot {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}
.timeline-dot .timeline-icon {
    width: 14px;
    height: 14px;
    color: #cbd5e1;
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

/* Active state */
.timeline-item.active .timeline-dot {
    border-color: #2563eb;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.timeline-item.active .timeline-dot .timeline-icon { color: #ffffff; }
.timeline-item.active .timeline-item-label {
    color: #1e40af;
    font-weight: 700;
}

/* Label */
.timeline-item-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    transition: color 0.25s ease, font-weight 0.25s ease;
    line-height: 1.3;
}

/* ---- RIGHT: Module Cards (Tab switching) ---- */
.module-cards {
    padding: 0 0 0 48px;
    position: relative;
}

.module-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 56px;
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.05), 0 1px 4px rgba(15, 23, 42, 0.03);
    border: 1px solid #f1f5f9;
    display: none;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.module-card.active {
    display: flex;
}
.module-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Badge */
.module-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    width: fit-content;
}

/* Heading */
.module-card h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Description */
.module-card > p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.75;
    margin: 0;
    max-width: 680px;
}

/* Screenshot */
.module-mockup {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    max-height: 380px;
}
.module-mockup img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
    max-height: 380px;
    transform: scale(1);
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.module-mockup:hover img { transform: scale(1.04); }

/* 2-col capabilities */
.module-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}
.module-cap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.module-cap-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155;
}
.module-cap-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / 11px 11px;
}

/* KPI chips */
.module-impact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.module-impact-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.module-impact-pill:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

/* CTA — gradient blue→purple pill with arrow */
.module-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4f46e5, #6366f1, #7c3aed);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    width: fit-content;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.35);
    margin-top: 8px;
}
.module-cta .cta-arrow {
    display: inline-flex;
    font-size: 1.15rem;
    transition: transform 0.25s ease;
}
.module-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(79, 70, 229, 0.45);
}
.module-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* ---- RESPONSIVE ---- */
/* Laptop breakpoint: sidebar narrows slightly, stays visible */
@media (max-width: 1100px) {
    .journey-layout { grid-template-columns: 220px 1fr; }
    .module-card { padding: 40px 44px; }
    .module-cards { padding-left: 32px; }
}

/* Tablet breakpoint: sidebar column reduces further but STILL VISIBLE.
   Chips remain hidden — users navigate via the sidebar just like desktop. */
@media (max-width: 900px) and (min-width: 601px) {
    .journey-layout { grid-template-columns: 195px 1fr; }
    .journey-timeline {
        padding: 28px 16px 28px 20px;
    }
    .timeline-title { font-size: 0.88rem; }
    .timeline-subtitle { font-size: 0.68rem; margin-bottom: 20px; }
    .timeline-item-label { font-size: 0.76rem; }
    .timeline-dot { width: 26px; height: 26px; }
    .timeline-dot .timeline-icon { width: 12px; height: 12px; }
    .module-card { padding: 32px 24px; border-radius: 16px; }
    .module-cards { padding-left: 20px; }
    .module-cols { grid-template-columns: 1fr; }
    /* Keep chip nav hidden on tablet — sidebar handles navigation */
    .mobile-chip-nav { display: none !important; }
}
/* Phone only (≤ 600px): hide sidebar, show chips in a horizontal scroll row */
@media (max-width: 600px) {
    .journey-layout { grid-template-columns: 1fr; }
    .journey-timeline { display: none; }
    .module-cards { padding-left: 0; }
    .mobile-chip-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding-bottom: 8px;
        margin-bottom: 28px;
    }
    .mobile-chip-nav::-webkit-scrollbar { display: none; }
    .mobile-chip {
        flex-shrink: 0;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        color: #475569;
        font-size: 0.82rem;
        font-weight: 500;
        font-family: 'Ubuntu', system-ui, -apple-system, sans-serif;
        padding: 8px 18px;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }
    .mobile-chip.active { background: #2563eb; color: #fff; border-color: #2563eb; }
    .module-card { padding: 28px 20px; border-radius: 16px; }
    .module-card h2 { font-size: 1.4rem; }
    .module-cols { grid-template-columns: 1fr; }
}

/* ======================================================
   BEYOND THE MODULES (MORE THAN FEATURES) SECTION
   ====================================================== */
.beyond-section {
    padding: 100px 0;
    background: #ffffff;
}

.beyond-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.beyond-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    margin-bottom: 20px;
}

.beyond-heading h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    margin-top: 0;
}

.beyond-heading h2 span {
    color: #4f46e5;
    background: linear-gradient(135deg, #4f46e5, #6366f1, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.beyond-heading p {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Layout */
.beyond-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.beyond-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Main Image Wrapper and Zoom Effect */
.beyond-img-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #f1f5f9;
}

.beyond-img-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.beyond-img-wrapper:hover img {
    transform: scale(1.04);
}

/* Continuous Floating Blue Card */
@keyframes beyondFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.beyond-cta-card {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    padding: 40px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
    animation: beyondFloat 6s ease-in-out infinite;
}

.beyond-cta-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
    margin-top: 0;
}

.beyond-cta-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}

.beyond-cta-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.beyond-cta-btn-primary {
    background: #ffffff;
    color: #2563eb;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.beyond-cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.beyond-cta-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

.beyond-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Capability Cards Grid (Right Column) */
.capability-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.capability-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.capability-card:hover {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transform: translateY(-2px);
}

.cap-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.capability-card:hover .cap-icon-wrap {
    background: #2563eb;
    color: #ffffff;
}

.cap-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.capability-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.capability-card-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #64748b;
    margin: 0;
}

/* Responsive Beyond Section */
@media (max-width: 900px) {
    .beyond-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
@media (max-width: 600px) {
    .beyond-section {
        padding: 60px 0;
    }
    .beyond-cta-card {
        padding: 28px 24px;
    }
    .capability-card {
        padding: 20px 18px;
        gap: 16px;
    }
}

