/* ===== Field Manager Page Specific Styles ===== */

/* Hero */
.fm-hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #06101a 0%, #0d1f33 40%, #0a1929 100%);
    overflow: hidden;
    position: relative;
}

.fm-hero .hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(0, 180, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.fm-hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.fm-hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: white;
}

.fm-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 32px;
}

.fm-hero .btn-secondary {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.fm-hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Field Command Mockup */
.fm-hero-visual {
    perspective: 1200px;
}

.fm-command-mockup {
    background: #0b1520;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(0, 180, 255, 0.12);
    transform: rotateY(-2deg) rotateX(1deg);
    transition: transform 0.5s ease;
}

.fm-command-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

/* Mockup Header */
.fm-mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(0, 180, 255, 0.04);
    border-bottom: 1px solid rgba(0, 180, 255, 0.1);
}

.fm-mockup-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fm-mockup-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}

.fm-mockup-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #00d4ff;
    letter-spacing: 0.05em;
}

.fm-mockup-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fm-mockup-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Courier New', monospace;
}

.fm-mockup-date {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Mockup Body */
.fm-mockup-body {
    display: grid;
    grid-template-columns: 1fr 200px;
    min-height: 280px;
}

/* Map Area */
.fm-map {
    position: relative;
    background: linear-gradient(180deg, #071020 0%, #0e1e35 100%);
    padding: 16px;
    overflow: hidden;
}

.fm-map-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 180, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.fm-map-pin {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.fm-map-pin.pin-worker {
    width: 10px;
    height: 10px;
    background: #00d4ff;
}

.fm-map-pin.pin-vehicle {
    width: 14px;
    height: 14px;
    background: #ff8800;
}

.fm-map-pin.pin-facility {
    width: 12px;
    height: 12px;
    background: #00cc88;
    border-radius: 3px;
}

.fm-map-pin.pin-alert {
    width: 12px;
    height: 12px;
    background: #ff4466;
}

.fm-pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: fm-pin-pulse 2s ease-out infinite;
}

.pin-alert .fm-pin-pulse { border-color: #ff4466; }
.pin-worker .fm-pin-pulse { border-color: #00d4ff; }

@keyframes fm-pin-pulse {
    0% { width: 12px; height: 12px; opacity: 1; }
    100% { width: 36px; height: 36px; opacity: 0; }
}

.fm-map-stats {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 10px;
}

.fm-map-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    border: 1px solid rgba(0, 180, 255, 0.15);
}

.fm-ms-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.fm-ms-label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

/* Sidebar Panel */
.fm-sidebar-panel {
    background: rgba(255, 255, 255, 0.03);
    border-left: 1px solid rgba(0, 180, 255, 0.08);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.fm-sidebar-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

.fm-module-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s;
}

.fm-module-item:hover {
    background: rgba(0, 180, 255, 0.08);
}

.fm-module-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fm-module-dot.workforce { background: #00d4ff; box-shadow: 0 0 6px rgba(0, 212, 255, 0.4); }
.fm-module-dot.fleet { background: #ff8800; box-shadow: 0 0 6px rgba(255, 136, 0, 0.4); }
.fm-module-dot.facility { background: #00cc88; box-shadow: 0 0 6px rgba(0, 204, 136, 0.4); }
.fm-module-dot.tracking { background: #aa66ff; box-shadow: 0 0 6px rgba(170, 102, 255, 0.4); }
.fm-module-dot.ai-vision { background: #ff4466; box-shadow: 0 0 6px rgba(255, 68, 102, 0.4); }
.fm-module-dot.im { background: #44aaff; box-shadow: 0 0 6px rgba(68, 170, 255, 0.4); }

.fm-module-info strong {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1px;
}

.fm-module-info span {
    font-size: 0.56rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Impact Section */
.fm-impact-section {
    padding: 50px 0;
    background: white;
    border-bottom: 1px solid var(--gray-300);
}

.fm-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.fm-impact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fm-impact-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00b4ff, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fm-impact-label {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* Six Pillars Section */
.fm-pillars-section {
    padding: 100px 0;
    background: var(--gray-100);
}

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

.fm-pillar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--gray-300);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.fm-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.fm-pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.fm-pillar-card.workforce::before { background: linear-gradient(180deg, #00d4ff, #0066cc); }
.fm-pillar-card.fleet::before { background: linear-gradient(180deg, #ff8800, #cc5500); }
.fm-pillar-card.facility::before { background: linear-gradient(180deg, #00cc88, #008855); }
.fm-pillar-card.tracking::before { background: linear-gradient(180deg, #aa66ff, #6633cc); }
.fm-pillar-card.ai-vision::before { background: linear-gradient(180deg, #ff4466, #cc2244); }
.fm-pillar-card.im::before { background: linear-gradient(180deg, #44aaff, #2266dd); }

.fm-pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.fm-pillar-card.workforce .fm-pillar-icon { background: rgba(0, 180, 255, 0.1); }
.fm-pillar-card.fleet .fm-pillar-icon { background: rgba(255, 136, 0, 0.1); }
.fm-pillar-card.facility .fm-pillar-icon { background: rgba(0, 204, 136, 0.1); }
.fm-pillar-card.tracking .fm-pillar-icon { background: rgba(170, 102, 255, 0.1); }
.fm-pillar-card.ai-vision .fm-pillar-icon { background: rgba(255, 68, 102, 0.1); }
.fm-pillar-card.im .fm-pillar-icon { background: rgba(68, 170, 255, 0.1); }

.fm-pillar-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.fm-pillar-card p {
    font-size: 0.88rem;
    color: var(--gray-700);
    line-height: 1.65;
    margin-bottom: 16px;
}

.fm-pillar-features {
    list-style: none;
}

.fm-pillar-features li {
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    font-size: 0.82rem;
    color: var(--gray-700);
}

.fm-pillar-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.fm-pillar-card.workforce .fm-pillar-features li::before { background: #00d4ff; }
.fm-pillar-card.fleet .fm-pillar-features li::before { background: #ff8800; }
.fm-pillar-card.facility .fm-pillar-features li::before { background: #00cc88; }
.fm-pillar-card.tracking .fm-pillar-features li::before { background: #aa66ff; }
.fm-pillar-card.ai-vision .fm-pillar-features li::before { background: #ff4466; }
.fm-pillar-card.im .fm-pillar-features li::before { background: #44aaff; }

/* Feature Detail Blocks */
.fm-features-section {
    padding: 100px 0;
    background: white;
}

.fm-feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

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

.fm-feature-block.reverse {
    direction: rtl;
}

.fm-feature-block.reverse > * {
    direction: ltr;
}

/* Feature visual wrapper */
.feature-visual {
    padding: 16px;
}

/* ===== Custom Feature Visuals for Field Manager ===== */

/* 1. Workforce Dispatch Mockup */
.fm-dispatch-mockup {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-300);
    overflow: hidden;
    width: 100%;
}

.fm-dm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-300);
}

.fm-dm-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-dm-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
    animation: fm-dm-blink 2s ease-in-out infinite;
}

@keyframes fm-dm-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.fm-dm-badge {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-200);
    padding: 2px 8px;
    border-radius: 10px;
}

.fm-dm-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    min-height: 260px;
}

/* Mini Map */
.fm-dm-map {
    position: relative;
    background: linear-gradient(180deg, #071020 0%, #0e1e35 100%);
    overflow: hidden;
}

.fm-dm-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 180, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

.fm-dm-pin {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
}

.fm-dm-pin.w {
    width: 8px;
    height: 8px;
    background: #00d4ff;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.fm-dm-pin.v {
    width: 12px;
    height: 12px;
    background: #ff8800;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.fm-dm-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    animation: fm-dm-pulse-anim 2s ease-out infinite;
}

.fm-dm-pin.w .fm-dm-pulse { border-color: #00d4ff; }
.fm-dm-pin.v .fm-dm-pulse { border-color: #ff8800; }

@keyframes fm-dm-pulse-anim {
    0% { width: 8px; height: 8px; opacity: 1; }
    100% { width: 28px; height: 28px; opacity: 0; }
}

.fm-dm-zone {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed;
    opacity: 0.25;
    border-color: rgba(0, 180, 255, 0.5);
    background: rgba(0, 180, 255, 0.03);
}

.fm-dm-map-labels {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 10px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 5px;
}

.fm-dm-map-labels span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.fm-dm-map-labels i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

/* Worker Cards Sidebar */
.fm-dm-workers {
    background: white;
    border-left: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.fm-dm-worker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.2s;
}

.fm-dm-worker:last-child {
    border-bottom: none;
}

.fm-dm-worker:hover {
    background: var(--gray-100);
}

.fm-dm-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.fm-dm-avatar.a1 { background: linear-gradient(135deg, #00d4ff, #0066cc); }
.fm-dm-avatar.a2 { background: linear-gradient(135deg, #34a853, #1a73e8); }
.fm-dm-avatar.a3 { background: linear-gradient(135deg, #ff8800, #cc5500); }

.fm-dm-winfo {
    flex: 1;
    min-width: 0;
}

.fm-dm-winfo strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1px;
}

.fm-dm-winfo span {
    font-size: 0.6rem;
    color: var(--gray-500);
}

.fm-dm-wstatus {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}

.fm-dm-wstatus.on { background: rgba(0, 204, 136, 0.1); color: #00aa66; }
.fm-dm-wstatus.disp { background: rgba(255, 68, 102, 0.1); color: #cc2244; }
.fm-dm-wstatus.en { background: rgba(0, 180, 255, 0.1); color: #0088cc; }

/* 2. Fleet & Facility Mockup */
.fm-fleet-mockup {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-300);
    overflow: hidden;
    width: 100%;
}

.fm-flm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-300);
}

.fm-flm-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray-900);
}

.fm-flm-tabs {
    display: flex;
    gap: 2px;
    background: var(--gray-200);
    border-radius: 6px;
    padding: 2px;
}

.fm-flm-tab {
    font-size: 0.58rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    color: var(--gray-500);
}

.fm-flm-tab.active {
    background: white;
    color: var(--gray-900);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.fm-flm-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    min-height: 260px;
}

/* Fleet Map */
.fm-flm-map {
    position: relative;
    background: linear-gradient(180deg, #071020 0%, #0e1e35 100%);
    overflow: hidden;
}

.fm-flm-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 180, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

.fm-flm-route {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fm-flm-pin {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
}

.fm-flm-pin.vehicle {
    width: 12px;
    height: 12px;
    background: #ff8800;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.fm-flm-pin.site {
    width: 10px;
    height: 10px;
    background: #00cc88;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 3px;
}

.fm-flm-pin.alert {
    width: 10px;
    height: 10px;
    background: #ff4466;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.fm-flm-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #ff8800;
    animation: fm-dm-pulse-anim 2s ease-out infinite;
}

.fm-flm-pulse.alert {
    border-color: #ff4466;
}

/* Fleet Cards Sidebar */
.fm-flm-cards {
    background: white;
    border-left: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fm-flm-card {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-200);
}

.fm-flm-card:last-child {
    border-bottom: none;
}

.fm-flm-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.fm-flm-card-head strong {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-900);
}

.fm-flm-card-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fm-flm-card-icon.truck {
    background: rgba(255, 136, 0, 0.12);
    color: #ff8800;
}

.fm-flm-card-icon.building {
    background: rgba(0, 204, 136, 0.12);
    color: #00cc88;
}

.fm-flm-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.58rem;
    color: var(--gray-500);
    margin-bottom: 5px;
}

.fm-flm-val {
    font-weight: 700;
    font-size: 0.58rem;
}

.fm-flm-val.ok { color: #00aa66; }
.fm-flm-val.warn { color: #cc8800; }
.fm-flm-val.alert { color: #cc2244; }

.fm-flm-bar {
    height: 3px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.fm-flm-bar-fill {
    height: 100%;
    border-radius: 2px;
}

.fm-flm-bar-fill.green { background: #00cc88; }
.fm-flm-bar-fill.orange { background: #ff8800; }
.fm-flm-bar-fill.red { background: #ff4466; }

/* 3. AI Vision & Tracking Mockup */
.fm-vision-mockup {
    background: #0a1525;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 180, 255, 0.15);
    overflow: hidden;
    width: 100%;
}

.fm-vm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0, 180, 255, 0.06);
    border-bottom: 1px solid rgba(0, 180, 255, 0.1);
}

.fm-vm-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-vm-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4466;
    animation: fm-vm-blink 1.5s ease-in-out infinite;
}

@keyframes fm-vm-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.fm-vm-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
}

.fm-vm-body {
    position: relative;
    min-height: 220px;
    background: linear-gradient(180deg, #071020 0%, #0e1e35 100%);
    overflow: hidden;
}

.fm-vm-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 180, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Detection Box */
.fm-vm-box {
    position: absolute;
    border: 2px solid;
    border-radius: 3px;
}

.fm-vm-box.person {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

.fm-vm-box.hazard {
    border-color: #ff4466;
    background: rgba(255, 68, 102, 0.05);
}

.fm-vm-box.vehicle {
    border-color: #ff8800;
    background: rgba(255, 136, 0, 0.05);
}

.fm-vm-box-label {
    position: absolute;
    top: -1px;
    left: -1px;
    font-size: 0.45rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 2px 0 3px 0;
    color: white;
    letter-spacing: 0.03em;
}

.fm-vm-box.person .fm-vm-box-label { background: #00b4ff; }
.fm-vm-box.hazard .fm-vm-box-label { background: #ff4466; }
.fm-vm-box.vehicle .fm-vm-box-label { background: #ff8800; }

.fm-vm-box-conf {
    position: absolute;
    bottom: 3px;
    right: 5px;
    font-size: 0.42rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.fm-vm-box.person .fm-vm-box-conf { color: #00d4ff; }
.fm-vm-box.hazard .fm-vm-box-conf { color: #ff4466; }
.fm-vm-box.vehicle .fm-vm-box-conf { color: #ff8800; }

/* Trajectory path */
.fm-vm-traj {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Footer stats */
.fm-vm-footer {
    display: flex;
    gap: 1px;
    background: rgba(0, 180, 255, 0.08);
    border-top: 1px solid rgba(0, 180, 255, 0.1);
}

.fm-vm-stat {
    flex: 1;
    padding: 7px 10px;
    text-align: center;
}

.fm-vm-stat-val {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
}

.fm-vm-stat-lbl {
    display: block;
    font-size: 0.45rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fm-feature-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.fm-feature-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.fm-feature-content > p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Workflow Section */
.fm-workflow-section {
    padding: 100px 0;
    background: var(--gray-100);
}

.fm-workflow-steps {
    display: flex;
    gap: 0;
    align-items: flex-start;
    margin-top: 60px;
}

.fm-workflow-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.fm-workflow-step::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 180, 255, 0.4), rgba(0, 180, 255, 0.05));
    z-index: 0;
}

.fm-workflow-step:last-child::after {
    display: none;
}

.fm-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 150, 255, 0.08);
    border: 2px solid rgba(0, 180, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #00b4ff;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
}

.fm-step-label {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}

.fm-step-desc {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.5;
    max-width: 160px;
    margin: 0 auto;
}

/* Capabilities Section */
.fm-capabilities-section {
    padding: 100px 0;
    background: white;
}

.fm-cap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.fm-cap-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.fm-cap-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00b4ff;
    box-shadow: 0 0 8px rgba(0, 180, 255, 0.3);
    flex-shrink: 0;
}

/* More Features */
.fm-more-section {
    padding: 100px 0;
    background: var(--gray-100);
}

.fm-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.fm-mini-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
}

.fm-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.fm-mini-card svg {
    margin-bottom: 12px;
}

.fm-mini-card h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.fm-mini-card p {
    font-size: 0.8rem;
    color: var(--gray-700);
    line-height: 1.5;
}

/* Enterprise CTA */
.fm-pricing-section {
    padding: 100px 0;
    background: white;
}

.fm-cta-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, #06101a, #0d1f33);
    border-radius: var(--radius-lg);
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(0, 180, 255, 0.12);
}

.fm-cta-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.fm-cta-card-content p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
}

.fm-cta-features {
    list-style: none;
}

.fm-cta-features li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.fm-cta-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: 700;
}

.fm-cta-card-action {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    text-align: center;
}

.fm-cta-card-action .btn-navy {
    background: linear-gradient(135deg, #0088ff, #0055cc);
}

.fm-cta-card-action .btn-secondary {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.fm-cta-card-action .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .fm-hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fm-command-mockup {
        transform: none;
    }

    .fm-feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fm-feature-block.reverse {
        direction: ltr;
    }

    .fm-dm-body,
    .fm-flm-body {
        grid-template-columns: 1fr;
    }

    .fm-dm-workers,
    .fm-flm-cards {
        border-left: none;
        border-top: 1px solid var(--gray-200);
    }

    .fm-impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .fm-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fm-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fm-cta-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }

    .fm-cap-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fm-hero {
        padding: 100px 0 60px;
    }

    .fm-hero-content h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-large {
        text-align: center;
    }

    .fm-mockup-body {
        grid-template-columns: 1fr;
    }

    .fm-sidebar-panel {
        display: none;
    }

    .fm-impact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fm-pillars-grid {
        grid-template-columns: 1fr;
    }

    .fm-mini-grid {
        grid-template-columns: 1fr;
    }

    .fm-feature-content h3 {
        font-size: 1.4rem;
    }

    .fm-cta-card {
        padding: 30px 20px;
    }

    .fm-workflow-steps {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .fm-workflow-step::after {
        display: none;
    }

    .fm-workflow-step {
        width: 100%;
        max-width: 200px;
    }

    .fm-vm-body {
        min-height: 180px;
    }

    .fm-dm-body,
    .fm-flm-body {
        min-height: auto;
    }
}

/* ============================================================== */
/* ===== Arabic RTL Overrides (must remain at end of file) ====== */
/* ============================================================== */

.fm-sidebar-panel {
    border-left: none;
    border-right: 1px solid rgba(0, 180, 255, 0.08);
    text-align: right;
}

.fm-dm-workers,
.fm-flm-cards {
    border-left: none;
    border-right: 1px solid var(--gray-200);
}

.fm-pillar-features li {
    padding-left: 0;
    padding-right: 18px;
}

.fm-cta-features li {
    padding-left: 0;
    padding-right: 22px;
}

.fm-pillar-features li::before,
.fm-cta-features li::before {
    left: auto;
    right: 0;
}

@media (max-width: 768px) {
    .fm-flm-cards {
        border-right: none;
        border-top: 1px solid var(--gray-200);
    }
}

