/* ==========================================================
   HOMEPAGE STYLES
   ========================================================== */

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Push the 3D scene behind the headline by fading center */
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 40%, #000 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 40%, #000 70%);
  opacity: 0.95;
}
.hero-3d canvas {
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  width: 1000px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(10, 83, 255, 0.18), transparent 60%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  pointer-events: none;
}
.hero-inner > * { pointer-events: auto; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}
.hero-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: pulse 2s ease-in-out infinite;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--ink-1);
  text-align: center;
  max-width: 15ch;
  margin: 0 auto;
  word-break: normal;
  overflow-wrap: normal;
}
.hero-line { display: block; }
.hero-headline em {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--blue);
  font-style: italic;
  letter-spacing: -0.02em;
}

/* Bouncy letter animation */
.bounce-letter {
  opacity: 0;
  transform: translateY(60px) scale(0.8);
}
.bounce-letter.animate-in {
  animation: bounceIn 0.9s cubic-bezier(0.34, 1.7, 0.64, 1) forwards;
}
@keyframes bounceIn {
  0% { opacity: 0; transform: translateY(60px) scale(0.7); }
  60% { opacity: 1; transform: translateY(-8px) scale(1.04); }
  80% { transform: translateY(3px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-sub {
  max-width: 620px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-3);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
  flex-wrap: wrap;
  justify-content: center;
}
.play-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  padding-left: 1px;
}

.hero-foot {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  padding: 16px 28px;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.3s forwards;
}
.hero-foot-item { display: flex; flex-direction: column; gap: 0; align-items: center; }
.hero-foot-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  line-height: 1;
}
.hero-foot-label {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.hero-foot-divider { width: 1px; height: 28px; background: var(--line); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.5s forwards;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-line span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: var(--blue);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -30%; }
  100% { top: 100%; }
}

@media (max-width: 768px) {
  .hero { padding: 110px 0 80px; min-height: auto; }
  .hero-foot { gap: 16px; padding: 12px 18px; }
  .hero-foot-num { font-size: 18px; }
  .hero-foot-label { font-size: 10px; }
  .hero-foot-divider { height: 24px; }
}

/* ---------- CLIENT STRIPE ---------- */
.stripe {
  padding: 24px 0;
  background: var(--ink-1);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.stripe::before, .stripe::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.stripe::before { left: 0; background: linear-gradient(90deg, var(--ink-1), transparent); }
.stripe::after { right: 0; background: linear-gradient(-90deg, var(--ink-1), transparent); }

.stripe-track {
  display: flex;
  gap: 60px;
  animation: stripeScroll 40s linear infinite;
  white-space: nowrap;
}
@keyframes stripeScroll {
  to { transform: translateX(-33.33%); }
}
.stripe-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.85);
}
.stripe-dot { color: var(--blue-soft); font-size: 14px; }

/* ---------- STATS ---------- */
.stats { background: var(--bg); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-glow);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink-1);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num .stat-suf { font-size: 0.55em; color: var(--blue); font-weight: 500; }
.stat-label {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.stat-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
}
.stat-bar {
  margin-top: 24px;
  height: 3px;
  background: var(--bg-tint);
  border-radius: 999px;
  overflow: hidden;
}
.stat-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  border-radius: 999px;
  transition: width 1.2s var(--ease-out);
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ---------- SERVICES ---------- */
.services { background: var(--bg); }
.section-head-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  max-width: none;
}
.section-head-row > div { display: flex; flex-direction: column; gap: 18px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  perspective: 1500px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 320px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
  --mx: 50%;
  --my: 50%;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-glow);
}
.sc-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(circle 200px at var(--mx) var(--my), rgba(10, 83, 255, 0.08), transparent);
}
.service-card:hover .sc-shine { opacity: 1; }

.sc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.sc-num {
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
}
.sc-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, #FFFFFF 0%, #EEF2F9 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease-spring);
  transform: translateZ(40px);
}
.service-card:hover .sc-icon {
  transform: translateZ(60px) scale(1.05) rotate(-4deg);
}
.sc-icon svg { width: 38px; height: 38px; }

.sc-body { flex: 1; }
.sc-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin-bottom: 10px;
}
.sc-desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}
.sc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.sc-impact {
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}
.impact-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.sc-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-2);
  transition: all 0.3s;
}
.service-card:hover .sc-arrow {
  background: var(--blue);
  color: #fff;
  transform: rotate(-45deg);
}

/* ---------- WHY US ---------- */
.why-us { background: var(--ink-1); color: #fff; border-radius: 48px; margin: 0 16px; position: relative; overflow: hidden; }
.why-us::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(10, 83, 255, 0.4), transparent 60%);
  filter: blur(80px);
}
.why-us .section-head { color: #fff; }
.why-us .display-2 { color: #fff; }
.why-us .eyebrow { color: rgba(255,255,255,0.6); }
.why-us .eyebrow::before { background: rgba(255,255,255,0.3); }
.why-us .display-2 em { color: var(--blue-soft); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
}
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 36px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
}
.why-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-6px);
  border-color: rgba(122, 165, 255, 0.4);
}
.why-card-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 100%;
  background: radial-gradient(circle, rgba(10, 83, 255, 0.3), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.5s;
}
.why-card:hover .why-card-glow { opacity: 1; }

.why-num {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.why-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}
.why-kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--blue-glow);
  margin: 8px 0 18px;
}
.why-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin-bottom: 24px;
}
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.why-list svg circle { fill: rgba(10, 83, 255, 0.25); }
.why-list svg path { stroke: var(--blue-glow); }

/* ---------- TECH RING ---------- */
.tech {
  background: var(--bg);
  text-align: center;
}
.tech .section-head { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }

.tech-ring-wrap {
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  position: relative;
}

.tech-ring {
  width: 480px;
  height: 480px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-8deg);
}

/* The chips are placed in a 2D ring around the center using rotation+translate. */
.tech-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  margin: -46px;
  /* place via 2D rotation then push outward, then un-rotate so the chip stays upright */
  transform: rotate(var(--angle)) translate(220px) rotate(calc(var(--angle) * -1));
  animation: chipFloat 6s ease-in-out infinite;
  animation-delay: calc(var(--angle) / 360deg * -3s);
}
@keyframes chipFloat {
  0%, 100% { margin-top: -46px; }
  50% { margin-top: -56px; }
}
.tech-chip-inner {
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.4s var(--ease-out);
}
.tech-chip:hover .tech-chip-inner {
  transform: scale(1.12);
  border-color: var(--blue-glow);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(10, 83, 255, 0.2);
}
.tech-chip:hover .tech-short { color: var(--blue-deep); }
.tech-short {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--blue);
  line-height: 1;
}
.tech-name {
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.tech-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  z-index: 5;
}
.tech-center-inner {
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(10, 83, 255, 0.2);
  border: 1px solid var(--line);
}
.tech-center-label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

@media (max-width: 700px) {
  .tech-ring-wrap { height: 420px; }
  .tech-ring { width: 340px; height: 340px; }
  .tech-chip {
    width: 72px; height: 72px; margin: -36px;
    transform: rotate(var(--angle)) translate(150px) rotate(calc(var(--angle) * -1));
  }
  @keyframes chipFloat {
    0%, 100% { margin-top: -36px; }
    50% { margin-top: -46px; }
  }
  .tech-short { font-size: 18px; }
  .tech-name { font-size: 9px; }
  .tech-center { width: 110px; height: 110px; }
}

/* ---------- REVIEWS ---------- */
.reviews { background: var(--bg); position: relative; overflow: hidden; }

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}
.reviews-head .display-2 em { color: var(--blue); }

.reviews-controls { display: flex; gap: 10px; }
.rev-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-size: 18px;
  color: var(--ink-1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: var(--shadow-xs);
}
.rev-btn:hover {
  background: var(--ink-1);
  color: #fff;
  border-color: var(--ink-1);
  transform: translateY(-2px);
}

.reviews-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .reviews-track { grid-template-columns: 1fr; } }

.review-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.5s var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.review-card.active, .review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-glow);
  transform: translateY(-4px);
}

.rev-stars { display: flex; gap: 3px; }
.rev-quote {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-1);
  letter-spacing: -0.01em;
  font-weight: 400;
}
.rev-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.rev-person { display: flex; align-items: center; gap: 12px; }
.rev-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.rev-name { font-size: 14px; font-weight: 600; color: var(--ink-1); }
.rev-role { font-size: 12px; color: var(--ink-3); }
.rev-metric {
  padding: 6px 12px;
  background: var(--blue-tint);
  border-radius: var(--r-full);
  font-size: 11px;
  color: var(--blue);
  font-weight: 500;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.rev-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-5);
  transition: all 0.3s;
}
.rev-dot.active {
  background: var(--blue);
  width: 24px;
  border-radius: 999px;
}

/* ---------- CTA ---------- */
.cta { padding: 100px 0 60px; }

.cta-card {
  position: relative;
  background: var(--ink-1);
  border-radius: var(--r-2xl);
  padding: 80px 64px;
  overflow: hidden;
  color: #fff;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(10, 83, 255, 0.5), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(74, 130, 255, 0.4), transparent 50%);
  filter: blur(40px);
}
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

.cta-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), rgba(10, 83, 255, 0.2));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
}
.orb-1 {
  width: 200px; height: 200px;
  top: -60px; right: 10%;
  animation: floatOrb 8s ease-in-out infinite;
}
.orb-2 {
  width: 140px; height: 140px;
  bottom: 20%; right: 8%;
  animation: floatOrb 7s ease-in-out infinite 1s;
}
.orb-3 {
  width: 80px; height: 80px;
  bottom: -20px; right: 30%;
  animation: floatOrb 9s ease-in-out infinite 2s;
}
@keyframes floatOrb {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-30px) rotate(180deg); }
}

@media (max-width: 700px) {
  .cta-card { padding: 50px 28px; border-radius: 32px; }
}
