/* === Hero === */
.hero {
    position: relative;
    min-height: 510px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 75px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
    padding: 0 20px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    background: #0068dd;
    border-radius: 4px;
    padding: 6px 20px;
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 4px rgba(0,0,0,0.25);
    margin-bottom: 12px;
}
.hero-desc {
    font-size: 20px;
    line-height: 40px;
    color: #fff;
    text-shadow: 0 4px 4px rgba(0,0,0,0.25);
}

/* === Section === */
.section {
    padding: 64px 0;
    position: relative;
}

/* === AI Intro === */
.ai-intro {
    text-align: center;
    margin-bottom: 32px;
}
.ai-intro .tag {
    display: inline-block;
    background: #e8f0fe;
    border: 1px solid #0068dd;
    border-radius: 30px;
    padding: 4px 20px;
    font-size: 12px;
    color: #0068dd;
    margin-bottom: 16px;
}
.ai-intro .title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2.4px;
    background: linear-gradient(180deg, #00e5ff, #0068dd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.ai-intro .desc {
    font-size: 20px;
    line-height: 40px;
    color: #000;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* === Section Header === */
.section-header {
    margin-bottom: 20px;
}
.section-header .label-tag {
    display: inline-block;
    background: #e8f0fe;
    border: 1px solid #0068dd;
    border-radius: 30px;
    padding: 2px 16px;
    font-size: 12px;
    color: #0068dd;
    margin-bottom: 10px;
}
.section-header .gradient-title {
    font-size: 22px;
    font-weight: 600;
    background-image: url('../images/ai-text-bg.webp');
    background-size: cover;
    background-position: center;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

/* === Two Column Layout === */
.two-col {
    display: flex;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    align-items: flex-start;
}
.two-col .left {
    flex: 1;
    min-width: 0;
}
.two-col .right {
    flex: 0 0 820px;
}

/* === Feature Items === */
.feature-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(253,254,255,0.3);
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 0 6px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
}
.feature-item:hover {
    box-shadow: 0 0 12px rgba(0,104,221,0.25);
}
.feature-item.active {
    box-shadow: 0 0 0 2px #0068dd, 0 0 12px rgba(0,104,221,0.2);
}
.feature-item.with-arrow {
    position: relative;
    padding-right: 70px;
}
.feature-item.with-arrow .item-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 49px;
    height: 33px;
}
.feature-item.with-arrow .item-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.feature-item.with-arrow .item-arrow.flip {
    transform: translateY(-50%) scaleX(-1);
}
.feature-item .icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.feature-item .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.feature-item .icon.small {
    width: 37px;
    height: 39px;
}
.feature-item .icon.small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.feature-item .fname {
    font-size: 16px;
}
.feature-item .fname.highlight {
    color: #0068dd;
}
.feature-item .fname.normal {
    color: #333;
}

/* === Agent Items === */
.agent-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(253,254,255,0.3);
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 0 6px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
}
.agent-item:hover {
    box-shadow: 0 0 12px rgba(0,104,221,0.25);
}
.agent-item.active {
    box-shadow: 0 0 0 2px #0068dd, 0 0 12px rgba(0,104,221,0.2);
}
.agent-item.with-arrow {
    position: relative;
    padding-right: 70px;
}
.agent-item.with-arrow .item-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 49px;
    height: 33px;
}
.agent-item.with-arrow .item-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.agent-item.with-arrow .item-arrow.flip {
    transform: translateY(-50%) scaleX(-1);
}
.agent-item .icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.agent-item .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.agent-item .aname {
    font-size: 16px;
    color: #333;
}

/* === Info Card === */
.info-card {
    background: rgba(253,254,255,0.7);
    border-radius: 49px;
    padding: 28px;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
}
.info-card .card-step {
    font-size: 20px;
    color: #0068dd;
    text-align: center;
    margin-bottom: 12px;
}
.info-card .card-desc {
    font-size: 20px;
    line-height: 40px;
    color: #0068dd;
    text-align: center;
}
.info-card .card-image {
    width: 100%;
    border-radius: 45px;
    overflow: hidden;
    margin-top: 12px;
}
.info-card .card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* === Responsive === */
@media (max-width: 1200px) {
    .two-col {
        flex-direction: column;
        align-items: stretch;
    }
    .two-col .left,
    .two-col .right {
        flex: none;
        width: 100%;
    }
    .info-card {
        padding: 20px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-desc {
        font-size: 18px;
        line-height: 32px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    .ai-intro .title {
        font-size: 28px;
    }
    .ai-intro .desc {
        font-size: 16px;
        line-height: 28px;
    }
    .section-header {
        padding: 0 16px;
        max-width: none;
        margin: 0 auto 16px;
    }
    .section-header .label-tag { margin-left: 0; }
    .section-header .gradient-title {
        font-size: 22px;
        text-align: left;
    }
    .feature-item {
        flex-wrap: nowrap;
    }
    .feature-item .fname {
        font-size: 15px;
    }
    .agent-item {
        flex-wrap: nowrap;
    }
    .info-card .card-desc {
        font-size: 18px;
        line-height: 30px;
    }

    /* === Mobile two-col: horizontal tabs + card === */
    .two-col {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }
    .two-col { margin-bottom: 40px !important; }
    .two-col .left { order: 1; width: 100%; }
    .two-col .right { order: 2; width: 100%; }
    /* agent section: card sits above tabs, keep source order visually via order */
    .two-col.anim-fade-up:nth-of-type(2) .right { order: 1; }
    .two-col.anim-fade-up:nth-of-type(2) .left { order: 2; }
    /* hide empty spacer column used in desktop layout */
    .two-col .right:empty { display: none; }

    .feature-items, .agent-items {
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 4px 2px 8px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .feature-items::-webkit-scrollbar, .agent-items::-webkit-scrollbar { display: none; }
    .feature-item, .agent-item {
        flex: 0 0 auto;
        min-width: 112px;
        padding: 8px 14px;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .feature-item.active, .agent-item.active {
        box-shadow: inset 0 0 0 2px #0068dd, 0 0 8px rgba(0,104,221,0.15);
    }
    .feature-item.with-arrow { padding-right: 14px; }
    .feature-item.with-arrow .item-arrow { display: none; }
    .agent-item.with-arrow { padding-right: 14px; }
    .agent-item.with-arrow .item-arrow { display: none; }
    .feature-item .icon, .agent-item .icon { width: 28px; height: 28px; }
    .info-card { border-radius: 20px; padding: 16px; }
    .info-card .card-image { border-radius: 14px; }
    .info-card .card-step { font-size: 16px; }
    .info-card .card-desc { font-size: 15px; line-height: 26px; text-align: left; }

@media (max-width: 480px) {
    .hero-title { font-size: 24px; }
    .hero-desc { font-size: 15px; line-height: 26px; }
    .hero-tag { font-size: 14px; padding: 4px 16px; }
    .hero { min-height: 360px; }
    .ai-intro .title { font-size: 24px; }
    .ai-intro .desc { font-size: 15px; line-height: 26px; padding: 0 16px; }
    .section-header .gradient-title { font-size: 18px; }
    .two-col { padding: 0 16px; gap: 16px; }
    .info-card { padding: 14px; border-radius: 18px; }
    .info-card .card-desc { font-size: 14px; line-height: 24px; }
    .info-card .card-step { font-size: 15px; }
    .feature-item { padding: 6px 12px; min-width: 108px; }
    .feature-item .fname { font-size: 13px; }
    .agent-item { padding: 6px 12px; min-width: 108px; }
    .agent-item .aname { font-size: 13px; }
    .section { padding: 48px 0; }
}
