/* Applications Section */
.applications {
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-lighter) 100%);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.app-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-light);
    position: relative;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.app-card-netly::before {
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.app-card-netly:hover {
    border-color: #ec4899;
}

.card-header {
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.app-card-netly .card-header {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.app-icon {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-header h3 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--text-dark);
}

.app-card-netly .card-header h3 {
    color: #db2777;
}

.card-body {
    padding: var(--spacing-xl);
    flex-grow: 1;
}

.app-tagline {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-card-netly .app-tagline {
    color: #db2777;
}

.app-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.feature-list li {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.app-card-netly .feature-list li::before {
    background: #ec4899;
}

.card-footer {
    padding: var(--spacing-xl);
    border-top: 1px solid var(--border-light);
    background: var(--bg-lighter);
}

.tech-stack-small {
    font-size: 0.85rem;
    color: var(--text-lighter);
    margin-bottom: var(--spacing-md);
}

.btn-app {
    width: 100%;
    justify-content: center;
}

/* Features Section */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.feature-item {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    padding: var(--spacing-xl);
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.feature-item:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-item:nth-child(2) .feature-icon { animation-delay: 0.1s; }
.feature-item:nth-child(3) .feature-icon { animation-delay: 0.2s; }
.feature-item:nth-child(4) .feature-icon { animation-delay: 0.3s; }
.feature-item:nth-child(5) .feature-icon { animation-delay: 0.4s; }
.feature-item:nth-child(6) .feature-icon { animation-delay: 0.5s; }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-item h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* MCP Section */
.mcp-section {
    background: linear-gradient(135deg, var(--bg-lighter) 0%, white 100%);
}

.mcp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
    margin-top: var(--spacing-2xl);
}

.mcp-info h3 {
    color: var(--text-dark);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.mcp-info > h3:first-child {
    margin-top: 0;
}

.mcp-info p {
    color: var(--text-light);
    line-height: 1.8;
}

.mcp-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.mcp-feature {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.mcp-feature h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    margin-top: 0;
}

.mcp-feature ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mcp-feature li {
    color: var(--text-light);
    font-size: 0.9rem;
    padding-left: var(--spacing-md);
    position: relative;
}

.mcp-feature li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.mcp-specs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.specs-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.specs-card h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.specs-list li {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.specs-list strong {
    color: var(--text-dark);
    min-width: 120px;
}

.mcp-cta {
    margin-top: var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    padding: var(--spacing-2xl);
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--primary-color);
}

.mcp-cta h3 {
    color: var(--text-dark);
}

.mcp-cta p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

/* Tech Stack Section */
.tech-stack {
    background: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.tech-category {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    padding: var(--spacing-xl);
    border-radius: 1rem;
    border: 1px solid var(--border-light);
}

.tech-category h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-size: 1.25rem;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.tech-item {
    display: flex;
}

.tech-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: default;
}

.tech-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--spacing-lg);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.cta-section > .container > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large.btn-secondary {
    border-color: white;
    color: white;
}

.btn-large.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mcp-content {
        grid-template-columns: 1fr;
    }

    .mcp-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }

    .app-icon {
        margin: 0 auto;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .mcp-cta {
        padding: var(--spacing-lg);
    }
}

