@media (max-width: 479px) {
  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    word-wrap: break-word;
    overflow-wrap: break-word
  }

  .lead {
    font-size: .95rem;
    line-height: 1.6;
    max-width: 100%
  }

  .hero {
    padding-bottom: 32px
  }

  .trust-row {
    font-size: .875rem;
    gap: 8px 12px
  }

  .btn-row {
    margin-top: 20px;
    gap: 10px
  }

  .btn {
    padding: .75em 1.2em;
    font-size: .9rem
  }
}

/* ---------- Grid ---------- */
.pf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 640px) {
  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .pf-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Card ---------- */
.pf-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .6s, transform .6s;
}

.pf-card:hover {
  transform: translateY(-2px);
}

.pf-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

.pf-media img, .pf-media video { /* ADDED: video = converted animation */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.pf-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.pf-heading .ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--brand-b);
}

.pf-heading .ico .icon {
  font-size: 1.1rem;
}

.pf-heading h3 {
  margin-bottom: 0;
}

.pf-body p {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 14px;
}

.pf-links {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto !important;
}

.pf-links .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-b);
  font-weight: 650;
  font-size: .9rem;
}

.pf-watch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.pf-watch:hover {
  color: var(--text);
}

@media (max-width: 479px) {
  .pf-links {
    justify-content: flex-start;
  }
}

/* ---------- Who we are ---------- */
.highlight-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin: 22px 0 4px;
}

.highlight-row li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  white-space: nowrap;
}

.highlight-row .ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand-b);
  flex-shrink: 0;
}

.highlight-row .ico .icon {
  font-size: .95rem;
}

.stat-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 20px 20px 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .6s, transform .6s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--brand-b);
  flex-shrink: 0;
}

.stat-card .ico .icon {
  font-size: 1.05rem;
}

.stat-num {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.stat-card p {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 0;
}

@media (max-width: 639px) {
  .who-we-are .sec-head .lead {
    font-size: .92rem;
  }

  .highlight-row {
    gap: 8px 14px;
  }

  .highlight-row li {
    font-size: .875rem;
    white-space: normal;
  }

  .stat-grid {
    gap: 12px;
    margin-top: 22px;
  }

  .stat-card {
    padding: 16px 16px 18px;
  }

  .stat-card .ico {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    border-radius: var(--r-xs);
  }

  .stat-num {
    font-size: 1.5rem;
    margin-bottom: 3px;
  }

  .stat-card p {
    font-size: .875rem;
  }
}

@media (max-width: 359px) {
  .highlight-row li {
    flex: 1 1 100%;
    justify-content: center;
  }
}

.stat-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

/* ---------- Why AlgoDelta ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

@media (min-width: 720px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
  padding: 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .6s, transform .6s;
}

.why-card:hover {
  transform: translateY(-2px);
}

.why-card .ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--brand-b);
  flex-shrink: 0;
}

.why-card .ico .icon {
  font-size: 1.15rem;
}

.why-card h3 {
  margin-bottom: 6px;
}

.why-card p {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 0;
}

/* ---------- Strategy chips ---------- */
.strategy-section {
  position: relative;
  overflow: hidden;
}

.strategy-section .sec-head {
  position: relative;
}

.strategy-grid {
  position: relative;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .strategy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .strategy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1120px) {
  .strategy-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.strategy-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 650;
  font-size: .92rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .6s, transform .6s;
}

.strategy-chip:hover {
  transform: translateY(-2px);
}

.strategy-chip .ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand-b);
  flex-shrink: 0;
}

.strategy-chip .ico .icon {
  font-size: .95rem;
}

.cta-panel {
  position: relative;
  overflow: hidden;
}

.cta-visual {
  position: relative;
  min-width: 0;
}

.cta-visual img, .cta-visual video { /* ADDED: video = converted GIF animation */
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  object-fit: contain;
}

@media (max-width: 939px) {
  .cta-visual {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
}

/* ---------- Testimonials: 2-row horizontal drifting wall ---------- */
.testimonial-section {
  overflow: hidden;
}

.testi-wall {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  margin-inline: auto;
  padding-block: 12px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.testi-row {
  position: relative;
  overflow: hidden;
  width: 100%
}

.testi-row-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  will-change: transform;
  animation-duration: var(--testi-speed);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.testi-row[data-dir="left"] .testi-row-track {
  animation-name: testi-horizontal-left;
}

.testi-row[data-dir="right"] .testi-row-track {
  animation-name: testi-horizontal-right;
}

@keyframes testi-horizontal-left {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes testi-horizontal-right {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.testi-wall:hover .testi-row-track {
  animation-play-state: paused;
}

.testi-card {
  position: relative;
  flex: 0 0 360px;
  width: 360px;
  padding: 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.testi-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  font-size: .875rem;
  flex-shrink: 0;
}

.testi-avatar.tone-green {
  color: var(--green);
  background: var(--green-12);
  border: 1px solid var(--green-32);
}

.testi-avatar.tone-blue {
  color: var(--blue);
  background: var(--blue-12);
  border: 1px solid var(--blue-32);
}

.testi-avatar.tone-pink {
  color: var(--brand-a);
  background: var(--brand-a-12);
  border: 1px solid var(--brand-a-32);
}

.testi-avatar.tone-cyan {
  color: var(--cyan);
  background: var(--cyan-12);
  border: 1px solid var(--cyan-32);
}

.testi-head strong {
  display: block;
  font-size: .9rem;
  color: var(--head);
}

.testi-stars {
  display: flex;
  gap: 2px;
  color: var(--brand-b);
  margin-top: 2px;
}

.testi-stars .icon {
  font-size: .875rem;
}

.testi-card p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.65;
  margin-bottom: 0;
}

@media (max-width: 719px) {
  .testi-wall {
    gap: 14px;
  }

  .testi-row-track {
    gap: 14px;
  }

  .testi-card {
    flex-basis: 300px;
    width: 300px;
    padding: 18px;
  }
}

@media (min-width: 1200px) {
  .testi-card {
    flex-basis: 380px;
    width: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testi-row-track {
    animation: none !important;
    transform: none !important;
  }
}

/* ---------- Trusted banner ---------- */
.trusted-banner {
  padding: clamp(32px, 5vw, 56px) 0;
}

.trusted-panel {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.trusted-panel::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 180px;
  top: -120px;
  left: -80px;
  border-radius: 50%;
  background: var(--brand-a);
  opacity: .08;
  filter: blur(55px);
  pointer-events: none;
}

.trusted-panel::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 160px;
  right: -80px;
  bottom: -110px;
  border-radius: 50%;
  background: var(--brand-b);
  opacity: .08;
  filter: blur(55px);
  pointer-events: none;
}

.trusted-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 11px;
  border: 1px solid var(--brand-a-20);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.trusted-badge .icon {
  width: 13px;
  height: 13px;
}

.trusted-panel h2 {
  max-width: 430px;
  margin: 0;
  color: var(--head);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.trusted-panel p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}

/* text left, animated 2018 -> today timeline right (stacks on small screens) */
.trusted-panel--visual {
  display: grid;
  gap: 24px;
  align-items: center;
}

.trusted-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.trusted-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.trusted-visual img, .trusted-visual video { /* ADDED: video = converted GIF animation */
  display: block;
  width: 100%;
  max-width: 568px;
  height: auto;
}

@media (min-width: 1020px) {
  .trusted-panel--visual {
    grid-template-columns: minmax(0, 1fr) minmax(0, 568px);
    gap: 40px;
  }
}

@media (max-width: 639px) {
  .trusted-banner {
    padding: 28px 0;
  }

}

/* ===== 3D cylinder video carousel ===== */
.showcase .sec-head {
  margin-bottom: 8px
}

.showcase .sec-head .btn {
  margin-top: 22px
}

.cf-wrapper {
  position: relative;
  overflow: hidden;
  height: clamp(330px, 48vh, 500px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  transform: scale(1.04);
}

.cf-scene {
  position: absolute;
  height: 100%;
  width: 100vw;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  perspective: 1300px;
  perspective-origin: 50% 50%;
}

.cf-ring {
  position: absolute;
  height: 100%;
  width: 100vw;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  animation: cf-rotate 32s linear infinite;
}

.cf-wrapper:hover .cf-ring {
  animation-play-state: paused
}

@keyframes cf-rotate {
  from {
    transform: translate(-50%, -50%) rotateY(0deg)
  }

  to {
    transform: translate(-50%, -50%) rotateY(-360deg)
  }
}

@media (prefers-reduced-motion:reduce) {
  .cf-ring {
    animation: none
  }
}

.cf-item {
  position: absolute;
  width: clamp(440px, 31vw, 760px);
  height: clamp(220px, 24vw, 340px);
  left: 50%;
  top: 50%;
  margin-left: calc(clamp(440px, 31vw, 760px) / -2);
  margin-top: calc(clamp(220px, 24vw, 340px) / -2);
  border-radius: clamp(12px, 1.4vw, 18px);
  overflow: hidden;
  border: 1px solid var(--line-2);
  transition: transform 1s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  padding: 0;
  background: var(--surface);
  transform: rotateY(calc(var(--i) * (360deg / var(--count)))) translateZ(calc(var(--radius, 420px) * -1));
  cursor: pointer;
  text-decoration: none;
}

.cf-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cf-item.tone-copy {
  background: linear-gradient(155deg, var(--brand-a), var(--tone-copy-dark))
}

.cf-item.tone-blue {
  background: linear-gradient(155deg, var(--blue), var(--tone-blue-dark))
}

.cf-item.tone-cyan {
  background: linear-gradient(155deg, var(--cyan), var(--tone-cyan-dark))
}

.cf-item.tone-green {
  background: linear-gradient(155deg, var(--green), var(--tone-green-dark))
}

.cf-item.tone-amber {
  background: linear-gradient(155deg, var(--brand-b), var(--tone-amber-dark))
}

/* keep the tone gradient inside the border so the edge stays the neutral --line-2 */
.cf-item,
.cf-item[class*="tone-"] {
  background-clip: padding-box;
}

.cf-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent 42%, var(--overlay-scrim) 100%);
  pointer-events: none;
}

.cf-kicker {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--overlay-text-dim);
  margin-bottom: 4px;
}

.cf-title {
  font-size: .92rem;
  font-weight: 750;
  color: var(--overlay-text);
  line-height: 1.25
}

@media (max-width:639px) {
  .cf-wrapper {
    height: clamp(220px, 38vw, 300px);
    transform: scale(1);
  }

  .cf-scene {
    perspective: 900px;
  }

  .cf-item {
    width: clamp(210px, 68vw, 360px);
    height: clamp(130px, 30vw, 190px);
    margin-left: calc(clamp(210px, 68vw, 360px) / -2);
    margin-top: calc(clamp(130px, 30vw, 190px) / -2);
  }

  .cf-title {
    font-size: .875rem;
  }

  .cf-body {
    padding: 10px 12px;
  }
}

.cf-ring {
  pointer-events: none;
}

.cf-item {
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cf-item img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}