.home-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    place-items: center;
    min-height: 460px;
    background: #ffffff;
    text-align: center;
    height: 100vh;
    --accent-a: #4f46e5;
    --accent-b: #1ec9a2;
}

.home-banner::before {
    content: "";
    position: absolute;
    inset: -10%;
    z-index: -3;
    background: radial-gradient(60% 70% at 100% 78%, #2196F3 0%, rgba(20, 224, 160, 0) 62%), radial-gradient(20% 95% at 96% 24%, #342FD6 0%, rgba(47, 214, 198, 0) 60%), radial-gradient(52% 62% at 2% 96%, #FF5722 0%, rgba(139, 92, 246, 0) 62%), radial-gradient(52% 100% at -7% 30%, #00BCD4 0%, rgba(139, 92, 246, 0) 62%), radial-gradient(70% 127% at 45% 125%, #ffc107ba 0%, rgba(185, 168, 245, 0) 60%), radial-gradient(58% 62% at 50% 45%, #FFFFFF 32%, rgba(255, 255, 255, 0) 72%);
}

.home-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .34;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.decor {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
}

.decor .chip-a {
    fill: var(--accent-a);
    transition: fill .8s ease;
}

.decor .chip-b {
    fill: var(--accent-b);
    transition: fill .8s ease;
}

.decor .badge {
    fill: none;
    stroke: var(--accent-b);
    stroke-width: 2.4;
    opacity: .45;
    transition: stroke .8s ease;
}

.slide[data-theme="1"] {
    /* Conversational AI — signature blue to teal */
    --h1a: #2f7fd0;
    --h1b: #21bcc2;
    --h2a: #4f46e5;
    --h2b: #1ec9a2;
    --ca: #7b3ff2;
    --cb: #16d08a;
}

.slide[data-theme="2"] {
    /* Visual Query Builder — indigo to magenta */
    --h1a: #5b3fd6;
    --h1b: #b13ce0;
    --h2a: #7b2ff7;
    --h2b: #e0489b;
    --ca: #6d28d9;
    --cb: #e0489b;
}

.slide[data-theme="3"] {
    /* Audio Intelligence — deep teal to spring green */
    --h1a: #0d8f9c;
    --h1b: #22c55e;
    --h2a: #0e9f8e;
    --h2b: #65c60d;
    --ca: #0d8f9c;
    --cb: #5bbb0c;
}

.slide[data-theme="4"] {
    /* Governance — navy to cyan */
    --h1a: #1e3a8a;
    --h1b: #2f7fd0;
    --h2a: #1d4ed8;
    --h2b: #06b6d4;
    --ca: #1e3a8a;
    --cb: #06b6d4;
}

.slide[data-theme="5"] {
    /* Document Processing — ember to rose */
    --h1a: #e05a0c;
    --h1b: #ef3d6b;
    --h2a: #c2410c;
    --h2b: #d61f7a;
    --ca: #e05a0c;
    --cb: #d61f7a;
}

.slide[data-theme="6"] {
    /* Agent Orchestration — violet to sky */
    --h1a: #6d28d9;
    --h1b: #2563eb;
    --h2a: #8b3cf6;
    --h2b: #0891b2;
    --ca: #6d28d9;
    --cb: #0891b2;
}

.home-banner[data-theme="1"] {
    --accent-a: #2f7fd0;
    --accent-b: #21bcc2;
}

.home-banner[data-theme="2"] {
    --accent-a: #7b2ff7;
    --accent-b: #e0489b;
}

.home-banner[data-theme="3"] {
    --accent-a: #0d8f9c;
    --accent-b: #22c55e;
}

.home-banner[data-theme="4"] {
    --accent-a: #1d4ed8;
    --accent-b: #06b6d4;
}

.home-banner[data-theme="5"] {
    --accent-a: #e05a0c;
    --accent-b: #d61f7a;
}

.home-banner[data-theme="6"] {
    --accent-a: #6d28d9;
    --accent-b: #0891b2;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.viewport {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
}

.viewport.is-dragging {
    cursor: grabbing;
}

.track {
    display: flex;
    will-change: transform;
    transition: transform .65s cubic-bezier(.4, 0, .2, 1);
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 4vw 6vw;
    -webkit-user-select: none;
    user-select: none;
}

.slide__inner {
    max-width: 62rem;
    margin: 0 auto;
}

.slide h1,
.slide p,
.slide .cta {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
}

.slide.is-active h1,
.slide.is-active p,
.slide.is-active .cta {
    opacity: 1;
    transform: none;
}

.slide.is-active h1 {
    transition-delay: .08s;
}

.slide.is-active p {
    transition-delay: .16s;
}

.slide.is-active .cta {
    transition-delay: .24s;
}

.slide h1 {
    margin: 0;
    font-size: 70px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.015em;
}

.slide h1 span {
    display: block;
    background-clip: text;
    -webkit-background-clip: text;
    color: #000000;
}

.line-1 {
    background-image: linear-gradient(97deg, var(--h1a) 0%, var(--h1b) 100%);
}

.line-2 {
    background-image: linear-gradient(97deg, var(--h2a) 0%, var(--h2b) 100%);
}

.slide p {
    margin: clamp(1rem, 2vw, 1.6rem) auto 0;
    max-width: 42em;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    color: #111318;
}

.cta {
    display: inline-block;
    margin-top: clamp(1.4rem, 3vw, 2.6rem);
    padding: 7px 20px;
    background: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, opacity .5s ease;
}

.cta span {
    background-image: linear-gradient(95deg, var(--ca) 0%, var(--cb) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 16px;
}

.slide.is-active .cta:hover,
.slide.is-active .cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 20, 40, .28);
}

.cta:focus-visible {
    outline: 3px solid var(--accent-a);
    outline-offset: 3px;
}

/* ---------- arrows ---------- */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(17, 19, 24, .14);
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(6px);
    color: #111318;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, color .8s ease;
}

.nav:hover {
    background: #ffffff;
    border-color: rgba(17, 19, 24, .3);
    color: var(--accent-a);
}

.nav:focus-visible {
    outline: 3px solid var(--accent-a);
    outline-offset: 3px;
}

.nav--prev {
    left: clamp(12px, 3vw, 48px);
}

.nav--next {
    right: clamp(12px, 3vw, 48px);
}

.nav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- dots ---------- */
.dots {
    position: absolute;
    left: 50%;
    bottom: clamp(24px, 5vh, 56px);
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 19, 24, .22);
    cursor: pointer;
    transition: width .3s ease, background .3s ease, border-radius .3s ease;
}

.dot[aria-selected="true"] {
    width: 30px;
    border-radius: 6px;
    background: linear-gradient(95deg, var(--accent-a), var(--accent-b));
}

.dot:focus-visible {
    outline: 3px solid var(--accent-a);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .slide h1 {
        font-size: 44px;
    }
}

@media (max-width: 600px) {
    .home-banner {
        height: auto;
        min-height: 88vh;
    }

    .slide {
        padding: 22vh 8vw 18vh;
    }

    .slide h1 {
        font-size: 32px;
    }

    .nav {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .track {
        transition: none;
    }

    .cta,
    .slide h1,
    .slide p {
        transition: none;
    }

    .slide h1,
    .slide p,
    .slide .cta {
        opacity: 1;
        transform: none;
    }
}