/* --- DEPLOYMENT SECTION: Premium Bento --- */

.dpl-section {
    position: relative;
    padding: clamp(6rem, 10vh, 10rem) 0;
    background-color: var(--bg);
    overflow: hidden;
    color: var(--text);
}

/* --- AMBIENT FX --- */
.dpl-ambient {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.dpl-glow-orb {
    position: absolute; top: 20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%);
    filter: blur(80px);
}

.dpl-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 2;
}

/* --- HEADER --- */
.dpl-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Status Pill (Interactive) */
.dpl-status-pill {
    appearance: none; border: none; outline: none;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 8px 20px 8px 12px;
    background: color-mix(in srgb, var(--elev-2) 80%, transparent);
    border: 1px solid var(--stroke);
    border-radius: 100px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.dpl-status-pill:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    background: color-mix(in srgb, var(--elev-2) 90%, transparent);
}

.pill-indicator {
    position: relative; width: 12px; height: 12px;
    display: flex; align-items: center; justify-content: center;
}
.indicator-dot {
    width: 8px; height: 8px; background: var(--text-muted);
    border-radius: 50%; z-index: 2; transition: 0.3s;
}
.indicator-ping {
    position: absolute; width: 100%; height: 100%;
    background: var(--brand); border-radius: 50%;
    opacity: 0; z-index: 1;
}

/* Active State for Button */
.dpl-status-pill.active {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.dpl-status-pill.active .indicator-dot { background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.dpl-status-pill.active .indicator-ping { animation: ping 2s infinite; opacity: 1; }
.dpl-status-pill.active .state-text { color: var(--brand); }

.pill-label {
    font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
}
.state-text { font-weight: 700; color: var(--text); transition: color 0.3s; }

/* Titles */
.dpl-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.dpl-gradient {
    background: linear-gradient(135deg, var(--text) 30%, var(--brand) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.dpl-desc {
    font-size: 1.1rem; color: var(--text-muted); line-height: 1.6;
}

/* --- GRID LAYOUT --- */
.dpl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto; /* 2 rows */
    gap: 1.5rem;
}

/* --- CARD DESIGN --- */
.dpl-card {
    position: relative;
    border-radius: 24px;
    /* Uses global elevation */
    background: transparent;
    transition: transform 0.4s var(--ease, ease);
    cursor: default;
}

.dpl-card:hover { transform: translateY(-6px); }

/* Wide card spans full width */
.card-wide { grid-column: 1 / -1; }

.card-glass {
    position: absolute; inset: 0;
    background: color-mix(in srgb, var(--elev-1) 60%, transparent);
    border: 1px solid var(--stroke);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    transition: all 0.3s;
}
.dpl-card:hover .card-glass {
    border-color: color-mix(in srgb, var(--brand) 30%, transparent);
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.15), inset 0 1px 0 var(--glass-highlight);
}

.card-content {
    position: relative; z-index: 2; padding: 2rem;
    display: flex; flex-direction: column; height: 100%;
}

/* --- VISUALS --- */
.visual-area {
    height: 140px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    background: color-mix(in srgb, var(--bg) 50%, transparent);
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--stroke) 50%, transparent);
    color: var(--text-muted); /* Default SVG Color */
    transition: 0.3s;
}
.dpl-card:hover .visual-area {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    border-color: var(--brand);
    color: var(--brand);
}

.viz-svg { width: 100%; height: 100%; max-width: 120px; stroke: currentColor; fill: none; }
.wide-viz .viz-svg { max-width: 100%; }

/* --- SVG ELEMENTS (Static State) --- */
.radar-ring { opacity: 0.2; stroke-width: 1.5; }
.radar-core { fill: currentColor; stroke: none; }
.radar-scan { fill: currentColor; opacity: 0; transform-origin: center; }

.wave-path { stroke-width: 2; stroke-linecap: round; opacity: 0.5; }
.wave-path-ghost { stroke-width: 1; opacity: 0.2; }
.drone-node { fill: currentColor; opacity: 0; }

.timer-bg { opacity: 0.1; stroke-width: 4; }
.timer-progress { 
    stroke-width: 4; stroke-dasharray: 220; stroke-dashoffset: 220; 
    transform: rotate(-90deg); transform-origin: center; 
    stroke-linecap: round;
}
.drop-icon { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-5px); transition: 0.3s; }

.fleet-link { stroke-width: 1; opacity: 0.2; }
.fleet-node { fill: var(--bg); stroke-width: 2; r: 4; }

/* --- TEXT CONTENT --- */
.text-area { margin-top: auto; }

.mode-tag {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--brand); display: block; margin-bottom: 0.5rem; opacity: 0.8;
}

.dpl-card h3 {
    font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--text);
}

.dpl-card p {
    font-size: 0.95rem; line-height: 1.5; color: var(--text-muted); margin: 0;
}

/* --- ANIMATION STATES (Triggered via JS) --- */
.sim-active .radar-scan {
    opacity: 0.2;
    animation: radarSpin 3s linear infinite;
}
.sim-active .radar-ring { animation: pulseRing 2s infinite; }

.sim-active .drone-node {
    opacity: 1;
    offset-path: path("M10 50 Q 30 20, 50 50 T 90 50");
    animation: moveDrone 4s linear infinite alternate;
}

.sim-active .timer-progress {
    animation: fillTimer 2s ease-in-out infinite alternate;
}
.sim-active .drop-icon {
    animation: dropBounce 2s infinite;
}

.sim-active .fleet-node {
    fill: var(--brand);
    stroke: none;
    animation: fleetPulse 1.5s infinite alternate;
}
.sim-active .fleet-node:nth-child(odd) { animation-delay: 0.2s; }
.sim-active .fleet-link { stroke: var(--brand); opacity: 0.4; }

/* --- KEYFRAMES --- */
@keyframes ping {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}
@keyframes radarSpin { 100% { transform: rotate(360deg); } }
@keyframes pulseRing { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.5; } }
@keyframes moveDrone { 
    0% { offset-distance: 0%; } 
    100% { offset-distance: 100%; } 
}
@keyframes fillTimer { 0% { stroke-dashoffset: 220; } 100% { stroke-dashoffset: 0; } }
@keyframes dropBounce { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@keyframes fleetPulse { 0% { r: 4; opacity: 0.6; } 100% { r: 6; opacity: 1; box-shadow: 0 0 10px currentColor; } }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .dpl-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .card-wide { grid-column: span 1; }
    .visual-area { height: 180px; } /* Taller on mobile for visibility */
}