/* ======================================================
   WEBEDGE SOLUTIONS - ADVANCED TESTIMONIALS PAGE
====================================================== */

:root {
  --primary: #2563eb;
  --secondary: #06b6d4;
  --accent: #f97316;
  --green: #10b981;
  --dark: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --soft: #f8fafc;
  --grad: linear-gradient(135deg, #2563eb, #06b6d4 55%, #7c3aed);
  --soft-grad: linear-gradient(135deg, rgba(37,99,235,.10), rgba(6,182,212,.10), rgba(249,115,22,.08));
  --shadow: 0 28px 90px rgba(15, 23, 42, .13);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Inter, Segoe UI, sans-serif;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 45%, #eef6ff 100%);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: min(1240px, 92%);
  margin: auto;
  position: relative;
  z-index: 2;
}

.testimonial-page {
  position: relative;
  overflow: hidden;
}

.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  animation: gridMove 22s linear infinite;
}

.page-light {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(85px);
  opacity: .65;
  pointer-events: none;
  animation: floatOrb 9s ease-in-out infinite;
}

.light-one { width: 350px; height: 350px; left: -130px; top: 120px; background: rgba(37,99,235,.20); }
.light-two { width: 360px; height: 360px; right: -150px; top: 230px; background: rgba(6,182,212,.20); animation-delay: 1.4s; }
.light-three { width: 280px; height: 280px; left: 48%; bottom: -120px; background: rgba(249,115,22,.15); animation-delay: 2.4s; }

/* HERO */
.testimonial-hero {
  min-height: 100vh;
  padding: 138px 0 82px;
  display: grid;
  align-items: center;
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 58px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, .18);
  color: var(--primary);
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .08);
}

.hero-copy h1 {
  max-width: 860px;
  margin: 20px 0 22px;
  font-size: clamp(3.05rem, 5.8vw, 6.05rem);
  line-height: .94;
  letter-spacing: -.078em;
}

.hero-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.09rem;
  font-weight: 650;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 950;
  cursor: pointer;
  transition: .32s ease;
}

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 20px 48px rgba(37,99,235,.25);
}

.btn-light {
  color: var(--dark);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}

.btn:hover { transform: translateY(-5px); }

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 690px;
  margin-top: 34px;
}

.trust-metrics article {
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(15,23,42,.07);
  transition: .3s ease;
}

.trust-metrics article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.trust-metrics strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 950;
}

.trust-metrics span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 850;
}

/* REVIEW CONSOLE */
.review-console {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  padding: 24px;
  border-radius: 42px;
  background: #fff;
  border: 1px solid #dbeafe;
  box-shadow: var(--shadow);
  animation: cardFloat 6s ease-in-out infinite;
}

.review-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(37,99,235,.14), transparent 34%),
    radial-gradient(circle at 84% 70%, rgba(6,182,212,.13), transparent 25%);
}

.console-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 950;
}

.console-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
}

.console-top span:nth-child(2) { background: #f59e0b; }
.console-top span:nth-child(3) { background: #22c55e; }

.score-orbit {
  position: relative;
  height: 370px;
  display: grid;
  place-items: center;
}

.score-ring {
  position: relative;
  z-index: 5;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 88%, #e2e8f0 88% 100%);
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 16px;
  background: #fff;
  border-radius: 50%;
}

.score-ring span,
.score-ring small {
  position: relative;
  z-index: 1;
}

.score-ring span {
  font-size: 3rem;
  font-weight: 950;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.score-ring small {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(37,99,235,.32);
  animation: spin 18s linear infinite;
}

.ring-a { width: 260px; height: 260px; }
.ring-b { width: 350px; height: 350px; animation-direction: reverse; }

.orbit-node {
  position: absolute;
  z-index: 5;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  color: var(--primary);
  background: #fff;
  box-shadow: 0 18px 42px rgba(15,23,42,.12);
  font-size: 1.5rem;
  animation: floatOrb 5.2s ease-in-out infinite;
}

.n1 { top: 30px; left: 48%; }
.n2 { right: 50px; top: 138px; animation-delay: .2s; }
.n3 { right: 120px; bottom: 34px; animation-delay: .4s; }
.n4 { left: 120px; bottom: 34px; animation-delay: .6s; }
.n5 { left: 50px; top: 138px; animation-delay: .8s; }
.n6 { top: 164px; right: 218px; animation-delay: 1s; }

.console-bars {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 14px;
}

.console-bars div {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 850;
}

.console-bars i {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.console-bars b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
}

.console-tags {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.console-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4ed8;
  font-weight: 850;
  font-size: .82rem;
}

/* STRIP */
.testimonial-strip {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  padding-bottom: 70px;
}

.strip-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(15,23,42,.08);
}

.strip-card span {
  color: var(--muted);
  font-weight: 900;
}

.strip-card strong {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--soft-grad);
  font-weight: 950;
}

/* GENERAL SECTIONS */
.section {
  position: relative;
  padding: 94px 0;
}

.section-head {
  max-width: 880px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-head h2 {
  max-width: 860px;
  margin: 14px auto;
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.section-head p {
  max-width: 760px;
  margin: auto;
  color: var(--muted);
  font-weight: 650;
}

/* STATS */
.stats-section {
  padding-top: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card,
.testimonial-card,
.video-card,
.case-card,
.experience-points div {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 46px rgba(15,23,42,.07);
  transition: .38s ease;
  transform-style: preserve-3d;
}

.stat-card {
  padding: 26px;
  border-radius: 28px;
}

.stat-card::after,
.testimonial-card::after,
.video-card::after,
.case-card::after,
.experience-points div::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(37,99,235,.16), transparent 32%),
    var(--soft-grad);
  opacity: 0;
  transition: .35s ease;
}

.stat-card:hover,
.testimonial-card:hover,
.video-card:hover,
.case-card:hover,
.experience-points div:hover {
  transform: translateY(-10px) rotateX(4deg);
  border-color: rgba(37,99,235,.28);
  box-shadow: var(--shadow);
}

.stat-card:hover::after,
.testimonial-card:hover::after,
.video-card:hover::after,
.case-card:hover::after,
.experience-points div:hover::after {
  opacity: 1;
}

.stat-card > *,
.testimonial-card > *,
.video-card > *,
.case-card > *,
.experience-points div > * {
  position: relative;
  z-index: 1;
}

.stat-card i,
.video-card i,
.case-card i,
.experience-points i {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 19px;
  color: var(--primary);
  background: var(--soft-grad);
  font-size: 1.35rem;
}

.stat-card strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 950;
}

.stat-card span {
  color: var(--muted);
  font-weight: 850;
}

/* TESTIMONIALS */
.testimonials-section {
  background: linear-gradient(135deg, #fff, #f8fbff 55%, #f0fdfa);
}

.featured-review {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 30px;
  border-radius: 36px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}

.featured-review::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(37,99,235,.12), transparent 30%),
    linear-gradient(135deg, rgba(37,99,235,.08), transparent 45%, rgba(6,182,212,.08));
}

.featured-review > * { position: relative; }

.image-slot {
  aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(135deg, #eff6ff, #f0fdfa);
  border: 1px dashed rgba(37,99,235,.35);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--primary);
  font-weight: 950;
  overflow: hidden;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-slot span {
  font-size: 2rem;
}

.image-slot small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: -25px;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4ed8;
  font-weight: 900;
}

.featured-content h3 {
  margin: 12px 0;
  font-size: 2.3rem;
  letter-spacing: -.04em;
}

.stars {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f59e0b;
  margin: 10px 0;
}

.stars strong {
  margin-left: 8px;
  color: var(--dark);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .82rem;
}

.featured-content blockquote {
  color: #334155;
  font-size: 1.15rem;
  line-height: 1.85;
  border-left: 4px solid var(--primary);
  padding-left: 18px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  min-height: 310px;
  padding: 26px;
  border-radius: 30px;
}

.quote-icon {
  position: absolute;
  right: 22px;
  top: 20px;
  color: rgba(37,99,235,.14);
  font-size: 2.4rem;
}

.client-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.client-row .image-slot {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  flex: none;
}

.client-row h3 {
  font-size: 1.1rem;
}

.client-row p {
  color: var(--muted);
  font-weight: 800;
  font-size: .86rem;
}

.testimonial-card > p {
  color: #475569;
}

/* VIDEO */
.video-section {
  background: #06111f;
  color: #fff;
  overflow: hidden;
}

.video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.08) 1px, transparent 1px);
  background-size: 50px 50px;
}

.video-section .section-head p {
  color: #cbd5e1;
}

.video-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.video-card {
  min-height: 260px;
  padding: 30px;
  border-radius: 30px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.13);
}

.video-card i {
  color: #fff;
  background: var(--grad);
}

.video-card p {
  color: #cbd5e1;
  margin-top: 8px;
}

/* EXPERIENCE */
.experience-section {
  background: #fff;
}

.experience-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.experience-copy h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.experience-copy p {
  color: var(--muted);
  margin-bottom: 26px;
}

.experience-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.experience-points div {
  padding: 22px;
  border-radius: 24px;
}

.experience-points strong {
  display: block;
  margin-bottom: 4px;
}

.experience-points span {
  color: var(--muted);
  font-weight: 700;
}

/* CASE */
.case-section {
  background: linear-gradient(135deg, #fff, #eef6ff);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.case-card {
  min-height: 240px;
  padding: 28px;
  border-radius: 28px;
}

.case-card p {
  color: var(--muted);
  margin-top: 8px;
}

/* CTA */
.cta-section {
  padding: 70px 0 105px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  overflow: hidden;
  position: relative;
  padding: 44px;
  border-radius: 38px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 30px 76px rgba(37,99,235,.26);
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: -55%;
  background: radial-gradient(circle, rgba(255,255,255,.23), transparent 38%);
  animation: bgMove 10s ease-in-out infinite alternate;
}

.cta-card > * { position: relative; }

.cta-card .section-kicker {
  color: #fff;
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.22);
}

.cta-card h2 {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 290px;
  overflow: hidden;
  isolation: isolate;
  padding: 18px 28px;
  border-radius: 24px;
  color: var(--dark);
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 15px 40px rgba(15,23,42,.18);
  transition: transform .45s ease, box-shadow .45s ease;
}

.cta-btn:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 30px 70px rgba(15,23,42,.24), 0 0 45px rgba(6,182,212,.22);
}

.btn-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 28px rgba(37,99,235,.24);
  transition: .4s ease;
}

.cta-btn:hover .btn-icon {
  transform: rotate(-12deg) scale(1.08);
}

.btn-text {
  display: flex;
  flex-direction: column;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.2;
}

.btn-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.btn-arrow {
  color: var(--primary);
  transition: .4s ease;
}

.cta-btn:hover .btn-arrow { transform: translateX(6px); }

.btn-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.8) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: .9s ease;
}

.cta-btn:hover .btn-shine { transform: translateX(120%); }

/* REVEAL */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .75s ease, transform .75s ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(34px);
}

.js .reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }
.delay-3 { transition-delay: .32s; }

/* ANIMATIONS */
@keyframes gridMove { to { background-position: 54px 54px; } }
@keyframes floatOrb { 50% { transform: translateY(-18px) scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cardFloat { 50% { transform: translateY(-12px) rotateX(2deg); } }
@keyframes bgMove { to { transform: translate3d(2%, 2%, 0) scale(1.03); } }

/* RESPONSIVE */
@media (max-width: 1120px) {
  .hero-layout,
  .experience-layout {
    grid-template-columns: 1fr;
  }

  .review-console {
    max-width: 650px;
    margin: auto;
  }

  .testimonial-grid,
  .video-grid,
  .case-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .testimonial-hero {
    padding: 118px 0 66px;
  }

  .hero-copy h1 {
    font-size: 2.6rem;
  }

  .hero-actions,
  .trust-metrics,
  .stats-grid,
  .testimonial-grid,
  .video-grid,
  .experience-points,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .btn { width: 100%; }

  .featured-review {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .featured-image {
    max-width: 220px;
    margin: auto;
  }

  .review-console {
    min-height: auto;
  }

  .score-orbit {
    height: 310px;
  }

  .orbit-node {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .section {
    padding: 72px 0;
  }

  .cta-card {
    flex-direction: column;
    align-items: stretch;
    padding: 30px;
  }

  .cta-btn {
    width: 100%;
    min-width: auto;
  }

  .btn-inner {
    width: 100%;
    justify-content: space-between;
  }
}
