/* RECONSTRUCTED CSS FOR PAIN CARDS (Deployment Reality) - FIX */

.deployment-reality-section {
    position: relative;
    padding: 120px 0;
    background-color: transparent;
    overflow: hidden;
}

.section-grain {
    display: none;
}

.deployment-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Header */
.deployment-header {
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.deployment-eyebrow {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #00FFCC; /* Teal/Green */
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    background: rgba(0, 255, 204, 0.05);
    border-radius: 4px;
    margin-bottom: 32px;
}

.deployment-title {
    font-family: 'Inter', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #FFF;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
}

.deployment-highlight {
    color: #FFF; /* Make it white to match the screenshot */
    display: block;
    margin-top: 8px;
}

/* GRID */
.reality-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* CARD BASE */
.reality-card {
    background: rgba(255, 255, 255, 0.02); /* Clean transparent */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle border */
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px); /* Glass effect */
}

.reality-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* THEMES - Top borders are faint/dark in screenshot but there is a colored label */
.card-teal { border-top: 1px solid rgba(0, 255, 204, 0.3); }
.card-teal:hover { border-color: rgba(0, 255, 204, 0.5); }
.card-teal .card-hud-status { color: #00FFCC; border-color: rgba(0, 255, 204, 0.3); }
.card-teal .status-dot { background: #00FFCC; box-shadow: 0 0 8px #00FFCC; }

.card-purple { border-top: 1px solid rgba(138, 43, 226, 0.3); }
.card-purple:hover { border-color: rgba(138, 43, 226, 0.5); }
.card-purple .card-hud-status { color: #8A2BE2; border-color: rgba(138, 43, 226, 0.3); }
.card-purple .status-dot { background: #8A2BE2; box-shadow: 0 0 8px #8A2BE2; }

.card-orange { border-top: 1px solid rgba(255, 69, 0, 0.3); }
.card-orange:hover { border-color: rgba(255, 69, 0, 0.5); }
.card-orange .card-hud-status { color: #FF4500; border-color: rgba(255, 69, 0, 0.3); }
.card-orange .status-dot { background: #FF4500; box-shadow: 0 0 8px #FF4500; }

/* HUD HEADER */
.card-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent; /* Seamless header */
}

.card-hud-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: #999; /* Brighter label (was #666) */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-hud-status {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    padding: 0; /* Minimal */
    border: none; /* No border in screenshot for status text, just dot and text? */
    /* Wait, looking at screenshot: "BOTTLENECK" is inside a pill or just text with dot? */
    /* Screenshot: It looks like a small pill with a dot. */
    padding: 4px 8px;
    border: 1px solid;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.3);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* BODY */
.card-hud-body {
    padding: 32px 24px;
    flex-grow: 1;
}

.card-anim-container {
    height: 72px;
    width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    /* Base background - overridden by themes below */
    background: rgba(20, 20, 25, 0.6); 
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* THEME SPECIFIC CONTAINERS - MORE COLOR */
.card-teal .card-anim-container {
    background: radial-gradient(circle at center, rgba(0, 255, 204, 0.15) 0%, rgba(0, 255, 204, 0.05) 100%);
    border-color: rgba(0, 255, 204, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1), inset 0 0 10px rgba(0, 255, 204, 0.05);
}

.card-purple .card-anim-container {
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.15) 0%, rgba(138, 43, 226, 0.05) 100%);
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.1), inset 0 0 10px rgba(138, 43, 226, 0.05);
}

.card-orange .card-anim-container {
    background: radial-gradient(circle at center, rgba(255, 69, 0, 0.15) 0%, rgba(255, 69, 0, 0.05) 100%);
    border-color: rgba(255, 69, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.1), inset 0 0 10px rgba(255, 69, 0, 0.05);
}

/* Add a subtle shine effect to container */
.card-anim-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.reality-card:hover .card-anim-container::after {
    opacity: 1;
}

.reality-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #FFF;
    margin-bottom: 16px;
}

.reality-card p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #CCC; /* Much brighter text (was #888) */
}

/* FOOTER */
.card-hud-footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2); /* Dark footer */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-teal .card-hud-footer {
    color: #00FFCC; /* Just text color, background remains dark */
    background: rgba(0, 255, 204, 0.02); /* Slight tint */
    border-top-color: rgba(0, 255, 204, 0.1);
}

.card-purple .card-hud-footer {
    color: #8A2BE2;
    background: rgba(138, 43, 226, 0.02);
    border-top-color: rgba(138, 43, 226, 0.1);
}

.card-orange .card-hud-footer {
    color: #FF4500;
    background: rgba(255, 69, 0, 0.02);
    border-top-color: rgba(255, 69, 0, 0.1);
}

/* =========================================
   AWARD-WINNING ANIMATED ICONS (Refined)
   ========================================= */

.anim-icon {
    width: 40px; /* Increased from 32px */
    height: 40px; /* Increased from 32px */
    position: relative;
    transform: scale(1.1); /* Slight boost */
}

/* 1. DATA BOTTLENECK (Teal) - High-Tech Data Stream */
.bottleneck-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 28px; /* Taller */
    width: 36px; /* Wider */
    margin: 0 auto;
    position: relative;
}

.bottleneck-icon::before {
    /* The "Pipe" Constraint */
    content: '';
    position: absolute;
    right: -6px;
    top: -6px;
    bottom: -6px;
    width: 4px; /* Thicker */
    background: rgba(0, 255, 204, 0.5); /* More opaque */
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.4);
    border-radius: 2px;
    z-index: 2;
}

.flow-line {
    height: 2px; /* Thicker lines */
    background: rgba(0, 255, 204, 0.2);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.flow-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 16px; /* Longer packets */
    background: #00FFCC;
    border-radius: 2px;
    animation: dataPacket 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.9);
}

.flow-line:nth-child(1)::after { animation-duration: 1.8s; animation-delay: 0.1s; }
.flow-line:nth-child(2)::after { animation-duration: 2.2s; animation-delay: 0.5s; }
.flow-line:nth-child(3)::after { 
    animation-name: dataPacketStuck;
    animation-duration: 3s; 
    width: 6px;
    background: #FFF;
    box-shadow: 0 0 8px #FFF;
}

@keyframes dataPacket {
    0% { transform: translateX(-20px) scaleX(0.5); opacity: 0; }
    20% { opacity: 1; transform: translateX(0) scaleX(1); }
    80% { opacity: 1; transform: translateX(20px) scaleX(1); }
    100% { transform: translateX(40px) scaleX(0.5); opacity: 0; }
}

@keyframes dataPacketStuck {
    0% { transform: translateX(-20px); opacity: 0; }
    20% { transform: translateX(18px); opacity: 1; }
    40% { transform: translateX(20px); opacity: 1; box-shadow: 0 0 8px #FFF; }
    45% { transform: translateX(19px); }
    50% { transform: translateX(20px); box-shadow: 0 0 12px #F00; background: #F88; }
    100% { transform: translateX(20px); opacity: 0; }
}

/* 2. CONTEXT GAP (Purple) - Precision Radar */
.blindspot-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(138, 43, 226, 0.3); /* Thicker */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.1);
}

.radar-sweep {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(138, 43, 226, 0.1) 50%, rgba(138, 43, 226, 0.6) 100%); /* More visible sweep */
    animation: radarSpin 3s linear infinite;
    mask: radial-gradient(transparent 55%, black 60%);
    -webkit-mask: radial-gradient(transparent 55%, black 60%);
}

.radar-blip {
    position: absolute;
    width: 6px; /* Larger blip */
    height: 6px;
    background: #8A2BE2;
    border-radius: 50%;
    top: 6px;
    right: 6px;
    box-shadow: 0 0 10px #8A2BE2;
    animation: blipFade 3s linear infinite;
}

.center-point {
    width: 6px;
    height: 6px;
    background: rgba(138, 43, 226, 0.8);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
}

@keyframes radarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blipFade {
    0%, 65% { opacity: 1; transform: scale(1); }
    70%, 90% { opacity: 0; transform: scale(0.5); } /* Disappears in the gap */
    100% { opacity: 1; transform: scale(1); }
}

/* 3. SILENT DECAY (Orange) - Model Drift (Target Miss) */
.decay-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.target-ring {
    position: absolute;
    width: 32px; /* Larger */
    height: 32px;
    border: 2px dashed rgba(255, 69, 0, 0.5); /* Thicker, brighter */
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.1);
}

.model-dot {
    width: 8px; /* Larger */
    height: 8px;
    background: #FF4500;
    border-radius: 50%;
    box-shadow: 0 0 8px #FF4500;
    position: absolute;
    /* Center origin */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: driftPath 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Path: Start Center (Accurate) -> Drift Out (Inaccurate) -> Reset */
@keyframes driftPath {
    0% { transform: translate(-50%, -50%); opacity: 1; background: #FF4500; box-shadow: 0 0 8px #FF4500; }
    20% { transform: translate(-50%, -50%); /* Hold center */ }
    60% { transform: translate(4px, -8px); opacity: 0.8; background: #FF4500; } /* Slow drift */
    80% { transform: translate(8px, -12px); opacity: 0.5; background: #FF0000; box-shadow: 0 0 4px #F00; } /* Critical failure */
    90% { transform: translate(9px, -13px); opacity: 0; } /* Invisible */
    95% { transform: translate(-50%, -50%); opacity: 0; } /* Reset invisible */
    100% { transform: translate(-50%, -50%); opacity: 1; } /* Reappear */
}

@keyframes ringPulse {
    0%, 100% { border-color: rgba(255, 69, 0, 0.4); transform: scale(1); }
    50% { border-color: rgba(255, 69, 0, 0.2); transform: scale(0.95); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .reality-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .deployment-title {
        font-size: 36px;
    }
    
    .deployment-header {
        margin-bottom: 40px;
    }
}