/* --- SCOPED VARIABLES --- */
.mnt-section {
    position: relative;
    padding: 8rem 1.5rem;
    background: var(--bg);
    overflow: hidden;
    font-family: var(--font-sans);
}

.mnt-container {
    max-width: 1000px; margin: 0 auto;
}

/* --- HEADER --- */
.mnt-header { margin-bottom: 4rem; max-width: 500px; }

.mnt-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 100px;
    background: var(--glass-bg-light);
    border: 1px solid var(--stroke);
    font-size: 0.8rem; color: var(--brand); font-weight: 600;
    margin-bottom: 1.5rem; backdrop-filter: blur(10px);
}
.mnt-pill svg { width: 14px; height: 14px; }
.mnt-icon-spin { display: flex; animation: spin 4s linear infinite; }

.mnt-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700; line-height: 1.1; color: var(--text);
    margin-bottom: 1rem; letter-spacing: -0.02em;
}
.mnt-gradient-text {
    background: linear-gradient(135deg, var(--text) 40%, var(--brand));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.mnt-header p {
    font-size: 1.1rem; color: var(--text-muted); line-height: 1.6;
}

/* --- BENTO GRID --- */
.mnt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 20px;
}

/* Sizing Classes */
.span-2 { grid-column: span 2; }
.span-1 { grid-column: span 1; }
.row-2 { grid-row: span 2; }

/* --- CARD DESIGN --- */
.mnt-card {
    position: relative;
    border-radius: 28px;
    background: color-mix(in srgb, var(--elev-2) 60%, transparent);
    border: 1px solid color-mix(in srgb, var(--stroke) 50%, transparent);
    backdrop-filter: blur(20px) saturate(140%);
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s;
    display: flex; flex-direction: column;
}

.mnt-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--brand) 40%, transparent);
    z-index: 2;
}

/* Internal Glow */
.mnt-card-bg {
    position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glass-highlight), transparent 40%);
    transition: opacity 0.4s; pointer-events: none;
}
.mnt-card:hover .mnt-card-bg { opacity: 1; }

.mnt-content {
    padding: 24px; height: 100%; width: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; z-index: 1;
}
.mnt-content.col-center { align-items: center; text-align: center; }

/* Text Styles */
.mnt-card h3 { font-size: 1.2rem; margin: 0 0 6px 0; color: var(--text); font-weight: 600; }
.mnt-card p { font-size: 0.9rem; margin: 0; color: var(--text-muted); }
.mnt-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; }
.mnt-stat-small { display: block; font-size: 2rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 4px; }

/* --- CHIPS & BADGES --- */
.mnt-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 20px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
    font-size: 0.75rem; color: var(--text); font-weight: 600; font-family: var(--font-mono);
}
.mnt-chip.active { background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--brand); border-color: transparent; }

.mnt-dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; animation: blink 2s infinite; }

/* --- VISUALS --- */

/* 1. Radar Animation */
.mnt-visual-radar {
    flex-grow: 1; position: relative; width: 100%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.radar-circle {
    position: absolute; border: 1px solid var(--stroke); border-radius: 50%; opacity: 0.3;
}
.radar-circle:nth-child(1) { width: 60px; height: 60px; }
.radar-circle:nth-child(2) { width: 120px; height: 120px; }
.radar-circle:nth-child(3) { width: 180px; height: 180px; }
.radar-sweep {
    position: absolute; width: 180px; height: 180px;
    background: conic-gradient(from 0deg, transparent 0deg, color-mix(in srgb, var(--brand) 20%, transparent) 60deg, transparent 70deg);
    border-radius: 50%; animation: spin 3s linear infinite;
}
.radar-ping {
    position: absolute; width: 8px; height: 8px; background: var(--brand); border-radius: 50%;
    top: 30%; right: 35%; box-shadow: 0 0 10px var(--brand);
    animation: ping 3s infinite; opacity: 0;
}

/* 2. OTA Animation */
.mnt-visual-ota {
    width: 100px; height: 100px; position: relative;
    display: flex; align-items: center; justify-content: center;
    margin: 20px 0;
}
.ota-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--stroke); stroke-width: 6; }
.ring-progress {
    fill: none; stroke: var(--brand); stroke-width: 6; stroke-linecap: round;
    stroke-dasharray: 283; stroke-dashoffset: 283;
    animation: progressFill 3s ease-out forwards 0.5s;
}
.ota-icon { position: absolute; color: var(--text); }
.ota-icon svg { width: 28px; height: 28px; }

/* 3. Icon Box (Solar/Battery) */
.mnt-icon-box {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--elev-1); border: 1px solid var(--stroke);
    display: flex; align-items: center; justify-content: center; color: var(--text);
}
.mnt-icon-box.success { color: var(--ok); }
.mnt-icon-box svg { width: 22px; height: 22px; }

/* 4. Timeline */
.mnt-timeline {
    width: 100%; height: 6px; background: var(--elev-1);
    border-radius: 10px; margin-top: 1rem; overflow: hidden;
}
.timeline-fill {
    width: 0%; height: 100%; background: var(--brand); border-radius: 10px;
    animation: timelineLoad 2s ease-out forwards 0.8s;
}
.mnt-flex-row { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; }

/* --- ANIMATIONS --- */
.reveal-item { opacity: 0; transform: translateY(20px); transition: 0.8s var(--ease); }
.reveal-item.visible { opacity: 1; transform: translateY(0); }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0.3; } }
@keyframes ping { 0%, 50% { opacity: 0; transform: scale(0.5); } 60% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: scale(1); } }
@keyframes progressFill { to { stroke-dashoffset: 40; } } /* 40 is roughly 85% */
@keyframes timelineLoad { to { width: 75%; } }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .mnt-grid { grid-template-columns: repeat(2, 1fr); }
    .mnt-visual-radar { height: 140px; }
}
@media (max-width: 600px) {
    .mnt-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .span-2, .span-1, .row-2 { grid-column: span 1; grid-row: auto; }
    .mnt-content { padding: 20px; }
    .mnt-visual-ota { width: 80px; height: 80px; }
    .mnt-visual-radar { height: 160px; margin: 1rem 0; }
}