/*  Hero Layout  */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 100px 48px 60px;
    gap: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60%; height: 100%;
    background: radial-gradient(ellipse at 70% 50%, rgba(232, 39, 42, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

/* Hero Content  */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 39, 42, 0.12);
    border: 1px solid rgba(232, 39, 42, 0.3);
    color: #FF7B7D;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: normal;
    color: var(--red);
}

.hero p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 480px;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/*  Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.stat-num span { 
    color: var(--red); 
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/*  Hero Visual (Map Card)  */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.map-header h4 { font-size: 15px; font-weight: 600; }

/*  Map Area (Simulated) */
.map-area {
    background: #111;
    border-radius: 12px;
    height: 220px;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.map-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.map-road {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
}

.map-road.h { height: 2px; left: 0; right: 0; }
.map-road.v { width: 2px; top: 0; bottom: 0; }
.map-road.r1 { top: 55%; }
.map-road.r2 { top: 30%; }
.map-road.c1 { left: 35%; }
.map-road.c2 { left: 65%; }

/* Map Markers  */
.map-ambulance {
    position: absolute;
    width: 36px; height: 36px;
    background: var(--red);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 16px;
    box-shadow: 0 0 0 6px rgba(232, 39, 42, 0.2), 0 0 0 12px rgba(232, 39, 42, 0.08);
    animation: mapFloat 3s ease-in-out infinite;
}

.amb1 { top: 30%; left: 25%; }
.amb2 { top: 55%; left: 60%; animation-delay: 1s; }
.amb3 { top: 15%; left: 62%; animation-delay: 2s; width: 30px; height: 30px; font-size: 14px; }

.map-user {
    position: absolute;
    top: 50%; left: 45%;
    transform: translate(-50%, -50%);
}

.user-dot {
    width: 14px; height: 14px;
    background: #3B82F6;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2);
}

.map-line {
    position: absolute;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.6), transparent);
    height: 1px;
    top: calc(50% - 1px);
    left: calc(45% + 8px);
    width: 80px;
    transform-origin: left;
}

/*  Ambulance List  */
.ambulance-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.amb-item:hover  { border-color: var(--red); background: rgba(232, 39, 42, 0.05); }
.amb-item.active { 
    border-color: var(--red); 
    background: rgba(232, 39, 42, 0.08); 
}

.amb-avatar {
    width: 38px; height: 38px;
    background: rgba(232, 39, 42, 0.15);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.amb-info        { flex: 1; }
.amb-name        { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.amb-meta        { font-size: 12px; color: var(--text-muted); }
.amb-dist        { font-size: 13px; font-weight: 700; color: var(--green); }

/*  How It Works Section */
.how-section {
    background: var(--dark-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 48px;
}

.step {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.step:last-child { border-bottom: none; }

.step-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    min-width: 52px;
    transition: color 0.3s;
}

.step:hover .step-num,
.step.active .step-num { color: var(--red); }

.step-content h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step-content p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.step-visual {
    position: sticky;
    /* top: 100px; */
    background: var(--mid);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.step-visual iframe {
    width: 100%;
    height: 100% ;
    border: none;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/*  Animations  */
@keyframes mapFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
}

/*  Responsive  */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 120px 20px 60px;
    }

    .hero-visual   { display: none; }
    .how-grid      { grid-template-columns: 1fr; }
    .step-visual   { display: none; }
}