/* ==========================================================
   Home page — Apple-style hero, live "studio" visual, scroll effects.
   Loaded only on index.php (after site.css). Respects prefers-reduced-motion.
   ========================================================== */

/* ---------- Hero ---------- */
.ah-hero { position: relative; overflow: hidden; background: #fbfbfd; padding: calc(var(--header-h) + 40px) 0 80px; }
.ah-bg { position: absolute; inset: 0; pointer-events: none; }
.ah-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.ah-glow.g1 { width: 620px; height: 620px; right: -140px; top: -160px; background: radial-gradient(circle, rgba(var(--brand-rgb), .45), transparent 65%); }
.ah-glow.g2 { width: 520px; height: 520px; left: -200px; bottom: -220px; background: radial-gradient(circle, rgba(var(--accent-rgb), .35), transparent 65%); }
.ah-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(11, 16, 32, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 16, 32, .045) 1px, transparent 1px);
    background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 60% 40%, #000 15%, transparent 70%); }
.ah-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.ah-pill { display: inline-flex; max-width: 100%; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 22px; }
.ah-pill .dot { width: 22px; height: 22px; border-radius: 50%; background: rgba(var(--accent-rgb), .18); display: grid; place-items: center; }
.ah-pill .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ahPing 1.8s infinite; }
@keyframes ahPing { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); } }
.ah-title { font-size: clamp(40px, 4.9vw, 66px); line-height: 1.02; letter-spacing: -.04em; color: var(--ink); margin-bottom: 18px; font-weight: 800; }
.ah-rotate { font-size: clamp(18px, 2.1vw, 24px); font-weight: 700; color: var(--ink-2); margin-bottom: 14px; min-height: 1.5em; }
.ah-word { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: opacity .35s ease, transform .35s ease, filter .35s ease; }
.ah-word.out { opacity: 0; transform: translateY(10px); filter: blur(4px); }
.ah-caret { display: inline-block; width: 2px; height: 1.05em; background: var(--brand); margin-left: 4px; vertical-align: -.15em; animation: ahBlink 1s steps(1) infinite; }
@keyframes ahBlink { 50% { opacity: 0; } }
.ah-sub { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 560px; margin-bottom: 26px; }
.ah-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.ah-assure { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ah-assure li { display: inline-flex; align-items: center; gap: 6px; }
.ah-assure .bi { color: #10b981; }
.ah-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 600px; }
.ah-stats strong { display: block; font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; }
.ah-stats span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 4px; }

/* ---------- Studio (right side) ---------- */
.ah-stage { position: relative; padding-top: 30px; }
.ah-device { position: relative; border-radius: 24px; background: #0c0e1f; box-shadow: 0 40px 90px rgba(16, 20, 60, .28), 0 0 0 1px rgba(255, 255, 255, .06) inset;
    overflow: hidden; transform: perspective(1400px) rotateY(var(--ry, -6deg)) rotateX(var(--rx, 3deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.ah-device-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ah-device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.ah-device-bar i:nth-child(2) { background: #febc2e; }
.ah-device-bar i:nth-child(3) { background: #28c840; }
.ah-device-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: #8d92b8; transition: opacity .3s; }
.ah-scenes { position: relative; height: 390px; }
.ah-scene { position: absolute; inset: 0; padding: 20px 22px; opacity: 0; transform: translateX(40px) scale(.96); filter: blur(6px); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1), filter .45s ease; pointer-events: none; }
.ah-scene.is-active { opacity: 1; transform: none; filter: none; }

/* 1 · code */
.ah-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.ah-tabs span { font-family: var(--mono); font-size: 11.5px; color: #8d92b8; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.ah-tabs span.on { color: #fff; background: rgba(var(--brand-rgb), .35); }
.ah-code { margin: 0; font-family: var(--mono); font-size: 13.5px; line-height: 2; color: #c9cdf2; white-space: pre-wrap; overflow-wrap: anywhere; }
.ah-code .ln { display: block; }
.ah-scene.is-active .ah-code .ln { animation: ahType .45s steps(18) both; animation-delay: calc(var(--i) * .22s); }
@keyframes ahType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ah-code .c { color: #6c7299; } .ah-code .k { color: #c792ea; } .ah-code .f { color: #82aaff; } .ah-code .s { color: #c3e88d; } .ah-code .n { color: #f78c6c; }

/* 2 · design */
.ah-canvas { position: relative; height: 100%; border-radius: 16px; background: #13162c; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 16px 16px; }
.ah-swatches { position: absolute; left: 18px; top: 18px; display: flex; gap: 8px; }
.ah-swatches span { width: 26px; height: 26px; border-radius: 8px; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
.ah-scene.is-active .ah-swatches span { animation: ahPop .4s both; }
.ah-swatches span:nth-child(2) { animation-delay: .08s !important; } .ah-swatches span:nth-child(3) { animation-delay: .16s !important; }
.ah-swatches span:nth-child(4) { animation-delay: .24s !important; } .ah-swatches span:nth-child(5) { animation-delay: .32s !important; }
@keyframes ahPop { from { transform: scale(0); } 70% { transform: scale(1.15); } to { transform: scale(1); } }
.ah-frame { position: absolute; border-radius: 14px; background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }
.ah-frame b { display: block; height: 58px; border-radius: 10px; background: var(--grad); }
.ah-frame i { display: block; height: 9px; border-radius: 6px; background: #e6e8f2; }
.ah-frame i + i { width: 70%; }
.ah-frame em { display: block; align-self: flex-start; width: 84px; height: 26px; border-radius: 999px; background: var(--brand); }
.ah-frame.f1 { left: 18px; top: 66px; width: 46%; }
.ah-frame.f2 { right: 18px; top: 110px; width: 38%; }
.ah-frame.f2 b { background: linear-gradient(135deg, #ff8a3d, #ff5f7e); height: 44px; }
.ah-scene.is-active .ah-frame.f1 { animation: ahSlide .55s .2s both; }
.ah-scene.is-active .ah-frame.f2 { animation: ahSlide .55s .45s both; }
@keyframes ahSlide { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.ah-type { position: absolute; left: 22px; bottom: 20px; color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.ah-type small { display: block; font-size: 11px; font-weight: 600; color: #8d92b8; letter-spacing: 0; }
.ah-cursor { position: absolute; left: 30%; top: 60%; display: flex; align-items: flex-start; gap: 4px; color: #ff5f7e; }
.ah-cursor .bi { font-size: 18px; transform: scaleX(-1) rotate(-10deg); }
.ah-cursor small { background: #ff5f7e; color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin-top: 14px; }
.ah-scene.is-active .ah-cursor { animation: ahCursor 1.8s ease-in-out both; }
@keyframes ahCursor { 0% { left: 30%; top: 70%; } 50% { left: 62%; top: 34%; } 100% { left: 56%; top: 52%; } }

/* 3 · mobile app */
.ah-scene[data-scene="app"] { display: flex; align-items: center; justify-content: center; gap: 22px; }
.ah-phone { position: relative; width: 196px; height: 350px; border-radius: 34px; background: #fff; border: 7px solid #1b1e33; padding: 26px 12px 12px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.ah-notch { position: absolute; top: 6px; left: 50%; width: 70px; height: 16px; border-radius: 999px; background: #1b1e33; transform: translateX(-50%); }
.ah-app-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; color: var(--ink); }
.ah-app-card { border-radius: 14px; padding: 12px; background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.ah-app-card small { display: block; font-size: 10.5px; opacity: .85; }
.ah-app-card b { font-size: 20px; letter-spacing: -.02em; }
.ah-spark { position: absolute; right: 10px; bottom: 12px; width: 60px; height: 22px; border-bottom: 2px solid rgba(255, 255, 255, .8); border-right: 2px solid rgba(255, 255, 255, .8); transform: skewX(-25deg); opacity: .7; }
.ah-app-row { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 11px; background: #f4f5fb; font-size: 12px; }
.ah-app-row .bi { color: var(--brand); }
.ah-app-row span { flex: 1; height: 7px; border-radius: 5px; background: #dfe2ef; }
.ah-app-row em { font-style: normal; font-weight: 700; font-size: 10.5px; color: #0a9474; }
.ah-app-nav { margin-top: auto; display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid #eef0f6; color: #9aa0bd; }
.ah-app-nav .bi-house-fill { color: var(--brand); }
.ah-scene.is-active .ah-app-head, .ah-scene.is-active .ah-app-card, .ah-scene.is-active .ah-app-row, .ah-scene.is-active .ah-app-nav { animation: ahSlide .45s both; }
.ah-scene.is-active .ah-app-card { animation-delay: .12s; } .ah-scene.is-active .ah-app-row:nth-child(4) { animation-delay: .24s; }
.ah-scene.is-active .ah-app-row:nth-child(5) { animation-delay: .34s; } .ah-scene.is-active .ah-app-row:nth-child(6) { animation-delay: .44s; }
.ah-scene.is-active .ah-app-nav { animation-delay: .54s; }
.ah-badges { display: flex; flex-direction: column; gap: 10px; }
.ah-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; font-size: 13px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); white-space: nowrap; }
.ah-scene.is-active .ah-badges span { animation: ahPop .45s .6s both; }
.ah-scene.is-active .ah-badges span + span { animation-delay: .75s; }

/* 4 · dashboard */
.ah-dash { height: 100%; display: flex; flex-direction: column; gap: 16px; }
.ah-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ah-kpis div { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.ah-kpis small { display: block; font-size: 11px; color: #8d92b8; }
.ah-kpis b { display: block; color: #fff; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.ah-kpis em { font-style: normal; font-size: 11px; font-weight: 700; color: #3ddc97; }
.ah-bars { flex: 1; display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.ah-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand), rgba(var(--brand-rgb), .35)); transform-origin: bottom; }
.ah-scene.is-active .ah-bars span { animation: ahGrow .6s cubic-bezier(.2, .8, .2, 1) both; }
.ah-bars span:nth-child(2) { animation-delay: .05s !important; } .ah-bars span:nth-child(3) { animation-delay: .1s !important; } .ah-bars span:nth-child(4) { animation-delay: .15s !important; }
.ah-bars span:nth-child(5) { animation-delay: .2s !important; } .ah-bars span:nth-child(6) { animation-delay: .25s !important; } .ah-bars span:nth-child(7) { animation-delay: .3s !important; }
.ah-bars span:nth-child(8) { animation-delay: .35s !important; } .ah-bars span:nth-child(9) { animation-delay: .4s !important; } .ah-bars span:nth-child(10) { animation-delay: .45s !important; }
@keyframes ahGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ah-dash-foot { display: flex; justify-content: space-between; font-size: 12px; color: #8d92b8; }
.ah-dash-foot .bi { color: #3ddc97; font-size: 8px; vertical-align: 2px; }

/* 5 · AI chat */
.ah-chat { display: flex; flex-direction: column; gap: 10px; height: 100%; justify-content: center; }
.ah-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.ah-msg.in { align-self: flex-end; background: #25d366; color: #062b16; border-bottom-right-radius: 4px; }
.ah-msg.out { align-self: flex-start; background: rgba(255, 255, 255, .08); color: #e6e8ff; border-bottom-left-radius: 4px; }
.ah-msg.out .bi { color: var(--accent); margin-right: 4px; }
.ah-typing { display: flex; gap: 4px; padding: 10px 14px; align-self: flex-start; background: rgba(255, 255, 255, .06); border-radius: 14px; }
.ah-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8d92b8; animation: ahDot 1s infinite; }
.ah-typing i:nth-child(2) { animation-delay: .15s; } .ah-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ahDot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }
.ah-scene.is-active .ah-msg { animation: ahSlide .4s both; }
.ah-scene.is-active .ah-msg:nth-child(2) { animation-delay: .35s; } .ah-scene.is-active .ah-msg:nth-child(3) { animation-delay: .7s; } .ah-scene.is-active .ah-msg:nth-child(4) { animation-delay: 1.05s; }

/* 6 · launch */
.ah-term { font-family: var(--mono); font-size: 13.5px; color: #c9cdf2; display: flex; flex-direction: column; gap: 14px; justify-content: center; height: 100%; }
.ah-term .p { color: #3ddc97; margin-right: 6px; }
.ah-term .ok .bi { color: #3ddc97; margin-right: 6px; }
.ah-term .big { font-family: var(--font); font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.02em; margin-top: 8px; }
.ah-term .big .bi { color: #ffb86b; }
.ah-scene.is-active .ah-term > div { animation: ahSlide .35s both; }
.ah-scene.is-active .ah-term > div:nth-child(2) { animation-delay: .3s; } .ah-scene.is-active .ah-term > div:nth-child(3) { animation-delay: .55s; }
.ah-scene.is-active .ah-term > div:nth-child(4) { animation-delay: .8s; } .ah-scene.is-active .ah-term > div:nth-child(5) { animation: ahPop .5s 1.05s both; }

/* step switcher under the device */
.ah-steps { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.ah-step { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.ah-step:hover { color: var(--ink); border-color: rgba(var(--brand-rgb), .4); }
.ah-step.is-active { color: var(--ink); border-color: rgba(var(--brand-rgb), .5); background: rgba(var(--brand-rgb), .06); }
.ah-step em { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brand); }
.ah-step.is-active em { animation: ahProgress var(--int, 2s) linear both; }
.ah-stage.paused .ah-step.is-active em { animation-play-state: paused; }
@keyframes ahProgress { to { width: 100%; } }

/* floating tech chips */
.ah-chips span { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 700; font-size: 12.5px; color: var(--ink); white-space: nowrap; animation: ahFloat 6s ease-in-out infinite; z-index: 2; }
.ah-chips .bi { color: var(--brand); font-size: 14px; }
.ah-chips .c1 { top: 12px; left: 8%; } .ah-chips .c2 { top: 16%; right: -26px; animation-delay: -1s; } .ah-chips .c3 { top: 46%; left: -34px; animation-delay: -2s; }
.ah-chips .c4 { bottom: 24%; right: -30px; animation-delay: -3s; } .ah-chips .c5 { bottom: 64px; left: 4%; animation-delay: -4s; } .ah-chips .c6 { top: 16px; right: 18%; animation-delay: -5s; }
.ah-chips .c3 .bi { color: #3ddc84; } .ah-chips .c4 .bi { color: #111; } .ah-chips .c1 .bi { color: #e0b100; } .ah-chips .c5 .bi { color: #2965f1; }
@keyframes ahFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ah-scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid rgba(11, 16, 32, .25); border-radius: 16px; transform: translateX(-50%); }
.ah-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: ahWheel 1.6s infinite; }
@keyframes ahWheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Statement: words light up while scrolling ---------- */
.ah-statement { padding: 120px 0 90px; background: #fff; }
.ah-statement-text { max-width: 980px; margin: 0 auto; text-align: center; font-size: clamp(28px, 4.2vw, 54px); line-height: 1.18; font-weight: 800; letter-spacing: -.035em; color: #d2d4e0; }
.ah-statement-text .w { transition: color .35s ease; }
.ah-statement-text .w.on { color: var(--ink); }
.ah-statement-text .ah-hl .w.on { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Motion for the rest of the home page ---------- */
.reveal { filter: blur(6px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1), filter .8s ease; }
.reveal.in { filter: none; }
.service-card, .work-card, .feature, .model-card { position: relative; }
.service-card::after, .work-card::after, .feature::after, .model-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--brand-rgb), .10), transparent 45%);
}
.service-card:hover::after, .work-card:hover::after, .feature:hover::after, .model-card:hover::after { opacity: 1; }
.feature { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .25); }
[data-scroll-scale] { transform: perspective(1600px) rotateX(var(--sx, 0deg)) scale(var(--ss, 1)); transform-origin: center top; transition: transform .1s linear; will-change: transform; }
.tech-chip { transition: transform .2s ease, border-color .2s ease; }
.tech-chip:hover { transform: translateY(-3px); }

/* ---------- What we build (interactive showcase) ---------- */
.wb-section { background: linear-gradient(180deg, #fff 0%, #f7f6ff 100%); overflow: hidden; }
.wb-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.wb-tab { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; transition: color .2s, border-color .2s, box-shadow .2s, background .2s; }
.wb-tab .bi { font-size: 16px; }
.wb-tab:hover { color: var(--ink); border-color: rgba(var(--brand-rgb), .35); }
.wb-tab.is-active { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: 0 10px 24px rgba(11, 16, 32, .18); }
.wb-tab em { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.wb-tab.is-active em { animation: scProgress var(--sc-int, 5s) linear both; }
[data-showcase].paused .wb-tab.is-active em { animation-play-state: paused; }
@keyframes scProgress { from { width: 0; } to { width: 100%; } }
.wb-panels { position: relative; display: grid; }
.wb-panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.wb-panel.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.wb-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.wb-copy h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 12px 0 14px; }
.wb-copy p { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.wb-copy ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.wb-copy li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink-2); }
.wb-copy li .bi { color: #10b981; font-size: 18px; }
.wb-panel.is-active .wb-copy > * { animation: ahSlide .55s cubic-bezier(.2, .8, .2, 1) both; }
.wb-panel.is-active .wb-copy > :nth-child(2) { animation-delay: .06s; } .wb-panel.is-active .wb-copy > :nth-child(3) { animation-delay: .12s; }
.wb-panel.is-active .wb-copy > :nth-child(4) { animation-delay: .18s; } .wb-panel.is-active .wb-copy > :nth-child(5) { animation-delay: .24s; }
.wb-visual { position: relative; padding: 28px 30px 34px 36px; }
.wb-visual > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.wb-panel.is-active .wb-visual > img { animation: wbZoom 5.5s ease-out both; }
@keyframes wbZoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.wb-card { position: absolute; display: flex; gap: 11px; align-items: center; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); box-shadow: 0 20px 44px rgba(16, 20, 60, .2); color: var(--ink); max-width: 270px; }
.wb-card strong { display: block; font-size: 14px; line-height: 1.3; }
.wb-card small { display: block; font-size: 12px; color: var(--muted); }
.wb-card.c-tl { left: 0; top: 0; }
.wb-card.c-br { right: 0; bottom: 0; }
.wb-panel.is-active .wb-card.c-tl { animation: wbPop .6s .35s cubic-bezier(.2, .8, .2, 1) both, ahFloat 6s 1s ease-in-out infinite; }
.wb-panel.is-active .wb-card.c-br { animation: wbPop .6s .7s cubic-bezier(.2, .8, .2, 1) both, ahFloat 6s 1.4s ease-in-out infinite; }
@keyframes wbPop { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
.wb-dot { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--grad); }
.wb-dot.ok { background: #10b981; }
.wb-stars { color: #f59e0b; font-size: 15px; letter-spacing: 1px; }
.wb-mini-chart { flex-direction: column; align-items: stretch; gap: 8px; width: 200px; }
.wb-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; }
.wb-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--brand), rgba(var(--brand-rgb), .35)); transform-origin: bottom; }
.wb-panel.is-active .wb-bars i { animation: ahGrow .7s cubic-bezier(.2, .8, .2, 1) both; }
.wb-panel.is-active .wb-bars i:nth-child(2) { animation-delay: .5s; } .wb-panel.is-active .wb-bars i:nth-child(3) { animation-delay: .58s; } .wb-panel.is-active .wb-bars i:nth-child(4) { animation-delay: .66s; }
.wb-panel.is-active .wb-bars i:nth-child(5) { animation-delay: .74s; } .wb-panel.is-active .wb-bars i:nth-child(6) { animation-delay: .82s; }
.wb-tree { flex-direction: column; gap: 10px; align-items: center; width: 190px; }
.wb-tree strong { align-self: flex-start; }
.wb-tree span { display: flex; justify-content: space-around; width: 100%; }
.wb-tree i { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .15); }
.wb-tree .t0 i { background: #10b981; }
.wb-tree .t2 i { width: 16px; height: 16px; opacity: .8; }
.wb-panel.is-active .wb-tree i { animation: ahPop .45s both; }
.wb-panel.is-active .wb-tree .t1 i { animation-delay: .6s; } .wb-panel.is-active .wb-tree .t2 i { animation-delay: .85s; }
.wb-ring { flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#10b981 calc(var(--p) * 1%), #e6e8f2 0); }
.wb-ring b { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 15px; color: #0a9474; }
.wb-pimg { flex-shrink: 0; width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; color: #b45309; background: #fef3c7; }
.wb-product small s { color: #9aa0bd; margin-left: 4px; }
.wb-product em { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 8px; background: var(--brand); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; }
.wb-chat { flex-direction: column; align-items: stretch; gap: 8px; width: 250px; }
.wb-chat span { padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4; }
.wb-chat .in { align-self: flex-end; background: #25d366; color: #062b16; border-bottom-right-radius: 4px; }
.wb-chat .out { align-self: flex-start; background: #f1f2f7; border-bottom-left-radius: 4px; }
.wb-chat .out .bi { color: var(--brand); }
.wb-panel.is-active .wb-chat .out { animation: ahSlide .4s 1s both; }

/* ---------- Industries ---------- */
.in-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.in-tile { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; color: #fff; isolation: isolate; }
.in-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.in-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 8, 23, 0) 30%, rgba(7, 8, 23, .88) 100%); transition: background .4s; }
.in-tile:hover { color: #fff; }
.in-tile:hover img { transform: scale(1.07); }
.in-tile:hover::before { background: linear-gradient(180deg, rgba(var(--brand-rgb), .25) 0%, rgba(7, 8, 23, .92) 100%); }
.in-body { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.in-body .bi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); margin-bottom: 12px; }
.in-body strong { display: block; font-size: 20px; letter-spacing: -.01em; }
.in-body small { display: block; font-size: 14px; color: #d4d6ee; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .35s ease, margin .35s; }
.in-tile:hover .in-body small, .in-tile:focus-visible .in-body small { max-height: 60px; opacity: 1; margin-top: 4px; }
@media (hover: none) { .in-body small { max-height: 60px; opacity: 1; margin-top: 4px; } }

/* browser bar used by the client-portal visual */
.sc-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f1f2f7; border-bottom: 1px solid #e3e5ee; }
.sc-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.sc-bar > i:nth-child(2) { background: #febc2e; } .sc-bar > i:nth-child(3) { background: #28c840; }
.sc-url { margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 8px; background: #fff; font-size: 12px; color: var(--muted); font-family: var(--mono); max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sc-url .bi { color: #10b981; font-size: 10px; }

/* ---------- Team ---------- */
.tm-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.tm-photos { position: relative; padding: 0 0 70px 0; }
.tm-main { width: 88%; height: auto; border-radius: 26px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.2; object-fit: cover; display: block; }
.tm-small { position: absolute; right: 0; bottom: 0; width: 48%; height: auto; border-radius: 20px; border: 6px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.tm-badge { position: absolute; display: flex; gap: 10px; align-items: center; padding: 11px 15px; border-radius: 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: var(--shadow); animation: ahFloat 7s ease-in-out infinite; }
.tm-badge .bi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 17px; flex-shrink: 0; }
.tm-badge strong { display: block; color: var(--ink); font-size: 13.5px; }
.tm-badge small { display: block; color: var(--muted); font-size: 12px; }
.tm-badge.tb1 { left: -18px; top: 26px; }
.tm-badge.tb2 { left: 8%; bottom: 18px; animation-delay: -3s; }
.tm-badge.tb2 .bi { background: #10b981; }
.tm-title { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 14px; }
.tm-lead { font-size: 17.5px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.tm-section .check-list strong { color: var(--ink); }

/* process line fills while scrolling */
.process::after { content: ""; position: absolute; top: 32px; left: 8%; height: 2px; width: calc(84% * var(--pp, 0)); background: var(--grad); transition: width .15s linear; }
.step-num { position: relative; z-index: 1; transition: transform .3s ease; }
.step:hover .step-num { transform: translateY(-4px) rotate(-4deg); }

/* ---------- Client portal visual ---------- */
.cp-section { overflow: hidden; }
.cp-visual { position: relative; padding: 0 0 60px 0; }
.cp-browser { border-radius: 16px; overflow: hidden; box-shadow: 0 50px 100px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); transform: perspective(1600px) rotateY(-8deg) rotateX(4deg); transform-origin: left center; }
.cp-browser img { display: block; width: 100%; height: auto; }
.cp-phone { position: absolute; right: -10px; bottom: 0; width: 27%; border-radius: 30px; border: 7px solid #1b1e33; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .55); background: #1b1e33; }
.cp-phone img { display: block; width: 100%; height: auto; border-radius: 22px; }
.cp-toast { position: absolute; left: -16px; bottom: 30px; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); animation: ahFloat 6s ease-in-out infinite; }
.cp-toast .bi { color: #10b981; font-size: 24px; }
.cp-toast strong { display: block; font-size: 14px; }
.cp-toast small { display: block; font-size: 12px; color: var(--muted); }

/* ---------- Why us bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bento-photo { grid-row: span 3; margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; }
.bento-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.bento-photo:hover img { transform: scale(1.05); }
.bento-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7, 8, 23, .88)); }
.bento-photo figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: #d9dbf0; }
.bento-photo figcaption strong { display: block; color: #fff; font-size: 22px; line-height: 1.25; margin-bottom: 6px; letter-spacing: -.01em; }
.bento-photo figcaption span { font-size: 14.5px; }

/* ---------- FAQ + contact card ---------- */
.fq-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: start; }
.fq-grid .faq { max-width: none; margin: 0; }
.fq-card { position: sticky; top: calc(var(--header-h) + 24px); border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.fq-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.fq-card-body { padding: 24px; }
.fq-card h3 { font-size: 22px; margin-bottom: 8px; }
.fq-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.fq-call { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; color: var(--ink); }

/* ---------- Photo CTA ---------- */
.cta-photo { position: relative; border-radius: 32px; overflow: hidden; background: var(--night); isolation: isolate; }
.cta-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 8, 23, .96) 0%, rgba(7, 8, 23, .85) 45%, rgba(var(--brand-rgb), .35) 100%); }
.cta-photo-body { padding: 72px 64px; max-width: 640px; color: #c9cbe6; }
.cta-photo-body .eyebrow { color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.cta-photo-body h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin: 14px 0 12px; }
.cta-photo-body p { font-size: 17px; margin-bottom: 20px; }
.cta-points { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #fff; font-weight: 600; font-size: 15px; }
.cta-points .bi { color: var(--accent); margin-right: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .ah-chips .c2, .ah-chips .c4 { right: -8px; }
    .ah-chips .c3 { left: -8px; }
}
@media (max-width: 991.98px) {
    .ah-hero { min-height: 0; padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; }
    .ah-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .ah-copy { text-align: center; }
    .ah-sub { margin-left: auto; margin-right: auto; }
    .ah-actions { justify-content: center; }
    .ah-stats { margin: 0 auto; }
    .ah-stage { max-width: 600px; margin: 0 auto; width: 100%; }
    .ah-device { --ry: 0deg !important; --rx: 0deg !important; }
    .ah-scroll { display: none; }
    .ah-stage { padding-top: 10px; }
    .ah-assure { justify-content: center; }
    .wb-panel { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .wb-visual { order: -1; max-width: 620px; width: 100%; margin: 0 auto; }
    .wb-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin: 0 -20px 24px; padding: 4px 20px 10px; }
    .wb-tabs::-webkit-scrollbar { display: none; }
    .wb-tab { flex: 0 0 auto; }
    .in-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tm-grid, .fq-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .fq-card { position: static; max-width: 520px; }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento-photo { grid-column: span 2; grid-row: auto; min-height: 300px; }
    .cp-browser { transform: none; }
    .cp-phone { right: 0; }
    .cp-toast { left: 0; }
}
@media (max-width: 575.98px) {
    .ah-hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 64px; }
    .ah-pill { font-size: 12px; margin-bottom: 20px; }
    .ah-pill-more { display: none; }
    .ah-title { font-size: clamp(34px, 10vw, 44px); }
    .ah-sub { font-size: 16px; }
    .ah-actions .btn { width: 100%; }
    .ah-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; text-align: left; }
    .ah-stats strong { font-size: 24px; }
    .ah-scenes { height: 330px; }
    .ah-scene { padding: 16px; }
    .ah-code { font-size: 11.5px; line-height: 1.85; }
    .ah-phone { width: 168px; height: 300px; }
    .ah-badges { display: none; }
    .ah-chips { display: none; }
    .ah-step { padding: 7px 10px; font-size: 12px; }
    .ah-step span { display: none; }
    .ah-step.is-active span { display: inline; }
    .ah-statement { padding: 80px 0 60px; }
    .ah-kpis b { font-size: 16px; }
    .ah-assure { font-size: 13px; gap: 6px 12px; }
    .wb-tab { padding: 9px 14px; font-size: 13.5px; }
    .wb-visual { padding: 18px 10px 24px 14px; }
    .wb-visual > img { border-radius: 20px; }
    .wb-card { padding: 9px 12px; max-width: 210px; gap: 8px; }
    .wb-card strong { font-size: 12.5px; } .wb-card small { font-size: 11px; }
    .wb-dot { width: 30px; height: 30px; font-size: 14px; border-radius: 9px; }
    .wb-mini-chart, .wb-tree { width: 150px; } .wb-bars { height: 40px; }
    .wb-chat { width: 200px; } .wb-chat span { font-size: 12px; padding: 6px 10px; }
    .wb-ring { width: 40px; height: 40px; } .wb-ring b { width: 32px; height: 32px; font-size: 13px; }
    .wb-pimg { width: 42px; height: 42px; font-size: 19px; }
    .wb-copy .btn { width: 100%; }
    .in-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
    .in-tile { aspect-ratio: 4 / 5; border-radius: 18px; }
    .in-body { left: 14px; right: 14px; bottom: 14px; }
    .in-body .bi { width: 32px; height: 32px; font-size: 15px; margin-bottom: 8px; border-radius: 10px; }
    .in-body strong { font-size: 15.5px; line-height: 1.25; }
    .in-body small { display: none; }
    .tm-photos { padding-bottom: 50px; }
    .tm-badge { padding: 8px 11px; } .tm-badge .bi { width: 30px; height: 30px; font-size: 14px; }
    .tm-badge strong { font-size: 12px; } .tm-badge small { font-size: 11px; }
    .tm-badge.tb1 { left: -6px; top: 12px; }
    .tm-badge.tb2 { left: 0; bottom: 6px; }
    .bento { grid-template-columns: minmax(0, 1fr); }
    .bento-photo { grid-column: auto; }
    .bento .feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; padding: 18px; align-items: start; }
    .bento .feature i.fi { grid-row: span 2; width: 44px; height: 44px; margin: 0; font-size: 19px; }
    .bento .feature h4 { margin: 0 0 2px; font-size: 16.5px; }
    .bento .feature p { font-size: 14px; }
    .cp-visual { padding-bottom: 40px; }
    .cp-phone { width: 30%; border-width: 5px; border-radius: 20px; }
    .cp-toast { bottom: 8px; padding: 9px 12px; } .cp-toast .bi { font-size: 19px; }
    .cta-photo { border-radius: 24px; }
    .cta-photo-body { padding: 44px 24px; }
    .cta-photo::before { background: linear-gradient(180deg, rgba(7, 8, 23, .9), rgba(7, 8, 23, .96)); }
    .cta-photo-body .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .ah-glow, .ah-chips span, .ah-scroll span, .ah-caret, .ah-pill .dot::after, .ah-typing i, .tm-badge, .cp-toast { animation: none !important; }
    .wb-visual > img { animation: none !important; }
    .cp-browser, [data-scroll-scale] { transform: none !important; }
    .ah-scene { transform: none; filter: none; } /* scenes still change every 2 s, with a plain fade */
    .ah-device { transform: none; }
    .reveal { filter: none; }
}
