/* ==========================================================================
   ABOUT PAGE (prefix ab-): hero, big numbers, horizontal flow, trust bento,
   expanding panels, CTA. Loaded after premium.css.
   Animations start from .on (added by data-io in motion.js).
   ========================================================================== */
.ab-hero { position: relative; overflow: hidden; padding: 6.5rem 0 4rem; }
.ab-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; animation: abDrift 16s ease-in-out infinite alternate; }
.ab-blob.b1 { width: 520px; height: 520px; right: -80px; top: -120px; background: #8fb4ff; }
.ab-blob.b2 { width: 420px; height: 420px; right: 28%; bottom: -200px; background: #9be4fb; animation-delay: -6s; }
@keyframes abDrift { to { transform: translate(-60px, 40px) scale(1.12); } }
.ab-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: center; }
.ab-hero-text { text-align: left; }
.ab-hero h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); line-height: 1.02; letter-spacing: -.045em; margin: 1.25rem 0 1.25rem; text-align: left; }
.ab-hero .hero-sub { text-align: left; margin: 0 0 2rem; max-width: 36rem; }
.ab-hero .hero-cta { justify-content: flex-start; }

.ab-stack { position: relative; height: 31rem; }
.ab-c { position: absolute; background: #fff; border-radius: 18px; padding: 1rem 1.15rem; box-shadow: 0 30px 60px -28px rgba(20,22,31,.35), 0 0 0 1px var(--border-stone); animation: abFloat 7s ease-in-out infinite; }
.ab-c-h { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; font-size: .9rem; }
.ab-c-h span { font-family: var(--font-mono); font-size: .7rem; color: var(--text-dark-subtle); display: inline-flex; align-items: center; gap: .4rem; }
.ab-c-h span.ok { color: #0a7a52; background: var(--color-emerald-bg); padding: .2rem .55rem; border-radius: 99px; }
.ab-c-h span.ok em { width: 6px; height: 6px; border-radius: 50%; background: var(--color-emerald); }
.ab-c1 { left: 0; top: 1rem; width: 20rem; transform: rotate(-3deg); }
.ab-c2 { right: 0; top: 7.5rem; width: 17rem; transform: rotate(2.5deg); animation-delay: -2.3s; }
.ab-c3 { left: 18%; bottom: 0; width: 15rem; transform: rotate(-1.5deg); animation-delay: -4.6s; }
@keyframes abFloat { 50% { translate: 0 -12px; } }
.ab-mx { display: grid; grid-template-columns: 3.2rem repeat(4, 1fr); gap: .3rem; font-size: .75rem; text-align: center; }
.ab-mx i { font-style: normal; color: var(--text-dark-subtle); font-family: var(--font-mono); }
.ab-mx u { text-decoration: none; text-align: left; color: var(--text-dark-muted); align-self: center; }
.ab-mx b { background: #EEF3FF; color: var(--color-electric-blue); border-radius: 6px; padding: .35rem 0; font-weight: 600; }
.ab-c2 p { font-size: .8rem; color: var(--text-dark-muted); margin-top: .7rem; }
.ab-meter { height: 8px; border-radius: 99px; background: #EDECE6; overflow: hidden; }
.ab-meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--color-sky-blue), var(--color-electric-blue)); animation: abFill 2.4s .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes abFill { from { width: 0; } }
.ab-big { font-size: 3rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.ab-big small { font-size: 1.5rem; color: var(--color-electric-blue); }
.ab-bars { display: flex; align-items: flex-end; gap: .4rem; height: 3.5rem; margin-top: .9rem; }
.ab-bars i { flex: 1; height: var(--h); background: #DDE5FA; border-radius: 6px 6px 2px 2px; transform-origin: bottom; animation: abGrow 1.2s .5s cubic-bezier(.2,.8,.2,1) both; }
.ab-bars i.m { background: var(--color-electric-blue); }
@keyframes abGrow { from { transform: scaleY(0); } }

/* big numbers */
.ab-num-head { max-width: 46rem; }
.ab-num-head p { margin-top: 1rem; font-size: 1.125rem; color: var(--text-dark-muted); }
.ab-num-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2rem; margin-top: 3.5rem; }
.ab-n { position: relative; padding-top: 1.5rem; }
.ab-n::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--text-dark); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.ab-num.on .ab-n::before { transform: scaleX(1); }
.ab-n:nth-child(2)::before { transition-delay: .12s; }
.ab-n:nth-child(3)::before { transition-delay: .24s; }
.ab-n:nth-child(4)::before { transition-delay: .36s; }
.ab-n b { display: block; font-size: clamp(4rem, 8.5vw, 8.5rem); font-weight: 600; line-height: .95; letter-spacing: -.06em; background: linear-gradient(180deg, var(--text-dark) 30%, var(--color-electric-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ab-n em { display: block; margin-top: 1rem; font-style: normal; font-size: 1.15rem; font-weight: 600; }
.ab-n p { margin-top: .35rem; color: var(--text-dark-muted); font-size: .95rem; max-width: 16rem; }

/* horizontal flow (default = swipeable row; .hs-live = pinned) */
.ab-flow { background: #050506; color: #fff; margin: calc(var(--sec-y) / 2) 0; overflow: hidden; position: relative; }
.ab-flow::before { content: ""; position: absolute; left: 50%; top: -240px; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(31,91,255,.28), transparent); pointer-events: none; }
.ab-flow-track { position: relative; display: flex; gap: 1.5rem; padding: var(--sec-y) clamp(1.25rem, 2.6vw, 2.75rem); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: clamp(1.25rem, 2.6vw, 2.75rem); align-items: stretch; }
.ab-flow-intro { flex: 0 0 min(86vw, 26rem); display: flex; flex-direction: column; justify-content: center; scroll-snap-align: start; }
.ab-flow-intro .eyebrow { color: var(--text-light-subtle); }
.ab-flow-intro h2 { color: #fff; }
.ab-flow-intro p { margin-top: 1rem; color: var(--text-light-muted); font-size: 1.0625rem; }
.ab-hint { display: none; align-items: center; gap: .6rem; margin-top: 2rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-sky-blue); }
.ab-hint i { display: inline-flex; animation: abNudge 1.6s ease-in-out infinite; }
@keyframes abNudge { 50% { transform: translateX(8px); } }
.ab-stage { position: relative; flex: 0 0 min(80vw, 22rem); scroll-snap-align: center; border: 1px solid var(--border-navy); border-radius: 22px; padding: 1.75rem; background: rgba(255,255,255,.03); transition: background .4s, border-color .4s, transform .5s cubic-bezier(.2,.8,.2,1); }
.ab-stage::before { content: ""; position: absolute; left: 1.75rem; top: -1px; width: 3rem; height: 2px; background: var(--color-sky-blue); transform: scaleX(0); transform-origin: left; transition: transform .6s; }
.ab-stage.on { background: rgba(31,91,255,.14); border-color: rgba(88,140,255,.55); transform: translateY(-10px); }
.ab-stage.on::before { transform: scaleX(1); }
.ab-sn { display: block; font-size: 5rem; line-height: 1; font-weight: 600; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); transition: color .4s, -webkit-text-stroke-color .4s; }
.ab-stage.on .ab-sn { color: var(--color-sky-blue); -webkit-text-stroke-color: var(--color-sky-blue); }
.ab-stage h3 { color: #fff; margin-top: 1.5rem; font-size: 1.6rem; }
.ab-stage p { margin-top: .6rem; color: var(--text-light-muted); }
.ab-stage ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.ab-stage li { font-size: .9rem; padding: .55rem .8rem; border-radius: 10px; background: rgba(255,255,255,.06); }
.ab-flow-bar { display: none; }
@media (min-width: 1025px) {
  .hs-live .ab-flow-pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .hs-live .ab-flow-track { overflow: visible; scroll-snap-type: none; width: max-content; padding: 58px clamp(1.25rem, 2.6vw, 2.75rem) 0; will-change: transform; }
  .hs-live .ab-flow-intro { flex-basis: 30rem; padding-right: 3rem; }
  .hs-live .ab-hint { display: inline-flex; }
  .hs-live .ab-stage { flex-basis: 24rem; scroll-snap-align: none; }
  .hs-live .ab-flow-bar { display: block; position: absolute; left: clamp(1.25rem, 2.6vw, 2.75rem); right: clamp(1.25rem, 2.6vw, 2.75rem); bottom: 2.25rem; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
  .hs-live .ab-flow-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--color-sky-blue), var(--color-electric-blue)); transform: scaleX(0); transform-origin: left; }
}

/* trust + AI bento */
.ab-trust { background: #050506; color: #fff; border-radius: 28px; padding: clamp(1.75rem, 4vw, 4rem); position: relative; overflow: hidden; }
.ab-trust::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(31,91,255,.35), transparent); pointer-events: none; }
.ab-trust-head { position: relative; max-width: 46rem; }
.ab-trust-head .eyebrow { color: var(--text-light-subtle); }
.ab-trust h2 { color: #fff; }
.ab-trust-head p { margin-top: 1rem; color: var(--text-light-muted); font-size: 1.0625rem; }
.ab-bento { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.ab-b { border: 1px solid var(--border-navy); border-radius: 20px; padding: 1.75rem; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); min-width: 0; }
.ab-b h3 { color: #fff; font-size: 1.4rem; }
.ab-b > p, .ab-ai-l > p { margin-top: .5rem; color: var(--text-light-muted); font-size: .95rem; }
.ab-b-audit { grid-row: span 2; }
.ab-b-ai { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.ab-log { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin-top: 1.5rem; }
.ab-log div { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "tag b time" "tag s time"; column-gap: .8rem; align-items: center; padding: .8rem 1rem; border-radius: 12px; background: rgba(255,255,255,.05); opacity: 0; transform: translateX(-24px); transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1); }
.ab-log span { grid-area: tag; font-family: var(--font-mono); font-size: .68rem; padding: .25rem .55rem; border-radius: 6px; }
.ab-log b { grid-area: b; font-size: .85rem; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ab-log small { grid-area: s; font-size: .78rem; color: var(--text-light-muted); }
.ab-log time { grid-area: time; font-family: var(--font-mono); font-size: .72rem; color: var(--text-light-subtle); }
.ab-log .t-blue { background: rgba(56,139,255,.2); color: #8fb4ff; }
.ab-log .t-amber { background: rgba(245,158,11,.2); color: #fbbf5a; }
.ab-log .t-green { background: rgba(16,185,129,.2); color: #5ee0b0; }
.ab-bento.on .ab-log div { opacity: 1; transform: none; }
.ab-log div:nth-child(2) { transition-delay: .15s; }
.ab-log div:nth-child(3) { transition-delay: .3s; }
.ab-log div:nth-child(4) { transition-delay: .45s; }
.ab-sw { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .5rem; }
.ab-sw li { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; padding: .5rem .8rem; border-radius: 10px; background: rgba(255,255,255,.05); }
.ab-sw i { position: relative; width: 38px; height: 22px; border-radius: 99px; background: rgba(255,255,255,.18); transition: background .4s .6s; }
.ab-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .4s .6s cubic-bezier(.2,.8,.2,1); }
.ab-bento.on .ab-sw i.on { background: var(--color-electric-blue); }
.ab-bento.on .ab-sw i.on::after { transform: translateX(16px); }
.ab-brs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ab-brs span { font-size: .8rem; padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--border-navy); color: var(--text-light-muted); }
.ab-brs span.on { background: #fff; color: #050506; border-color: #fff; font-weight: 600; }
.ab-pills { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ab-pills li { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; padding: .4rem .8rem; border-radius: 99px; background: rgba(255,255,255,.07); }
.ab-pills svg { width: 14px; height: 14px; color: var(--color-sky-blue); }
.ab-chat { display: grid; gap: .6rem; }
.ab-chat .bub { max-width: 85%; padding: .75rem 1rem; border-radius: 16px; font-size: .9rem; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.ab-chat .u { justify-self: end; background: var(--color-electric-blue); border-bottom-right-radius: 4px; }
.ab-chat .a { background: rgba(255,255,255,.09); border-bottom-left-radius: 4px; }
.ab-chat .a b { display: block; }
.ab-chat .a small { color: var(--text-light-muted); }
.ab-chat .dots { background: rgba(255,255,255,.09); display: flex; gap: 4px; width: fit-content; }
.ab-chat .dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .6; animation: abDot 1s infinite; }
.ab-chat .dots i:nth-child(2) { animation-delay: .15s; }
.ab-chat .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes abDot { 50% { transform: translateY(-4px); opacity: 1; } }
.ab-bento.on .ab-chat .u { opacity: 1; transform: none; transition-delay: .3s; }
.ab-bento.on .ab-chat .dots { animation: abShow 1.6s 1s both; }
.ab-bento.on .ab-chat .a { opacity: 1; transform: none; transition-delay: 2.4s; }
@keyframes abShow { 0% { opacity: 0; } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; height: 0; padding: 0; margin: -.3rem 0; } }

/* expanding panels */
.ab-xp { display: flex; gap: .75rem; height: 32rem; margin-top: 3rem; }
.xp-item { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; text-align: left; padding: 1.5rem; border: 1px solid var(--border-stone); border-radius: 22px; overflow: hidden; cursor: pointer; color: var(--text-dark); font: inherit; background: hsl(calc(215 + var(--i) * 6) 60% calc(97% - var(--i) * 1%)); transition: flex-grow .6s cubic-bezier(.2,.8,.2,1), background .4s, color .4s; }
.xp-item.on { flex-grow: 3.4; background: #050506; color: #fff; border-color: #050506; }
.xp-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--color-electric-blue); box-shadow: 0 0 0 1px var(--border-stone); }
.xp-ico svg { width: 22px; height: 22px; }
.xp-n { position: absolute; right: 1.25rem; top: 1.25rem; font-family: var(--font-mono); font-size: .75rem; color: var(--text-dark-subtle); }
.xp-item h3 { margin-top: auto; font-size: 1.25rem; line-height: 1.15; }
.xp-item p { max-height: 0; opacity: 0; overflow: hidden; margin: 0; font-size: 1rem; line-height: 1.5; color: var(--text-light-muted); transition: max-height .6s, opacity .5s, margin .4s; }
.xp-item.on h3 { font-size: 1.9rem; }
.xp-item.on p { max-height: 8rem; opacity: 1; margin-top: .75rem; transition-delay: .15s; }
.xp-item.on .xp-n { color: var(--text-light-subtle); }
.xp-img { position: absolute; left: 1.5rem; top: 5.5rem; width: calc(100% - 1.5rem); height: calc(100% - 15rem); max-width: none; object-fit: cover; object-position: left top; border-radius: 14px 0 0 14px; box-shadow: 0 0 0 1px var(--border-stone); opacity: .6; filter: saturate(.7); transition: opacity .5s, filter .5s, box-shadow .5s; pointer-events: none; }
.xp-item.on .xp-img { opacity: 1; filter: none; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.xp-item:not(.on):hover .xp-img { opacity: .85; }

/* closing CTA */
.ab-cta { position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: clamp(3.5rem, 8vw, 7rem) 1.5rem; color: #fff; background: linear-gradient(135deg, #1565fc, #4f8bff 55%, #38BDF8); }
.ab-cta > * { position: relative; }
.ab-cta h2 { color: #fff; max-width: 18ch; margin: 0 auto; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.02; }
.ab-cta h2 em { color: #050506; }
.ab-cta p { margin: 1.25rem auto 2rem; max-width: 30rem; font-size: 1.125rem; color: rgba(255,255,255,.88); }
.ab-cta-mq { position: absolute !important; inset: auto 0 -1.2rem 0; overflow: hidden; opacity: .18; }
.ab-cta-mq div { display: flex; gap: 3rem; width: max-content; animation: abMq 28s linear infinite; }
.ab-cta-mq span { font-size: clamp(5rem, 12vw, 11rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 2px #fff; }
@keyframes abMq { to { transform: translateX(-50%); } }

@media (max-width: 1024px) {
  .ab-hero-in { grid-template-columns: minmax(0, 1fr); }
  .ab-stack { height: 27rem; max-width: 34rem; }
  .ab-num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
  .ab-bento, .ab-b-ai { grid-template-columns: minmax(0, 1fr); }
  .ab-b-audit { grid-row: auto; }
  .ab-xp { flex-direction: column; height: auto; }
  .xp-item, .xp-item.on { flex: none; background: #050506; color: #fff; border-color: #050506; padding-top: 5rem; }
  .xp-item h3, .xp-item.on h3 { margin-top: 0; font-size: 1.4rem; }
  .xp-item p { max-height: none; opacity: 1; margin-top: .6rem; }
  .xp-n { color: var(--text-light-subtle); }
  .xp-img { position: static; width: 100%; height: auto; margin-top: 1.25rem; border-radius: 12px; opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .ab-hero { padding-top: 4.5rem; }
  .ab-stack { height: auto; max-width: none; display: grid; gap: 1rem; padding: .5rem 0 1rem; }
  .ab-c { position: relative; inset: auto; width: auto; }
  .ab-c1 { transform: rotate(-1.5deg); margin-right: 1.5rem; }
  .ab-c2 { transform: rotate(1.5deg); margin-left: 1.5rem; }
  .ab-c3 { transform: rotate(-1deg); margin-right: 3rem; }
  .ab-c-h b { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-blob, .ab-c, .ab-cta-mq div, .ab-hint i, .ab-chat .dots i { animation: none; }
  .ab-log div, .ab-chat .bub { opacity: 1; transform: none; transition: none; }
  .ab-chat .dots { display: none; }
  .ab-n::before { transform: none; }
}
