/* ==========================================================================
   CloudV24 — Homepage sections v2 (part 3): Client Stories · Tech Stack · FAQ
   Shares the `.hs-section` tokens, heading/eyebrow styles, scroll-reveal and
   ambient-orb system from home-sections.css.
   ========================================================================== */

.hs-ambient--testi { --o: rgba(139, 92, 246, .46); --o2: rgba(255, 90, 60, .26);  --o3: rgba(59, 130, 246, .34); }
.hs-ambient--tech  { --o: rgba(32, 201, 232, .34); --o2: rgba(79, 124, 255, .44); --o3: rgba(167, 123, 255, .34); }
.hs-ambient--faq   { --o: rgba(99, 102, 241, .46); --o2: rgba(139, 92, 246, .36); --o3: rgba(255, 90, 60, .22); }

.hs-testi.hs-section, .hs-tech.hs-section, .hs-faq.hs-section {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}
.hs-testi .sec-inner, .hs-tech .sec-inner, .hs-faq .sec-inner { max-width: 1180px; padding: 0; position: relative; z-index: 1; }

/* ==========================================================================
   CLIENT STORIES
   ========================================================================== */
.hs-testi__glyph {
  position: absolute;
  top: 3rem; left: 50%;
  width: clamp(220px, 28vw, 420px);
  aspect-ratio: 1;
  margin-left: calc(clamp(220px, 28vw, 420px) / -2);
  z-index: -1;
  color: rgba(139, 92, 246, .07);
  pointer-events: none;
}
.hs-testi__glyph svg { width: 100%; height: 100%; display: block; }

/* the carousel contract used by js/sections.js: #testiTrack > .testi-card, flex track with a gap */
.hs-testi .testi-carousel {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 16px 0 20px;
}
.hs-testi .testi-track {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  transition: transform .65s cubic-bezier(.22, .8, .24, 1);
  will-change: transform;
}
.hs-tcard {
  --tc: var(--hs-cyan);
  position: relative;
  flex: 0 0 calc((100% - 2.5rem) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.75rem 1.7rem 1.6rem;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, color-mix(in srgb, var(--tc) 12%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(24, 29, 52, .9), rgba(14, 18, 36, .94));
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  box-shadow: 0 16px 38px -24px rgba(0, 0, 0, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .35s var(--hs-ease), border-color .3s, box-shadow .35s;
}
.hs-tcard::before {
  content: "";
  position: absolute;
  left: 14%; right: 14%; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tc), transparent);
  opacity: .7;
}
.hs-tcard:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tc) 45%, var(--hs-border)); box-shadow: 0 26px 52px -24px rgba(0, 0, 0, .95), 0 0 40px -18px var(--tc); }
.hs-tcard--cyan    { --tc: var(--hs-cyan); }
.hs-tcard--violet  { --tc: var(--hs-purple); }
.hs-tcard--orange  { --tc: #ff7a3d; }
.hs-tcard--emerald { --tc: var(--hs-green); }

.hs-tcard__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.hs-tcard__quote {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  color: var(--tc);
  background: color-mix(in srgb, var(--tc) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent);
  border-radius: 13px;
  box-shadow: 0 0 22px -6px var(--tc);
}
.hs-tcard__quote svg, .hs-tcard__quote i { width: 18px; height: 18px; }
.hs-testi .hs-stars { display: inline-flex; gap: 2px; margin: 0; }
.hs-testi .hs-stars svg, .hs-testi .hs-stars i { width: 16px; height: 16px; color: #ffb020; fill: #ffb020; stroke: #ffb020; }

.hs-testi .testi-card__quote {
  flex: 1;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  font-size: 1.02rem;
  font-style: normal;
  line-height: 1.7;
  color: #dbe4f5;
}
.hs-testi .testi-card__author {
  display: flex; align-items: center; gap: .9rem;
  margin: 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.hs-testi .testi-card__author strong { font-size: .98rem; font-weight: 700; color: #fff; }
.hs-testi .testi-card__avatar {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  font-size: .82rem; font-weight: 800; letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 40%, #1a1f3a));
  border: 2px solid color-mix(in srgb, var(--tc) 40%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 18px -4px var(--tc);
}

/* controls: arrows + dots below the carousel */
.hs-testi__controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1.25rem; }
.hs-testi .testi-nav {
  position: static;
  transform: none;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  color: #fff;
  background: rgba(20, 24, 39, .85);
  border: 1px solid var(--hs-border);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .25s var(--hs-ease), border-color .25s, background .25s, box-shadow .25s;
}
.hs-testi .testi-nav:hover { transform: translateY(-2px); border-color: rgba(255, 90, 60, .6); background: rgba(255, 90, 60, .12); box-shadow: 0 10px 24px -10px rgba(255, 90, 60, .6); }
.hs-testi .testi-nav:focus-visible, .hs-testi .testi-dot:focus-visible { outline: 2px solid var(--hs-purple); outline-offset: 3px; }
.hs-testi .testi-nav svg, .hs-testi .testi-nav i { width: 18px; height: 18px; }
.hs-testi .testi-dots { display: flex; align-items: center; gap: .5rem; margin: 0; }
.hs-testi .testi-dot {
  width: 8px; height: 8px;
  padding: 0;
  background: rgba(148, 163, 184, .35);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width .3s var(--hs-ease), background .3s;
}
.hs-testi .testi-dot.active { width: 28px; background: linear-gradient(90deg, var(--hs-orange), var(--hs-purple)); }

/* ==========================================================================
   TECH STACK
   ========================================================================== */
.hs-tech__circuit {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(79, 124, 255, .08) 49.8% 50.2%, transparent 50.2%) 0 0 / 160px 160px,
    linear-gradient(0deg,  transparent 0 49.8%, rgba(79, 124, 255, .06) 49.8% 50.2%, transparent 50.2%) 0 0 / 160px 160px,
    radial-gradient(circle, rgba(130, 160, 255, .3) 1.4px, transparent 1.9px) 80px 80px / 160px 160px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 55%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 55%, #000 15%, transparent 75%);
}
.hs-tech__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.hs-tech__tile {
  --tt: var(--hs-cyan);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.6rem 1.5rem 1.5rem;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, color-mix(in srgb, var(--tt) 12%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(23, 28, 50, .88), rgba(13, 17, 34, .94));
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  box-shadow: 0 14px 34px -24px rgba(0, 0, 0, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .35s var(--hs-ease), border-color .3s, box-shadow .35s;
}
.hs-tech__tile::after {                 /* soft light sweep on hover */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .06), transparent);
  transform: skewX(-18deg);
  transition: left .8s var(--hs-ease);
  pointer-events: none;
}
.hs-tech__tile:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tt) 45%, var(--hs-border)); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .95), 0 0 38px -16px var(--tt); }
.hs-tech__tile:hover::after { left: 130%; }
.hs-tone--cyan    { --tt: var(--hs-cyan); }
.hs-tone--violet  { --tt: var(--hs-purple); }
.hs-tone--emerald { --tt: var(--hs-green); }
.hs-tone--blue    { --tt: #5b8cff; }
.hs-tone--orange  { --tt: #ff7a3d; }

.hs-tech__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 1.15rem;
  color: var(--tt);
  background: color-mix(in srgb, var(--tt) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tt) 30%, transparent);
  border-radius: 16px;
  box-shadow: 0 0 26px -6px var(--tt);
  transition: transform .35s var(--hs-ease);
}
.hs-tech__tile:hover .hs-tech__icon { transform: scale(1.09) rotate(-5deg); }
.hs-tech__icon svg, .hs-tech__icon i { width: 24px; height: 24px; }
.hs-tech__tile strong { margin-bottom: .45rem; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.hs-tech__tile span {
  display: inline-block;
  padding: .22rem .7rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: color-mix(in srgb, var(--tt) 75%, #fff);
  background: color-mix(in srgb, var(--tt) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--tt) 24%, transparent);
  border-radius: 999px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.hs-faq__dots {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(130, 160, 255, .22) 1px, transparent 1.5px) 0 0 / 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 20% 40%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 70% at 20% 40%, #000 0%, transparent 70%);
}
.hs-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.hs-faq__aside { position: sticky; top: 6.5rem; min-width: 0; }
.hs-faq__aside h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; color: var(--hs-text); text-align: left; }
.hs-faq__lead { max-width: 380px; margin: 0 0 2rem; font-size: 1.05rem; line-height: 1.65; color: var(--hs-muted); }
.hs-faq__help {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .9rem 1rem;
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(34, 40, 78, .6), rgba(14, 18, 38, .8));
  border: 1px solid rgba(125, 150, 255, .24);
  border-radius: 18px;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
}
.hs-faq__help-icon { display: grid; place-items: center; width: 46px; height: 46px; color: var(--hs-purple); background: rgba(167, 123, 255, .12); border: 1px solid rgba(167, 123, 255, .3); border-radius: 14px; }
.hs-faq__help-icon svg, .hs-faq__help-icon i { width: 20px; height: 20px; }
.hs-faq__help strong { display: block; font-size: 1rem; color: #fff; }
.hs-faq__help div span { display: block; margin-top: 2px; font-size: .86rem; color: var(--hs-muted); }
.hs-faq__help-btn {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px;
  font-weight: 700; font-size: .95rem;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--hs-orange), var(--hs-orange-2));
  border-radius: 12px;
  box-shadow: 0 10px 26px -8px rgba(255, 90, 60, .5);
  transition: transform .25s var(--hs-ease), box-shadow .25s, filter .25s;
}
.hs-faq__help-btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 16px 34px -8px rgba(255, 90, 60, .65); }
.hs-faq__help-btn:focus-visible { outline: 2px solid var(--hs-purple); outline-offset: 3px; }
.hs-faq__help-btn svg, .hs-faq__help-btn i { width: 17px; height: 17px; transition: transform .25s var(--hs-ease); }
.hs-faq__help-btn:hover svg { transform: translateX(4px); }

.hs-faq__list { display: grid; gap: .9rem; min-width: 0; }
.hs-faq__item {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 27, 48, .9), rgba(14, 18, 36, .94));
  border: 1px solid var(--hs-border);
  border-radius: 18px;
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .9);
  overflow: hidden;
  transition: border-color .3s, box-shadow .35s, background .3s;
}
.hs-faq__item::before {
  content: "";
  position: absolute;
  left: 0; top: 16%; bottom: 16%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--hs-orange), var(--hs-purple));
  opacity: 0;
  transition: opacity .3s;
}
.hs-faq__item:hover { border-color: rgba(255, 255, 255, .16); }
.hs-faq__item.is-open { border-color: rgba(167, 123, 255, .4); box-shadow: 0 22px 48px -26px rgba(0, 0, 0, .95), 0 0 40px -22px var(--hs-purple); background: linear-gradient(180deg, rgba(28, 31, 62, .92), rgba(15, 19, 40, .96)); }
.hs-faq__item.is-open::before { opacity: 1; }
.hs-faq__item h3 { margin: 0; font-size: inherit; }

.hs-faq__q {
  display: flex; align-items: center; gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.3rem;
  font: inherit;
  text-align: left;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}
.hs-faq__q:focus-visible { outline: 2px solid var(--hs-purple); outline-offset: -3px; border-radius: 18px; }
.hs-faq__num { flex: none; font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: rgba(167, 123, 255, .8); font-variant-numeric: tabular-nums; }
.hs-faq__qtext { flex: 1; min-width: 0; font-size: 1.04rem; font-weight: 600; line-height: 1.4; }
.hs-faq__icon {
  flex: none;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  transition: transform .4s var(--hs-ease), background .3s, color .3s, border-color .3s;
}
.hs-faq__icon svg, .hs-faq__icon i { width: 16px; height: 16px; }
.hs-faq__item.is-open .hs-faq__icon { transform: rotate(135deg); color: #fff; background: linear-gradient(135deg, var(--hs-orange), var(--hs-purple)); border-color: transparent; }

.hs-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--hs-ease); }
.hs-faq__item.is-open .hs-faq__a { grid-template-rows: 1fr; }
.hs-faq__a-inner { overflow: hidden; visibility: hidden; transition: visibility 0s .45s; }
.hs-faq__item.is-open .hs-faq__a-inner { visibility: visible; transition-delay: 0s; }
.hs-faq__a p { margin: 0; padding: 0 1.3rem 1.35rem calc(1.3rem + 1rem + 1.4rem); font-size: .97rem; line-height: 1.75; color: var(--hs-muted); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
  .hs-tcard { flex-basis: calc((100% - 1.25rem) / 2); }
  .hs-tech__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-faq__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hs-faq__aside { position: static; }
}
@media (max-width: 640px) {
  .hs-tcard { flex-basis: 100%; padding: 1.5rem 1.35rem 1.4rem; }
  .hs-tech__grid { gap: .85rem; }
  .hs-tech__tile { padding: 1.2rem 1.1rem; }
  .hs-tech__icon { width: 46px; height: 46px; margin-bottom: .9rem; }
  .hs-tech__tile span { padding: .2rem .55rem; font-size: .64rem; letter-spacing: .02em; }
  .hs-faq__q { padding: 1rem 1.05rem; gap: .75rem; }
  .hs-faq__qtext { font-size: .98rem; }
  .hs-faq__a p { padding: 0 1.05rem 1.2rem 1.05rem; }
  .hs-faq__num { display: none; }
  .hs-testi .testi-nav { width: 48px; height: 48px; }
}
@media (max-width: 380px) {
  .hs-tech__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-testi .testi-track, .hs-faq__a, .hs-faq__icon, .hs-tcard, .hs-tech__tile, .hs-tech__tile::after { transition: none !important; }
}

/* ==========================================================================
   Icons that replaced emoji elsewhere on the homepage
   ========================================================================== */
.dsx-fpill svg, .dsx-fpill i { width: 13px; height: 13px; margin-right: .3rem; vertical-align: -2px; }
.dsx-i { display: inline-block; vertical-align: -2px; margin-right: 3px; flex: none; }
.dsx-hot .dsx-i { width: 11px; height: 11px; margin-right: 2px; vertical-align: -1px; }
#dsxError .dsx-i, .dsx-error .dsx-i { margin-right: 6px; vertical-align: -3px; }

.cv-toast__icon { display: grid; place-items: center; }
.cv-toast__icon svg, .cv-toast__icon i { width: 22px; height: 22px; }
.cv-toast__cta svg, .cv-toast__cta i { width: 14px; height: 14px; vertical-align: -2px; margin-left: 2px; }
.cv-toast__close { display: grid; place-items: center; }
.cv-toast__close svg, .cv-toast__close i { width: 16px; height: 16px; }
