/* AI/ML solutions page — tokens align with site theme */
:root {
    --aiml-ink: #0f172a;
    --aiml-body: #475569;
    --aiml-border: #e2e8f0;
    --aiml-bg-alt: #f8fafc;
    --aiml-blue: #0ea5e9;
}

.section {
    padding: 80px 0;
}

.section--alt {
    background: var(--aiml-bg-alt);
}

.section-header {
    margin-bottom: 50px;
}

.section-header--center {
    text-align: center;
}

.section-title {
    margin-bottom: 1rem;
}

.aiml-inlink {
    color: #6366f1;
    text-decoration: none;
    border-bottom: 1px solid #6366f1;
    font-weight: 500;
}
.aiml-inlink:hover {
    color: #4f46e5;
}

/* Hero — no background video (performance + brand accuracy) */
.ai-hero {
    background: linear-gradient(160deg, #ffffff 0%, #f0f9ff 55%, #eff6ff 100%);
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.ai-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ai-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ai-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    background: #eff6ff;
    border: none;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

.ai-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--aiml-ink);
    margin-bottom: 1.25rem;
}

.ai-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--aiml-body);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.ai-hero-cross {
    font-size: 0.95rem;
    color: var(--aiml-body);
    margin: -0.5rem auto 2rem;
    max-width: 640px;
    line-height: 1.6;
}

.ai-hero-cross a {
    color: #0284c7;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ai-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-top: 2.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--aiml-border);
}

.ai-hero-stat {
    text-align: center;
}

.ai-hero-stat-num {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--aiml-ink);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.ai-hero-stat-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Services - Alternating Layout */
.ai-services-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ai-service-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem 0;
    position: relative;
}

.ai-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.ai-service-card:last-child::after {
    display: none;
}

/* Alternate layout direction */
.ai-service-card:nth-child(even) {
    flex-direction: row-reverse;
}

.ai-service-icon-wrapper {
    flex-shrink: 0;
    position: relative;
}

.ai-service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ai-service-icon svg {
    width: 100%;
    height: 100%;
    stroke: #1e293b;
    stroke-width: 1.5;
    fill: none;
    transition: all 0.4s ease;
}

.ai-service-card:hover .ai-service-icon svg {
    stroke: #3b82f6;
    transform: scale(1.05);
}

.ai-service-content {
    flex: 1;
    max-width: 600px;
}

.ai-service-number {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #3b82f6;
    background: #eff6ff;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.ai-service-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.ai-service-title a {
    color: inherit;
    text-decoration: none;
    border: none;
}

.ai-service-title a:hover {
    color: #0284c7;
}

.ai-service-description {
    font-size: 1.0625rem;
    color: #6b7280;
    line-height: 1.7;
}

/* AI CTA Section */
.ai-cta-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 5rem 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.ai-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.ai-cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ai-cta-text {
    flex: 1;
}

.ai-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.ai-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111827;
}

.ai-cta-title .highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-cta-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
}

.ai-cta-action {
    flex-shrink: 0;
}

.ai-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ai-cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ai-cta-button:hover::before {
    opacity: 1;
}

.ai-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.ai-cta-button span {
    position: relative;
    z-index: 1;
}

.ai-cta-button svg {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.ai-cta-button:hover svg {
    transform: translateX(4px);
}

/* Technologies Section - 3 Column Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 0;
}

.tech-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid transparent;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
    background: #ffffff;
}

.tech-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.tech-icon svg {
    width: 100%;
    height: 100%;
    stroke: #1e293b;
    stroke-width: 1.5;
    fill: none;
    transition: all 0.4s ease;
}

.tech-card:hover .tech-icon svg {
    stroke: #3b82f6;
    transform: scale(1.05);
}

.tech-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.tech-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.tech-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tech-link:hover {
    color: #1e40af;
    gap: 0.625rem;
}

.tech-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.tech-link:hover svg {
    transform: translateX(2px);
}

/* Industries Section */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}

.industry-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.industry-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-icon svg {
    width: 100%;
    height: 100%;
    stroke: #1e293b;
    stroke-width: 1.5;
    fill: none;
    transition: all 0.3s ease;
}

.industry-card:hover .industry-icon svg {
    stroke: #3b82f6;
    transform: scale(1.05);
}

.industry-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.35rem;
}

.industry-blurb {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

a.industry-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-inline-svg {
    width: 32px;
    height: 32px;
    stroke: #3b82f6;
    stroke-width: 1.5;
    fill: none;
}

/* Benefits Section - Alternating Layout */
.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.benefit-card:nth-child(even) {
    flex-direction: row-reverse;
}

.benefit-icon-wrapper {
    flex-shrink: 0;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border: 2px solid #e0f2fe;
}

.benefit-icon svg {
    width: 48px;
    height: 48px;
    stroke: #3b82f6;
    stroke-width: 1.5;
    fill: none;
}

.benefit-content {
    flex: 1;
}

.benefit-number {
    display: none;
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.benefit-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .ai-hero {
        padding: calc(4rem + 25px) 0 3.5rem;
        padding-top: calc(4rem + 25px) !important;
    }

    .ai-hero-stats {
        gap: 1.25rem;
    }

    .ai-hero-title {
        font-size: 2.25rem;
    }

    .ai-hero-subtitle {
        font-size: 1.05rem;
    }
    
    .ai-service-card {
        flex-direction: column !important;
        gap: 2rem;
        padding: 3rem 0;
        text-align: center;
    }
    
    .ai-service-icon {
        width: 56px;
        height: 56px;
    }
    
    .ai-service-content {
        max-width: 100%;
    }
    
    .ai-service-title {
        font-size: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-card {
        padding: 2rem;
    }
    
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefit-card {
        flex-direction: column !important;
        gap: 1.5rem;
        text-align: center;
    }
    
    .benefit-icon {
        width: 70px;
        height: 70px;
    }
    
    .benefit-title {
        font-size: 1.25rem;
    }
    
    .ai-cta-section {
        padding: 3rem 0;
    }
    
    .ai-cta-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .ai-cta-title {
        font-size: 1.875rem;
    }
    
    .ai-cta-subtitle {
        font-size: 1rem;
    }
    
    .ai-cta-button {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }
    
    .process-step {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
    }
    
    .process-step-title {
        font-size: 1.25rem;
    }
    
    .process-step-description {
        font-size: 0.95rem;
    }
}

/* Process Section */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.process-step:last-child {
    border-bottom: none;
}

.process-number {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.process-step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.process-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.process-step-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.7;
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #111827;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #3b82f6;
}

.faq-icon {
    font-size: 1.5rem;
    color: #3b82f6;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 2rem 1.5rem;
    color: #6b7280;
    line-height: 1.7;
}

/* Contact Form Section */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Final CTA — dark band (matches /ai, /seo-tools) */
.aiml-cta-final {
    padding: 4.5rem 0;
    background: linear-gradient(150deg, #0f172a 0%, #1e3a5f 100%);
    position: relative;
    overflow: hidden;
}

.aiml-cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(14, 165, 233, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.aiml-cta-final .container {
    position: relative;
    z-index: 1;
}

.aiml-cta-final-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.aiml-cta-final .aiml-eyebrow {
    display: inline-flex;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    color: #e0f2fe;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.aiml-cta-final h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.aiml-cta-final .aiml-cta-desc {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 2rem;
}

.aiml-cta-final-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.aiml-cta-final .btn-aiml-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    background: #0ea5e9;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.aiml-cta-final .btn-aiml-primary:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.aiml-cta-final .btn-aiml-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.aiml-cta-final .btn-aiml-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.form-note-muted {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}
