body.home main {
  max-width: none;
  margin: 0;
  padding: 0 0 28px;
}

.home-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

body.home .top {
  background: color-mix(in srgb, var(--top-bg) 78%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 84px 0 64px;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 140%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(420px 320px at 12% 20%, rgba(37, 99, 235, 0.16), transparent 70%),
    radial-gradient(380px 300px at 88% 10%, rgba(34, 197, 94, 0.12), transparent 68%),
    radial-gradient(280px 220px at 70% 80%, rgba(37, 99, 235, 0.08), transparent 70%);
  animation: glow-drift 16s ease-in-out infinite;
}

.rise {
  animation: rise 0.85s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.16s; }
.rise.d3 { animation-delay: 0.24s; }
.rise.d4 { animation-delay: 0.18s; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.7s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
  transition-delay: var(--d, 0ms);
}

.reveal-on-scroll.is-in {
  opacity: 1;
  transform: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0 0 16px;
  max-width: 14ch;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lede {
  margin: 0 0 24px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gateway-anim {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  animation:
    rise 0.9s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) 0.2s both,
    float-container 7s ease-in-out 1.2s infinite;
}

.ga-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ga-pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-green 2s infinite;
}

.ga-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ga-item {
  display: flex;
  align-items: center;
  padding: 14px;
  background: var(--nav-active-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  min-width: 0;
}

.ga-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.08), transparent);
  transform: translateX(-100%);
  z-index: 0;
}

.ga-item:nth-child(1)::before { animation: sweep 6s infinite; }
.ga-item:nth-child(2)::before { animation: sweep 6s infinite 2s; }
.ga-item:nth-child(3)::before { animation: sweep 6s infinite 4s; }

.ga-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.ga-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 4px;
}

.ga-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.ga-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.ga-ref {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ga-amount {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: right;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.ga-status-wrap {
  flex: 0 0 104px;
  width: 104px;
  min-width: 104px;
  height: 30px;
  position: relative;
  z-index: 1;
}

.ga-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ga-status.pending {
  background: var(--border);
  color: var(--muted);
}

.ga-status.pending::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 2px solid var(--muted);
  border-top-color: transparent;
  border-radius: 50%;
  margin-right: 6px;
  animation: spin 1s linear infinite;
}

.ga-status.success {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  opacity: 0;
  transform: scale(0.9);
  gap: 4px;
}

[data-theme="dark"] .ga-status.success {
  color: #4ade80;
}

.ga-item:nth-child(1) .ga-status.pending { animation: hide-pending 6s infinite; }
.ga-item:nth-child(1) .ga-status.success { animation: show-success 6s infinite; }

.ga-item:nth-child(2) .ga-status.pending { animation: hide-pending 6s infinite 2s; }
.ga-item:nth-child(2) .ga-status.success { animation: show-success 6s infinite 2s; }

.ga-item:nth-child(3) .ga-status.pending { animation: hide-pending 6s infinite 4s; }
.ga-item:nth-child(3) .ga-status.success { animation: show-success 6s infinite 4s; }

@keyframes float-container {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes hide-pending {
  0%, 15% { opacity: 1; transform: scale(1); }
  20%, 95% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes show-success {
  0%, 15% { opacity: 0; transform: scale(0.9); }
  20%, 95% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}

@keyframes sweep {
  0%, 5% { transform: translateX(-100%); }
  20% { transform: translateX(100%); }
  21%, 100% { transform: translateX(100%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-row article {
  padding: 22px 18px;
}

.proof-row article + article {
  border-left: 1px solid var(--border);
}

.proof-row strong,
.proof-row span {
  display: block;
}

.proof-row strong {
  margin-bottom: 4px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.proof-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.band {
  padding: 64px 0 8px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-head h2,
.cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.03em;
}

.section-head p,
.cta p {
  margin: 0;
  color: var(--muted);
}

body.home .steps {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
}

.steps,
.products,
.caps {
  display: grid;
  gap: 14px;
}

.steps,
.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.caps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.steps article,
.products article,
.caps article,
.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition:
    transform 0.35s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.35s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.35s ease;
}

.steps article:hover,
.products article:hover,
.caps article:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.steps article {
  position: relative;
  overflow: hidden;
}

.steps article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.steps article:hover::after,
.steps article.is-in::after {
  transform: scaleY(1);
}

.steps span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.steps h3,
.products h3,
.caps h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.steps p,
.products p,
.caps p {
  margin: 0;
  color: var(--muted);
}

.rails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rails li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-weight: 700;
  transition:
    transform 0.35s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.35s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.35s ease;
}

.rails li:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.rails img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  transition: transform 0.4s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.rails li:hover img {
  transform: scale(1.06);
}

.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--nav-active-bg);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 7s ease-in-out 1.4s infinite;
  pointer-events: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes glow-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 18px, 0); }
}

@keyframes sheen {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  body.home .rise,
  body.home .gateway-anim,
  body.home .hero-glow,
  body.home .ga-pulse,
  body.home .ga-item::before,
  body.home .ga-status,
  body.home .cta::before {
    animation: none;
  }

  body.home .reveal-on-scroll,
  body.home .rise {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .proof-row,
  .steps,
  .products,
  .rails {
    grid-template-columns: 1fr;
  }

  .proof-row article + article {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .home-hero {
    padding: 40px 0 32px;
  }

  .home-hero h1 {
    max-width: none;
  }

  .caps {
    grid-template-columns: 1fr;
  }
}
