/* Workflow section */
.workflow {
    background-color: #6366F1;
    color: white;
    position: relative;
}

.workflow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

/* Tabs */
.section-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-4xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.tab-btn:hover {
    color: white;
}

.tab-btn.active {
    color: white;
    border-bottom-color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.workflow .section-title {
    color: white;
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

/* Workflow grid */
.workflow-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-2xl);
}

.workflow-card {
    background-color: white;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

.workflow-card-large {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.workflow-card-image {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.card-icon {
    width: 64px;
    height: 64px;
    background-color: #EEF2FF;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.card-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.card-description {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-lg);
    flex: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    transition: gap var(--transition-base);
}

.card-link:hover {
    gap: var(--spacing-md);
}

.dashboard-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
}

.dashboard-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-2xl);
}

/* Dashboard placeholder with decorations */
.dashboard-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.plant-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><ellipse cx="50" cy="100" rx="25" ry="40" fill="%234a5568" opacity="0.3" transform="rotate(-20 50 100)"/><ellipse cx="60" cy="80" rx="20" ry="35" fill="%234a5568" opacity="0.25" transform="rotate(-30 60 80)"/><ellipse cx="70" cy="120" rx="22" ry="38" fill="%234a5568" opacity="0.28" transform="rotate(-10 70 120)"/></svg>') no-repeat center;
    background-size: contain;
    pointer-events: none;
}

.plant-left {
    left: -50px;
    bottom: -20px;
    transform: scaleX(-1);
}

.plant-right {
    right: -50px;
    bottom: -20px;
}

/* Dashboard mockup */
.dashboard-mockup {
    background: #1a1a1a;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 700px;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.mockup-header {
    margin-bottom: var(--spacing-lg);
}

.mockup-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: white;
    line-height: 1.3;
}

.mockup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.globe-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
}

.globe-glow {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(34, 211, 238, 0.2) 50%, transparent 70%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    position: relative;
    animation: globeRotate 20s linear infinite;
}

.globe-glow::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.globe-glow::after {
    content: '';
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

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

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.widget {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    height: 80px;
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    height: 20px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: var(--radius-sm);
}

.widget::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    height: 30px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.2) 0%, rgba(34, 211, 238, 0.05) 100%);
    border-radius: var(--radius-sm);
}

.widget-3, .widget-5 {
    grid-column: span 2;
}

/* Features and security lists */
.features-list,
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-3xl);
}

.feature-item,
.security-item {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item h3,
.security-item h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: white;
}

.feature-item p,
.security-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-relaxed);
}

/* Mobile styles */
@media (max-width: 1024px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-card-large {
        min-height: 300px;
    }
    
    .dashboard-mockup {
        width: 100%;
        padding: var(--spacing-lg);
    }
    
    .mockup-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .section-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    .features-list,
    .security-grid {
        grid-template-columns: 1fr;
    }
    
    .plant-decoration {
        display: none;
    }
    
    .dashboard-mockup {
        min-height: 300px;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .widget-3, .widget-5 {
        grid-column: span 1;
    }
}
