/* ===== Pages CSS - Styles for individual service pages ===== */

/* Page Hero */
.page-hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.page-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
}

.page-hero .container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.page-hero-content {
    max-width: 700px;
}

.page-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary-400);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.page-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.page-description {
    font-size: 18px;
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 32px;
}

.page-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.page-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-icon {
    width: 200px;
    height: 200px;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-400);
}

.page-hero-icon svg {
    width: 100px;
    height: 100px;
}

.page-hero-image {
    width: 450px;
    height: 350px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    position: relative;
}

.page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: var(--white);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    margin: 0 auto 20px;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Process Section */
.process {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.process-step {
    position: relative;
    text-align: center;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -16px;
    width: calc(100% - 64px);
    height: 2px;
    background: var(--gray-300);
    transform: translateX(50%);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Applications Section */
.applications {
    padding: var(--section-padding);
    background: var(--white);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.application-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
}

.application-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.application-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    margin-bottom: 20px;
}

.application-icon svg {
    width: 28px;
    height: 28px;
}

.application-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.application-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.application-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-600);
    transition: color var(--transition-fast);
}

.application-link:hover {
    color: var(--primary-700);
}

/* Specs Section */
.specs {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.specs-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.specs-description {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.specs-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--gray-700);
}

.specs-list svg {
    width: 20px;
    height: 20px;
    color: var(--primary-500);
    flex-shrink: 0;
}

.specs-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.specs-card-header {
    background: var(--gradient-primary);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.specs-card-header svg {
    width: 24px;
    height: 24px;
}

.specs-card-header span {
    font-size: 18px;
    font-weight: 600;
}

.specs-card-body {
    padding: 24px;
}

.specs-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

.specs-item:last-child {
    border-bottom: none;
}

.specs-label {
    font-size: 14px;
    color: var(--gray-600);
}

.specs-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.specs-value.highlight {
    color: var(--primary-600);
    font-size: 20px;
}

/* Page CTA */
.page-cta {
    padding: 80px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.page-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Features Grid (for some pages) */
.features-section {
    padding: var(--section-padding);
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Comparison Table */
.comparison {
    padding: var(--section-padding);
    background: var(--white);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 48px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.comparison-table th {
    background: var(--gray-900);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td {
    font-size: 15px;
    color: var(--gray-700);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: var(--gray-50);
}

/* Stats Row */
.stats-section {
    padding: 60px 0;
    background: var(--gradient-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-400);
}

/* Responsive */
@media (max-width: 1024px) {
    .page-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .page-hero-visual {
        display: none;
    }
    
    .page-hero-actions {
        justify-content: center;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step::after {
        display: none;
    }
    
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specs-content {
        grid-template-columns: 1fr;
    }
    
    .specs-card {
        max-width: 400px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .benefits {
        margin-top: 0;
        padding: 60px 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .page-hero-actions {
        flex-direction: column;
    }
    
    .page-hero-actions .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
