:root {
    --ab-adapt-shell-padding: clamp(1rem, 4vw, 4.5rem);
    --ab-adapt-section-space: clamp(3.5rem, 8vw, 6rem);
    --ab-adapt-card-gap: clamp(1rem, 2vw, 2rem);
    --ab-space-xs: 0.75rem;
    --ab-space-sm: 1rem;
    --ab-space-md: 1.5rem;
    --ab-space-lg: 2rem;
    --ab-space-xl: 3rem;
    --ab-surface-page: oklch(0.985 0.006 255);
    --ab-surface-subtle: oklch(0.972 0.008 255);
    --ab-surface-muted: oklch(0.952 0.01 255);
    --ab-surface-line: oklch(0.908 0.01 255);
    --ab-dark-band: oklch(0.24 0.02 255);
    --ab-dark-surface: oklch(0.3 0.018 255);
    --ab-dark-surface-soft: oklch(0.35 0.016 255);
    --ab-tone-success-soft: oklch(0.95 0.04 162);
    --ab-tone-success-ink: oklch(0.45 0.09 162);
    --ab-tone-success-solid: oklch(0.63 0.13 162);
    --ab-tone-warning-soft: oklch(0.96 0.05 88);
    --ab-tone-warning-ink: oklch(0.56 0.11 88);
    --ab-tone-warning-solid: oklch(0.72 0.15 88);
    --ab-tone-danger-solid: oklch(0.62 0.2 25);
    --ab-tone-on-solid: oklch(0.99 0.01 95);
}

.ab-page-bg {
    background-color: var(--ab-surface-page) !important;
}

.ab-surface-subtle {
    background-color: var(--ab-surface-subtle) !important;
}

.ab-surface-muted {
    background-color: var(--ab-surface-muted) !important;
}

.ab-surface-line,
.ab-track-muted {
    background-color: var(--ab-surface-line) !important;
}

.ab-border-soft {
    border-color: var(--ab-surface-line) !important;
}

.ab-border-success {
    border-color: var(--ab-tone-success-solid) !important;
}

.ab-dark-band {
    background-color: var(--ab-dark-band) !important;
}

.ab-dark-band-overlay {
    background-color: color-mix(in srgb, var(--ab-dark-band) 72%, transparent) !important;
}

.ab-dark-surface {
    background-color: var(--ab-dark-surface) !important;
}

.ab-dark-surface-soft {
    background-color: var(--ab-dark-surface-soft) !important;
}

.ab-chip-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 2.25rem;
    background-color: var(--ab-surface-muted) !important;
    border: 1px solid color-mix(in srgb, var(--ab-surface-line) 92%, white) !important;
    color: oklch(0.38 0.02 255) !important;
    line-height: 1.2;
}

.ab-tone-success {
    background-color: var(--ab-tone-success-soft) !important;
    color: var(--ab-tone-success-ink) !important;
}

.ab-tone-warning {
    background-color: var(--ab-tone-warning-soft) !important;
    color: var(--ab-tone-warning-ink) !important;
}

.ab-chip-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 2.25rem;
    background-color: color-mix(in srgb, var(--ab-tone-success-soft) 88%, white) !important;
    border: 1px solid color-mix(in srgb, var(--ab-tone-success-ink) 18%, white) !important;
    color: color-mix(in srgb, var(--ab-tone-success-ink) 92%, black 8%) !important;
    line-height: 1.2;
}

.ab-badge-success {
    background-color: var(--ab-tone-success-solid) !important;
    color: var(--ab-tone-on-solid) !important;
}

.ab-badge-warning {
    background-color: var(--ab-tone-warning-solid) !important;
    color: var(--ab-tone-on-solid) !important;
}

.ab-text-success {
    color: var(--ab-tone-success-ink) !important;
}

.ab-text-warning {
    color: var(--ab-tone-warning-ink) !important;
}

.ab-dot-danger {
    background-color: var(--ab-tone-danger-solid) !important;
}

.ab-dot-warning {
    background-color: var(--ab-tone-warning-solid) !important;
}

.ab-dot-success {
    background-color: var(--ab-tone-success-solid) !important;
}

.ab-page-shell {
    padding-inline: var(--ab-adapt-shell-padding);
}

.ab-video-modal-frame {
    width: min(100%, 72rem);
    padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.ab-video-modal-close {
    min-width: 44px;
    min-height: 44px;
}

.ab-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ab-hero-actions > * {
    min-height: 44px;
}

.ab-solution-hero {
    min-height: clamp(34rem, 72vh, 42rem);
}

.ab-solution-hero-shell {
    padding-top: clamp(6.5rem, 10vw, 8.25rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
}

.ab-solution-hero-card {
    width: min(100%, 44rem);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.ab-solution-hero-copy {
    max-width: min(100%, 44rem);
}

.ab-home-hero-shell {
    padding-top: clamp(7rem, 12vw, 9rem);
    padding-bottom: clamp(6rem, 10vw, 8rem);
}

.ab-home-hero-dots {
    align-items: center;
    gap: clamp(0.25rem, 1.2vw, 0.75rem);
}

.ab-home-hero-dots-wrap {
    bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.ab-solution-hero-card h1,
.ab-adapt-home-hero .carousel-item h1,
.ab-adapt-hmi-hero h1 {
    text-wrap: balance;
}

.ab-adapt-home-hero .carousel-item h1 {
    width: min(100%, 18em);
    max-width: none;
    white-space: normal;
    text-wrap: wrap;
}

.ab-solution-hero-card p,
.ab-adapt-home-hero .carousel-item p,
.ab-adapt-hmi-hero p {
    max-width: 36rem;
}

.ab-adapt-home-hero .carousel-dot {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.ab-adapt-home-capability {
    align-items: stretch;
}

.ab-solution-grid,
.ab-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--ab-adapt-card-gap);
}

.ab-feature-columns,
.ab-media-card-grid,
.ab-two-column-grid,
.ab-content-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ab-adapt-card-gap);
}

.ab-feature-column {
    display: grid;
    gap: var(--ab-adapt-card-gap);
    align-content: start;
}

.ab-feature-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ab-yitingche-feature-section .ab-feature-columns {
    align-items: stretch;
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

.ab-yitingche-feature-section .ab-feature-column {
    height: 100%;
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.ab-yitingche-feature-section .ab-feature-card {
    height: 100%;
    padding: clamp(1.5rem, 2vw, 1.9rem);
}

.ab-yitingche-feature-section .ab-feature-card > div:last-child {
    display: grid;
    gap: 0.75rem;
    flex: 1 1 auto;
    align-content: start;
}

.ab-yitingche-feature-section .ab-feature-card h3 {
    margin-bottom: 0;
}

.ab-yitingche-feature-section .ab-feature-card p {
    max-width: none;
}

.ab-media-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ab-media-card-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ab-rhythm-grid {
    gap: clamp(var(--ab-space-sm), 2vw, 1.75rem);
    align-items: stretch;
}

.ab-rhythm-grid[class*="ab-rhythm-grid--"] {
    gap: clamp(var(--ab-space-sm), 2vw, 1.75rem);
}

.ab-rhythm-grid > * {
    min-width: 0;
}

.ab-rhythm-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: clamp(0.9rem, 1.3vw, 1.2rem);
    min-height: 100%;
}

.ab-rhythm-card > * {
    min-width: 0;
}

.ab-rhythm-card .feature-icon,
.ab-rhythm-card .icon-box,
.ab-rhythm-card .tech-icon {
    margin-bottom: 0 !important;
}

.ab-rhythm-card h3 {
    line-height: 1.26;
}

.ab-rhythm-card p {
    line-height: 1.74;
}

.ab-rhythm-card--profile .p-6,
.ab-rhythm-card--package > .space-y-4,
.ab-rhythm-card--list ul {
    display: grid;
    gap: 0.85rem;
}

.ab-rhythm-card--list ul {
    margin-top: 0.25rem;
}

.ab-chip-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem 0.8rem;
}

.ab-chip-cluster > * {
    flex: 0 0 auto;
}

.ab-chip-cluster--compact {
    gap: 0.55rem 0.65rem;
}

.ab-chip-cluster--field {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 0.75rem 0.85rem;
    justify-content: start;
    max-width: 32rem;
}

.ab-chip-cluster--brand {
    justify-content: center;
    gap: 0.8rem 1rem;
}

.ab-brand-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.75rem 1.2rem;
    border-radius: 9999px;
    border: 1px solid color-mix(in srgb, var(--ab-surface-line) 84%, white);
    background: rgb(255 255 255 / 0.86);
    box-shadow: 0 14px 36px rgb(15 23 42 / 0.08);
}

.ab-adapt-home-case-grid {
    display: grid;
    gap: var(--ab-adapt-card-gap);
}

.ab-adapt-home-case-card {
    width: 100%;
    height: auto;
    min-height: 15rem;
}

.ab-adapt-home-case-card > p {
    margin-bottom: 1.25rem;
}

.ab-adapt-home-case-card img {
    flex: none;
}

.ab-home-case-card-head {
    align-items: center;
}

.ab-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1rem;
}

.ab-stat-pair {
    gap: 1rem;
    flex-wrap: wrap;
}

.ab-adapt-hmi-hero {
    min-height: auto;
    padding-top: clamp(6.5rem, 12vw, 8.5rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
}

.ab-adapt-hmi-hero-shell {
    gap: clamp(1.5rem, 3vw, 3rem);
}

.ab-adapt-hmi-hero-panel {
    min-height: clamp(18rem, 40vw, 22rem);
}

.ab-adapt-hmi-hero-stage {
    padding: clamp(1.5rem, 3vw, 2rem);
}

.ab-adapt-hmi-feature-grid > .ab-hmi-surface,
.ab-adapt-hmi-tech-block,
.ab-adapt-hmi-workflow-demo {
    gap: clamp(1.25rem, 2vw, 2rem);
}

.ab-adapt-hmi-tech-block {
    align-items: stretch;
}

.ab-adapt-hmi-tech-media {
    min-height: clamp(14rem, 30vw, 18rem);
    height: auto;
}

.ab-adapt-hmi-timeline {
    display: grid;
    gap: 0.875rem;
}

.ab-adapt-hmi-timeline-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.125rem;
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ab-adapt-hmi-timeline-step > .mt-4.text-center {
    margin-top: 0;
    text-align: left;
}

.ab-adapt-hmi-timeline-step > .mt-4.text-center > div:first-child {
    margin-bottom: 0.75rem;
    margin-inline: 0;
}

.ab-adapt-hmi-timeline-connector {
    width: 2px;
    height: 1.75rem;
    margin: -0.1rem 0 0 0.7rem;
    flex-grow: 0;
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.45), rgba(123, 47, 247, 0.45));
}

.ab-adapt-hmi-workflow-demo {
    align-items: stretch;
}

.ab-adapt-hmi-preview-card,
.ab-adapt-hmi-workflow-preview .ab-hmi-surface {
    width: min(100%, 22rem);
}

.ab-adapt-hmi-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 767px) {
    .ab-adapt-home-hero {
        min-height: auto;
    }

    .ab-home-hero-shell {
        padding-top: 6.5rem;
        padding-bottom: 7rem;
    }

    .ab-adapt-home-hero .carousel-item h1 {
        font-size: clamp(2rem, 7vw, 2.75rem);
        line-height: 1.05;
        width: 100%;
        max-width: none;
    }

    .ab-adapt-home-hero .carousel-item p {
        font-size: clamp(1rem, 4.4vw, 1.25rem);
        line-height: 1.7;
    }

    .ab-home-carousel-actions > * {
        flex: 1 1 100%;
        width: 100%;
        min-height: 44px;
    }

    .ab-home-hero-dots-wrap {
        bottom: 1.5rem;
    }

    #solutions,
    #features,
    #technology,
    #workflow,
    .ab-adapt-home-cases,
    .ab-adapt-hmi-cta {
        padding-block: var(--ab-adapt-section-space);
    }

    #solutions h2,
    .ab-adapt-home-cases h2,
    #features h2,
    #technology h2,
    #workflow h2 {
        font-size: clamp(1.875rem, 7vw, 2.5rem);
        line-height: 1.12;
    }

    .ab-solution-grid,
    .ab-feature-grid,
    .ab-adapt-home-case-grid,
    .ab-feature-columns,
    .ab-media-card-grid,
    .ab-two-column-grid,
    .ab-content-split,
    .ab-icon-grid,
    .ab-rhythm-grid {
        gap: 1rem;
    }

    .ab-rhythm-card {
        gap: 0.85rem;
    }

    .ab-adapt-home-capability {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .ab-adapt-home-capability:last-child {
        margin-bottom: 0;
    }

    .ab-adapt-home-capability img {
        max-height: 18rem;
        object-fit: cover;
    }

    .ab-home-case-intro {
        margin-top: 0;
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

    .ab-adapt-home-case-card {
        padding: 1.25rem;
        min-height: 0;
    }

    .ab-home-case-card-head {
        align-items: flex-start;
    }

    .ab-chip-cluster--field,
    .ab-chip-cluster--brand {
        display: flex;
        flex-wrap: wrap;
        max-width: none;
    }

    .ab-adapt-home-case-card h3 {
        font-size: 1.25rem;
        line-height: 1.35;
    }

    .ab-adapt-home-case-card img {
        width: 4.25rem;
        height: 2.5rem;
    }

    .ab-adapt-hmi-hero {
        height: auto;
    }

    .ab-adapt-hmi-hero-shell {
        gap: 2rem;
    }

    .ab-adapt-hmi-hero h1 {
        font-size: clamp(2.25rem, 8vw, 3.2rem);
        line-height: 0.96;
    }

    .ab-adapt-hmi-hero h2 {
        font-size: clamp(1.35rem, 5vw, 1.8rem);
        line-height: 1.2;
    }

    .ab-adapt-hmi-hero p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .ab-adapt-hmi-hero .js-open-video {
        min-height: 44px;
        width: 100%;
        justify-content: center;
    }

    .ab-adapt-hmi-hero-panel {
        max-width: none;
        min-height: 18rem;
        height: auto;
    }

    .ab-adapt-hmi-hero-stage {
        padding: 1.5rem;
    }

    .ab-adapt-hmi-feature-grid > .ab-hmi-surface {
        padding: 1.5rem;
    }

    .ab-adapt-hmi-feature-grid .tech-icon {
        width: 3.75rem;
        height: 3.75rem;
    }

    .ab-adapt-hmi-tech-block {
        margin-bottom: 3rem;
    }

    .ab-adapt-hmi-tech-block:last-child {
        margin-bottom: 0;
    }

    .ab-adapt-hmi-tech-media {
        min-height: 12.5rem;
    }

    .ab-adapt-hmi-tech-block > div:first-child,
    .ab-adapt-hmi-workflow-demo > div {
        width: 100%;
    }

    .ab-adapt-hmi-workflow-demo {
        gap: 1.5rem;
    }

    .ab-adapt-hmi-workflow-preview .ab-hmi-surface {
        width: 100%;
        max-width: none;
    }

    .ab-adapt-hmi-preview-grid {
        grid-template-columns: 1fr;
    }

    .ab-adapt-hmi-preview-wide {
        grid-column: auto;
    }

    .ab-adapt-hmi-preview-controls {
        align-items: flex-start;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .ab-adapt-hmi-cta p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .ab-adapt-home-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .ab-adapt-home-case-card {
        min-height: 100%;
    }

    .ab-chip-cluster--field {
        display: flex;
        flex-wrap: wrap;
        max-width: none;
    }

    .ab-adapt-hmi-hero {
        min-height: max(44rem, calc(100svh - 4rem));
    }

    .ab-adapt-hmi-tech-media {
        min-height: 18rem;
    }
}

@media (min-width: 1024px) {
    .ab-adapt-home-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .ab-rhythm-grid.ab-rhythm-grid--quad {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ab-rhythm-grid.ab-rhythm-grid--triad {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ab-rhythm-grid.ab-rhythm-grid--duo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ab-adapt-hmi-timeline {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 0;
    }

    .ab-adapt-hmi-timeline-step {
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        padding: 0;
        background: transparent;
        border: 0;
    }

    .ab-adapt-hmi-timeline-step > .mt-4.text-center {
        margin-top: 1rem;
        text-align: center;
    }

    .ab-adapt-hmi-timeline-step > .mt-4.text-center > div:first-child {
        margin-inline: auto;
    }

    .ab-adapt-hmi-timeline-connector {
        width: auto;
        height: 2px;
        margin: 0 1rem;
        margin-top: 0.7rem;
        flex: 0.22 0 auto;
        background: linear-gradient(90deg, rgba(0, 240, 255, 0.5), rgba(123, 47, 247, 0.5));
    }
}

@media (min-width: 1280px) {
    .ab-rhythm-grid.ab-rhythm-grid--quad {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .ab-rhythm-grid--quad > :nth-child(1),
    .ab-rhythm-grid--quad > :nth-child(4) {
        grid-column: span 4;
    }

    .ab-rhythm-grid--quad > :nth-child(2),
    .ab-rhythm-grid--quad > :nth-child(3) {
        grid-column: span 2;
    }

    .ab-rhythm-grid.ab-rhythm-grid--triad {
        grid-template-columns: repeat(10, minmax(0, 1fr));
    }

    .ab-rhythm-grid--triad > :nth-child(1),
    .ab-rhythm-grid--triad > :nth-child(2) {
        grid-column: span 3;
    }

    .ab-rhythm-grid--triad > :nth-child(3) {
        grid-column: span 4;
    }

    .ab-rhythm-grid.ab-rhythm-grid--duo {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .ab-rhythm-grid--duo > :first-child {
        grid-column: span 7;
    }

    .ab-rhythm-grid--duo > :last-child {
        grid-column: span 5;
    }
}

@media (max-width: 767px) {
    html,
    body {
        overflow-x: hidden;
    }

    .ab-video-modal-frame {
        padding-inline: 0.75rem;
    }

    .ab-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ab-hero-actions > * {
        width: 100%;
        justify-content: center;
    }

    .ab-home-carousel-actions {
        align-items: flex-start;
    }

    .ab-home-carousel-actions > * {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
    }

    .ab-solution-hero {
        min-height: auto;
    }

    .ab-solution-hero-shell {
        padding-top: 6.5rem;
        padding-bottom: 4rem;
    }

    .ab-solution-hero-card {
        width: 100%;
        max-width: none;
    }

    .ab-solution-hero-card h1 {
        font-size: clamp(2rem, 9vw, 3rem) !important;
        line-height: 1.08 !important;
    }

    .ab-solution-hero-card h2 {
        font-size: clamp(1.25rem, 6vw, 1.8rem) !important;
        line-height: 1.22 !important;
    }

    .ab-solution-hero-card p {
        font-size: 1rem !important;
        line-height: 1.72 !important;
    }

    .ab-feature-columns,
    .ab-media-card-grid,
    .ab-two-column-grid,
    .ab-content-split {
        grid-template-columns: 1fr;
    }

    .ab-feature-card,
    .ab-media-card-head {
        flex-direction: column;
    }

    .ab-feature-card .feature-icon,
    .ab-feature-card .tech-icon {
        margin-right: 0 !important;
        margin-bottom: 0.875rem;
    }

    .ab-yitingche-feature-section .ab-feature-column {
        grid-template-rows: none;
    }

    .ab-icon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .ab-stat-pair {
        justify-content: flex-start;
    }

    .about-hero-screen {
        padding-top: 6.75rem;
        padding-bottom: 3.5rem;
    }

    .about-scroll-indicator {
        display: none;
    }

    .about-hero-screen .space-y-6 {
        gap: 1rem !important;
    }

    .about-hero-screen h1 {
        line-height: 1.18 !important;
    }

    .about-bg-gradient-tech .flex.flex-col.md\:flex-row.justify-center.items-center.gap-10.md\:gap-16 {
        gap: 1.5rem !important;
    }

    .about-bg-gradient-tech .bg-white\/80.px-6.py-3.rounded-full {
        width: 100%;
        justify-content: center;
    }

    #news-list button[data-pin-btn="1"] {
        width: 2.75rem;
        height: 2.75rem;
    }

    #news-list .sm\:w-\[240px\] {
        width: 100%;
    }

    #news-list .h-\[160px\] {
        height: 12rem;
    }

    #contact .whitespace-nowrap {
        white-space: normal !important;
    }
}
