/* --- Core Reset for Hero --- */
.fm-hero-v6 {
    --slate: #0f172a;
    background: #ffffff;
    padding: 40px 0;
    overflow: hidden; /* CRITICAL: Prevents horizontal scroll on body */
    width: 100%;
    box-sizing: border-box;
}

.fm-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5px;
    box-sizing: border-box;
}

.fm-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Typography & Content */
.fm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.fm-status-badge .dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }
.fm-status-badge .label { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; }

.fm-main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--slate);
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}
.highlight { color: var(--primary); }
.accent-font { font-family: 'Playfair Display', serif; font-style: italic; color: #4c1d95; }

.fm-lead-text { color: #64748b; font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; max-width: 450px; }

.fm-metrics-row { display: flex; gap: 20px; margin-bottom: 40px; }
.metric-item { border-left: 2px solid #f1f5f9; padding-left: 15px; }
.m-label { display: block; font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; }
.m-value { font-size: 15px; font-weight: 700; color: var(--slate); }

.fm-social-proof { display: flex; align-items: center; gap: 15px; }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; margin-right: -10px; }
.avatar-plus { width: 32px; height: 32px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #64748b; border: 2px solid #fff; }
.rating-box .stars { color: #f59e0b; font-size: 12px; }
.rating-box .rank { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; }

/* REEL SYSTEM (Desktop) */
.fm-visual-reel { height: 65vh; position: relative; overflow: hidden; }
.reel-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; height: 100%; }
.track { display: flex; flex-direction: column; gap: 15px; }
.reel-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 15px; }

/* Desktop Animations */
.track-up { animation: scrollUp 20s linear infinite alternate; }
.track-down { animation: scrollDown 20s linear infinite alternate; }
@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(calc(-100% + 400px)); } }
@keyframes scrollDown { 0% { transform: translateY(calc(-100% + 400px)); } 100% { transform: translateY(0); } }

/* --- MOBILE FIXES --- */
@media (max-width: 1024px) {
    .fm-main-grid { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .fm-content-area { display: flex; flex-direction: column; align-items: center; }
    .fm-lead-text { margin-inline: auto; }
    .fm-metrics-row { justify-content: center; }
    .fm-social-proof { justify-content: center; }
}

@media (max-width: 768px) {
    .fm-hero-v6 { padding: 40px 0 20px; }
    .fm-main-title { font-size: 2.2rem; padding: 0 10px; }

    /* The Reel Fix: Force fit to screen width */
    .fm-visual-reel { 
        width: 100%; /* Changed from 100vw to stay inside parent */
        height: auto; 
        margin-top: 30px;
    }
    
    .reel-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .track {
        flex-direction: row !important;
        width: max-content; /* Allows track to be wider than screen for animation */
        gap: 10px;
    }

    .reel-card img {
        width: 110px; /* Reduced for mobile alignment */
        height: 70px;
        border-radius: 8px;
    }

    /* Mobile Animation: Logic revised for no-glitch looping */
    .track-up { animation: scrollMob 15s linear infinite alternate; }
    .track-down { animation: scrollMob 15s linear infinite alternate-reverse; }
}

@keyframes scrollMob {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% + 100vw - 40px)); }
}

/* Fix for very small screens (iPhone SE etc) */
@media (max-width: 380px) {
    .fm-main-title { font-size: 1.8rem; }
    .fm-metrics-row { flex-direction: column; gap: 10px; }
    .metric-item { border-left: none; border-bottom: 1px solid #f1f5f9; padding: 0 0 5px 0; }
}


/* --- Unique Product Section Styling --- */
.fm-sw-wrap {
    --sw-dark: #0f172a;
    --sw-slate: #64748b;
    --sw-bg: #ffffff;
    --sw-border: #f1f5f9;
    
    background: var(--sw-bg);
    padding: 80px 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.fm-sw-container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* Header Logic */
.fm-sw-header { margin-bottom: 50px; }
.fm-sw-badge { display: inline-flex; align-items: center; gap: 8px; background: #f5f3ff; padding: 6px 12px; border-radius: 4px; margin-bottom: 15px; }
.sw-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }
.sw-tag { font-size: 10px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }

.fm-sw-main-title { font-size: 2.5rem; font-weight: 800; color: var(--sw-dark); line-height: 1.1; letter-spacing: -1.2px; margin: 0; }
.sw-bold { color: var(--primary); }
.sw-italic { font-family: 'Playfair Display', serif; font-style: italic; color: #4c1d95; font-weight: 400; }

/* Desktop Track */
.fm-sw-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Card Design */
.fm-sw-card {
    background: #fdfdfd;
    border: 1px solid var(--sw-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.fm-sw-card-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.fm-sw-icon {
    color: var(--primary);
    background: #fff;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.fm-sw-icon svg { width: 20px; height: 20px; stroke-width: 2px; }

.fm-sw-card-title { font-size: 1.1rem; font-weight: 700; color: var(--sw-dark); margin: 0; }
.fm-sw-card-desc { font-size: 0.88rem; color: var(--sw-slate); line-height: 1.6; margin: 0; }

/* Hover State */
.fm-sw-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(67, 56, 202, 0.12);
}

/* Featured Styling */
.fm-sw-featured { background: var(--primary); border: none; }
.fm-sw-featured .fm-sw-card-title, 
.fm-sw-featured .fm-sw-card-desc { color: #ffffff; }
.fm-sw-featured .fm-sw-icon { background: rgba(255,255,255,0.15); color: #ffffff; }

/* --- Mobile Swipe & Compact UI --- */
@media (max-width: 768px) {
    .fm-sw-wrap { padding: 40px 0; }
    .fm-sw-main-title { font-size: 1.8rem; }

    .fm-sw-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 10px 20px 30px;
        margin: 0 -20px;
        scrollbar-width: none;
    }
    .fm-sw-track::-webkit-scrollbar { display: none; }

    .fm-sw-card {
        min-width: 75vw;
        max-width: 75vw;
        padding: 18px;
        scroll-snap-align: center;
    }

    .fm-sw-icon { width: 36px; height: 36px; }
    .fm-sw-icon svg { width: 18px; height: 18px; }
    .fm-sw-card-title { font-size: 1.2rem; }
    .fm-sw-card-desc { font-size: 0.95rem; line-height: 1.5; }
}

@media (max-width: 380px) {
    .fm-sw-card { min-width: 85vw; max-width: 85vw; }
}