/* ---------- home hero ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .8;
}

.hgrid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  z-index: 0;
  animation: blob 18s ease-in-out infinite alternate;
}

.mesh.b1 {
  width: 520px;
  height: 520px;
  background: rgba(53, 109, 255, .13);
  top: -160px;
  left: -140px;
}

.mesh.b2 {
  width: 460px;
  height: 460px;
  background: rgba(232, 67, 78, .09);
  top: 10%;
  right: -140px;
  animation-delay: -8s;
}

@keyframes blob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, -40px) scale(1.12);
  }

  100% {
    transform: translate(-30px, 40px) scale(.94);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: .76rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 10px var(--crimson);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

h1.hero-h {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 700;
}

h1.hero-h .line {
  display: block;
  overflow: hidden;
}

h1.hero-h .line span {
  display: inline-block;
  transform: translateY(112%);
  animation: rise 1s var(--ease) forwards;
}

h1.hero-h .line:nth-child(2) span {
  animation-delay: .12s;
}

h1.hero-h .line:nth-child(3) span {
  animation-delay: .24s;
}

@keyframes rise {
  to {
    transform: translateY(0);
  }
}

.hero-sub {
  margin: 26px 0 38px;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 560px;
}

.dash {
  position: absolute;
  inset: 30px 0 60px 30px;
  border-radius: 22px;
  background: linear-gradient(165deg, #17171D, #101014);
  border: 1px solid var(--line-2);
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .95);
}

.dash::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 67, 78, .6), transparent);
}

.dash-top {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.dash-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}

.dash-top i:first-child {
  background: var(--crimson);
}

.dash-rows {
  display: grid;
  gap: 12px;
}

.d-row {
  display: flex;
  gap: 12px;
}

.d-cell {
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  padding: 14px;
  flex: 1;
}

.d-cell .lbl {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}

.d-cell .val {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 5px;
}

.d-cell .val.up {
  color: var(--cyan);
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 74px;
  margin-top: 10px;
}

.spark i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  opacity: .9;
  animation: eq 2.6s ease-in-out infinite;
  transform-origin: bottom;
}

.spark i:nth-child(odd) {
  animation-delay: -.9s;
  background: linear-gradient(180deg, var(--crimson), #7A1218);
}

@keyframes eq {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(.55);
  }
}

.code-lines {
  font-family: monospace;
  font-size: .68rem;
  line-height: 1.9;
  color: #7FA0FF;
  margin-top: 8px;
}

.code-lines .c {
  color: #4A4F5A;
}

.code-lines .k {
  color: var(--cyan);
}

.code-lines .s {
  color: #FF8A90;
}

.fcard {
  position: absolute;
  border-radius: 15px;
  background: linear-gradient(150deg, #1B1B22, #121216);
  border: 1px solid var(--line-2);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .85);
  animation: float 7s ease-in-out infinite;
  will-change: transform;
}

.fcard .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fcard b {
  display: block;
  font-size: .85rem;
  font-weight: 600;
}

.fcard small {
  color: var(--muted);
  font-size: .68rem;
}

.fc1 {
  top: 0;
  right: 0;
}

.fc2 {
  top: 36%;
  right: -14px;
  animation-delay: -2.4s;
}

.fc3 {
  bottom: 8%;
  right: 8%;
  animation-delay: -4.2s;
}

.fc4 {
  bottom: -4px;
  left: 0;
  animation-delay: -1.2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.ic-blue {
  background: rgba(53, 109, 255, .14);
  color: #7FA0FF;
}

.ic-cyan {
  background: rgba(39, 215, 255, .11);
  color: var(--cyan);
}

.ic-red {
  background: rgba(232, 67, 78, .12);
  color: #FF8A90;
}

.ic-vio {
  background: rgba(122, 90, 255, .13);
  color: #B0A0FF;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: .62rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-hint i {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--crimson), transparent);
  animation: drip 1.8s ease infinite;
}

@keyframes drip {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  55% {
    transform: scaleY(1);
    transform-origin: top;
  }

  56% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* circuit divider */
.circuit {
  display: block;
  width: 100%;
  height: 80px;
  overflow: visible;
}

.circuit path {
  fill: none;
  stroke: rgba(255, 255, 255, .1);
  stroke-width: 1.3;
}

.circuit circle {
  fill: var(--black);
  stroke: rgba(255, 255, 255, .25);
  stroke-width: 1.3;
}

.tracer {
  fill: var(--cyan);
  filter: drop-shadow(0 0 6px var(--cyan));
}

.tracer.r {
  fill: #FF5A63;
  filter: drop-shadow(0 0 6px #FF5A63);
}

/* counters */
.counters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.counter {
  background: var(--coal);
  padding: 34px 16px;
  text-align: center;
  transition: background .35s;
}

.counter:hover {
  background: var(--panel);
}

.counter .num {
  font-size: 2.2rem;
  font-weight: 700;
}

.counter .num s {
  text-decoration: none;
  color: var(--crimson);
}

.counter p {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* vs comparison (also used in Why Us) */
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 60px;
}

.vs-col {
  border-radius: var(--r);
  padding: 38px;
  position: relative;
  overflow: hidden;
}

.vs-old {
  background: var(--coal);
  border: 1px solid var(--line);
}

.vs-new {
  background: linear-gradient(165deg, #15151C, #100D0E);
  border: 1px solid rgba(232, 67, 78, .3);
  box-shadow: 0 30px 70px -40px rgba(232, 67, 78, .35);
}

.vs-new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
}

.vs h3 {
  font-size: 1.12rem;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vs-old h3 {
  color: var(--muted);
}

.vs ul {
  list-style: none;
  display: grid;
  gap: 15px;
}

.vs li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .9rem;
}

.vs-old li {
  color: var(--muted);
}

.vs li .m {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: .62rem;
  margin-top: 2px;
}

.vs-old .m {
  background: rgba(255, 255, 255, .06);
  color: var(--dim);
}

.vs-new .m {
  background: rgba(232, 67, 78, .15);
  color: #FF8A90;
}

.vs li b {
  font-weight: 500;
  color: #fff;
  display: block;
}

.vs-old li b {
  color: #9AA0AC;
}

.vs li span {
  font-size: .8rem;
}

/* marquee */
.marquee {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  width: max-content;
  animation: mq 34s linear infinite;
}

.marquee.rev {
  animation: mqr 38s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

@keyframes mqr {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--coal);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: .88rem;
  white-space: nowrap;
  transition: .3s;
}

.chip:hover {
  border-color: rgba(232, 67, 78, .45);
  transform: translateY(-3px);
}

.chip i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(140deg, var(--blue), var(--cyan));
}

.chip:nth-child(3n) i {
  background: linear-gradient(140deg, var(--crimson), #FF8A90);
}

.fade-edges {
  position: relative;
  overflow: hidden;
}

.fade-edges::before,
.fade-edges::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.fade-edges::before {
  left: 0;
  background: linear-gradient(90deg, var(--black), transparent);
}

.fade-edges::after {
  right: 0;
  background: linear-gradient(-90deg, var(--black), transparent);
}

/* testimonials */
.tst-track {
  display: flex;
  gap: 20px;
  margin-top: 60px;
  transition: transform .7s var(--ease);
}

.tst {
  min-width: calc(33.333% - 14px);
  border-radius: var(--r);
  background: var(--coal);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stars {
  color: #FFB84B;
  letter-spacing: 3px;
  font-size: .85rem;
}

.tst p {
  font-size: .9rem;
  color: #B8BEC9;
  flex: 1;
}

.tst .who {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tst .av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  font-size: .85rem;
}

.tst .who b {
  display: block;
  font-size: .88rem;
  font-weight: 600;
}

.tst .who small {
  color: var(--muted);
  font-size: .73rem;
}

.tst-nav {
  display: flex;
  gap: 10px;
  margin-top: 34px;
  justify-content: center;
}

.tst-dot {
  width: 34px;
  height: 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .12);
  border: 0;
  cursor: pointer;
  transition: .3s;
}

.tst-dot.on {
  background: linear-gradient(90deg, var(--blue), var(--crimson));
}

/* cta box */
.cta-box {
  border-radius: 26px;
  background: linear-gradient(140deg, #15151C, #0D0D10 50%, #171013);
  border: 1px solid var(--line-2);
  padding: 90px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 67, 78, .13), transparent 65%);
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  animation: pulse 4s infinite;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 720px;
  margin: 0 auto 18px;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 1.02rem;
}

/* responsive */
@media(max-width:1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero-visual {
    height: 520px;
    max-width: 560px;
  }

  .counters {
    grid-template-columns: repeat(3, 1fr);
  }

  .tst {
    min-width: calc(50% - 10px);
  }
}

@media(max-width:760px) {
  .vs {
    grid-template-columns: 1fr;
  }

  .counters {
    grid-template-columns: repeat(2, 1fr);
  }

  .tst {
    min-width: 100%;
  }

  .hero-visual {
    height: 470px;
  }

  .fc2 {
    right: 0;
  }

  .svc-grid .svc {
    padding: 20px;
  }

  .cta-box {
    padding: 20px !important;
  }
}