#althea-ai .wrap {
    padding: 0 40px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.althea-ai {
    background: radial-gradient(ellipse at 30% 40%, #0d2a6e 0%, #08174a 40%, #04102e 100%);
    padding: clamp(72px, 9vw, 120px) 0;
    position: relative;
    overflow: hidden;
    color: #fff
}

.althea-ai::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(34, 211, 238, .32) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: float1 16s ease-in-out infinite
}

.althea-ai::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: 15%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(91, 91, 255, .3) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: float2 20s ease-in-out infinite
}

.althea-ai-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%)
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1
    }
    50% {
        opacity: .4
    }
}


/* Traveling wave */

.aai-wave {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none
}

.aai-wave svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 25px rgba(34, 211, 238, .55))
}

.aai-wrap {
    position: relative;
    z-index: 10
}

.aai-head {
    text-align: center;
    margin-bottom: 56px
}

.aai-eyebrow {
   font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    border-radius: 980px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.aai-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ai-cyan);
    box-shadow: 0 0 10px var(--ai-cyan);
    animation: aipulse 1.6s infinite
}

.aai-h {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 16px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto
}

.aai-h em {
    font-style: normal;
    background: linear-gradient(135deg, #a5f3fc 0%, var(--ai-cyan) 40%, var(--ai-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.aai-sub {
    font-size: 17px;
    font-weight: 300;
    color: rgba(255, 255, 255, .65);
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto;
    letter-spacing: .005em
}


/* Layout: orbit on left, agent cards on right */

.aai-stage {
    display: grid;
    grid-template-columns: minmax(340px, 460px) 1fr;
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
    position: relative;
    z-index: 10
}


/* Orbital visualization */

.orbit-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 460px;
    margin: 0 auto
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, .22);
    transform: translate(-50%, -50%);
    pointer-events: none
}

.orbit-r1 {
    width: 50%;
    height: 50%;
    animation: orbitspin 30s linear infinite
}

.orbit-r2 {
    width: 75%;
    height: 75%;
    border-color: rgba(91, 91, 255, .18);
    animation: orbitspin 45s linear infinite reverse
}

.orbit-r3 {
    width: 100%;
    height: 100%;
    border-color: rgba(34, 211, 238, .12);
    animation: orbitspin 60s linear infinite
}

@keyframes orbitspin {
    from {
        transform: translate(-50%, -50%) rotate(0deg)
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

.orbit-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1
}

.orbit-svg line {
    stroke: rgba(34, 211, 238, .3);
    stroke-width: .3;
    stroke-dasharray: 1.5, 1.5;
    animation: dashflow 3s linear infinite
}

@keyframes dashflow {
    to {
        stroke-dashoffset: -12
    }
}

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32%;
    height: 32%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .45) 0%, rgba(91, 91, 255, .25) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 0 70px rgba(34, 211, 238, .45), inset 0 0 50px rgba(91, 91, 255, .35);
    border: 1px solid rgba(34, 211, 238, .45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: corepulse 4s ease-in-out infinite
}

@keyframes corepulse {
    0%,
    100% {
        box-shadow: 0 0 70px rgba(34, 211, 238, .45), inset 0 0 50px rgba(91, 91, 255, .35)
    }
    50% {
        box-shadow: 0 0 100px rgba(34, 211, 238, .65), inset 0 0 70px rgba(91, 91, 255, .55)
    }
}

.orbit-core-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(165, 243, 252, .9);
    margin-bottom: 2px
}

.orbit-core-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(34, 211, 238, .8);
    letter-spacing: -.03em
}

.orbit-node {
    position: absolute;
    width: clamp(70px, 15%, 82px);
    height: clamp(70px, 15%, 82px);
    border-radius: 50%;
    background: rgba(13, 42, 110, .82);
    border: 1px solid rgba(34, 211, 238, .4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    z-index: 4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .5), 0 0 20px rgba(34, 211, 238, .15);
    animation: nodefloat 6s ease-in-out infinite
}

.orbit-node:hover {
    transform: translate(-50%, -50%) scale(1.12);
    border-color: var(--ai-cyan);
    background: rgba(34, 211, 238, .18);
    box-shadow: 0 8px 30px rgba(34, 211, 238, .5), 0 0 0 4px rgba(34, 211, 238, .15)
}

.orbit-node svg {
    width: 24px;
    height: 24px;
    color: var(--ai-cyan);
    margin-bottom: 3px;
    transition: transform .3s
}

.orbit-node img {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
}

.orbit-node:hover svg {
    transform: scale(1.1)
}

.orbit-node-lbl {
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
    letter-spacing: .02em;
    line-height: 1.1;
    text-align: center;
    padding: 0 4px
}

.orbit-node.soon {
    opacity: .6
}

.orbit-node.soon svg[stroke="#22d3ee"] {
    stroke: rgba(165, 243, 252, .55);
}

.orbit-node-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34c759;
    box-shadow: 0 0 0 3px #08174a, 0 0 10px #34c759;
    animation: pulse 2s infinite
}

.orbit-node.soon .orbit-node-badge {
    background: var(--amber);
    box-shadow: 0 0 0 3px #08174a, 0 0 10px var(--amber)
}


/* Positioning 6 nodes around the core */

.orbit-n1 {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s
}

.orbit-n2 {
    top: 25%;
    right: 0;
    transform: translate(50%, -50%);
    animation-delay: .5s
}

.orbit-n3 {
    bottom: 25%;
    right: 0;
    transform: translate(50%, 50%);
    animation-delay: 1s
}

.orbit-n4 {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    animation-delay: 1.5s
}

.orbit-n5 {
    bottom: 25%;
    left: 0;
    transform: translate(-50%, 50%);
    animation-delay: 2s
}

.orbit-n6 {
    top: 25%;
    left: 0;
    transform: translate(-50%, -50%);
    animation-delay: 2.5s
}

@keyframes nodefloat {
    0%,
    100% {
        margin-top: 0
    }
    50% {
        margin-top: -6px
    }
}

.orbit-n1:hover,
.orbit-n4:hover {
    transform: translate(-50%, -50%) scale(1.12)
}

.orbit-n2:hover {
    transform: translate(50%, -50%) scale(1.12)
}

.orbit-n3:hover {
    transform: translate(50%, 50%) scale(1.12)
}

.orbit-n5:hover {
    transform: translate(-50%, 50%) scale(1.12)
}

.orbit-n6:hover {
    transform: translate(-50%, -50%) scale(1.12)
}

.orbit-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ai-cyan);
    box-shadow: 0 0 8px var(--ai-cyan);
    pointer-events: none;
    z-index: 2;
    opacity: 0
}

.orbit-particle.p1 {
    animation: particle1 4s ease-in-out infinite
}

.orbit-particle.p2 {
    animation: particle2 5s ease-in-out infinite .8s
}

.orbit-particle.p3 {
    animation: particle3 4.5s ease-in-out infinite 1.6s;
    background: var(--ai-violet);
    box-shadow: 0 0 8px var(--ai-violet)
}

.orbit-particle.p4 {
    animation: particle4 5.5s ease-in-out infinite 2.4s
}

.orbit-particle.p5 {
    animation: particle5 4.2s ease-in-out infinite 3.2s;
    background: var(--ai-violet);
    box-shadow: 0 0 8px var(--ai-violet)
}

.orbit-particle.p6 {
    animation: particle6 4.8s ease-in-out infinite .4s
}

@keyframes particle1 {
    0% {
        top: 50%;
        left: 50%;
        opacity: 0
    }
    30% {
        opacity: 1
    }
    100% {
        top: 0;
        left: 50%;
        opacity: 0
    }
}

@keyframes particle2 {
    0% {
        top: 50%;
        left: 50%;
        opacity: 0
    }
    30% {
        opacity: 1
    }
    100% {
        top: 25%;
        right: 0;
        left: auto;
        opacity: 0
    }
}

@keyframes particle3 {
    0% {
        top: 50%;
        left: 50%;
        opacity: 0
    }
    30% {
        opacity: 1
    }
    100% {
        bottom: 25%;
        right: 0;
        left: auto;
        top: auto;
        opacity: 0
    }
}

@keyframes particle4 {
    0% {
        top: 50%;
        left: 50%;
        opacity: 0
    }
    30% {
        opacity: 1
    }
    100% {
        bottom: 0;
        left: 50%;
        top: auto;
        opacity: 0
    }
}

@keyframes particle5 {
    0% {
        top: 50%;
        left: 50%;
        opacity: 0
    }
    30% {
        opacity: 1
    }
    100% {
        bottom: 25%;
        left: 0;
        top: auto;
        opacity: 0
    }
}

@keyframes particle6 {
    0% {
        top: 50%;
        left: 50%;
        opacity: 0
    }
    30% {
        opacity: 1
    }
    100% {
        top: 25%;
        left: 0;
        opacity: 0
    }
}


/* Agent cards (right side) */

.aai-agents {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 11
}

.aai-agent {
    background: rgba(8, 23, 74, .78);
    border: 1px solid rgba(34, 211, 238, .32);
    border-radius: 14px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
    text-decoration: none
}

.aai-agent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--ai-cyan), var(--ai-indigo), var(--ai-violet));
    opacity: 0;
    transition: opacity .25s
}

.aai-agent:hover {
    background: rgba(34, 211, 238, .12);
    border-color: rgba(34, 211, 238, .55);
    transform: translateX(4px)
}

.aai-agent:hover::before {
    opacity: 1
}

.aai-agent-ic {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .25), rgba(91, 91, 255, .25));
    border: 1px solid rgba(34, 211, 238, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .25s
}

.aai-agent:hover .aai-agent-ic {
    background: linear-gradient(135deg, var(--ai-cyan), var(--ai-indigo));
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(34, 211, 238, .4)
}

.aai-agent-ic svg {
    width: 20px;
    height: 20px;
    color: var(--ai-cyan);
    transition: color .25s
}

.aai-agent-ic img {
    width: 20px;
    height: 20px;
}

.aai-agent:hover .aai-agent-ic svg {
    color: #fff
}

.aai-agent:hover .aai-agent-ic svg[stroke="#22d3ee"] {
    stroke: #fff;
}

.aai-agent:hover .aai-agent-ic svg[fill="#22d3ee"] {
    fill: #ffffff;
}

.aai-agent-body {
    min-width: 0
}

.aai-agent-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -.01em;
    margin-bottom: 2px
}

.aai-agent-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
    line-height: 1.4;
    font-weight: 400
}

.aai-agent-status {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(52, 199, 89, .2);
    color: #34c759;
    letter-spacing: .04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap
}

.aai-agent-status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34c759;
    box-shadow: 0 0 8px #34c759;
    animation: pulse 2s infinite
}

.aai-agent-status.soon {
    background: rgba(255, 159, 10, .2);
    color: var(--amber)
}

.aai-agent-status.soon::before {
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber)
}

.aai-cta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
    flex-wrap: wrap;
    position: relative;
    z-index: 11
}

.aai-cta {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    background: var(--ss-orange);
    border-radius: 980px;
    padding: 13px 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -.01em;
    transition: all .2s;
    box-shadow: 0 6px 18px rgba(232, 97, 44, 0.26);
    position: relative;
    overflow: hidden
}

.aai-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
    animation: shimmer 3s infinite
}

@keyframes shimmer {
    to {
        left: 100%
    }
}

.aai-cta:hover {
    background: var(--ss-orange-dark);
    /* box-shadow: 0 6px 30px rgba(34, 211, 238, .65); */
    transform: translateY(-2px)
}

.aai-cta-ghost {
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, .85);
    border: 2px solid var(--white);
    border-radius: 980px;
    padding: 12px 26px;
    display: inline-block;
    letter-spacing: -.01em;
    transition: all .2s
}

.aai-cta-ghost:hover {
    border-color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .05);
    color: #fff
}

@media (max-width: 1100px) {
    .aai-stage {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .orbit-wrap {
        max-width: 380px;
    }
}

@media(max-width:980px) {
    .aai-h {
        font-size: 32px
    }
    #althea-ai .aai-h {
        font-size: 28px;
    }
    #althea-ai .wrap {
        padding: 0 20px;
    }
    #althea-ai.sec {
        padding: 56px 0;
    }
}

@media(max-width:680px) {
    .aai-h {
        font-size: 28px
    }
    .orbit-wrap {
        max-width: 320px
    }
    .orbit-node {
        width: 60px;
        height: 60px
    }
    .orbit-node svg {
        width: 20px;
        height: 20px
    }
    .orbit-node-lbl {
        font-size: 7px
    }
    .aai-agent {
        padding: 14px
    }
    .aai-agent-name {
        font-size: 14px
    }
    .aai-agent-desc {
        font-size: 11px
    }
}