/* ============================================
   SapCod - AI Integration Page Styles
   Ultra Premium Design with Tech Graphics
   ============================================ */

/* ===== Hero Section ===== */
.ai-hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 150px 0 80px; background: #fafbfc; overflow: hidden; isolation: isolate;
}
[data-theme="dark"] .ai-hero { background: #060610; }

.ai-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
#aiCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.ai-hero-orb {
    position: absolute; border-radius: 50%; filter: blur(120px);
    opacity: 0.06; animation: aiOrbFloat 12s ease-in-out infinite;
}
.ai-hero-orb.ai-orb-1 { width: 500px; height: 500px; background: #14b8a6; top: -150px; right: -100px; }
.ai-hero-orb.ai-orb-2 { width: 400px; height: 400px; background: #8b5cf6; bottom: -100px; left: -80px; animation-delay: 5s; }
@keyframes aiOrbFloat { 0%,100%{transform:translate(0,0)scale(1)} 50%{transform:translate(40px,-30px)scale(1.1)} }

.ai-hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(20,184,166,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(20,184,166,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at 50% 40%, black 35%, transparent 70%);
}

.ai-neural-bg {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='3' fill='%2314b8a6'/%3E%3Ccircle cx='80' cy='30' r='3' fill='%2314b8a6'/%3E%3Ccircle cx='50' cy='60' r='3' fill='%238b5cf6'/%3E%3Ccircle cx='30' cy='80' r='3' fill='%2314b8a6'/%3E%3Ccircle cx='70' cy='70' r='3' fill='%238b5cf6'/%3E%3Cline x1='20' y1='20' x2='80' y2='30' stroke='%2314b8a6' stroke-width='0.5'/%3E%3Cline x1='80' y1='30' x2='50' y2='60' stroke='%2314b8a6' stroke-width='0.5'/%3E%3Cline x1='50' y1='60' x2='30' y2='80' stroke='%238b5cf6' stroke-width='0.5'/%3E%3Cline x1='50' y1='60' x2='70' y2='70' stroke='%238b5cf6' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

.ai-hero-content { position: relative; z-index: 1; text-align: center; max-width: 850px; margin: 0 auto; }

.ai-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 50px; margin-bottom: 24px;
    font-size: 0.8rem; font-weight: 600; color: #14b8a6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    animation: aifadeUp 0.6s ease both;
}
[data-theme="dark"] .ai-hero-badge { background: #1a1a2e; border-color: #2a2a4a; }

.badge-pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: aiPulse 2s infinite; }
@keyframes aiPulse { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.4)} 50%{box-shadow:0 0 0 12px rgba(34,197,94,0)} }

.ai-hero-content h1 {
    font-size: 3.5rem; font-weight: 900; line-height: 1.12;
    color: #0f172a; margin-bottom: 18px; letter-spacing: -1.5px;
    animation: aifadeUp 0.6s ease 0.1s both;
}
[data-theme="dark"] .ai-hero-content h1 { color: #f1f5f9; }

.ai-gradient {
    background: linear-gradient(90deg, #14b8a6, #8b5cf6, #0066ff, #14b8a6);
    background-size: 300% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; animation: aiGradientFlow 3s ease infinite;
}
@keyframes aiGradientFlow { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

.ai-hero-content p {
    font-size: 1.1rem; color: #64748b; line-height: 1.7;
    max-width: 600px; margin: 0 auto 30px;
    animation: aifadeUp 0.6s ease 0.2s both;
}
[data-theme="dark"] .ai-hero-content p { color: #94a3b8; }

.ai-hero-actions {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    animation: aifadeUp 0.6s ease 0.3s both;
}

.ai-btn-primary {
    padding: 16px 32px; background: #14b8a6; color: #fff;
    border-radius: 14px; text-decoration: none; font-weight: 700;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.3s; box-shadow: 0 8px 30px rgba(20,184,166,0.25);
}
.ai-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(20,184,166,0.4); }

.ai-btn-outline {
    padding: 16px 30px; background: #fff; color: #14b8a6;
    border: 2px solid #e2e8f0; border-radius: 14px;
    text-decoration: none; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s;
}
[data-theme="dark"] .ai-btn-outline { background: #1a1a2e; border-color: #2a2a4a; color: #2dd4bf; }
.ai-btn-outline:hover { border-color: #14b8a6; }

.ai-hero-stats {
    display: flex; gap: 30px; justify-content: center; margin-top: 40px;
    animation: aifadeUp 0.6s ease 0.4s both;
}
.ai-stat { text-align: center; }
.ai-stat-icon { font-size: 1.5rem; margin-bottom: 4px; }
.ai-stat-val { font-size: 1.6rem; font-weight: 800; color: #14b8a6; }
.ai-stat-lbl { font-size: 0.75rem; color: #94a3b8; font-weight: 500; }

@keyframes aifadeUp { from{opacity:0;transform:translateY(25px)} to{opacity:1;transform:translateY(0)} }

/* ===== Sections Common ===== */
.ai-services, .ai-process, .ai-tech, .ai-features, .ai-cta { padding: 100px 0; }
.ai-services, .ai-process { background: #fff; }
[data-theme="dark"] .ai-services, [data-theme="dark"] .ai-process { background: #0a0a1a; }
.ai-tech, .ai-features { background: #f8fafc; }
[data-theme="dark"] .ai-tech, [data-theme="dark"] .ai-features { background: #0e0e22; }

.ai-section-header { text-align: center; margin-bottom: 60px; }
.ai-chip {
    display: inline-block; padding: 8px 18px;
    background: rgba(20,184,166,0.06); border: 1px solid rgba(20,184,166,0.12);
    border-radius: 50px; font-size: 0.78rem; font-weight: 700;
    color: #14b8a6; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px;
}
.ai-section-header h2 { font-size: 2.6rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
[data-theme="dark"] .ai-section-header h2 { color: #e8e8f0; }
.ai-section-header h2 .highlight { color: #14b8a6; }
.ai-section-header p { color: #888; font-size: 1rem; }

/* ===== Services Showcase ===== */
.ai-services-showcase { display: flex; flex-direction: column; gap: 80px; }
.ai-service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ai-service-block.reverse { direction: rtl; }
.ai-service-block.reverse .ai-service-info { direction: ltr; }
.ai-service-visual { position: relative; display: flex; justify-content: center; }

/* Chatbot Mockup */
.ai-chatbot-mockup { width: 100%; max-width: 380px; animation: aiFloat 5s ease-in-out infinite; }
@keyframes aiFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.chatbot-window { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 20px 60px rgba(0,0,0,0.06); }
[data-theme="dark"] .chatbot-window { background: #1a1a30; border-color: #2a2a4a; }
.cb-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, #14b8a6, #0d9488); color: #fff; }
.cb-avatar { font-size: 1.5rem; }
.cb-name { font-weight: 600; font-size: 0.85rem; display: block; }
.cb-status { font-size: 0.65rem; opacity: 0.85; }
.cb-messages { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; background: #f8fafc; }
[data-theme="dark"] .cb-messages { background: #0f0f23; }
.cb-msg { display: flex; max-width: 80%; }
.cb-msg.bot { align-self: flex-start; }
.cb-msg.user { align-self: flex-end; }
.cb-bubble { padding: 10px 14px; border-radius: 14px; font-size: 0.78rem; line-height: 1.5; }
.cb-msg.bot .cb-bubble { background: #fff; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; color: #334155; }
.cb-msg.user .cb-bubble { background: #14b8a6; color: #fff; border-bottom-right-radius: 4px; }
.cb-typing { display: flex; gap: 4px; padding: 10px 14px; }
.cb-typing span { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: aiTyping 1.4s infinite; }
.cb-typing span:nth-child(2){animation-delay:0.2s}.cb-typing span:nth-child(3){animation-delay:0.4s}
@keyframes aiTyping { 0%,60%,100%{opacity:0.3} 30%{opacity:1} }
.cb-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #e2e8f0; }
.cb-input input { flex: 1; padding: 10px 14px; border-radius: 20px; border: 1px solid #e2e8f0; font-size: 0.8rem; background: #f8fafc; }
.cb-input button { width: 34px; height: 34px; border-radius: 50%; background: #14b8a6; color: #fff; border: none; cursor: pointer; }

/* Analytics Mockup */
.ai-analytics-mockup {
    width: 100%; max-width: 440px; background: #fff; border-radius: 16px;
    overflow: hidden; border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06); animation: aiFloat 5s ease-in-out infinite 1s;
}
[data-theme="dark"] .ai-analytics-mockup { background: #1a1a30; border-color: #2a2a4a; }
.analytics-header { padding: 14px 16px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; font-weight: 600; font-size: 0.85rem; color: #0f172a; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.analytics-card { padding: 14px; background: #f8fafc; border-radius: 12px; }
.analytics-card.wide { grid-column: 1/-1; }
.ac-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.8px; color: #94a3b8; font-weight: 600; margin-bottom: 4px; }
.ac-value { font-size: 1.3rem; font-weight: 800; color: #0f172a; }
.ac-value.up { color: #22c55e; }
.ac-value.down { color: #ef4444; }
.ac-confidence { font-size: 0.62rem; color: #94a3b8; }
.ac-mini-chart { margin-top: 6px; }
.ac-svg { width: 100%; height: auto; }
.ac-risk-indicator { padding: 4px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 600; display: inline-block; margin-top: 4px; }
.ac-risk-indicator.low { background: rgba(34,197,94,0.1); color: #22c55e; }
.ac-segments { display: flex; border-radius: 6px; overflow: hidden; height: 28px; margin-top: 4px; }
.ac-segment { display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 600; color: #fff; }
.ac-segment:nth-child(1){background:#14b8a6}.ac-segment:nth-child(2){background:#8b5cf6}.ac-segment:nth-child(3){background:#f59e0b}

/* Automation Mockup */
.ai-automation-mockup {
    width: 100%; max-width: 420px; background: #fff; border-radius: 16px;
    overflow: hidden; border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06); animation: aiFloat 5s ease-in-out infinite 2s;
}
[data-theme="dark"] .ai-automation-mockup { background: #1a1a30; border-color: #2a2a4a; }
.automation-flow { padding: 16px; }
.auto-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 600; font-size: 0.85rem; color: #0f172a; }
.auto-status { font-size: 0.65rem; color: #22c55e; }
.auto-steps { display: flex; flex-direction: column; gap: 0; }
.auto-step { display: flex; align-items: center; gap: 12px; padding: 10px; background: #f8fafc; border-radius: 10px; }
.auto-step-icon { font-size: 1.3rem; width: 36px; text-align: center; }
.auto-step-info { flex: 1; }
.auto-step-info strong { display: block; font-size: 0.78rem; color: #0f172a; }
.auto-step-info span { font-size: 0.68rem; color: #94a3b8; }
.auto-check { color: #22c55e; font-size: 0.8rem; }
.auto-check.running { color: #14b8a6; animation: aiPulse 2s infinite; }
.auto-connector { text-align: center; color: #94a3b8; font-size: 0.6rem; padding: 2px 0; }
.auto-stats { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e2e8f0; font-size: 0.68rem; color: #64748b; }
.auto-stats strong { color: #14b8a6; }

/* Vision Mockup */
.ai-vision-mockup {
    width: 100%; max-width: 420px; background: #fff; border-radius: 16px;
    overflow: hidden; border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06); animation: aiFloat 5s ease-in-out infinite 0.5s;
}
[data-theme="dark"] .ai-vision-mockup { background: #1a1a30; border-color: #2a2a4a; }
.vision-header { padding: 14px 16px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; font-weight: 600; font-size: 0.85rem; color: #0f172a; }
.vision-demo { padding: 14px; }
.vision-image { margin-bottom: 12px; }
.vi-placeholder {
    position: relative; height: 160px; background: #f1f5f9; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.vi-placeholder i { font-size: 2.5rem; color: #cbd5e1; }
.vi-bounding-box { position: absolute; border: 2px solid #14b8a6; border-radius: 3px; animation: aiBoxPulse 2s infinite; }
@keyframes aiBoxPulse { 0%,100%{border-color:#14b8a6} 50%{border-color:#2dd4bf} }
.vi-label { position: absolute; font-size: 0.55rem; background: rgba(20,184,166,0.9); color: #fff; padding: 2px 6px; border-radius: 3px; font-weight: 600; }
.vision-results { display: flex; gap: 8px; }
.vr-item { flex: 1; text-align: center; padding: 10px; background: #f8fafc; border-radius: 8px; }
.vr-item span { display: block; font-size: 0.6rem; color: #94a3b8; }
.vr-item strong { font-size: 0.9rem; color: #0f172a; }

/* Floating Tags */
.ai-float-tag {
    position: absolute; padding: 8px 16px; background: #fff;
    border-radius: 10px; font-size: 0.72rem; font-weight: 700;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06); animation: aiTagFloat 3s ease-in-out infinite;
}
[data-theme="dark"] .ai-float-tag { background: #1e293b; color: #e0e0e0; }
.ai-float-tag.tag-top { top: -10px; right: -10px; color: #14b8a6; }
.ai-float-tag.tag-bottom { bottom: -10px; left: -10px; color: #8b5cf6; animation-delay: 1.5s; }
.ai-float-tag.green-tag { color: #22c55e; }
.ai-float-tag.purple-tag { color: #8b5cf6; }
@keyframes aiTagFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* Service Info */
.ai-service-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 16px;
}
.icon-teal{background:rgba(20,184,166,0.08);color:#14b8a6}
.icon-green{background:rgba(34,197,94,0.08);color:#22c55e}
.icon-purple{background:rgba(139,92,246,0.08);color:#8b5cf6}
.icon-blue{background:rgba(0,102,255,0.08);color:#0066ff}

.ai-service-info h3 { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
[data-theme="dark"] .ai-service-info h3 { color: #e0e0e0; }
.ai-service-info p { font-size: 0.95rem; color: #64748b; line-height: 1.7; margin-bottom: 16px; }
[data-theme="dark"] .ai-service-info p { color: #94a3b8; }

.ai-feature-list { list-style: none; padding: 0; }
.ai-feature-list li {
    font-size: 0.88rem; color: #475569; padding: 6px 0;
    display: flex; align-items: flex-start; gap: 10px;
}
[data-theme="dark"] .ai-feature-list li { color: #94a3b8; }
.ai-feature-list li i { color: #22c55e; margin-top: 3px; font-size: 0.75rem; }

/* ===== Tech ===== */
.ai-tech-showcase { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.ai-tech-category {
    background: #fff; border-radius: 20px; padding: 35px 24px;
    text-align: center; border: 1px solid #e2e8f0; transition: all 0.3s;
}
[data-theme="dark"] .ai-tech-category { background: #1a1a30; border-color: #2a2a4a; }
.ai-tech-category:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.06); }
.ai-tech-icon-wrap {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(20,184,166,0.06); color: #14b8a6;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto 16px;
}
.ai-tech-category h4 { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 20px; }
.ai-tech-orbit { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tech-bubble {
    padding: 8px 16px; background: #f1f5f9; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600; color: #475569;
    transition: all 0.3s; animation: aiBubbleFloat 3s ease infinite;
    animation-delay: calc(var(--i) * 0.3s);
}
[data-theme="dark"] .tech-bubble { background: #0f0f23; color: #94a3b8; }
.tech-bubble:hover { background: #14b8a6; color: #fff; transform: scale(1.05); }
@keyframes aiBubbleFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ===== Features ===== */
.ai-features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.ai-feature-card {
    background: #fff; border-radius: 18px; padding: 30px 24px;
    text-align: center; border: 1px solid #e2e8f0; transition: all 0.3s;
}
[data-theme="dark"] .ai-feature-card { background: #1a1a30; border-color: #2a2a4a; }
.ai-feature-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.ai-feature-icon {
    width: 55px; height: 55px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin: 0 auto 14px;
}
.af-teal{background:rgba(20,184,166,0.08);color:#14b8a6}
.af-purple{background:rgba(139,92,246,0.08);color:#8b5cf6}
.af-green{background:rgba(34,197,94,0.08);color:#22c55e}
.af-blue{background:rgba(0,102,255,0.08);color:#0066ff}
.af-orange{background:rgba(245,158,11,0.08);color:#f59e0b}
.af-rose{background:rgba(244,63,94,0.08);color:#f43f5e}
.ai-feature-card h4 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.ai-feature-card p { font-size: 0.85rem; color: #64748b; line-height: 1.6; }

/* ===== Process ===== */
.ai-process-flow {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 0; max-width: 1000px; margin: 0 auto; flex-wrap: wrap;
}
.ai-process-card {
    text-align: center; width: 180px; padding: 25px 15px;
    background: #fff; border-radius: 20px; border: 1px solid #e2e8f0;
    transition: all 0.3s; position: relative;
}
[data-theme="dark"] .ai-process-card { background: #1a1a30; border-color: #2a2a4a; }
.ai-process-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.06); }
.ai-process-num { font-size: 2.5rem; font-weight: 900; color: rgba(20,184,166,0.08); position: absolute; top: 10px; left: 15px; line-height: 1; }
.ai-process-icon-wrap {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin: 0 auto 12px;
}
.ap-teal{background:rgba(20,184,166,0.1);color:#14b8a6}
.ap-purple{background:rgba(139,92,246,0.1);color:#8b5cf6}
.ap-blue{background:rgba(0,102,255,0.1);color:#0066ff}
.ap-green{background:rgba(34,197,94,0.1);color:#22c55e}
.ai-process-card h4 { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.ai-process-card p { font-size: 0.8rem; color: #64748b; line-height: 1.5; margin-bottom: 8px; }
.ai-process-tag { font-size: 0.65rem; padding: 4px 10px; background: #f1f5f9; border-radius: 6px; color: #14b8a6; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.ai-process-connector { display: flex; flex-direction: column; align-items: center; padding: 0 10px; margin-top: 50px; }
.aipc-line { width: 40px; height: 2px; background: linear-gradient(90deg, #14b8a6, #8b5cf6); opacity: 0.3; }
.aipc-arrow { color: #14b8a6; font-size: 0.7rem; margin-top: 2px; }

/* ===== CTA ===== */
.ai-cta-wrapper {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    border-radius: 28px; padding: 60px 40px; text-align: center;
    color: #fff; position: relative; overflow: hidden;
}
.ai-cta-glow { position: absolute; width: 300px; height: 300px; background: rgba(255,255,255,0.05); border-radius: 50%; top: -50px; right: -50px; filter: blur(50px); }
.ai-cta-wrapper h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; position: relative; }
.ai-cta-wrapper p { font-size: 1rem; opacity: 0.9; margin-bottom: 28px; position: relative; }
.ai-cta-wrapper .ai-gradient { background: linear-gradient(90deg, #fff, #ccfbf1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ai-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.ai-btn-white { padding: 16px 30px; background: #fff; color: #14b8a6; border-radius: 14px; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; }
.ai-btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .ai-service-block, .ai-service-block.reverse { grid-template-columns: 1fr; direction: ltr; gap: 40px; }
    .ai-service-visual { order: -1; max-width: 400px; margin: 0 auto; }
    .ai-tech-showcase, .ai-features-grid { grid-template-columns: repeat(2,1fr); }
    .ai-hero-content h1 { font-size: 2.6rem; }
}
@media (max-width: 768px) {
    .ai-hero-content h1 { font-size: 2rem; }
    .ai-tech-showcase, .ai-features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .ai-process-flow { flex-direction: column; align-items: center; gap: 20px; }
    .ai-process-card { width: 100%; max-width: 280px; }
    .ai-process-connector { display: none; }
    .ai-hero-stats { gap: 20px; flex-wrap: wrap; }
    .ai-float-tag { display: none; }
    .ai-section-header h2 { font-size: 2rem; }
    .ai-cta-wrapper { padding: 40px 20px; }
    .ai-cta-wrapper h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
    .ai-hero-content h1 { font-size: 1.7rem; }
    .ai-hero-actions { flex-direction: column; align-items: center; }
    .ai-btn-primary, .ai-btn-outline { width: 100%; justify-content: center; }
}