.th-ai-section,
.th-ai-section * {
    box-sizing: border-box;
}

.th-ai-section {
    position: relative;
    padding: clamp(76px, 9vw, 128px) 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 15%, rgba(20, 103, 232, .12), transparent 28%),
        linear-gradient(145deg, #f9fbfe, #edf5ff 56%, #f4faef);
}

.th-ai-section::before {
    position: absolute;
    top: 14%;
    right: -100px;
    width: 440px;
    height: 440px;
    content: "";
    border: 1px solid rgba(20, 103, 232, .09);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(20, 103, 232, .025),
        0 0 0 140px rgba(20, 103, 232, .018);
}

.th-ai-section__inner {
    position: relative;
    display: grid;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr);
    align-items: center;
    gap: clamp(48px, 8vw, 120px);
}

.th-ai-section__content {
    max-width: 610px;
}

.th-ai-section__eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 12px;
    color: #0c61c1;
    border: 1px solid rgba(20, 103, 232, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .65);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    align-items: center;
    gap: 7px;
    backdrop-filter: blur(10px);
}

.th-ai-section__eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64bd45;
    box-shadow: 0 0 0 5px rgba(100, 189, 69, .14);
}

.th-ai-section h2 {
    margin: 0 0 20px;
    color: #102c4a;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 750;
    line-height: 1.02;
}

.th-ai-section__lead {
    margin: 0 0 32px;
    color: #5d7188;
    font-size: 16px;
    line-height: 1.75;
}

.th-ai-flow {
    position: relative;
    display: grid;
    gap: 8px;
}

.th-ai-flow::before {
    position: absolute;
    top: 31px;
    bottom: 31px;
    left: 20px;
    width: 1px;
    content: "";
    background: linear-gradient(#4b9bf2, #64bd45);
}

.th-ai-flow article {
    position: relative;
    display: grid;
    min-height: 76px;
    margin: 0;
    padding: 12px 14px 12px 0;
    border: 1px solid transparent;
    border-radius: 16px;
    grid-template-columns: 56px 1fr;
    align-items: center;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.th-ai-flow article:hover {
    border-color: rgba(20, 103, 232, .1);
    background: rgba(255, 255, 255, .62);
    transform: translateX(5px);
}

.th-ai-flow article > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 40px;
    height: 40px;
    color: #176dce;
    border: 1px solid #d5e6f8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(32, 78, 125, .1);
    font-size: 10px;
    font-weight: 800;
    place-items: center;
}

.th-ai-flow h3 {
    margin: 0 0 3px;
    color: #183957;
    font-size: 16px;
}

.th-ai-flow p {
    margin: 0;
    color: #65788d;
    font-size: 12px;
    line-height: 1.5;
}

.th-ai-tags {
    display: flex;
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 8px;
}

.th-ai-tags span {
    padding: 7px 10px;
    color: #4b657e;
    border: 1px solid rgba(38, 91, 145, .11);
    border-radius: 9px;
    background: rgba(255, 255, 255, .6);
    font-size: 10px;
    font-weight: 600;
}

.th-ai-console {
    position: relative;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 28px;
    background: rgba(255, 255, 255, .52);
    box-shadow:
        0 40px 90px rgba(36, 77, 119, .2),
        inset 0 1px 0 #fff;
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.th-ai-console__topbar {
    display: flex;
    height: 48px;
    padding: 0 10px;
    color: #284a6c;
    align-items: center;
    justify-content: space-between;
}

.th-ai-console__topbar span {
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    align-items: center;
    gap: 8px;
}

.th-ai-console__topbar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64bd45;
    box-shadow: 0 0 0 5px rgba(100, 189, 69, .13);
}

.th-ai-console__topbar small {
    color: #8194a8;
    font-size: 10px;
}

.th-ai-console__screen {
    position: relative;
    min-height: 335px;
    padding: 32px;
    overflow: hidden;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(10, 40, 72, .05), rgba(20, 103, 232, .08)),
        #e8f0f8;
}

.th-ai-console__screen > img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: auto;
    opacity: .88;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 24px 30px rgba(14, 46, 79, .18));
}

.th-ai-insight {
    position: absolute;
    z-index: 2;
    display: flex;
    min-width: 190px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 15px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 16px 35px rgba(20, 57, 95, .16);
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(14px);
}

.th-ai-insight--maintenance { top: 20px; left: 18px; }
.th-ai-insight--route { right: 18px; bottom: 20px; }

.th-ai-insight__icon {
    display: grid;
    width: 36px;
    height: 36px;
    color: #176fd2;
    border-radius: 10px;
    background: #e7f2ff;
    place-items: center;
}

.th-ai-insight__icon--green {
    color: #398c27;
    background: #edf8e9;
}

.th-ai-insight__icon svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.th-ai-insight > span:last-child {
    display: flex;
    flex-direction: column;
}

.th-ai-insight small {
    margin-bottom: 2px;
    color: #8495a8;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.th-ai-insight strong {
    color: #243f5a;
    font-size: 11px;
}

.th-ai-console__signals {
    display: grid;
    padding: 18px 10px 8px;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.th-ai-console__signals > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.th-ai-console__signals span {
    color: #667d94;
    font-size: 9px;
    font-weight: 700;
}

.th-ai-console__signals i {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 99px;
    background: #dce6f0;
}

.th-ai-console__signals b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1467e8, #64bd45);
}

@media (max-width: 1050px) {
    .th-ai-section__inner { grid-template-columns: 1fr; }
    .th-ai-section__content { max-width: 760px; }
}

@media (max-width: 620px) {
    .th-ai-section { padding-right: 14px; padding-left: 14px; }
    .th-ai-console { padding: 8px; border-radius: 22px; }
    .th-ai-console__screen { min-height: 280px; padding: 18px; }
    .th-ai-insight { min-width: 164px; padding: 8px; }
    .th-ai-insight--maintenance { top: 12px; left: 10px; }
    .th-ai-insight--route { right: 10px; bottom: 12px; }
    .th-ai-console__signals { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .th-ai-flow article { transition: none; }
}
