/* ═══════════════════════════════════════════════════════
   Infinity Binary — Home Page Stylesheet
   Hero · Stats Strip · Services Preview · Mission (Dark)
   How We Work · Testimonials · Responsive
   ═══════════════════════════════════════════════════════ */

/* ── 1. Hero Section ── */
.hero {
  background: var(--ink-section);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-blob-1 {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(var(--lime), var(--lime-dark));
  opacity: 0.1;
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  animation: blobFloat 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-blob-2 {
  position: absolute;
  top: -80px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: var(--orange);
  opacity: 0.08;
  border-radius: 50% 70% 40% 60% / 60% 40% 70% 30%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168,230,61,0.12);
  border: 1.5px solid var(--lime);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--lime);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

/* Hero Headline */
.hero-h1 {
  margin-bottom: 1.5rem;
}

.h1-line {
  display: block;
}

.h1-line-light {
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.h1-line-lime {
  color: var(--lime);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 50ch;
  margin-top: 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.trust-pill {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

/* Hero Card Cluster */
.hero-visual,
.card-cluster {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Illustration */
.hero-illustration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: auto;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  border-radius: 24px;
}

@media (max-width: 768px) {
  .hero-illustration {
    display: none;
  }
}

.cluster-card {
  position: absolute;
  border-radius: 16px;
  padding: 28px;
  border: 2px solid var(--ink);
}

.cluster-card-a {
  background: var(--lime);
  top: 20px;
  left: 0;
  width: 280px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-6deg);
  animation: floatA 4s ease-in-out infinite;
}

.cluster-card-b {
  background: var(--white);
  top: 100px;
  left: 50px;
  width: 250px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(4deg);
  animation: floatB 5s ease-in-out 0.5s infinite;
  padding: 22px;
}

.cluster-card-c {
  background: var(--ink);
  bottom: 40px;
  right: 0;
  width: 230px;
  box-shadow: 4px 4px 0 var(--lime);
  transform: rotate(-3deg);
  animation: floatC 4.5s ease-in-out 1s infinite;
  padding: 22px;
  border-color: var(--lime);
}

@keyframes floatA {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-12px); }
}

@keyframes floatB {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-10px); }
}

@keyframes floatC {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-8px); }
}

/* Card A: Projects stat */
.cluster-card-value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.cluster-card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-light);
  margin-top: 4px;
}

.cluster-card-avatars {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.avatar-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* Card B: Retention */
.cluster-card-icon {
  color: var(--orange);
  font-size: 2rem;
}

.cluster-card-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 12px;
}

.cluster-card-chart > div {
  width: 16px;
  background: var(--lime);
  border-radius: 3px 3px 0 0;
}

/* Card C: Countries */
.cluster-card-c .cluster-card-value {
  color: var(--lime);
  font-size: 1.5rem;
}

.cluster-card-c .cluster-card-label {
  color: rgba(255,255,255,0.7);
}

.cluster-card-flags {
  font-size: 1.4rem;
  margin-top: 8px;
}

/* Mobile Stats (hidden on desktop) */
.hero-mobile-stats {
  display: none;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 24px;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}

.mobile-stat {
  text-align: center;
}

.mobile-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  display: block;
}

.mobile-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-light);
}

/* ── 2. Stats Strip ── */
.stats-strip {
  background: var(--lime);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: clamp(32px, 5vw, 48px) 0;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  border-right: 2px solid rgba(0,0,0,0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  margin-top: 6px;
  text-align: center;
}

/* ── 3. Services Preview ── */
.services-preview {
  background: var(--off-white);
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}

.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 3rem;
}

.services-preview-cta {
  text-align: center;
  margin-top: 3rem;
}

.service-preview-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: all 150ms ease;
  position: relative;
}

.service-preview-card:hover {
  transform: translate(-3px,-3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.spc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.spc-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ink);
}

.spc-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.spc-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  border-radius: 100px;
  padding: 4px 12px;
  border: 1.5px solid;
  margin-top: 1rem;
}

.spc-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1rem;
}

.spc-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.spc-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  padding: 4px 12px;
  margin-top: 1rem;
}

.spc-arrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.25rem;
  transition: color 200ms;
}

.spc-arrow:hover {
  color: var(--lime-dark);
}

/* ── 4. Mission (Dark) ── */
.mission-section {
  background: var(--ink-section);
  clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
  padding: clamp(100px, 12vw, 140px) 0;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.mission-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.mission-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.mission-content {
  /* Left column of mission grid */
}

.mission-text {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 52ch;
  margin-top: 1.5rem;
}

.mission-metrics {
  /* Right column of mission grid */
}

/* Metric Cards */
.metric-card {
  background: rgba(168,230,61,0.07);
  border: 1px solid rgba(168,230,61,0.25);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 200ms ease;
}

.metric-card:hover {
  border-color: var(--lime);
  background: rgba(168,230,61,0.12);
  transform: translateX(4px);
}

.metric-icon {
  color: var(--lime);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.metric-info {
  flex: 1;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ── 5. How We Work ── */
.how-we-work {
  background: var(--lime-bg);
  border-top: 2px solid rgba(0,0,0,0.08);
  border-bottom: 2px solid rgba(0,0,0,0.08);
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}

.process-step {
  position: relative;
  text-align: center;
  padding: 0 24px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.step-line {
  position: absolute;
  top: 54px;
  left: calc(50% + 32px);
  right: calc(-50% + 32px);
  height: 2px;
  background: var(--ink);
  z-index: 0;
}

.process-step:last-child .step-line {
  display: none;
}

.step-icon {
  width: 64px;
  height: 64px;
  background: var(--ink);
  border-radius: 16px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  color: var(--lime);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.step-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.6;
  max-width: 20ch;
  margin: 6px auto 0;
}

/* ── 6. Testimonials ── */
.testimonials-section {
  background: var(--off-white);
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}

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

.testimonial-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 4px 4px 0 var(--ink);
}

.testimonial-stars {
  color: var(--orange);
  font-size: 1.1rem;
}

.testimonial-quote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-light);
  font-style: italic;
  line-height: 1.8;
  margin: 1rem 0 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--ink);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.testimonial-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── 7. CTA Banner ── */
/* Base CTA styles are in global.css */

/* ── 7b. Hero Card D - Rating Card ── */
.cluster-card-d {
  background: var(--orange);
  top: 0;
  right: 0;
  width: 220px;
  padding: 20px;
  transform: rotate(5deg);
  animation: floatD 5.5s ease-in-out 0.3s infinite;
}

@keyframes floatD {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-10px); }
}

.cluster-card-stars {
  display: flex;
  gap: 3px;
  margin-top: 10px;
  color: var(--white);
  font-size: 0.85rem;
}

/* ── 7c. Hero Card E - Delivery Card ── */
.cluster-card-e {
  background: var(--lime);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 180px;
  padding: 18px;
  text-align: center;
  animation: floatE 4.8s ease-in-out 0.8s infinite;
}

@keyframes floatE {
  0%, 100% { transform: translateX(-50%) rotate(-2deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-2deg) translateY(-8px); }
}

.cluster-card-value-sm {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-top: 4px;
}

/* ── 8. Service Preview Card Scroll Tilt ── */
.service-preview-card {
  transition: all 200ms ease;
}

@media (hover: hover) {
  .service-preview-card:hover {
    transform: translate(-3px, -3px) scale(1.02);
    box-shadow: 7px 7px 0 var(--ink);
  }
}

/* ── 9. Metric Card Enhanced Hover ── */
.metric-card {
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 10. Testimonial Card Tilt ── */
.testimonial-card {
  transition: all 250ms ease;
}

@media (hover: hover) {
  .testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 6px 6px 0 var(--ink);
  }
}

/* ── 11. Process Step Hover ── */
.process-step {
  transition: transform 300ms ease;
}

.process-step:hover {
  transform: translateY(-4px);
}

.process-step:hover .step-icon {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(168, 230, 61, 0.2);
}

/* ── Responsive: Home ── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .cta-buttons,
  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 130px;
  }
  .card-cluster,
  .hero-visual {
    display: none;
  }
  .cluster-card-d,
  .cluster-card-e {
    display: none;
  }
  .hero-mobile-stats {
    display: grid;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-item {
    padding: 16px;
    border-bottom: 2px solid rgba(0,0,0,0.15);
  }
  .services-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .step-line {
    display: none;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .cta-buttons,
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .services-preview-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    padding: 12px;
  }
}
