.stats-section {
    background: #f8f9fa;
    font-family: 'Inter', sans-serif;
}

.stats-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Subtle decorative background glow on hover */
.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #E21D35;
    /* Your brand red */
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: #E21D35;
}

.stats-card:hover::before {
    transform: scaleX(1);
}

.stats-icon-wrapper {
    width: 65px;
    height: 65px;
    background: rgba(226, 29, 53, 0.06);
    /* Ultra-light brand red */
    color: #E21D35;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon-wrapper {
    background: #E21D35;
    color: #ffffff;
}

.stats-counter {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stats-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

:root {
    --brand-red: #E21D35;
    --brand-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
}

.platform-section {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    overflow: hidden;
}

.section-tag {
    color: var(--brand-red);
    background: rgba(226, 29, 53, 0.07);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Interactive Feature Control Cards */
.feature-nav-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.feature-nav-card:not(:last-child) {
    margin-bottom: 1.25rem;
}

.feature-nav-card.active {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.08);
}

.feature-nav-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(226, 29, 53, 0.08);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-nav-card.active .icon-box {
    background: var(--brand-red);
    color: #ffffff;
}

.feature-nav-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.feature-nav-card.active h4 {
    color: #ffffff;
}

.feature-nav-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.feature-nav-card.active p {
    color: #94a3b8;
}

/* Live Preview Display Hub */
.preview-window-wrapper {
    background: var(--bg-light);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border: 1px dashed #cbd5e1;
}

.tech-pill-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tech-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-pill i {
    color: var(--brand-red);
}

.preview-visual-mock {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Accent micro details to make it premium */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-dot::after {
    content: '';
    width: 100%;
    height: 100%;
    background: #22c55e;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: pulseAnimation 1.8s infinite ease-in-out;
}

@keyframes pulseAnimation {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

:root {
    --brand-red: #E21D35;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border-color: rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 20px 40px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Feature Row Layout */
.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 8rem;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

/* Content Panel */
.content-panel {
    flex: 1;
    max-width: 540px;
}

.icon-header-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-red);
    margin-bottom: 1.75rem;
}

.content-panel h2 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.content-panel p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Features Bullet Grid */
.bullet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    margin-bottom: 2.25rem;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.bullet-item i {
    color: #10b981;
    font-size: 1rem;
}

/* Action Link */
.action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
}

.action-link:hover {
    gap: 0.75rem;
}

/* Graphic/Visual Frame Panel */
.visual-panel {
    flex: 1;
    background: var(--bg-light);
    border-radius: 32px;
    padding: 3rem;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--border-color);
}

/* Dynamic Mockup Placeholders matching the UI Layout precisely */
.ui-mock-window {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 480px;
    padding: 1.5rem;
    position: relative;
}

.ui-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.ui-dot-group {
    display: flex;
    gap: 6px;
}

.ui-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.ui-badge {
    background: rgba(226, 29, 53, 0.08);
    color: var(--brand-red);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
}

/* Cards/Pills layouts inside mockup windows */
.ui-card-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-card-item:last-child {
    margin-bottom: 0;
}

/* Card Content Inner Blocks */
.meta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-icon-box {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.meta-info h5 {
    font-size: 0.9rem;
    font-weight: 700;
}

.meta-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Ecosystem App Grid Representation */
.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.app-mock-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

/* Blue Theme Overrides for Drivers */
.driver-accent-box {
    border-left: 4px solid #2563eb !important;
}

.driver-text-accent {
    color: #2563eb !important;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 2.5rem;
        margin-bottom: 5rem;
    }

    .content-panel {
        max-width: 100%;
    }

    .visual-panel {
        width: 100%;
        min-height: 400px;
        padding: 1.5rem;
    }
}