/* Premium Systems CSS Extensions */
:root {
    --premium-gradient: linear-gradient(135deg, #ec4899, #8b5cf6);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --premium-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --glow-color: rgba(135, 232, 222, 0.3);
}

[data-theme="dark"] {
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glow-color: rgba(0, 242, 255, 0.15);
}

.premium-container {
    padding-top: 100px;
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent),
                radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.15), transparent),
                #050811;
    position: relative;
    overflow-x: hidden;
}

.premium-container::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(135,232,222,0.03), transparent 40%);
    animation: slowOrbit 20s infinite linear;
    pointer-events: none;
    z-index: 0;
}

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

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-color);
    border-color: var(--primary-color);
}

.text-gradient-premium {
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #00f2ff);
    background-size: 200% 200%;
    animation: flowGradient 5s infinite ease;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes flowGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ECG Graph Animation */
.ecg-line {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: ecg-draw 5s linear infinite;
}

@keyframes ecg-draw {
    to { stroke-dashoffset: 0; }
}

/* Animations */
@keyframes pulse-soft {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.pulse-premium {
    animation: pulse-soft 2s infinite ease-in-out;
}

/* Responsive Grid for Premium Pages */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Custom Buttons */
.btn-premium {
    background: var(--premium-gradient);
    color: white;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.2);
}

.btn-premium:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.4);
}
/* Company & Support Elevation */
.company-support-section {
    margin-top: 20px;
    margin-bottom: 60px;
}

.company-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.res-card.elevated-card {
    background: linear-gradient(135deg, rgba(135, 232, 222, 0.08), rgba(15, 23, 42, 0.95)) !important;
    border: 1px solid rgba(135, 232, 222, 0.2) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    min-height: 220px; /* Slightly larger */
    z-index: 10;
    position: relative;
    overflow: hidden;
}

.res-card.elevated-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top left, rgba(135,232,222,0.1), transparent 70%);
    pointer-events: none;
}

.res-card.elevated-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(135, 232, 222, 0.2) !important;
    border-color: var(--primary-color) !important;
}

/* Mobile ordering and layout */
@media (max-width: 768px) {
    .company-support-section {
        display: flex;
        flex-direction: column;
    }
    .company-support-grid {
        grid-template-columns: 1fr;
    }
}
/* Enterprise Operating Node Styles */
.enterprise-node-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.res-card.enterprise-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(15, 23, 42, 0.98)) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    padding: 45px;
    height: auto;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.res-card.enterprise-card:hover {
    border-color: #8b5cf6 !important;
    box-shadow: 0 40px 80px rgba(139, 92, 246, 0.2), 0 0 40px rgba(139, 92, 246, 0.1) !important;
    transform: translateY(-15px) scale(1.02) !important;
}

.enterprise-card h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Sora', sans-serif;
}

.enterprise-card .res-icon {
    width: 65px;
    height: 65px;
    font-size: 1.8rem;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* Internal Visuals */
.workflow-builder-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.flow-node {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
}

.flow-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.flow-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
    animation: flowPulse 2s infinite;
}

@keyframes flowPulse {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Modal Enterprise UI Expansion */
.enterprise-modal-ui {
    padding: 30px;
    background: #0b0f19;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-item-mini {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    display: block;
    font-family: 'Sora', sans-serif;
}

.stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.pulse-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 0 15px #10b981;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 1; filter: brightness(1); }
    50% { transform: scale(1.4); opacity: 0.6; filter: brightness(1.5); }
    100% { transform: scale(1); opacity: 1; filter: brightness(1); }
}

/* Custom Multi-Color Badges */
.badge-tech { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-ai { background: rgba(139, 92, 246, 0.1); color: #a855f7; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-data { background: rgba(236, 72, 153, 0.1); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
