.home-hero {
  position: relative;
  isolation: isolate;
  min-height: min(48vh, 380px);
  margin: 0 0 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.1rem, 3vw, 1.75rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 80% at 85% 35%, oklch(1 0 0 / 0.06), transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 90%, oklch(1 0 0 / 0.04), transparent 50%),
    linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 45%, var(--bg) 100%);
  box-shadow: var(--shadow);
}

.home-hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

.home-playfield {
  position: absolute;
  right: -4%;
  top: 50%;
  width: min(72%, 560px);
  height: auto;
  transform: translateY(-48%);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 650;
  text-wrap: balance;
}

.home-lede {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -0.55rem 0 1.25rem;
  overflow: hidden;
}

.home-stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--border);
}

.home-stat:last-child {
  border-right: 0;
}

.home-stat-value {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.home-stat-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.home-connect {
  margin-bottom: 1.25rem;
}

.home-connect-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.home-connect-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.home-client {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.home-client .mono {
  font-size: 0.92em;
}

.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.home-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 0;
}

.step-n {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.home-steps strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.home-steps p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.home-steps .mono {
  font-size: 0.85em;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.home-goto {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.home-goto a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition:
    border-color var(--dur) ease,
    background var(--dur) ease,
    transform var(--dur) var(--ease);
}

.home-goto a:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
  color: var(--ink);
}

.goto-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-goto .muted {
  font-size: 0.8rem;
  line-height: 1.35;
}

html:not(.reduce-motion) .hc-a-ring,
html:not(.reduce-motion) .hc-b-ring {
  transform-origin: center;
  transform-box: fill-box;
  animation: approach 3.6s var(--ease) infinite;
}

html:not(.reduce-motion) .hc-b-ring {
  animation-delay: 0.9s;
  animation-duration: 4.2s;
}

html:not(.reduce-motion) .hc-a,
html:not(.reduce-motion) .hc-b,
html:not(.reduce-motion) .hc-c {
  animation: hitpulse 3.6s var(--ease) infinite;
}

html:not(.reduce-motion) .hc-b { animation-delay: 0.9s; }
html:not(.reduce-motion) .hc-c { animation-delay: 1.6s; animation-duration: 4s; }

@keyframes approach {
  0%, 100% { opacity: 0.35; transform: scale(1.12); }
  55% { opacity: 0.9; transform: scale(0.92); }
  70% { opacity: 0.15; transform: scale(0.88); }
}

@keyframes hitpulse {
  0%, 100% { opacity: 0.75; }
  55% { opacity: 1; }
  70% { opacity: 0.55; }
}

@media (max-width: 960px) {
  .home-steps,
  .home-goto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-playfield {
    width: min(88%, 480px);
    opacity: 0.55;
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 280px;
    align-items: center;
  }

  .home-playfield {
    right: -18%;
    width: 120%;
    opacity: 0.35;
  }

  .home-steps,
  .home-goto {
    grid-template-columns: 1fr;
  }

  .home-lede {
    max-width: none;
  }

  .home-stats {
    margin-top: -0.45rem;
  }

  .home-stat {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 4px;
  }

  .home-stat-value {
    font-size: 14px;
  }

  .home-stat-label {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-a-ring,
  .hc-b-ring,
  .hc-a,
  .hc-b,
  .hc-c {
    animation: none !important;
  }

  .home-goto a:hover {
    transform: none;
  }
}
