/* Products Page Styles */

/* Products Hero Section */
.products-hero {
    position: relative;
    padding: 8rem 0 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.products-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.products-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(29, 78, 216, 0.1) 0%, transparent 50%),
               radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}

.products-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.products-hero-particles .particle {
    position: absolute;
    background: linear-gradient(45deg, rgba(29, 78, 216, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.products-hero-particles .particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.products-hero-particles .particle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 15%;
    animation-delay: 2s;
}

.products-hero-particles .particle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 5%;
    animation-delay: 4s;
}

.products-hero-particles .particle:nth-child(4) {
    width: 70px;
    height: 70px;
    top: 60%;
    left: 20%;
    animation-delay: 6s;
}

.products-hero-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.products-hero-content {
    text-align: center;
    max-width: 55rem;
    margin: 0 auto;
}

.products-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d4ed8;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.1);
}

.products-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
}

.products-hero-title .title-highlight {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 2.5rem 0;
}

.products-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(148, 163, 184, 0.3);
}

/* Products Section */
.products-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, oklch(0.99 0 0), oklch(0.97 0 0));
}

.products-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.product-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@media (min-width: 1024px) {
    .product-item {
        grid-template-columns: 1fr 1.5fr;
    }
    
    .product-item:nth-child(even) {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .product-item:nth-child(even) .product-visual {
        order: 2;
    }
}

.product-item:nth-child(1) { animation-delay: 0.1s; }
.product-item:nth-child(2) { animation-delay: 0.2s; }
.product-item:nth-child(3) { animation-delay: 0.3s; }
.product-item:nth-child(4) { animation-delay: 0.4s; }
.product-item:nth-child(5) { animation-delay: 0.5s; }
.product-item:nth-child(6) { animation-delay: 0.6s; }
.product-item:nth-child(7) { animation-delay: 0.7s; }
.product-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Visual */
.product-visual {
    position: relative;
}

.product-image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.product-item:hover .product-image-wrapper {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(29, 78, 216, 0.2);
}

.product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.9), rgba(59, 130, 246, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.overlay-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.product-item:hover .overlay-icon {
    transform: scale(1);
}

.overlay-icon i {
    font-size: 2rem;
    color: white;
}

.product-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    z-index: 10;
}

/* Product Details */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.product-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* Product Features Grid */
.product-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(29, 78, 216, 0.15);
    border-color: rgba(29, 78, 216, 0.3);
}

.feature-box i {
    font-size: 1.75rem;
    color: #1d4ed8;
    margin-bottom: 1rem;
    display: block;
}

.feature-box h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.feature-box p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Product Benefits */
.product-benefits {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 1rem;
    padding: 2rem;
}

.product-benefits h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.product-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #475569;
}

.product-benefits li i {
    color: #22c55e;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #1d4ed8;
}

.btn-secondary:hover {
    background: #1d4ed8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
}

/* Integration Section */
.integration-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, oklch(0.98 0 0), oklch(0.96 0 0));
    position: relative;
    overflow: hidden;
}

.integration-container {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.integration-header {
    text-align: center;
    margin-bottom: 4rem;
}

.integration-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.integration-header p {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
}

.integration-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.integration-hub {
    position: relative;
    width: 400px;
    height: 400px;
}

.hub-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 12px 40px rgba(29, 78, 216, 0.4);
    z-index: 10;
    animation: pulse 3s ease-in-out infinite;
}

.hub-center i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hub-center span {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 12px 40px rgba(29, 78, 216, 0.4);
    }
    50% {
        box-shadow: 0 12px 40px rgba(29, 78, 216, 0.6), 0 0 0 20px rgba(29, 78, 216, 0.1);
    }
}

.hub-connection {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, #1d4ed8, transparent);
    transform-origin: left center;
    transform: translate(0, -50%) rotate(var(--angle));
    animation: connectionPulse 2s ease-in-out infinite;
}

.hub-connection:nth-child(2) { animation-delay: 0s; }
.hub-connection:nth-child(3) { animation-delay: 0.3s; }
.hub-connection:nth-child(4) { animation-delay: 0.6s; }
.hub-connection:nth-child(5) { animation-delay: 0.9s; }
.hub-connection:nth-child(6) { animation-delay: 1.2s; }
.hub-connection:nth-child(7) { animation-delay: 1.5s; }
.hub-connection:nth-child(8) { animation-delay: 1.8s; }
.hub-connection:nth-child(9) { animation-delay: 2.1s; }

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.connection-node {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid #1d4ed8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.connection-node:hover {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 12px 32px rgba(29, 78, 216, 0.3);
}

.connection-node i {
    font-size: 1.5rem;
    color: #1d4ed8;
}

/* CTA Section */
.products-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    position: relative;
    overflow: hidden;
}

.products-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
               radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.cta-container {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 1rem 0;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2.5rem 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-large,
.btn-secondary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary-large {
    color: #1d4ed8;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.btn-secondary-large {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary-large:hover {
    background: white;
    color: #1d4ed8;
    transform: translateY(-2px);
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    max-width: 60rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 1.25rem;
    color: #64748b;
}

.modal-body {
    padding: 3rem;
}

/* Dark Mode */
.dark .products-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.dark .products-badge {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.dark .products-hero-title {
    color: #f1f5f9;
}

.dark .products-hero-description {
    color: #cbd5e1;
}

.dark .stat-number {
    color: #60a5fa;
}

.dark .stat-label {
    color: #94a3b8;
}

.dark .products-section {
    background: linear-gradient(135deg, oklch(0.16 0 0), oklch(0.13 0 0));
}

.dark .product-title {
    color: #f1f5f9;
}

.dark .product-intro {
    color: #cbd5e1;
}

.dark .feature-box {
    background: rgba(24, 24, 27, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .feature-box h4 {
    color: #f1f5f9;
}

.dark .feature-box p {
    color: #94a3b8;
}

.dark .product-benefits {
    background: rgba(15, 23, 42, 0.5);
}

.dark .product-benefits h3 {
    color: #f1f5f9;
}

.dark .product-benefits li {
    color: #cbd5e1;
}

.dark .integration-section {
    background: linear-gradient(135deg, oklch(0.15 0 0), oklch(0.12 0 0));
}

.dark .integration-header h2 {
    color: #f1f5f9;
}

.dark .integration-header p {
    color: #cbd5e1;
}

.dark .connection-node {
    background: #1e293b;
    border-color: #60a5fa;
}

.dark .connection-node i {
    color: #60a5fa;
}

.dark .modal-content {
    background: #1e293b;
}

.dark .modal-close i {
    color: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
    .products-hero {
        padding: 6rem 0 3rem 0;
    }

    .products-hero-stats {
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .product-features-grid {
        grid-template-columns: 1fr;
    }

    .integration-hub {
        width: 300px;
        height: 300px;
    }

    .hub-connection {
        width: 150px;
    }

    .connection-node {
        width: 50px;
        height: 50px;
    }

    .connection-node i {
        font-size: 1.25rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .modal-body {
        padding: 2rem 1.5rem;
    }
}
