/* =========================================================
   AI Teaser Banner (on main page)
   ========================================================= */
.ai-teaser { padding: 6.5rem 0 3.5rem 0; background: var(--bg-light); }
.ai-teaser-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0f1f3d 0%, #1a3a6e 50%, #0d2b5e 100%);
    border-radius: var(--radius-lg);
    padding: 2rem 3rem 2.5rem 3rem;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,50,150,0.35);
}
.ai-teaser-glow {
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,210,255,0.15) 0%, transparent 70%);
    top: -100px; right: 200px;
    pointer-events: none;
}
.ai-teaser-top {
    display: flex;
    align-items: flex-start; /* Aligns top of image with top of heading */
    gap: 4rem;
    position: relative;
    z-index: 1;
}
.ai-teaser-content { flex: 1; }
.ai-badge {
    display: inline-block;
    background: rgba(0,210,255,0.15);
    border: 1px solid rgba(0,210,255,0.4);
    color: var(--primary);
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: .05em;
}
.ai-teaser-content h2 { color: #fff; margin-top: 0; margin-bottom: 1rem; }
.ai-teaser-content h2 span { color: var(--primary); }
.ai-teaser-content > p { color: #a0c4e8; margin-bottom: 2rem; }
.ai-features-row {
    display: flex;
    flex-wrap: nowrap; /* Keep features on one line */
    gap: .8rem;
    margin-bottom: 2.5rem;
}
.ai-feat {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #c8dff5;
    padding: .4rem .8rem;
    border-radius: 50px;
    font-size: .85rem;
    white-space: nowrap; /* Prevent text breaking */
    display: flex;
    align-items: center;
    gap: .4rem;
}
.ai-cta-btn {
    display: table;
    margin: 0 auto;
    font-size: 1.05rem;
    padding: 1rem 2.8rem;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1a1a !important;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255,152,0,0.3);
    transition: transform var(--ease), box-shadow var(--ease);
}
.ai-cta-btn:hover {
    background: linear-gradient(135deg, #ffcd38, #ffb74d);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255,152,0,0.4);
    color: #1a1a1a !important;
}
.ai-teaser-visual {
    flex: 0 0 440px;
    z-index: 1;
}
.scanner-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,210,255,0.25);
    border: 2px solid rgba(0,210,255,0.2);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.scanner-container:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 60px rgba(213,0,249,0.35);
    border-color: rgba(213,0,249,0.6);
}
.scanner-container:hover .scanner-line {
    background: #ea80fc;
    box-shadow: 0 0 25px #d500f9, 0 0 50px #a200ff, 0 0 80px #ea80fc;
}
.scanner-container img {
    width: 100%;
    display: block;
}
.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #d500f9;
    box-shadow: 0 0 15px #d500f9, 0 0 35px #a200ff;
    animation: scanLine 3s ease-in-out infinite;
    transition: background var(--ease), box-shadow var(--ease);
}
@keyframes scanLine {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
@media (max-width: 900px) {
    .ai-teaser-top { flex-direction: column; gap: 2rem; align-items: center; }
    .ai-features-row { flex-wrap: wrap; justify-content: center; }
    .ai-teaser-content { text-align: center; }
    .ai-teaser-card { padding: 2.5rem 2rem; gap: 3rem; }
    .ai-teaser-visual { flex: 0 0 auto; width: 70%; }
}
@media (max-width: 480px) {
    .ai-teaser-card { padding: 2rem 1.4rem; }
    .ai-teaser-visual { width: 90%; }
    .ai-features-row { gap: .5rem; }
    .ai-feat { font-size: .8rem; padding: .4rem .8rem; }
}

.ai-process {
    margin-top: 0;
    text-align: center;
}
.ai-process-title {
    margin-bottom: 1rem;
}
.ai-process-title h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.ai-process-title h3 span {
    color: var(--primary);
}
.ai-process-title p {
    color: #a0c4e8;
    font-size: 1.1rem;
}
.ai-steps {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.ai-step {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: transform var(--ease), background var(--ease);
    text-align: center;
    backdrop-filter: blur(10px);
}
.ai-step:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.08);
}
.ai-step-img {
    position: relative;
    width: 100%;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0.8rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}
.ai-step-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease);
}
.ai-step:hover .ai-step-img img {
    transform: scale(1.05);
}
.step-num {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,210,255,0.4);
    z-index: 2;
}
.ai-step h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}
.ai-step p {
    font-size: 0.95rem;
    color: #a0c4e8;
    line-height: 1.4;
}
@media (max-width: 900px) {
    .ai-steps { gap: 1.5rem; }
    .ai-step { min-width: calc(50% - 1rem); }
}
@media (max-width: 600px) {
    .ai-step { min-width: 100%; }
    .ai-process { margin-top: 4rem; }
}
