/* ============================================
   DeepLine Operations - Below-the-Fold Styles
   Non-critical CSS loaded asynchronously
   ============================================ */

/* ========== Problems Section ========== */
.problems {
    background: white;
    position: relative;
}

.problems::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(15, 11, 46, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.5;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    position: relative;
}

.problem-card {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(15, 11, 46, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--muted-indigo);
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff4757, #ff6b7d);
}

.problem-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Clock for "Quoting Takes Hours" */
.clock-visual {
    position: relative;
}

.clock-face {
    width: 60px;
    height: 60px;
    border: 3px solid #ff4757;
    border-radius: 50%;
    position: relative;
    animation: urgentPulse 2s infinite;
}

@keyframes urgentPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.clock-hand {
    position: absolute;
    background: #ff4757;
    border-radius: 2px;
    transform-origin: bottom center;
    top: 15px;
    left: 50%;
    margin-left: -1px;
    will-change: transform;
}

.hour-hand {
    width: 2px;
    height: 20px;
    animation: tickHour 4s linear infinite;
}

.minute-hand {
    width: 1px;
    height: 25px;
    animation: tickMinute 2s linear infinite;
}

@keyframes tickHour {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes tickMinute {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.papers-stack {
    position: absolute;
    right: -10px;
    bottom: -10px;
}

.paper {
    width: 20px;
    height: 24px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 2px;
    position: absolute;
    animation: stackPaper 3s infinite;
}

.paper:nth-child(1) { animation-delay: 0s; z-index: 3; }
.paper:nth-child(2) { animation-delay: 1s; z-index: 2; }
.paper:nth-child(3) { animation-delay: 2s; z-index: 1; }

@keyframes stackPaper {
    0%, 66% { transform: translateY(0) rotate(0deg); opacity: 0; }
    33% { transform: translateY(-5px) rotate(5deg); opacity: 1; }
    100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
}

/* Disconnected Nodes for "Systems Don't Talk" */
.nodes-visual {
    position: relative;
}

.node {
    width: 16px;
    height: 16px;
    background: #ff4757;
    border-radius: 50%;
    position: absolute;
    animation: disconnectedPulse 2s infinite;
}

.node:nth-child(1) { top: 0; left: 10px; animation-delay: 0s; }
.node:nth-child(2) { top: 20px; left: 40px; animation-delay: 0.3s; }
.node:nth-child(3) { bottom: 10px; left: 5px; animation-delay: 0.6s; }
.node:nth-child(4) { bottom: 5px; right: 15px; animation-delay: 0.9s; }

@keyframes disconnectedPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Broken connection lines */
.broken-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, #ff4757 40%, transparent 40%, transparent 60%, #ff4757 60%);
    opacity: 0.7;
}

.broken-line:nth-child(5) {
    top: 25px;
    left: 15px;
    width: 30px;
    transform: rotate(45deg);
}

.broken-line:nth-child(6) {
    bottom: 20px;
    left: 20px;
    width: 25px;
    transform: rotate(-30deg);
}

/* Dimmed Dashboard for "Flying Blind" */
.blind-visual {
    position: relative;
}

.blind-dashboard {
    width: 70px;
    height: 50px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    opacity: 0.6;
}

.blind-bar {
    position: absolute;
    background: #ccc;
    border-radius: 1px;
}

.blind-bar:nth-child(1) { bottom: 5px; left: 8px; width: 8px; height: 15px; }
.blind-bar:nth-child(2) { bottom: 5px; left: 20px; width: 8px; height: 25px; }
.blind-bar:nth-child(3) { bottom: 5px; left: 32px; width: 8px; height: 10px; }
.blind-bar:nth-child(4) { bottom: 5px; left: 44px; width: 8px; height: 20px; }

.question-mark {
    position: absolute;
    top: -15px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: bounce 2s infinite;
}

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

.problem-card h3 {
    color: var(--dark-ink);
    margin-bottom: 16px;
}

.problem-card p {
    color: var(--medium-gray);
    margin: 0 auto;
}

/* ========== Services Section ========== */
.services {
    background: var(--off-white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, rgba(15, 11, 46, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(15, 11, 46, 0.02) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.3;
}

.services-group-header {
    text-align: center;
    margin-top: 48px;
    margin-bottom: 12px;
}

.services-group-header:first-of-type {
    margin-top: 32px;
}

.services-group-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-ink);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.services-group-header p {
    color: var(--medium-gray);
    font-size: 15px;
    margin: 0 auto;
}

.price-badge {
    background: var(--signal-green);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.price-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: badgeShine 3s infinite;
    transform: translateX(-100%);
}

.audit-report-preview {
    padding: 16px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 8px;
}

.audit-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.audit-report-header span:first-child {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

.audit-report-header span:last-child {
    font-size: 10px;
    color: #64748b;
}

.audit-task-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.audit-task-row:last-child {
    border-bottom: none;
}

.audit-task-name {
    font-size: 11px;
    color: #94a3b8;
    flex: 1;
    min-width: 0;
}

.audit-task-before {
    font-size: 11px;
    color: #ef4444;
    width: 55px;
    text-align: right;
}

.audit-task-arrow {
    font-size: 10px;
    color: #64748b;
}

.audit-task-after {
    font-size: 11px;
    color: #22c55e;
    font-weight: 600;
    width: 55px;
}

.audit-task-bar {
    flex: 0 0 60px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.audit-task-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #22c55e, #1B9AAA);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 24px;
    position: relative;
}

.service-card {
    background: white;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--muted-indigo);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--muted-indigo), var(--teal-accent));
}

.service-header {
    padding: 24px 32px 16px;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--muted-indigo);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--teal-accent);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2px;
    fill: none;
}

.service-card h3 {
    color: var(--dark-ink);
    margin-bottom: 12px;
}

.service-description {
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 0;
}

.service-features li {
    color: var(--medium-gray);
    padding: 4px 0;
    position: relative;
    padding-left: 24px;
}

.service-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--signal-green);
    font-weight: 600;
}

/* ========== Product Preview Mockups ========== */
.service-preview {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

/* Quoting Interface */
.quoting-interface {
    padding: 16px;
    background: white;
}

.quote-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.form-field {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
    color: #374151;
}

.quote-result {
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-price {
    font-weight: 600;
    color: #059669;
    font-size: 16px;
}

.quote-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    font-size: 11px;
}

.quote-checkmark {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
}

/* Enhanced Quoting Interface Styles */
.quote-customer-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-ink);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--off-white);
    border-radius: 4px;
    border-left: 3px solid var(--teal-accent);
}

.quote-warning {
    margin: 8px 0;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
}

.quote-warning.warning-yellow {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
}

.quote-warning.warning-red {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #dc2626;
}

.quote-warning.warning-orange {
    background: #fed7aa;
    border: 1px solid #fb923c;
    color: #ea580c;
}

.quote-result.result-stockout {
    background: #fee2e2;
    border: 1px solid #ef4444;
}

.quote-result.result-warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
}

.quote-result.result-normal {
    background: #ecfdf5;
    border: 1px solid #10b981;
}

.quote-price.price-na {
    color: #ef4444;
    font-weight: 600;
}

.quote-inventory {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
}

.inventory-level {
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.inventory-level::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.inventory-green {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #22c55e;
}

.inventory-green::before {
    background: #22c55e;
}

.inventory-yellow {
    background: #fef3c7;
    color: #ca8a04;
    border: 1px solid #eab308;
}

.inventory-yellow::before {
    background: #eab308;
}

.inventory-red {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #ef4444;
}

.inventory-red::before {
    background: #ef4444;
}

.quote-substitute {
    margin-top: 8px;
    padding: 10px;
    background: #ecfeff;
    border: 1px solid #06b6d4;
    border-radius: 6px;
    font-size: 12px;
    color: #0e7490;
    width: 100%;
    box-sizing: border-box;
}

.quote-due-date {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-ink);
    display: flex;
    align-items: center;
    gap: 4px;
}

.quote-due-date::before {
    content: '\1F4C5';
    font-size: 10px;
}

.quote-substitute-title {
    font-weight: 600;
    margin-bottom: 4px;
}

/* Cycling Animation */
.quoting-interface.cycling {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.quoting-interface.cycling.visible {
    opacity: 1;
}

.generate-btn {
    background: var(--teal-accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    background: #148994;
    transform: translateY(-1px);
}

/* ========== Systems Integration Diagram ========== */
.integration-diagram {
    padding: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    height: 220px;
    overflow: hidden;
}

.orch-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.orch-line {
    stroke: #334155;
    stroke-width: 1.5;
    fill: none;
}

.orch-line-glow {
    stroke-width: 2;
    fill: none;
    opacity: 0;
}

.orch-line-glow.active {
    animation: lineGlow 2s ease-in-out;
}

@keyframes lineGlow {
    0% { opacity: 0; stroke-dashoffset: 100; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; stroke-dashoffset: 0; }
}

.orch-node {
    position: absolute;
    background: #1e293b;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid;
    text-align: center;
    transition: all 0.4s ease;
    z-index: 2;
}

.orch-node .node-sub {
    font-size: 8px;
    font-weight: 400;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.orch-node.active {
    transform: scale(1.08);
    box-shadow: 0 0 20px var(--node-color);
}

.orch-node.n-erp { top: 16px; left: 8%; border-color: #ef4444; --node-color: #ef4444; }
.orch-node.n-tms { bottom: 16px; left: 8%; border-color: #f59e0b; --node-color: #f59e0b; }
.orch-node.n-wms { top: 16px; right: 8%; border-color: #10b981; --node-color: #10b981; }
.orch-node.n-crm { bottom: 16px; right: 8%; border-color: #8b5cf6; --node-color: #8b5cf6; }

.orch-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--teal-accent) 0%, #0f4c5c 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 12px;
    z-index: 3;
    box-shadow: 0 0 30px rgba(27, 154, 170, 0.4);
}

.orch-hub .hub-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.orch-hub-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1px solid rgba(27, 154, 170, 0.3);
    z-index: 2;
    animation: hubRing 3s ease-in-out infinite;
}

.orch-hub-ring2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 1px solid rgba(27, 154, 170, 0.15);
    z-index: 1;
    animation: hubRing 3s ease-in-out infinite 0.5s;
}

@keyframes hubRing {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.orch-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
}

.orch-dot.moving {
    opacity: 1;
    transition: none;
}

.orch-status {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #64748b;
    z-index: 5;
    white-space: nowrap;
}

.orch-status span {
    color: var(--teal-accent);
}

/* ========== Operations Dashboard Mockup ========== */
.dashboard-preview {
    background: #0f172a;
    color: white;
    padding: 16px;
    height: 320px;
    position: relative;
    overflow: hidden;
}

.dashboard-header-mini {
    display: flex;
    justify-content: between;
    margin-bottom: 12px;
    font-size: 12px;
    color: #cbd5e1;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 4px;
    text-align: center;
}

.kpi-value {
    color: var(--teal-accent);
    font-size: 14px;
    font-weight: 600;
}

.kpi-label {
    color: #94a3b8;
    font-size: 9px;
    margin-top: 2px;
}

.mini-chart-container {
    height: 40px;
    display: flex;
    align-items: end;
    gap: 2px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    padding: 4px;
}

.dashboard-bar {
    background: linear-gradient(to top, var(--teal-accent), var(--signal-green));
    border-radius: 1px;
    width: 8px;
    animation: dashboardGrow 2s ease-out;
}

@keyframes dashboardGrow {
    from { height: 0; }
    to { height: var(--bar-height); }
}

.dashboard-bar:nth-child(1) { --bar-height: 15px; animation-delay: 0.1s; }
.dashboard-bar:nth-child(2) { --bar-height: 25px; animation-delay: 0.2s; }
.dashboard-bar:nth-child(3) { --bar-height: 20px; animation-delay: 0.3s; }
.dashboard-bar:nth-child(4) { --bar-height: 30px; animation-delay: 0.4s; }
.dashboard-bar:nth-child(5) { --bar-height: 18px; animation-delay: 0.5s; }

/* ========== Enhanced COO Dashboard Components ========== */
.coo-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    height: 100%;
}

.coo-left-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.coo-kpi-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid;
    position: relative;
    transition: all 0.3s ease;
}

.coo-kpi-card.status-good { border-left-color: #22c55e; }
.coo-kpi-card.status-warning { border-left-color: #fbbf24; }
.coo-kpi-card.status-critical { border-left-color: #ef4444; }

.coo-kpi-value {
    color: var(--teal-accent);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.coo-kpi-label {
    color: #94a3b8;
    font-size: 9px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coo-status-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.coo-kpi-card.status-good .coo-status-indicator { color: #22c55e; }
.coo-kpi-card.status-warning .coo-status-indicator { color: #fbbf24; }
.coo-kpi-card.status-critical .coo-status-indicator { color: #ef4444; }

.coo-trend-chart {
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 8px;
    position: relative;
}

.coo-trend-title {
    color: #cbd5e1;
    font-size: 10px;
    margin-bottom: 8px;
    font-weight: 600;
}

.coo-trend-line {
    width: 100%;
    height: 30px;
}

.coo-trend-path {
    fill: none;
    stroke: var(--signal-green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.6));
}

.coo-trend-path.animate {
    animation: drawTrendLine 2s ease-out forwards;
}

@keyframes drawTrendLine {
    to { stroke-dashoffset: 0; }
}

.coo-right-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coo-activity-feed {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 8px;
    overflow: hidden;
}

.coo-feed-title {
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.coo-feed-pulse {
    width: 6px;
    height: 6px;
    background: var(--signal-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.coo-feed-items {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.coo-feed-scroll {
    transition: transform 0.5s ease;
}

.coo-feed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 9px;
}

.coo-feed-text {
    color: #d1d5db;
    flex: 1;
    margin-right: 8px;
}

.coo-feed-status {
    color: var(--signal-green);
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.coo-feed-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.coo-metric-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.coo-big-metric {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    border-left: 3px solid;
}

.coo-big-metric.status-good { border-left-color: #22c55e; }
.coo-big-metric.status-warning { border-left-color: #fbbf24; }

.coo-big-value {
    color: var(--teal-accent);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.coo-big-label {
    color: #94a3b8;
    font-size: 9px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== Route Optimization Map (service card) ========== */
.service-preview > .route-map,
.route-map#routeMap {
    background: #0f172a;
    height: 280px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.route-map-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(51,65,85,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51,65,85,0.3) 1px, transparent 1px);
    background-size: 30px 30px;
}

.state-outline {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.state-outline.visible {
    opacity: 1;
}

.state-outline svg {
    width: 100%;
    height: 100%;
}

.state-shape {
    fill: none;
    stroke: rgba(255,255,255,0.08);
    stroke-width: 1;
}

.route-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.route-path-bg {
    fill: none;
    stroke: #334155;
    stroke-width: 2;
    stroke-dasharray: 6 4;
}

.route-path-active {
    fill: none;
    stroke: var(--teal-accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.route-path-active.drawing {
    transition: stroke-dashoffset 8s ease-in-out;
    stroke-dashoffset: 0;
}

.route-stop {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.route-stop.visible {
    opacity: 1;
    transform: scale(1);
}

.stop-pin {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
}

.stop-pin.warehouse {
    background: #ef4444;
    width: 18px;
    height: 18px;
}

.stop-pin.delivered {
    background: var(--signal-green);
}

.stop-pin.pending {
    background: var(--teal-accent);
}

.stop-label {
    font-size: 8px;
    color: #94a3b8;
    margin-top: 3px;
    white-space: nowrap;
    text-align: center;
}

.route-truck {
    position: absolute;
    z-index: 5;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: scaleX(-1);
}

.route-truck.active {
    opacity: 1;
}

.route-stats-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-around;
    padding: 8px 12px;
    z-index: 6;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.route-stats-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.route-stat {
    text-align: center;
}

.route-stat-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--teal-accent);
}

.route-stat-val.savings {
    color: var(--signal-green);
}

.route-stat-lbl {
    font-size: 8px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-header-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid #334155;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 6;
    font-size: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}

.route-header-bar.visible {
    opacity: 1;
    transform: translateY(0);
}

.route-header-bar .route-title {
    color: white;
    font-weight: 600;
}

.route-header-bar .route-badge {
    background: var(--teal-accent);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
}

/* ========== Interactive Animations for Service Cards ========== */

/* Quoting Automation Animations */
.quoting-interface.animating .form-field {
    border-color: var(--teal-accent);
    background: #f0fdfa;
}

.form-field.typing {
    position: relative;
    background: #f0fdfa;
    border-color: var(--teal-accent);
    box-shadow: 0 0 0 2px rgba(27, 154, 170, 0.1);
}

.form-field.typing::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 14px;
    background: var(--teal-accent);
    animation: blink 0.8s infinite;
}

.form-field.typed {
    background: #ecfdf5;
    border-color: var(--signal-green);
    transition: all 0.3s ease;
}

.quote-generating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    margin: 8px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--medium-gray);
}

.quote-generating::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--teal-accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.quote-result {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.quote-result.show {
    transform: translateY(0);
    opacity: 1;
}

.quote-price.calculating {
    animation: spinNumbers 0.8s ease-in-out;
}

@keyframes spinNumbers {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); opacity: 0; }
    100% { transform: rotateY(360deg); opacity: 1; }
}

.generate-btn.processing {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Operations Dashboard Enhanced Animations */
.kpi-value.counting {
    animation: countUp 1.5s ease-out;
}

@keyframes countUp {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.dashboard-bar.growing {
    height: 0 !important;
    animation: growBar 1s ease-out forwards;
}

@keyframes growBar {
    to { height: var(--bar-height) !important; }
}

.live-chart {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 20px;
    overflow: hidden;
}

.line-chart-svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    fill: none;
    stroke: var(--signal-green);
    stroke-width: 1.5;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    opacity: 0.8;
}

.chart-line.drawing {
    animation: drawLine 2s ease-in-out forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.chart-dots {
    fill: var(--signal-green);
    opacity: 0;
}

.chart-dots.show {
    animation: showDots 0.5s ease-out 1.8s forwards;
}

@keyframes showDots {
    to { opacity: 1; }
}

.route-stats {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 9px;
    line-height: 1.2;
}

.service-link {
    color: var(--teal-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 16px 32px;
    display: block;
    border-top: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.service-link:hover {
    background: var(--off-white);
    color: var(--dark-ink);
}

/* ========== Social Proof / Results ========== */
.results {
    background: white;
    position: relative;
    padding: 80px 0 0;
}

.results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(27, 154, 170, 0.1) 1px, transparent 0);
    background-size: 50px 50px;
    opacity: 0.3;
}

/* ========== Data Visualization Section ========== */
.data-visualization-section {
    background: white;
    padding: 0 0 60px;
}

.chart-container {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.chart-container.animate {
    opacity: 1;
    transform: translateY(0);
}

.chart-title {
    color: var(--dark-ink);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
}

.chart-source {
    color: #6B7280;
    font-size: 14px;
    text-align: center;
    margin-top: 24px;
    font-style: italic;
}

/* Horizontal Bar Chart */
.horizontal-bar-chart {
    max-width: 800px;
    margin: 0 auto;
}

.chart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.chart-label {
    width: 260px;
    min-width: 260px;
    text-align: right;
    font-size: 14px;
    color: var(--dark-ink);
    font-weight: 500;
    flex-shrink: 0;
}

.chart-bar-bg {
    flex: 1;
    height: 40px;
    background: #f1f5f9;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--muted-indigo), var(--teal-accent));
    border-radius: 6px;
    width: 0%;
    transition: width 1.5s ease-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
}

.chart-bar-fill.animate {
    width: var(--target-width);
}

.bar-value {
    color: white;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Donut Chart */
.donut-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.donut-chart {
    position: relative;
    width: 200px;
    height: 200px;
}

.donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 12;
}

.donut-fill {
    fill: none;
    stroke: var(--teal-accent);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 0 188.5;
    transition: stroke-dasharray 2s ease-out;
}

.donut-fill.animate {
    stroke-dasharray: 173.4 188.5;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-percentage {
    font-size: 36px;
    font-weight: 700;
    color: var(--teal-accent);
    line-height: 1;
}

.donut-label {
    color: var(--medium-gray);
    font-size: 14px;
    margin-top: 4px;
}

.donut-text {
    flex: 1;
    max-width: 400px;
}

.donut-text p {
    font-size: 18px;
    color: var(--dark-ink);
    line-height: 1.6;
}

/* ========== Stats Ticker ========== */
.stats-ticker {
    background: var(--deep-purple-navy);
    border: none;
    border-radius: 8px;
    margin: 60px 0;
    overflow: hidden;
    position: relative;
    height: 60px;
}

.ticker-content {
    display: flex;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
    align-items: center;
    height: 100%;
    will-change: transform;
}

.ticker-item {
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    border-right: none;
    flex-shrink: 0;
}

.ticker-item:nth-child(odd) { color: #ffffff; }
.ticker-item:nth-child(even) { color: #9ca3af; }

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ========== Before/After Comparison ========== */
.comparison-grid {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 20px;
    background: var(--deep-purple-navy);
    color: white;
    padding: 20px;
    font-weight: 600;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
    align-items: center;
}

.comparison-row.animate {
    opacity: 1;
    transform: translateX(0);
}

.comparison-row:nth-child(even) {
    background: #f9fafb;
}

.col-metric {
    font-weight: 500;
    color: var(--dark-ink);
}

.col-before {
    color: #ef4444;
    font-weight: 600;
}

.col-after {
    color: var(--signal-green);
    font-weight: 600;
}

.col-improvement {
    color: var(--signal-green);
    font-weight: 700;
    font-size: 16px;
}

/* ========== ROI Timeline ========== */
.roi-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 60px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, #6b7280, var(--teal-accent), var(--signal-green), #22c55e);
    border-radius: 2px;
}

.timeline-segment {
    flex: 1;
    text-align: center;
    position: relative;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s ease;
}

.timeline-dot.animate {
    opacity: 1;
    transform: scale(1);
}

.investment .timeline-dot {
    background: #6b7280;
    color: white;
}

.break-even .timeline-dot {
    background: var(--teal-accent);
    color: white;
}

.positive .timeline-dot {
    background: var(--signal-green);
    color: white;
}

.strong .timeline-dot {
    background: #22c55e;
    color: white;
}

.timeline-label {
    font-weight: 600;
    color: var(--dark-ink);
    font-size: 14px;
    margin-bottom: 4px;
}

.timeline-desc {
    color: var(--medium-gray);
    font-size: 12px;
}

.roi-curve {
    height: 100px;
    margin-top: 20px;
}

.curve-svg {
    width: 100%;
    height: 100%;
}

.roi-path {
    fill: none;
    stroke: var(--signal-green);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 3s ease-out;
}

.roi-path.animate {
    stroke-dashoffset: 0;
}

.roi-text {
    text-align: center;
    font-size: 18px;
    color: var(--dark-ink);
    margin-top: 24px;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Case Studies Section ========== */
.case-studies-section {
    background: var(--off-white);
    padding: 80px 0;
    margin-top: 60px;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.case-study-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.case-study-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.case-tag {
    background: var(--teal-accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.case-study-card h4 {
    color: var(--dark-ink);
    margin-bottom: 16px;
    font-size: 20px;
}

.case-study-card p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

.case-visual {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

/* Source links */
.source-link {
    color: var(--teal-accent);
    text-decoration: none;
    font-size: 14px;
    margin-left: 4px;
}

.source-link:hover {
    color: var(--dark-ink);
}

/* Mini Bar Comparison */
.mini-bar-comparison {
    display: flex;
    align-items: center;
    gap: 20px;
}

.before-bar,
.after-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar-fill {
    width: 60px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 600;
}

.before-fill {
    background: #ef4444;
    width: 60px;
    transform-origin: left;
    animation: beforeFill 2s ease-out;
}

.after-fill {
    background: var(--signal-green);
    width: 60px;
    transform-origin: left;
    animation: afterFill 2s ease-out 0.5s both;
}

.arrow {
    font-size: 24px;
    color: var(--teal-accent);
    font-weight: bold;
}

.bar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-ink);
}

@keyframes beforeFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes afterFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Connected Nodes */
.connected-nodes {
    position: relative;
    width: 200px;
    height: 80px;
}

.node-system {
    position: absolute;
    background: var(--muted-indigo);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.node-system:nth-child(1) { top: 0; left: 0; }
.node-system:nth-child(2) { top: 0; right: 0; }
.node-system:nth-child(3) { bottom: 0; left: 0; }

.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--teal-accent);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: var(--teal-accent);
    animation: connectionPulse 2s infinite;
}

.line-1 { top: 15px; left: 50px; width: 50px; transform: rotate(25deg); animation-delay: 0s; }
.line-2 { top: 15px; right: 50px; width: 50px; transform: rotate(-25deg); animation-delay: 0.3s; }
.line-3 { bottom: 15px; left: 50px; width: 50px; transform: rotate(-25deg); animation-delay: 0.6s; }

@keyframes connectionPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========== Route Map Mini ========== */
.route-map-mini {
    position: relative;
    width: 200px;
    height: 80px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 8px;
    overflow: hidden;
}

.route-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--signal-green);
    border-radius: 50%;
    animation: routePulse 2s infinite;
}

.route-point:nth-child(1) { animation-delay: 0s; }
.route-point:nth-child(2) { animation-delay: 0.2s; }
.route-point:nth-child(3) { animation-delay: 0.4s; }
.route-point:nth-child(4) { animation-delay: 0.6s; }

/* FIX 3: routePulse - removed box-shadow, keep only opacity and transform */
@keyframes routePulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.route-line-mini {
    position: absolute;
    height: 2px;
    background: var(--teal-accent);
    border-radius: 1px;
    animation: routeFlow 3s infinite;
}

.route-line-mini.line-1 { top: 25%; left: 30%; width: 30px; transform: rotate(30deg); animation-delay: 0s; }
.route-line-mini.line-2 { top: 45%; left: 45%; width: 25px; transform: rotate(-20deg); animation-delay: 1s; }
.route-line-mini.line-3 { top: 65%; left: 35%; width: 35px; transform: rotate(45deg); animation-delay: 2s; }

@keyframes routeFlow {
    0%, 100% { opacity: 0; transform: scaleX(0) var(--rotation); }
    50% { opacity: 1; transform: scaleX(1) var(--rotation); }
}

.route-stats {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 8px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

/* ========== NEW UPGRADED VISUALS ========== */

/* Quoting Automation Visual */
.quote-automation-visual {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 8px;
    padding: 16px;
    width: 100%;
}

.automation-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 8px;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.step-icon.manual {
    background: #ef4444;
    animation: manualPulse 2s infinite;
}

.step-icon.automated {
    background: var(--signal-green);
    animation: automatedPulse 2s infinite 1s;
}

@keyframes manualPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes automatedPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.step-label {
    font-size: 10px;
    color: var(--light-gray);
    font-weight: 600;
}

.step-time {
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.timeline-arrow {
    display: flex;
    align-items: center;
    position: relative;
}

.arrow-shaft {
    width: 40px;
    height: 2px;
    background: var(--teal-accent);
    animation: arrowFlow 2s infinite;
}

.arrow-head {
    width: 0;
    height: 0;
    border-left: 8px solid var(--teal-accent);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    animation: arrowFlow 2s infinite;
}

@keyframes arrowFlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.savings-display {
    text-align: center;
}

.savings-metric {
    background: rgba(6, 182, 212, 0.2);
    color: var(--teal-accent);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

/* Systems Integration Visual */
.systems-integration-visual {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 8px;
    padding: 16px;
    width: 100%;
}

.integration-network {
    position: relative;
    width: 100%;
    height: 80px;
    margin-bottom: 8px;
}

.system-node {
    position: absolute;
    background: var(--muted-indigo);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    border: 2px solid transparent;
    animation: nodeActivity 3s infinite;
}

.system-node.erp { top: 5px; left: 5px; animation-delay: 0s; }
.system-node.wms { top: 5px; right: 5px; animation-delay: 0.3s; }
.system-node.crm { bottom: 5px; left: 5px; animation-delay: 0.6s; }
.system-node.rfid { bottom: 5px; right: 5px; animation-delay: 0.9s; }

/* FIX 4: nodeActivity - changed from border-color to opacity animation */
@keyframes nodeActivity {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.central-processor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--teal-accent);
    color: white;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    animation: processorPulse 2s infinite;
}

@keyframes processorPulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.pulse-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal-accent), transparent);
    animation: pulseFlow 2s infinite;
}

.pulse-line.line-1 {
    top: 20px;
    left: 35px;
    width: 50px;
    transform: rotate(25deg);
    animation-delay: 0s;
}
.pulse-line.line-2 {
    top: 20px;
    right: 35px;
    width: 50px;
    transform: rotate(-25deg);
    animation-delay: 0.5s;
}
.pulse-line.line-3 {
    bottom: 20px;
    left: 35px;
    width: 50px;
    transform: rotate(-25deg);
    animation-delay: 1s;
}
.pulse-line.line-4 {
    bottom: 20px;
    right: 35px;
    width: 50px;
    transform: rotate(25deg);
    animation-delay: 1.5s;
}

@keyframes pulseFlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.integration-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.stat-item {
    background: rgba(34, 197, 94, 0.2);
    color: var(--signal-green);
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: bold;
}

/* Route Optimization Visual */
.route-optimization-visual {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
}

.route-map {
    position: relative;
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 6px;
    overflow: hidden;
}

.map-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
}

.route-points {
    position: relative;
    width: 100%;
    height: 100%;
}

.route-points .route-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--signal-green);
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.5);
    animation: routePointPulse 3s infinite;
}

.route-points .route-point.start {
    background: var(--teal-accent);
    border-color: rgba(6, 182, 212, 0.5);
}

.route-points .route-point.end {
    background: #ef4444;
    border-color: rgba(239, 68, 68, 0.5);
}

/* FIX 2: routePointPulse - removed box-shadow, keep only opacity and transform */
@keyframes routePointPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.animated-path {
    position: absolute;
    inset: 0;
}

.path-svg {
    width: 100%;
    height: 100%;
}

.route-path {
    fill: none;
    stroke: var(--teal-accent);
    stroke-width: 2;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawPath 4s ease-in-out infinite;
}

@keyframes drawPath {
    0% { stroke-dashoffset: 200; opacity: 0; }
    20% { opacity: 1; }
    50% { stroke-dashoffset: 0; }
    80% { opacity: 1; }
    100% { stroke-dashoffset: -200; opacity: 0; }
}

.fuel-savings {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--signal-green);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: bold;
}

/* ========== Trust Badges ========== */
.trust-guarantees {
    background: var(--deep-purple-navy);
    padding: 80px 0;
    position: relative;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(27, 154, 170, 0.25);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(27, 154, 170, 0.2);
    border-color: var(--teal-accent);
    background: rgba(27, 154, 170, 0.08);
}

.badge-icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(27, 154, 170, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon {
    font-size: 28px;
}

.trust-badge strong {
    color: white;
    font-size: 17px;
    display: block;
}

.badge-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.4;
}

/* Mobile Responsive for New Elements */
@media (max-width: 768px) {
    .trust-badges-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .chart-container {
        margin-bottom: 60px;
    }

    .chart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .chart-label {
        min-width: auto;
        text-align: left;
        margin-bottom: 8px;
    }

    .donut-chart-container {
        flex-direction: column;
        gap: 32px;
    }

    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .comparison-header {
        display: none;
    }

    .comparison-row::before {
        content: attr(data-metric);
        font-weight: 600;
        margin-bottom: 8px;
    }

    .timeline-track {
        flex-direction: column;
        gap: 32px;
    }

    .timeline-track::before {
        display: none;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges-grid {
        grid-template-columns: 1fr;
    }

    .stats-ticker {
        height: auto;
        padding: 20px 0;
    }

    .ticker-content {
        flex-direction: column;
        animation: none;
        gap: 16px;
    }

    .ticker-item {
        padding: 0 20px;
        border-right: none;
        border-bottom: 1px solid #333;
        padding-bottom: 16px;
        text-align: center;
    }

    .ticker-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Legacy styles maintained for compatibility */
.stats-container {
    display: none;
}

.stat-item {
    display: none;
}

.case-study-teaser {
    display: none;
}

/* ========== How We Work ========== */
.how-we-work {
    background: var(--off-white);
    position: relative;
}

.how-we-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 49%, rgba(79, 70, 229, 0.02) 49%, rgba(79, 70, 229, 0.02) 51%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(27, 154, 170, 0.02) 49%, rgba(27, 154, 170, 0.02) 51%, transparent 51%);
    background-size: 80px 80px;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 48px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(90deg, var(--muted-indigo), var(--teal-accent), var(--signal-green));
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--muted-indigo);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 24px;
    position: relative;
    transition: all 0.3s ease;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--muted-indigo), var(--teal-accent)) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    animation: stepGlow 3s infinite;
}

@keyframes stepGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.process-step:hover .step-number {
    transform: scale(1.1);
    background: var(--teal-accent);
}

.step-visual {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magnifying-glass {
    width: 20px;
    height: 20px;
    border: 2px solid var(--teal-accent);
    border-radius: 50%;
    position: relative;
}

.magnifying-glass::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 8px;
    height: 2px;
    background: var(--teal-accent);
    transform: rotate(45deg);
}

.gears {
    position: relative;
}

.gear {
    width: 12px;
    height: 12px;
    border: 2px solid var(--teal-accent);
    border-radius: 2px;
    position: absolute;
    animation: gearSpin 4s linear infinite;
    will-change: transform;
}

.gear:nth-child(1) { top: 0; left: 0; animation-direction: normal; }
.gear:nth-child(2) { top: 5px; left: 8px; animation-direction: reverse; }

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.trend-chart {
    width: 20px;
    height: 15px;
    position: relative;
}

.trend-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-accent), var(--signal-green));
    clip-path: polygon(0 100%, 30% 70%, 60% 40%, 100% 0, 100% 100%, 0 100%);
}

.process-step h3 {
    color: var(--dark-ink);
    margin-bottom: 16px;
}

.process-step p {
    color: var(--medium-gray);
    margin: 0 auto;
}

/* ========== Free Tools Section ========== */
.free-tools {
    background: white;
    position: relative;
}

.free-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(79, 70, 229, 0.01) 35px, rgba(79, 70, 229, 0.01) 70px);
    opacity: 0.5;
}

.tools-intro {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 48px;
    position: relative;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
    position: relative;
}

.tool-card {
    background: var(--off-white);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--teal-accent);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--signal-green), var(--teal-accent));
}

.tool-preview {
    width: 40px;
    height: 40px;
    background: var(--muted-indigo);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-preview {
    background: var(--teal-accent);
    transform: rotate(10deg) scale(1.1);
}

.tool-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.free-badge {
    background: var(--signal-green);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.free-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: badgeShine 3s infinite;
    transform: translateX(-100%);
}

/* FIX 1: badgeShine - changed from animating left to transform: translateX() */
@keyframes badgeShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.tool-card h4 {
    color: var(--dark-ink);
    margin-bottom: 12px;
}

.tool-card p {
    color: var(--medium-gray);
    font-size: 14px;
}

.tool-funnel-link {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-indigo);
    transition: color 0.3s ease;
}

.tool-card:hover .tool-funnel-link {
    color: var(--teal-accent);
}

/* ========== Final CTA ========== */
.final-cta {
    background: var(--deep-purple-navy);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(27, 154, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
}

.final-cta h2 {
    color: white;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.final-cta-btn {
    background: var(--teal-accent);
    color: white;
    padding: 18px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.final-cta-btn:hover {
    background: #148994;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 154, 170, 0.3);
}

.final-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.final-cta-btn:hover::before {
    left: 100%;
}

.trust-line {
    color: #D1D5DB;
    font-size: 16px;
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== About Section ========== */
.about-section {
    padding: 100px 0;
    background: var(--off-white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-photo {
    width: 280px;
    min-width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--muted-indigo), var(--teal-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
    font-weight: 700;
}

.about-text h2 {
    font-size: 36px;
    color: var(--dark-ink);
    margin-bottom: 8px;
}

.about-text .about-role {
    color: var(--muted-indigo);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--medium-gray);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.credential-tag {
    background: white;
    border: 1px solid var(--light-gray);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--dark-ink);
    font-weight: 500;
}

.about-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.about-links a {
    color: var(--muted-indigo);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.about-links a:hover {
    color: var(--teal-accent);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-photo {
        width: 180px;
        min-width: 180px;
        height: 180px;
        font-size: 56px;
    }

    .about-credentials {
        justify-content: center;
    }

    .about-links {
        justify-content: center;
    }
}

/* ========== Footer ========== */
footer {
    background: var(--deep-purple-navy);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.footer-logo img {
    height: 32px;
    margin-right: 12px;
}

.footer-nav {
    display: flex;
    list-style: none;
    gap: 32px;
}

.footer-nav a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--teal-accent);
}

.copyright {
    text-align: center;
    color: #6B7280;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

/* ========== Mobile Responsive ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-dashboard {
        order: -1;
    }

    .problems-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .process-timeline::before {
        display: none;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 16px;
    }

    h1 {
        font-size: 28px;
    }

    .big-stat {
        font-size: 48px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ========== NEW SERVICE CARD PREVIEW STYLES ========== */

/* Customer Health Analysis */
.health-analysis {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 16px;
    color: white;
    min-height: 260px;
}

.health-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
}

.health-pulse {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
    display: inline-block;
}

.health-table {
    margin-bottom: 12px;
}

.health-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 8px;
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 0;
    border-bottom: 1px solid #334155;
}

.health-table-body {
    min-height: 120px;
}

.health-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 11px;
    align-items: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.health-row.visible {
    opacity: 1;
    transform: translateX(0);
}

.health-row .customer-name {
    color: #e2e8f0;
    font-weight: 500;
}

.health-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    text-align: center;
}

.health-badge.green { background: rgba(34,197,94,0.2); color: #22c55e; }
.health-badge.yellow { background: rgba(251,191,36,0.2); color: #fbbf24; }
.health-badge.red { background: rgba(239,68,68,0.2); color: #ef4444; }

.health-row .dormant-days {
    color: #94a3b8;
    font-size: 10px;
}

.health-row .risk-amount {
    color: #fbbf24;
    font-weight: 600;
    font-size: 10px;
}

.health-summary {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 8px;
}

.health-stat {
    text-align: center;
}

.health-stat-val {
    font-size: 16px;
    font-weight: 700;
    display: block;
}

.health-stat-lbl {
    font-size: 9px;
    color: #94a3b8;
    text-transform: uppercase;
}

/* Campaign Flow */
.campaign-flow {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 16px;
    color: white;
    min-height: 260px;
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
}

.campaign-segments {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.campaign-segment {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.campaign-segment.active {
    border-color: var(--teal-accent);
    background: rgba(27,154,170,0.1);
}

.segment-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

.segment-label {
    font-size: 9px;
    color: #94a3b8;
}

.segment-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--teal-accent);
}

.campaign-emails {
    min-height: 100px;
    overflow: hidden;
    position: relative;
}

.campaign-email {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.campaign-email.visible {
    opacity: 1;
    transform: translateY(0);
}

.email-icon {
    font-size: 12px;
}

.email-target {
    color: #e2e8f0;
    flex: 1;
}

.email-status {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 600;
}

.email-status.sent { background: rgba(27,154,170,0.2); color: #1B9AAA; }
.email-status.opened { background: rgba(251,191,36,0.2); color: #fbbf24; }
.email-status.clicked { background: rgba(139,92,246,0.2); color: #a78bfa; }
.email-status.reactivated { background: rgba(34,197,94,0.2); color: #22c55e; }

.campaign-stats-bar {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 8px;
    margin-top: 8px;
}

.campaign-stat {
    text-align: center;
}

.campaign-stat-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--teal-accent);
    display: block;
}

.campaign-stat-lbl {
    font-size: 9px;
    color: #94a3b8;
    text-transform: uppercase;
}

/* Revenue Dashboard */
.rev-dashboard {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 16px;
    color: white;
    min-height: 320px;
}

.rev-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
}

.rev-segments {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.rev-seg {
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid;
    text-align: center;
}

.rev-seg-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--teal-accent);
}

.rev-seg-lbl {
    font-size: 9px;
    color: #94a3b8;
    margin-top: 2px;
}

.rev-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.rev-chart-box {
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    padding: 8px;
}

.rev-chart-title {
    font-size: 10px;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 6px;
}

.rev-trend-svg {
    width: 100%;
    height: 40px;
}

.rev-churn-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    filter: drop-shadow(0 0 4px rgba(34,197,94,0.6));
}

.rev-churn-path.animate {
    animation: drawTrendLine 2s ease-out forwards;
}

.rev-recovered {
    text-align: center;
    padding: 8px 0;
}

.rev-recovered-val {
    font-size: 22px;
    font-weight: 700;
    color: #22c55e;
    display: block;
}

.rev-recovered-lbl {
    font-size: 9px;
    color: #94a3b8;
}

.rev-feed {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rev-feed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rev-feed-item.visible {
    opacity: 1;
}

.rev-feed-text {
    color: #d1d5db;
}

.rev-feed-status {
    font-weight: 600;
}

/* Revenue Timeline */
.revenue-timeline {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 16px;
    color: white;
    min-height: 280px;
    position: relative;
}

.rev-tl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
}

.rev-tl-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 140px;
    padding: 0 4px;
    margin-bottom: 8px;
}

.rev-tl-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    min-height: 4px;
    transition: height 1s ease;
    position: relative;
}

.rev-tl-bar .bar-month {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    color: #64748b;
    white-space: nowrap;
}

.rev-tl-annotations {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 48px;
}

.rev-tl-annotation {
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(27,154,170,0.1);
    border-left: 2px solid var(--teal-accent);
    color: #cbd5e1;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.rev-tl-annotation.visible {
    opacity: 1;
    transform: translateX(0);
}

.rev-tl-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 8px;
    margin-top: 8px;
}

.rev-tl-stat {
    text-align: center;
}

.rev-tl-stat-val {
    font-size: 16px;
    font-weight: 700;
    display: block;
}

.rev-tl-stat-lbl {
    font-size: 9px;
    color: #94a3b8;
    text-transform: uppercase;
}

/* ========== FIX 6: will-change only where needed ========== */
.status-dot {
    will-change: transform;
}

/* ========== Performance: Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animated-grid { animation: none; }
    .hero-ambient::before, .hero-ambient::after { animation: none; }
    section { opacity: 1; transform: none; }
}
