/* Vikbot — home.css (index page only): particle field, isometric warehouse */

.hero-home { position: relative; overflow: hidden; text-align: left; padding-top: 72px; }
.hero-home > .container { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero-home .display { margin: 0; max-width: none; }
.hero-home .lead { margin: 12px 0 0; max-width: 520px; }
.hero-home .hero-actions, .hero-home .hero-points { justify-content: flex-start; }

/* isometric warehouse canvas (no border) */
.wh-wrap { position: relative; width: 100%; aspect-ratio: 4 / 3; margin-left: auto; }
.wh-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-home { text-align: center; }
  .hero-home .lead { margin-left: auto; margin-right: auto; }
  .hero-home .hero-actions, .hero-home .hero-points { justify-content: center; }
  .wh-wrap { margin: 0 auto; max-width: 560px; }
}
/* phones: show the warehouse animation between the lead and the buttons */
@media (max-width: 640px) {
  .hero-grid { row-gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > .badge { justify-self: center; }
  .hero-grid .wh-wrap { order: 1; margin-top: 24px; }
  .hero-home .hero-actions { order: 2; margin-top: 24px; }
  .hero-home .hero-points { order: 3; }
}

/* testimonials animation */
.tm-stage { position: relative; min-height: 440px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.tm-quote { position: absolute; left: 50%; top: 50%; width: 220px; margin: -110px 0 0 -110px; color: var(--accent-soft); animation: tm-breathe 6s ease-in-out infinite; }
@keyframes tm-breathe { 50% { transform: scale(1.08) rotate(-3deg); } }
.tm-card {
  position: absolute; display: flex; gap: 12px; align-items: center; width: 300px; max-width: 80%;
  padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 18px 36px -18px rgb(11 11 15 / .25); font-size: 14px; line-height: 1.4; color: var(--ink-2);
  opacity: 0; animation: tm-in 9s ease-in-out infinite;
}
.tm-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.tm-card b { color: var(--ink); font-weight: 500; font-size: 13px; }
.tm-card .sm { font-size: 12px; color: var(--ink-3); }
.tm-card .stars { display: flex; gap: 2px; color: #E8A317; margin-bottom: 2px; }
.tm-card .stars .icon { width: 14px; height: 14px; fill: currentColor; animation: tm-star 9s infinite; }
.tm-card .stars .icon:nth-child(2) { animation-delay: .12s; } .tm-card .stars .icon:nth-child(3) { animation-delay: .24s; }
.tm-card .stars .icon:nth-child(4) { animation-delay: .36s; } .tm-card .stars .icon:nth-child(5) { animation-delay: .48s; }
@keyframes tm-star { 0%, 8% { transform: scale(0); } 14% { transform: scale(1.35); } 20%, 100% { transform: scale(1); } }
.tm-ok { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.c1 { left: 6%; top: 12%; }
.c2 { right: 6%; top: 40%; animation-delay: 3s; }
.c3 { left: 14%; bottom: 10%; width: 230px; animation-delay: 6s; }
@keyframes tm-in {
  0% { opacity: 0; transform: translateY(30px) scale(.94); }
  8%, 38% { opacity: 1; transform: translateY(0) scale(1); }
  50%, 100% { opacity: 0; transform: translateY(-24px) scale(.97); }
}
.tm-dot { position: absolute; border-radius: 50%; background: var(--accent); opacity: .25; animation: tm-float 7s ease-in-out infinite; }
.d1 { width: 14px; height: 14px; right: 18%; top: 14%; }
.d2 { width: 9px; height: 9px; left: 10%; top: 55%; animation-delay: -2s; }
.d3 { width: 18px; height: 18px; right: 12%; bottom: 12%; animation-delay: -4s; }
@keyframes tm-float { 50% { transform: translateY(-18px); } }
@media (prefers-reduced-motion: reduce) {
  .tm-card { animation: none; opacity: 1; }
  .tm-quote, .tm-dot, .tm-card .stars .icon { animation: none; }
}


/* FAQ (replaces Why choose us) */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side .h2 { margin: 14px 0 18px; }
.faq-facts { display: flex; gap: 32px; margin: 28px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.faq-facts b { display: block; font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.faq-facts span:not([data-count]) { font-size: 13px; color: var(--ink-3); }
.faq-sec .faq summary { font-size: 18px; transition: color .2s; }
.faq-sec .faq summary:hover { color: var(--accent-ink); }
.faq-sec .faq details[open] summary { color: var(--accent-ink); }
.faq-sec .faq details > div { line-height: 1.7; }
@media (max-width: 960px) {
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-side { position: static; }
}
.demo-bar .link-arrow { margin-left: auto; }
#fusion-dashboard .demo { margin-top: 0; }
.demo-main #fusion-dashboard-index-img { aspect-ratio: 1200 / 657; border-radius: 10px; box-shadow: 0 12px 32px -16px rgb(11 11 15 / .35); }

/* scroll-driven 3D walkthrough (after the Fusion Insight card) */
.sf { position: relative; height: 320vh; }
.sf-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: linear-gradient(180deg, #F8F9FB, #EDF1F4); }
.sf-pin canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sf-pin::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 52%; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #F8F9FB 35%, rgb(248 249 251 / 0)); }
.sf-copy { position: relative; z-index: 2; height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; pointer-events: none; }
.sf-panel { width: 100%; max-width: 440px; pointer-events: auto; }
.sf-lead { font-family: "IBM Plex Sans", var(--font); font-weight: 400; letter-spacing: -0.01em; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; margin: 10px 0 28px; color: var(--ink); }
.sf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sf-step { display: flex; gap: 16px; padding: 16px 20px; border-radius: 16px; border: 1px solid transparent; cursor: pointer; transition: background .35s var(--ease), border-color .35s, box-shadow .35s; }
.sf-num { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ink-3); padding-top: 3px; transition: color .35s; }
.sf-step h3 { margin: 0; font-size: 19px; font-weight: 600; color: var(--ink-3); transition: color .35s; }
.sf-step p { margin: 0; max-height: 0; opacity: 0; overflow: hidden; font-size: 15px; line-height: 1.6; color: var(--ink-2); transition: max-height .45s var(--ease), opacity .35s, margin .35s; }
.sf-step.active { background: var(--surface); border-color: var(--line-2); box-shadow: 0 18px 40px -24px rgb(11 11 15 / .3); }
.sf-step.active .sf-num { color: var(--accent-ink); }
.sf-step.active h3 { color: var(--ink); }
.sf-step.active p { max-height: 160px; opacity: 1; margin-top: 8px; }
.sf-dots { display: flex; gap: 8px; margin: 24px 0 0 20px; }
.sf-dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--line-2); transition: width .35s var(--ease), background .35s; }
.sf-dots i.on { width: 44px; background: var(--accent); }
@media (max-width: 900px) {
  .sf { height: 300vh; }
  .sf-pin canvas { height: 56%; }
  .sf-pin::before { display: none; }
  .sf-copy { align-items: flex-end; padding-bottom: 24px; }
  .sf-panel { max-width: none; }
  .sf-lead { margin-bottom: 14px; }
  .sf-step { padding: 12px 16px; }
  .sf-step h3 { font-size: 17px; }
  .sf-step p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .sf-step, .sf-step p, .sf-dots i { transition: none; } }

