/* ==========================================================
   ClientHub — visual polish (loaded after style.css)
   Motion, depth and atmosphere. All motion respects
   "reduce motion" settings (see bottom).
   ========================================================== */

/* softer page background: colour glows + faint dot grid */
body {
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(124, 58, 237, .07), transparent 60%),
    radial-gradient(800px 500px at 0% 45%, rgba(8, 145, 178, .06), transparent 60%),
    radial-gradient(900px 600px at 100% 90%, rgba(236, 72, 153, .04), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(31, 41, 105, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}

/* header slims down on scroll */
.nav-wrap { transition: height .25s ease; }
.site-header.scrolled { background: rgba(7, 13, 34, .97); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .6); }
.site-header.scrolled .nav-wrap { height: 66px; }

/* reading progress + back to top */
.progress { position: fixed; top: 0; left: 0; z-index: 120; height: 3px; width: 100%; background: var(--grad-btn); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.to-top { position: fixed; right: 20px; bottom: 90px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* shimmering gradient headlines */
.grad-text {
  background-image: linear-gradient(100deg, #A78BFA 0%, #818CF8 30%, #22D3EE 60%, #A78BFA 100%);
  background-size: 200% auto;
  animation: shimmer 8s ease-in-out infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* hero: live network canvas + floating glass cards */
#heroCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; pointer-events: none;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .4) 40%, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .4) 40%, #000 70%);
}
.hero-float { position: absolute; right: max(40px, calc((100vw - 1200px) / 2)); top: 120px; width: 330px; height: 360px; pointer-events: none; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; color: #fff; font-size: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(196, 181, 253, .45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8);
  animation: floaty 7s ease-in-out infinite;
}
.float-card b { display: block; font-weight: 600; font-size: 15px; }
.float-card small { color: #C3CBEB; font-size: 12.5px; }
.float-card .fi { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px; display: flex; align-items: center; justify-content: center; background: var(--grad-btn); }
.float-card .fi svg { width: 18px; height: 18px; }
.float-card .fi.ok { background: linear-gradient(135deg, #10B981, #0891B2); }
.float-card .fi.pk { background: linear-gradient(135deg, #EC4899, #8B5CF6); }
.fc-a { top: 0; right: 10px; animation-delay: -1s; }
.fc-b { top: 135px; left: 0; animation-delay: -3s; }
.fc-c { top: 270px; right: 30px; animation-delay: -5s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
@media (max-width: 1180px) { .hero-float { display: none; } }

/* technology marquee */
.marquee {
  margin-top: 56px; overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .6);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; padding: 22px 0; animation: marquee 40s linear infinite; }
.marquee-track span { font: 600 17px var(--font-head); color: #5B6386; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad-btn); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* solution cards: glowing gradient border + gentle tilt */
.svc-card { position: relative; will-change: transform; }
.svc-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 3; pointer-events: none;
  background: linear-gradient(135deg, #8B5CF6, #22D3EE, #EC4899); opacity: 0; transition: opacity .3s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.svc-card:hover::before { opacity: 1; }
.svc-card:hover { transform: perspective(900px) translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* why ClientHub */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { position: relative; padding: 28px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.why-card:hover { transform: translateY(-5px); box-shadow: 0 28px 50px -26px rgba(79, 70, 229, .45); }
.why-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, .14), transparent 70%); }
.why-card .wi { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad-btn); box-shadow: 0 12px 24px -12px rgba(124, 58, 237, .9); }
.why-card .wi svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { font-size: 19px; margin: 18px 0 8px; }
.why-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 1080px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }

/* CTA band: animated glowing border */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.cta-band { isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: -1;
  background: conic-gradient(from var(--ang), #8B5CF6, #22D3EE, #EC4899, #8B5CF6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spinang 6s linear infinite;
}
@keyframes spinang { to { --ang: 360deg; } }

/* page heroes: slow drifting glow */
.hero .media::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: 8%; top: 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.15); } }

/* ---------- hero: self-typing word ---------- */
.typed { display: inline; border-right: 3px solid #A5F3FC; padding-right: 4px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }

/* ---------- "How AI works inside your application" ---------- */
/* ===== "How AI works" — immersive dark showcase ===== */
.section.dark.ai-flow-section {
  padding: 120px 0 130px;
  background:
    radial-gradient(700px 420px at 50% 62%, rgba(124, 58, 237, .38), transparent 70%),
    radial-gradient(600px 360px at 85% 20%, rgba(34, 211, 238, .14), transparent 70%),
    radial-gradient(600px 360px at 10% 30%, rgba(236, 72, 153, .10), transparent 70%),
    linear-gradient(180deg, #070D22 0%, #0B1534 55%, #070D22 100%);
}
/* signal rings radiating from the core */
.ai-flow-section .container::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 62%; width: 1000px; height: 1000px; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 70px, rgba(167, 139, 250, .13) 70px 71px);
  mask-image: radial-gradient(circle, #000 25%, transparent 68%); -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 68%);
  animation: ringsbreathe 6s ease-in-out infinite;
}
@keyframes ringsbreathe { 50% { transform: translate(-50%, -50%) scale(1.06); opacity: .75; } }
.ai-flow-section .container { position: relative; }
/* glowing perspective grid floor */
.ai-flow-section::after {
  content: ""; position: absolute; z-index: -1; left: -25%; right: -25%; bottom: -60px; height: 340px; pointer-events: none;
  background-image: linear-gradient(rgba(34, 211, 238, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 92, 246, .28) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(180deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
  animation: gridscroll 6s linear infinite;
}
@keyframes gridscroll { to { background-position: 0 64px, 0 0; } }

/* labels + chips (glass on dark) */
.ai-flow-section .flow-label { color: #C4B5FD; }
.ai-flow-section .flow-col:last-child .flow-label { color: #67E8F9; }
.ai-flow-section .flow-chip {
  color: #fff; background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
  border: 1px solid rgba(167, 139, 250, .28); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ai-flow-section .flow-col:last-child .flow-chip { border-color: rgba(34, 211, 238, .3); }
.ai-flow-section .flow-chip:hover { border-color: rgba(196, 181, 253, .8); box-shadow: 0 0 0 1px rgba(196, 181, 253, .3), 0 18px 40px -18px rgba(124, 58, 237, .7); }
.ai-flow-section .flow-chip svg { box-shadow: 0 0 18px rgba(139, 92, 246, .6); }
.ai-flow-section .flow-col:last-child .flow-chip svg { box-shadow: 0 0 18px rgba(34, 211, 238, .55); }

/* energy beams with travelling light pulses */
.ai-flow-section .flow-link { height: 3px; overflow: visible; background: linear-gradient(90deg, rgba(139, 92, 246, .2), rgba(34, 211, 238, .5)); box-shadow: 0 0 12px rgba(139, 92, 246, .5); }
.ai-flow-section .flow-link i { border-radius: 3px; opacity: .55; }
.ai-flow-section .flow-link::before, .ai-flow-section .flow-link::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px #fff, 0 0 22px #A78BFA, 0 0 40px #22D3EE;
  animation: pulsetravel 1.8s cubic-bezier(.4, 0, .6, 1) infinite;
}
.ai-flow-section .flow-link::after { animation-delay: .9s; width: 9px; height: 9px; margin-top: -4.5px; }
@keyframes pulsetravel { 0% { left: -6px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

/* AI core: bigger, plasma, orbiting lights */
.ai-flow-section .flow-core { width: 290px; height: 290px; }
.ai-flow-section .flow-core .orb {
  width: 150px; height: 150px; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 35% 30%, #DDD6FE, #7C3AED 45%, #1E1B4B 100%);
  box-shadow: 0 0 0 12px rgba(124, 58, 237, .16), 0 0 90px rgba(124, 58, 237, .85), 0 0 180px rgba(34, 211, 238, .5);
}
.ai-flow-section .flow-core .orb::before {
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background: conic-gradient(from 0deg, #22D3EE, transparent 25%, #EC4899 45%, transparent 65%, #A78BFA 85%, #22D3EE);
  filter: blur(14px); opacity: .7; animation: spin 5s linear infinite;
}
.ai-flow-section .flow-core .orb span { font-size: 44px; }
.ai-flow-section .flow-core .ring { border-color: rgba(196, 181, 253, .5); }
.ai-flow-section .flow-core .r1::after, .ai-flow-section .flow-core .r2::after {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: #A5F3FC; box-shadow: 0 0 12px #22D3EE, 0 0 24px #22D3EE;
}
.ai-flow-section .flow-core .r2::after { top: auto; bottom: -4px; background: #F0ABFC; box-shadow: 0 0 12px #EC4899, 0 0 24px #EC4899; }

/* Reads · Understands · Predicts — pills light up in turn */
.ai-flow-section .core-steps { bottom: -50px; display: flex; gap: 8px; color: inherit; }
.ai-flow-section .core-steps span {
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px;
  color: #C3CBEB; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  animation: steplight 3.6s infinite;
}
.ai-flow-section .core-steps span:nth-child(2) { animation-delay: 1.2s; }
.ai-flow-section .core-steps span:nth-child(3) { animation-delay: 2.4s; }
@keyframes steplight { 0%, 30% { color: #fff; background: linear-gradient(100deg, #7C3AED, #0891B2); border-color: transparent; box-shadow: 0 0 22px rgba(124, 58, 237, .7); } 34%, 100% { color: #C3CBEB; background: rgba(255, 255, 255, .06); box-shadow: none; } }

@media (max-width: 960px) {
  .ai-flow-section .flow-link::before, .ai-flow-section .flow-link::after { left: 50%; top: 0; margin: 0 0 0 -7px; animation-name: pulsetravel-v; }
  .ai-flow-section .flow-link::after { margin-left: -4.5px; }
  @keyframes pulsetravel-v { 0% { top: -6px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
  .ai-flow-section .flow-core { width: 240px; height: 240px; margin-bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-flow-section::after, .ai-flow-section .container::before, .ai-flow-section .flow-link::before, .ai-flow-section .flow-link::after,
  .ai-flow-section .flow-core .orb::before, .ai-flow-section .core-steps span { animation: none !important; }
  .ai-flow-section .flow-link::before, .ai-flow-section .flow-link::after { display: none; }
}
.ai-flow { display: grid; grid-template-columns: 1fr 110px auto 110px 1fr; align-items: center; gap: 0; margin-top: 10px; }
.flow-col { display: flex; flex-direction: column; gap: 12px; }
.flow-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 4px; }
.flow-col:last-child .flow-label { color: var(--cyan); }
.flow-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: 15px; transition: transform .25s, border-color .25s; }
.flow-chip:hover { transform: translateX(4px); border-color: #C4B5FD; }
.flow-chip svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; flex: 0 0 36px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: var(--grad-btn); }
.flow-col:last-child .flow-chip svg { background: linear-gradient(135deg, #0891B2, #10B981); }
.flow-link { position: relative; height: 4px; margin: 0 6px; border-radius: 4px; background: rgba(124, 58, 237, .15); overflow: hidden; }
.flow-link i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 14px, #8B5CF6 14px 26px, #22D3EE 26px 34px); background-size: 68px 100%; animation: flowmove 1.1s linear infinite; opacity: .9; }
@keyframes flowmove { to { background-position: 68px 0; } }
.flow-core { position: relative; width: 230px; height: 230px; display: flex; align-items: center; justify-content: center; }
.flow-core .orb { position: relative; z-index: 2; width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #C4B5FD, #7C3AED 45%, #0B1530 100%);
  box-shadow: 0 0 0 10px rgba(124, 58, 237, .12), 0 0 60px rgba(124, 58, 237, .6), 0 0 120px rgba(34, 211, 238, .35);
  animation: pulse 3.2s ease-in-out infinite; }
.flow-core .orb span { font: 800 34px var(--font-head); color: #fff; letter-spacing: -.02em; text-shadow: 0 0 18px rgba(165, 243, 252, .8); }
@keyframes pulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(124, 58, 237, .08), 0 0 80px rgba(124, 58, 237, .75), 0 0 150px rgba(34, 211, 238, .45); } }
.flow-core .ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(124, 58, 237, .45); }
.flow-core .r1 { inset: 28px; animation: spin 14s linear infinite; }
.flow-core .r2 { inset: 4px; border: 1.5px solid transparent; border-top-color: #22D3EE; border-right-color: #A78BFA; animation: spin 6s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow-core p { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--muted); }
@media (max-width: 960px) {
  .ai-flow { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .flow-col { width: 100%; max-width: 420px; }
  .flow-link { width: 4px; height: 60px; margin: 4px 0; }
  .flow-link i { background: repeating-linear-gradient(180deg, transparent 0 14px, #8B5CF6 14px 26px, #22D3EE 26px 34px); background-size: 100% 68px; animation-name: flowmove-v; }
  @keyframes flowmove-v { to { background-position: 0 68px; } }
  .flow-core { margin: 6px 0 40px; }
}

/* ---------- dark sections: soft glow follows the pointer ---------- */
.section.dark { position: relative; overflow: hidden; isolation: isolate; }
.section.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .22), transparent 60%); }
.section.dark:hover::before { opacity: 1; }

/* ---------- AI demo window: animated glowing border ---------- */
.ai-demo { position: relative; isolation: isolate; }
.ai-demo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--ang), #8B5CF6, #22D3EE, #EC4899, #8B5CF6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spinang 7s linear infinite; }

/* ---------- hero: live "AI at work" console ---------- */
.hero-console { position: absolute; right: max(40px, calc((100vw - 1200px) / 2)); top: 110px; width: 380px; pointer-events: none; }
.console {
  position: relative; border-radius: 20px; padding: 18px; color: #fff; isolation: isolate;
  background: linear-gradient(160deg, rgba(30, 42, 107, .72), rgba(11, 21, 48, .78));
  border: 1px solid rgba(196, 181, 253, .35);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: floaty 9s ease-in-out infinite;
}
.console::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--ang), #8B5CF6, #22D3EE, #EC4899, #8B5CF6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spinang 8s linear infinite; opacity: .8; }
.console-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.console-head b { flex: 1; font-weight: 600; letter-spacing: .01em; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: livepulse 1.8s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.console-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: #34D399; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); padding: 3px 8px; border-radius: 6px; }
.feed { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 14px 0; min-height: 214px; }
.feed li { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); overflow: hidden; }
.feed li.new { animation: feedin .55s cubic-bezier(.2, .8, .2, 1); background: rgba(139, 92, 246, .14); border-color: rgba(167, 139, 250, .4); }
.feed li.new::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, #8B5CF6, #22D3EE); transform-origin: 0 50%; animation: progressfill 1.6s ease-out forwards; }
@keyframes feedin { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes progressfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.feed li.out { animation: feedout .4s ease forwards; }
@keyframes feedout { to { opacity: 0; transform: translateY(10px); } }
.feed .fi { width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px; display: flex; align-items: center; justify-content: center; background: var(--grad-btn); box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .9); }
.feed .fi svg, .devices svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feed div { flex: 1; min-width: 0; }
.feed b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed small { color: #AAB3D6; font-size: 12.5px; }
.feed em { font-style: normal; font-size: 11.5px; color: #8A95BD; white-space: nowrap; }
.feed li.new em { color: #A5F3FC; }
.devices { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.devices .dev { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .4s, box-shadow .4s, border-color .4s; }
.devices .dev.on { background: rgba(34, 211, 238, .2); border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 18px rgba(34, 211, 238, .45); }
.devices small { margin-left: 6px; font-size: 13px; color: #C3CBEB; font-weight: 500; }
.fc-badge { position: absolute; left: -70px; bottom: -92px; animation-delay: -3s; }
.typed { display: inline-block; min-height: 1.1em; }
.nowrap { white-space: nowrap; }
/* phones & tablets: show the live console below the headline instead of beside it */
@media (max-width: 1180px) {
  .hero:has(.hero-console) { display: flex; flex-direction: column; }
  .hero:has(.hero-console) > .container { order: 1; }
  .hero-console { order: 2; position: relative; right: auto; top: auto; width: auto; max-width: 440px; margin: -120px 20px 140px; align-self: center; }
  .fc-badge { display: none; }
}
@media (max-width: 640px) {
  .hero-console { margin: -96px 16px 120px; align-self: stretch; }
  .console { padding: 14px; }
  .feed { min-height: 0; }
  .feed li:nth-child(n+3) { display: none; }
  .devices small { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .grad-text, .float-card, .marquee-track, .cta-band::before, .hero .media::after,
  .typed, .flow-link i, .flow-core .orb, .flow-core .ring, .ai-demo::before,
  .console, .console::before, .live-dot, .feed li.new, .feed li.new::after { animation: none !important; }
  .typed { border-right: 0; }
  #heroCanvas { display: none; }
}

/* AI showcase tucks under the hero's highlight strip (no light gap) */
.section.dark.ai-flow-section { margin-top: -60px; padding-top: 180px; }
@media (max-width: 960px) { .section.dark.ai-flow-section { margin-top: -40px; padding-top: 130px; } }
