/* AI page «Karzaan AI studio» (views/ai/_ai2-*.php, assets/js/ai-studio.js). A dark studio at the top
   (hero and star map), light sections in between, a dark closing prompt. */
.as { --as-ink: #0B0820; --as-violet: #8B6CFF; --as-coral: #EE5D38; --as-mint: #3EE6C1; color: #110E2D; }
.as-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 30px; background: rgba(139, 108, 255, .12); color: #6A4FE0; font-size: 12px; }
.as-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--as-coral); box-shadow: 0 0 0 4px rgba(238, 93, 56, .2); animation: asBlink 1.8s ease-in-out infinite; }
@keyframes asBlink { 50% { opacity: .3; } }
.as-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 16px; font-size: 13px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.as-btn:hover { transform: translateY(-2px); }
.as-btn--main { background: linear-gradient(135deg, #EE5D38, #C8421F); color: #fff; box-shadow: 0 14px 28px -12px rgba(238, 93, 56, .8); }
.as-btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.as-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.as-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.as-head h2 { margin: 14px 0 10px; font-size: clamp(26px, 3vw, 40px); line-height: 1.4; }
.as-head p:last-child { margin: 0; color: #55536B; font-size: 15px; line-height: 2; }
.as-head--dark h2 { color: #fff; }
.as-head--dark p:last-child { color: rgba(255, 255, 255, .72); }
.as-head--dark .as-kicker { background: rgba(255, 255, 255, .1); color: #CFC4FF; }

/* ===== star map ===== */
.as-galaxy { position: relative; margin: 60px 16px 0; padding: 70px 0 90px; border-radius: 40px; color: #fff; background: radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 32% 62%, rgba(255, 255, 255, .8), transparent), radial-gradient(1.4px 1.4px at 58% 14%, #fff, transparent), radial-gradient(1px 1px at 76% 44%, rgba(255, 255, 255, .7), transparent), radial-gradient(1.2px 1.2px at 88% 82%, #fff, transparent), radial-gradient(1px 1px at 44% 88%, rgba(255, 255, 255, .7), transparent), linear-gradient(180deg, #07051A, #0D0930); }
.as-galaxy__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 30px; align-items: start; }
.as-map { position: relative; aspect-ratio: 1000 / 640; }
.as-map__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.as-map__lines line { stroke: rgba(207, 196, 255, .2); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .3s ease; }
.as-map__lines .as-map__ring { stroke-dasharray: 3 5; }
.as-map__group.is-lit line { stroke: rgba(255, 177, 153, .75); }
.as-map__name { position: absolute; padding: 4px 10px; border-radius: 12px; background: rgba(139, 108, 255, .16); color: #CFC4FF; font-size: 11px; white-space: nowrap; transform: translate(-50%, -50%); transition: background-color .3s ease, color .3s ease; pointer-events: none; }
.as-map__name.is-lit { background: rgba(238, 93, 56, .25); color: #FFD7C8; }
.as-star { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #fff; transform: translate(-50%, -50%); cursor: pointer; }
.as-star__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3A2F7A, #1A1440); box-shadow: 0 0 0 1px rgba(207, 196, 255, .3), 0 0 18px rgba(139, 108, 255, .35); animation: asTwinkle 3.6s ease-in-out infinite; animation-delay: var(--d); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .3s ease, box-shadow .3s ease; }
@keyframes asTwinkle { 50% { box-shadow: 0 0 0 1px rgba(207, 196, 255, .5), 0 0 30px rgba(139, 108, 255, .7); } }
.as-star__label { max-width: 130px; color: rgba(255, 255, 255, .7); font-size: 10.5px; line-height: 1.4; text-align: center; opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.as-star:hover .as-star__ico, .as-star:focus-visible .as-star__ico { transform: scale(1.15); }
.as-star:hover .as-star__label, .as-star.is-on .as-star__label, .as-star:focus-visible .as-star__label { opacity: 1; transform: none; }
.as-star.is-on .as-star__ico { background: radial-gradient(circle at 35% 30%, #FF9A6B, #C8421F); box-shadow: 0 0 0 4px rgba(238, 93, 56, .25), 0 0 34px rgba(238, 93, 56, .8); animation: none; }
.as-star.is-on .as-star__label { color: #fff; font-weight: 700; }
.as-star:focus-visible { outline: none; }
.as-panel { position: sticky; top: 110px; }
.as-cap { display: none; padding: 26px; border-radius: 26px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.as-cap.is-on { display: block; animation: asCap .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes asCap { from { opacity: 0; transform: translateY(10px); } }
.as-cap__group { margin: 0 0 10px; color: #CFC4FF; font-size: 12px; }
.as-cap__top { display: flex; align-items: center; gap: 12px; }
.as-cap__ico { display: grid; flex: none; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #EE5D38, #8B6CFF); color: #fff; }
.as-cap h3 { margin: 0; color: #fff; font-size: 19px; line-height: 1.6; }
.as-cap__short { margin: 14px 0 8px; color: #fff; font-size: 14.5px; line-height: 2; }
.as-cap__text { margin: 0 0 12px; color: rgba(255, 255, 255, .7); font-size: 13.5px; line-height: 2.05; }
.as-cap__label { margin: 14px 0 6px; color: #FFB199; font-size: 12px; font-weight: 700; }
.as-cap ul { margin: 0; padding: 0; list-style: none; }
.as-cap li { position: relative; padding: 4px 0; padding-inline-start: 18px; color: rgba(255, 255, 255, .85); font-size: 13px; line-height: 1.9; }
.as-cap li::before { content: ""; position: absolute; top: 13px; inset-inline-start: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--as-mint); box-shadow: 0 0 8px var(--as-mint); }
.as-cap__ex { margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; background: rgba(139, 108, 255, .14); color: rgba(255, 255, 255, .85); font-size: 13px; line-height: 2; }
.as-cap__ex b { display: block; margin-bottom: 2px; color: #CFC4FF; font-size: 12px; }

/* ===== LXP ring ===== */
.as-lxp { padding: 60px 0; }
.as-lxp__box { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 50px; border-radius: 40px; overflow: clip; color: #fff; background: radial-gradient(70% 90% at 85% 90%, #1F7A78, transparent 70%), linear-gradient(150deg, #06262E, #0C4145); }
.as-lxp__copy .as-kicker { background: rgba(255, 255, 255, .12); color: #B8F3E6; }
.as-lxp__copy h2 { margin: 16px 0 12px; font-size: clamp(26px, 3vw, 40px); line-height: 1.4; }
.as-lxp__copy p { margin: 0 0 22px; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 2.1; }
.as-ring { position: relative; justify-self: center; width: min(440px, 100%); aspect-ratio: 1; }
.as-ring::before { content: ""; position: absolute; inset: 13%; border-radius: 50%; border: 1.5px dashed rgba(184, 243, 230, .35); }
.as-ring__core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3EE6C1, #12807C 60%, #0C4145); box-shadow: 0 0 60px rgba(62, 230, 193, .55); transform: translate(-50%, -50%); text-align: center; align-content: center; }
.as-ring__core b { font-size: clamp(22px, 3vw, 34px); line-height: 1; }
.as-ring__core small { margin-top: 6px; color: rgba(255, 255, 255, .85); font-size: 12px; }
.as-ring__orbit { position: absolute; inset: 0; animation: asOrbit 50s linear infinite; }
@keyframes asOrbit { to { transform: rotate(360deg); } }
.as-ring__bot { position: absolute; width: 18%; transform: translate(-50%, -50%); }
.as-ring__bot img { display: block; width: 100%; height: auto; animation: asOrbit 50s linear infinite reverse; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); transform-origin: 50% 50%; }


/* ===== why now: two eras joined by a current of light ===== */
.as-flow { padding: 100px 0 40px; }
.as-why { margin-bottom: 100px; text-align: center; }
.as-why h2 { margin: 0 0 30px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.4; }
.as-why__eras { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; text-align: start; }
.as-era { position: relative; margin: 0; padding: 30px 30px 30px 34px; border-radius: 28px; font-size: 15px; line-height: 2.1; }
html[dir="rtl"] .as-era { padding: 30px 34px 30px 30px; }
.as-era--a { background: #F3F2F8; color: #55536B; }
.as-era--b { background: linear-gradient(135deg, #110C33, #2A1B6B); color: #fff; box-shadow: 0 30px 60px -30px rgba(42, 27, 107, .9); }
.as-era__dot { position: absolute; top: 34px; inset-inline-start: 14px; width: 9px; height: 9px; border-radius: 50%; background: #B9B6CC; }
.as-era--b .as-era__dot { background: #EE5D38; box-shadow: 0 0 0 5px rgba(238, 93, 56, .25), 0 0 14px #EE5D38; }
.as-era__current { position: relative; height: 4px; margin: 0 -6px; border-radius: 4px; background: linear-gradient(90deg, #D9D6E8, #8B6CFF, #EE5D38); overflow: hidden; }
html[dir="rtl"] .as-era__current { background: linear-gradient(270deg, #D9D6E8, #8B6CFF, #EE5D38); }
.as-era__current i { position: absolute; top: -3px; width: 26px; height: 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 14px 4px rgba(255, 255, 255, .9); animation: asCurrent 2.2s ease-in infinite; }
@keyframes asCurrent { from { left: -30px; } to { left: 100%; } }
html[dir="rtl"] .as-era__current i { animation-name: asCurrentRtl; }
@keyframes asCurrentRtl { from { left: 100%; } to { left: -30px; } }

/* ===== an agent through an x-ray ===== */
.as-xray { padding: 22px; border-radius: 34px; background: linear-gradient(160deg, #110C33, #0B0820); color: #fff; box-shadow: 0 40px 80px -40px rgba(11, 8, 32, .9); }
.as-xray__stepper { display: flex; gap: 6px; margin: 0 0 18px; padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, .05); list-style: none; overflow-x: auto; scrollbar-width: none; }
.as-xray__stepper::-webkit-scrollbar { display: none; }
.as-xray__stepper li { flex: 1 0 auto; }
.as-xray__step { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 14px; border: 0; border-radius: 15px; background: none; color: rgba(255, 255, 255, .6); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; transition: background .3s ease, color .3s ease; }
.as-xray__step span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 12px; }
.as-xray__step.is-past { color: rgba(255, 255, 255, .85); }
.as-xray__step.is-past span { background: #3EE6C1; color: #0B0820; }
.as-xray__step.is-on { color: #fff; background: linear-gradient(135deg, rgba(139, 108, 255, .5), rgba(238, 93, 56, .45)); }
.as-xray__step.is-on span { background: #fff; color: #EE5D38; }
.as-xray__board { position: relative; display: grid; grid-template-columns: 26% minmax(0, 1fr) 26%; align-items: center; min-height: 420px; padding: 10px 14px; border-radius: 26px; background: radial-gradient(60% 70% at 50% 50%, rgba(139, 108, 255, .2), transparent 70%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 34px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 34px); direction: ltr; }
.as-xray__beams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.as-beam { fill: none; stroke: rgba(207, 196, 255, .14); stroke-width: 2; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; transition: stroke .35s ease; }
.as-beam.is-on { stroke: #FFB199; filter: drop-shadow(0 0 6px #EE5D38); animation: asBeam .6s linear infinite; }
@keyframes asBeam { to { stroke-dashoffset: -28; } }
.as-xray__customer { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.as-who { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .6); font-size: 12px; direction: rtl; }
html[dir="ltr"] .as-who { direction: ltr; }
.as-bubble { margin: 0; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: #fff; color: #110E2D; font-size: 13px; line-height: 1.8; box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .7); direction: rtl; text-align: start; opacity: .35; transform: scale(.96); transition: opacity .4s ease, transform .4s cubic-bezier(.3, 1.4, .5, 1); }
html[dir="ltr"] .as-bubble { direction: ltr; }
.as-bubble--out { border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, #3EE6C1, #12807C); color: #fff; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.as-bubble--out i { font-style: normal; }
.as-xray[data-stage="0"] .as-bubble--in, .as-xray[data-stage="1"] .as-bubble--in, .as-xray[data-stage="2"] .as-bubble--in, .as-xray[data-stage="3"] .as-bubble--in, .as-xray[data-stage="4"] .as-bubble--in { opacity: 1; transform: none; }
.as-xray[data-stage="4"] .as-bubble--out { opacity: 1; transform: none; }
.as-xray:not([data-stage="4"]) .as-bubble--out { opacity: 0; transform: translateY(10px) scale(.94); }
.as-xray__agent { position: relative; z-index: 1; display: grid; justify-items: center; }
.as-xray__agent img { position: relative; width: 150px; height: auto; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .55)); animation: asFloat 4s ease-in-out infinite; }
@keyframes asFloat { 50% { transform: translateY(-8px); } }
.as-xray__halo { position: absolute; top: 10%; width: 210px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 108, 255, .55), transparent); transition: background .4s ease, transform .4s ease; }
.as-xray[data-stage="1"] .as-xray__halo { background: radial-gradient(closest-side, rgba(255, 177, 153, .7), transparent); transform: scale(1.15); animation: asThink 1s ease-in-out infinite; }
@keyframes asThink { 50% { transform: scale(1.25); } }
.as-xray__plate { width: 170px; height: 26px; margin-top: -14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 108, 255, .8), rgba(139, 108, 255, .1)); box-shadow: 0 0 30px rgba(139, 108, 255, .7); }
.as-xray__plan { position: absolute; top: -6px; left: 50%; margin: 0; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .95); color: #110E2D; list-style: none; font-size: 11.5px; line-height: 1.9; white-space: nowrap; transform: translate(-50%, -100%) scale(.85); opacity: 0; direction: rtl; text-align: start; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .7); transition: opacity .35s ease, transform .35s cubic-bezier(.3, 1.4, .5, 1); }
html[dir="ltr"] .as-xray__plan { direction: ltr; }
.as-xray__plan::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; transform: rotate(45deg); }
.as-xray__plan li::before { content: "◦"; margin-inline-end: 6px; color: #EE5D38; }
.as-xray[data-stage="1"] .as-xray__plan { opacity: 1; transform: translate(-50%, -100%); }
.as-xray__systems { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.as-sys { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .55); font-size: 13px; direction: rtl; transition: background .35s ease, color .35s ease, box-shadow .35s ease, transform .35s ease; }
html[dir="ltr"] .as-sys { direction: ltr; }
.as-sys span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.as-sys.is-on { color: #fff; background: rgba(238, 93, 56, .18); box-shadow: inset 0 0 0 1.5px rgba(255, 177, 153, .7), 0 0 26px rgba(238, 93, 56, .35); transform: scale(1.04); }
.as-sys.is-on span { background: linear-gradient(135deg, #EE5D38, #C8421F); }
.as-sys__stamp { position: absolute; inset-inline-end: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #3EE6C1; color: #0B0820; font-style: normal; font-weight: 800; font-size: 12px; transform: scale(0) rotate(-30deg); transition: transform .35s cubic-bezier(.3, 1.8, .5, 1) .3s; }
.as-sys.is-on .as-sys__stamp { transform: none; }
.as-xray__texts { position: relative; min-height: 96px; margin-top: 18px; padding: 0 8px; }
.as-xray__text { display: none; }
.as-xray__text.is-on { display: block; animation: asCap .4s ease both; }
.as-xray__text h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: #fff; font-size: 18px; }
.as-xray__text h3 span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, #8B6CFF, #EE5D38); font-size: 14px; }
.as-xray__text p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 14px; line-height: 2.05; }

/* ===== the vault ===== */
.as-trust { padding: 90px 0 60px; }
.as-vault-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: center; }
.as-vault { position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 1; }
.as-vault__frame { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4A4560, #1B1830 70%); box-shadow: 0 40px 70px -30px rgba(11, 8, 32, .9), inset 0 0 0 10px #2A2640, inset 0 0 0 14px #5C5778; }
.as-vault__door { position: absolute; inset: 13%; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #EDEBF5, #A9A4C0 75%); box-shadow: inset 0 0 0 6px #C9C5DA, inset 0 0 0 9px #8E89A6, 0 10px 20px rgba(0, 0, 0, .5); }
.as-vault__wheel { position: absolute; inset: 18%; border-radius: 50%; border: 6px solid #6E6990; transition: transform 1.6s cubic-bezier(.6, 0, .2, 1); }
.as-vault__wheel i { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 6px; margin-left: -3px; background: #6E6990; border-radius: 3px; }
.as-vault__wheel i:nth-child(2) { transform: rotate(60deg); }
.as-vault__wheel i:nth-child(3) { transform: rotate(120deg); }
.as-vault__core { position: relative; display: grid; place-items: center; width: 34%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, #8B6CFF, #EE5D38); color: #fff; box-shadow: 0 10px 24px -8px rgba(139, 108, 255, .9); }
.as-vault__bolt { position: absolute; inset: 0; transform: rotate(var(--a)); pointer-events: none; }
/* each bolt sits at the edge of the frame: pulled out while open, slid home when locked */
.as-vault__bolt i { position: absolute; right: 3%; top: 50%; margin-top: -9px; width: 46px; height: 18px; border-radius: 9px; background: linear-gradient(180deg, #D9D6E8, #8E89A6); box-shadow: 0 4px 8px rgba(0, 0, 0, .45); transform: translateX(26px); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1) var(--d), background .3s ease, box-shadow .3s ease; }
.as-vault.is-locked .as-vault__wheel { transform: rotate(270deg); }
.as-vault.is-locked .as-vault__bolt i { transform: none; }
.as-vault__bolt.is-lit i { background: linear-gradient(180deg, #FFB199, #EE5D38); box-shadow: 0 0 18px rgba(238, 93, 56, .8); }
.as-vault__seal { position: absolute; right: 8%; bottom: 8%; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #3EE6C1; color: #0B0820; box-shadow: 0 0 0 6px rgba(62, 230, 193, .25), 0 12px 24px -10px rgba(18, 128, 124, .9); transform: scale(0); transition: transform .45s cubic-bezier(.3, 1.8, .5, 1) 2.3s; }
.as-vault.is-locked .as-vault__seal { transform: none; }
.as-vault__copy h2 { margin: 14px 0 10px; font-size: clamp(26px, 3vw, 38px); line-height: 1.4; }
.as-vault__copy > p { margin: 0 0 18px; color: #55536B; font-size: 15px; line-height: 2.05; }
.as-guards { margin: 0; padding: 0; list-style: none; }
.as-guards li { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #EEEDF3; font-size: 14px; line-height: 1.8; transition: box-shadow .25s ease, transform .25s ease; }
.as-guards__lock { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #F3F0FF; color: #6A4FE0; transition: background .25s ease, color .25s ease; }
.as-guards li.is-done .as-guards__lock { background: #E1FBF4; color: #12807C; }
.as-guards li:hover, .as-guards li.is-lit { box-shadow: 0 0 0 1.5px #EE5D38, 0 14px 26px -16px rgba(238, 93, 56, .6); }
.as-guards li:hover .as-guards__lock, .as-guards li.is-lit .as-guards__lock { background: #EE5D38; color: #fff; }

/* ===== the staircase ===== */
.as-stairs { margin-top: 110px; }
.as-stairs h2 { margin: 0 0 30px; font-size: clamp(26px, 3vw, 38px); text-align: center; }
.as-stairs__track { position: relative; }
.as-stairs ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: end; margin: 0; padding: 0; list-style: none; }
.as-stairs li { display: flex; flex-direction: column; }
.as-stairs__block { position: relative; display: grid; place-items: start center; height: calc(70px + var(--k) * 36px); padding-top: 14px; border-radius: 20px 20px 8px 8px; background: linear-gradient(180deg, color-mix(in srgb, #8B6CFF calc(100% - var(--k) * 15%), #EE5D38), #110C33); box-shadow: 0 24px 40px -24px rgba(17, 14, 45, .8), inset 0 1px 0 rgba(255, 255, 255, .25); color: #fff; }
.as-stairs__block b { font-size: 26px; }
.as-stairs h3 { margin: 14px 0 6px; font-size: 15.5px; line-height: 1.6; text-align: center; }
.as-stairs p { margin: 0; color: #6E6B85; font-size: 13px; line-height: 2; text-align: center; }
/* the robot climbs from step to step (positions set by ai-studio.js) */
.as-stairs__bot { position: absolute; z-index: 2; left: 0; top: 0; width: 58px; height: auto; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35)); transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; }

/* ===== the industries as a rotary dial ===== */
.as-dial { padding: 90px 0 40px; }
.as-dial__box { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 50px; align-items: center; padding: 50px; border-radius: 40px; overflow: clip; background: radial-gradient(60% 70% at 85% 50%, rgba(139, 108, 255, .16), transparent 70%), linear-gradient(160deg, #F7F5FF, #FFF5F0); box-shadow: inset 0 0 0 1px #EEEAF8; }
.as-dial__copy h2 { margin: 14px 0 22px; font-size: clamp(26px, 3vw, 40px); line-height: 1.4; }
.as-dial__info { display: none; }
.as-dial__info.is-on { display: block; animation: asCap .5s cubic-bezier(.2, .8, .2, 1) both; }
.as-dial__info h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; }
.as-dial__info h3 span { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #8B6CFF, #EE5D38); color: #fff; }
.as-dial__info > p { margin: 0 0 18px; color: #3F3C57; font-size: 15px; line-height: 2.1; }
.as-dial__label { margin: 0 0 8px !important; color: #8A8899 !important; font-size: 12px !important; }
.as-dial__caps { display: flex; flex-wrap: wrap; gap: 8px; }
.as-dial__caps a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 16px; background: #fff; color: #4B37B5; font-size: 12.5px; line-height: 1.6; box-shadow: 0 0 0 1px #E6E1FA; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.as-dial__caps a:hover { color: #fff; background: linear-gradient(135deg, #8B6CFF, #EE5D38); box-shadow: 0 12px 24px -12px rgba(139, 108, 255, .9); transform: translateY(-2px); }
.as-wheel { --r: 178px; position: relative; justify-self: center; width: min(460px, 100%); aspect-ratio: 1; }
.as-wheel__ticks { position: absolute; inset: 6%; border-radius: 50%; background: repeating-conic-gradient(rgba(139, 108, 255, .35) 0 .6deg, transparent .6deg 6deg); -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 71%, transparent 72%); mask: radial-gradient(circle, transparent 66%, #000 67%, #000 71%, transparent 72%); animation: asTicks 60s linear infinite; }
@keyframes asTicks { to { transform: rotate(-360deg); } }
.as-wheel::before { content: ""; position: absolute; inset: 11%; border-radius: 50%; border: 1.5px dashed rgba(139, 108, 255, .3); }
.as-wheel__pointer { position: absolute; left: 50%; top: -4px; z-index: 3; width: 0; height: 0; margin-left: -10px; border: 10px solid transparent; border-top: 14px solid #EE5D38; filter: drop-shadow(0 4px 6px rgba(238, 93, 56, .5)); }
.as-wheel__core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 30%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #A890FF, #6A4FE0 55%, #2A1B6B); box-shadow: 0 0 0 10px rgba(139, 108, 255, .1), 0 0 60px rgba(139, 108, 255, .55); transform: translate(-50%, -50%); }
.as-wheel__core i { width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff, #FFB199 60%, transparent 70%); animation: asCore 2.4s ease-in-out infinite; }
@keyframes asCore { 50% { transform: scale(1.35); opacity: .7; } }
.as-wheel__ring { --ring: 0deg; position: absolute; inset: 0; transform: rotate(var(--ring)); transition: transform 1s cubic-bezier(.5, -.1, .2, 1.15); }
.as-wheel__item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; padding: 0; border: 0; background: none; transform: rotate(var(--a)) translateX(var(--r)); cursor: pointer; }
.as-wheel__chip { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 118px; padding: 12px 8px; border-radius: 22px; background: #fff; color: #6A4FE0; box-shadow: 0 16px 30px -18px rgba(17, 14, 45, .6), 0 0 0 1px #EEEAF8; transform: translate(-50%, -50%) rotate(calc(-1 * var(--a) - var(--ring, 0deg))); transition: transform 1s cubic-bezier(.5, -.1, .2, 1.15), background .35s ease, color .35s ease, box-shadow .35s ease; }
.as-wheel__chip b { color: #110E2D; font-size: 11.5px; line-height: 1.5; text-align: center; transition: color .35s ease; }
.as-wheel__item:hover .as-wheel__chip { box-shadow: 0 16px 30px -14px rgba(139, 108, 255, .8), 0 0 0 1.5px #8B6CFF; }
.as-wheel__item.is-on .as-wheel__chip { background: linear-gradient(135deg, #8B6CFF, #EE5D38); color: #fff; box-shadow: 0 0 0 6px rgba(238, 93, 56, .15), 0 22px 40px -16px rgba(238, 93, 56, .8); }
.as-wheel__item.is-on .as-wheel__chip b { color: #fff; }
.as-wheel__item:focus-visible { outline: none; }
.as-wheel__item:focus-visible .as-wheel__chip { box-shadow: 0 0 0 3px #EE5D38; }

/* ===== the newest AI articles: a holographic screen and a live feed ===== */
.as-news { padding: 60px 0; }
.as-news__box { position: relative; isolation: isolate; padding: 44px; border-radius: 40px; overflow: clip; color: #fff; background: radial-gradient(1.2px 1.2px at 14% 22%, #fff, transparent), radial-gradient(1px 1px at 72% 18%, rgba(255, 255, 255, .7), transparent), radial-gradient(1.2px 1.2px at 88% 76%, #fff, transparent), radial-gradient(60% 70% at 10% 0%, rgba(238, 93, 56, .25), transparent 70%), radial-gradient(60% 70% at 90% 100%, rgba(139, 108, 255, .3), transparent 70%), linear-gradient(160deg, #110C33, #07051A); box-shadow: 0 40px 80px -40px rgba(11, 8, 32, .9); }
.as-news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.as-news__head .as-kicker { background: rgba(255, 255, 255, .1); color: #E4DCFF; }
.as-news__head h2 { margin: 14px 0 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.4; }
.as-news__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 34px; align-items: stretch; }
.as-screen { position: relative; min-height: 440px; border-radius: 28px; transform: perspective(1200px) rotateX(var(--sy, 0deg)) rotateY(var(--sx, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.as-screen__border { position: absolute; inset: -2px; z-index: 0; border-radius: 30px; background: conic-gradient(from var(--as-a, 0deg), transparent 0 55%, #8B6CFF, #EE5D38, #3EE6C1, transparent 90%); animation: asBorder 5s linear infinite; }
@property --as-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes asBorder { to { --as-a: 360deg; } }
.as-screen__post { position: absolute; inset: 0; z-index: 1; display: block; overflow: hidden; border-radius: 28px; background: #1A1440; color: #fff; opacity: 0; visibility: hidden; transform: scale(.98); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s .5s; }
.as-screen__post.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.as-screen__img { position: absolute; inset: 0; background: #2A2266 center / cover no-repeat; transform: scale(1.06); transition: transform 6s ease; }
.as-screen__post.is-on .as-screen__img { transform: scale(1); }
.as-screen__post:hover .as-screen__img { transform: scale(1.06); }
.as-screen__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 5, 26, .05) 20%, rgba(7, 5, 26, .75) 60%, rgba(7, 5, 26, .96)); }
.as-screen__scan { position: absolute; left: 0; right: 0; top: -30%; z-index: 1; height: 30%; background: linear-gradient(180deg, transparent, rgba(139, 108, 255, .22) 70%, rgba(255, 255, 255, .5) 98%, transparent); mix-blend-mode: screen; animation: asScan 4.5s linear infinite; pointer-events: none; }
@keyframes asScan { to { top: 100%; } }
.as-screen__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.as-screen__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: rgba(255, 255, 255, .75); font-size: 12px; }
.as-screen__new { padding: 3px 10px; border-radius: 10px; background: #EE5D38; color: #fff; font-size: 11px; box-shadow: 0 0 16px rgba(238, 93, 56, .7); animation: asBlink 1.8s ease-in-out infinite; }
.as-screen__body h3 { margin: 0; font-size: clamp(19px, 2vw, 27px); line-height: 1.55; }
.as-screen__intro { color: rgba(255, 255, 255, .78); font-size: 13.5px; line-height: 2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-screen__go { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 4px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s ease; }
.as-screen__post:hover .as-screen__go { background: #EE5D38; }
.as-feed { position: relative; }
.as-feed__wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.as-feed__wire path { fill: none; stroke: rgba(255, 177, 153, .55); stroke-width: 1.5; stroke-dasharray: 3 6; }
.as-feed__pulse { fill: #FFF1E8; filter: drop-shadow(0 0 5px #EE5D38) drop-shadow(0 0 10px #EE5D38); }
.as-feed ol { position: relative; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.as-feed__item { position: relative; display: grid; grid-template-columns: auto 64px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; background: rgba(255, 255, 255, .05); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; transition: background .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.as-feed__item:hover, .as-feed__item.is-on { background: rgba(139, 108, 255, .18); box-shadow: inset 0 0 0 1.5px rgba(207, 196, 255, .5); transform: translateX(-6px); }
html[dir="ltr"] .as-feed__item:hover, html[dir="ltr"] .as-feed__item.is-on { transform: translateX(6px); }
.as-feed__num { color: rgba(255, 255, 255, .4); font-size: 14px; transition: color .3s ease; }
.as-feed__item.is-on .as-feed__num { color: #FFB199; }
.as-feed__thumb { width: 64px; height: 50px; border-radius: 12px; background: #2A2266 center / cover no-repeat; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .7); }
.as-feed__text { min-width: 0; }
.as-feed__text b { display: -webkit-box; font-size: 13px; line-height: 1.7; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-feed__text small { color: rgba(255, 255, 255, .5); font-size: 11px; }
.as-feed__bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; overflow: hidden; opacity: 0; }
.as-feed__item.is-on .as-feed__bar { opacity: 1; }
.as-feed__bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #8B6CFF, #EE5D38); }
.as-news.is-stopped .as-feed__bar { opacity: 0 !important; }
@media (max-width: 1099px) {
    .as-dial__box, .as-news__grid { grid-template-columns: minmax(0, 1fr); }
    .as-dial__box { padding: 30px 20px; }
    .as-wheel { order: -1; }
    .as-feed__wire { display: none; }
}
@media (max-width: 575px) {
    .as-wheel { --r: 122px; }
    .as-wheel__chip { width: 92px; padding: 8px 6px; }
    .as-wheel__chip b { font-size: 10px; }
    .as-news__box { padding: 26px 16px; border-radius: 28px; }
    .as-news__head { flex-direction: column; align-items: stretch; }
    .as-screen { min-height: 360px; }
}

/* ===== the conversation and the closing prompt ===== */
.as-faq { padding: 60px 0 120px; }
.as-faq__title { margin: 0 0 24px; font-size: clamp(26px, 3vw, 38px); text-align: center; }
.as-faq__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 30px; align-items: start; }
.as-chat { display: flex; flex-direction: column; border-radius: 30px; background: #fff; box-shadow: 0 0 0 1px #EEEDF3, 0 30px 60px -40px rgba(17, 14, 45, .5); overflow: hidden; }
.as-chat__bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #F0EFF5; }
.as-chat__bar img { width: 40px; height: auto; }
.as-chat__bar b { display: block; font-size: 14px; }
.as-chat__bar small { display: flex; align-items: center; gap: 6px; color: #12807C; font-size: 11px; }
.as-chat__bar small i { width: 7px; height: 7px; border-radius: 50%; background: #3EE6C1; animation: asBlink 1.2s ease-in-out infinite; }
.as-chat__log { display: flex; flex-direction: column; gap: 10px; max-height: 420px; min-height: 260px; padding: 18px; overflow-y: auto; background: linear-gradient(180deg, #FAFAFD, #F4F3FA); scroll-behavior: smooth; }
.as-msg { max-width: 86%; margin: 0; padding: 12px 16px; font-size: 14px; line-height: 2; animation: asMsg .4s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes asMsg { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.as-msg--me { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: linear-gradient(135deg, #8B6CFF, #6A4FE0); color: #fff; font-weight: 700; }
html[dir="rtl"] .as-msg--me { align-self: flex-start; border-radius: 20px 20px 20px 6px; }
.as-msg--ai { align-self: flex-start; border-radius: 20px 20px 20px 6px; background: #fff; color: #3F3C57; box-shadow: 0 0 0 1px #EEEDF3; }
html[dir="rtl"] .as-msg--ai { align-self: flex-end; border-radius: 20px 20px 6px 20px; }
.as-msg--typing { display: flex; gap: 5px; padding: 16px 18px; }
.as-msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #B9B6CC; animation: asDot 1s ease-in-out infinite; }
.as-msg--typing i:nth-child(2) { animation-delay: .15s; }
.as-msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes asDot { 40% { transform: translateY(-5px); background: #8B6CFF; } }
.as-chat__ask { padding: 14px 16px 16px; border-top: 1px solid #F0EFF5; }
.as-chat__hint { margin: 0 0 8px; color: #8A8899; font-size: 11.5px; }
.as-chat__qs { display: flex; flex-wrap: wrap; gap: 8px; }
.as-q { padding: 8px 14px; border: 0; border-radius: 16px; background: #F3F0FF; color: #4B37B5; font: inherit; font-size: 12.5px; line-height: 1.7; text-align: start; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.as-q:hover { background: #8B6CFF; color: #fff; transform: translateY(-2px); }
.as-q.is-asked { background: #F4F3F8; color: #A3A1B3; }
.as-chat__all { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.as-final { position: sticky; top: 110px; isolation: isolate; overflow: hidden; padding: 34px; border-radius: 30px; color: #fff; background: linear-gradient(160deg, #110C33, #07051A); box-shadow: 0 34px 70px -34px rgba(11, 8, 32, .9); }
.as-final__glow { position: absolute; inset: -40% -20% auto auto; z-index: -1; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(238, 93, 56, .5), rgba(139, 108, 255, .25), transparent); animation: asGlow 6s ease-in-out infinite alternate; }
@keyframes asGlow { to { transform: translate(-20%, 20%) scale(1.15); } }
.as-final h2 { margin: 0 0 12px; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.5; }
.as-final p { margin: 0 0 22px; color: rgba(255, 255, 255, .75); font-size: 14px; line-height: 2.05; }
.as-final__prompt { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 18px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: #fff; font-size: 14px; transition: box-shadow .25s ease, background-color .25s ease; }
html[dir="rtl"] .as-final__prompt { padding: 8px 18px 8px 8px; }
.as-final__prompt:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px #EE5D38; }
.as-final__mark { color: #EE5D38; font-weight: 800; }
.as-final__text { flex: 1; min-height: 1.8em; line-height: 1.8; }
.as-final__text::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-inline-start: 3px; vertical-align: -.15em; background: #fff; animation: asCaret 1s steps(2) infinite; }
@keyframes asCaret { 50% { opacity: 0; } }
.as-final__send { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, #EE5D38, #C8421F); }
.as-final__cta { display: inline-block; margin-top: 14px; color: #FFB199; font-size: 13px; font-weight: 700; }
.as-final__cta:hover { color: #fff; }
@keyframes asCap { from { opacity: 0; transform: translateY(10px); } }

/* ===== smaller screens ===== */
@media (max-width: 1099px) {
    .as-galaxy__grid, .as-lxp__box, .as-vault-wrap, .as-faq__grid { grid-template-columns: minmax(0, 1fr); }
    .as-panel, .as-final { position: static; }
    .as-why__eras { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .as-era__current { width: 4px; height: 50px; margin: 0 auto; background: linear-gradient(180deg, #D9D6E8, #8B6CFF, #EE5D38) !important; }
    .as-era__current i { display: none; }
    .as-stairs ol { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
    .as-stairs__bot { display: none; }
}
@media (max-width: 767px) {
    .as-galaxy { margin: 40px 10px 0; padding: 40px 0 50px; border-radius: 28px; }
    .as-map { aspect-ratio: auto; display: flex; flex-wrap: wrap; gap: 8px; }
    .as-map__lines, .as-map__name { display: none; }
    .as-star { position: static; flex-direction: row; transform: none; padding: 6px 12px 6px 6px; border-radius: 30px; background: rgba(255, 255, 255, .06); }
    html[dir="rtl"] .as-star { padding: 6px 6px 6px 12px; }
    .as-star__ico { width: 32px; height: 32px; }
    .as-star__label { max-width: none; opacity: 1; transform: none; font-size: 12px; }
    .as-lxp__box { padding: 26px 20px; border-radius: 28px; }
    .as-xray { padding: 14px; border-radius: 26px; }
    .as-xray__board { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
    .as-xray__beams { display: none; }
    .as-xray__systems { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .as-sys { flex: 1 1 40%; }
    .as-xray__plan { white-space: normal; width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
    .as *, .as *::before, .as *::after { animation: none !important; transition: none !important; }
}
