/* ==========================================================================
   AFOLAOLA — Hero: "one mark resolves into three products"
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--container-pad) 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 20%, rgba(91,95,239,0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 85%, rgba(45,212,167,0.10), transparent 60%),
    var(--color-bg);
}

.hero__eyebrow {
  text-wrap: balance;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: var(--ls-wider);
  color: var(--color-honor-text, var(--color-honor));
  margin-bottom: var(--space-lg);
}

.hero__mark-stage {
  position: relative;
  width: min(90vw, 640px);
  height: min(78vw, 360px);
  min-height: 260px;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__glyph {
  position: relative;
  z-index: 2;
  width: clamp(72px, 14vw, 120px);
  height: clamp(72px, 14vw, 120px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

.hero__node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translate(0, 0) scale(0.6);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  pointer-events: none;
}

.hero__node .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-honor);
  box-shadow: 0 0 20px rgba(45,212,167,0.6);
  animation: dotGlow 3.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero__node .dot { animation: none; }
}

@keyframes dotGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(45,212,167,0.5); }
  50% { box-shadow: 0 0 26px rgba(45,212,167,0.75); }
}

.hero__node span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: var(--ls-wide);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.hero__node--purse { --tx: -220px; --ty: -70px; }
.hero__node--time  { --tx: -110px; --ty: 120px; }
.hero__node--remote { --tx: 110px; --ty: 120px; }
.hero__node--order { --tx: 220px;  --ty: -70px; }

.hero__mark-stage.is-resolved .hero__node {
  opacity: 1;
  transform: translate(var(--tx), var(--ty)) scale(1);
}

.hero__mark-stage.is-resolved .hero__glyph {
  opacity: 0.55;
  transform: scale(0.82);
}

.hero__connectors {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
}

.hero__connectors path {
  stroke: var(--color-line);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 4 6;
  opacity: 0;
  transition: opacity 900ms var(--ease-out) 200ms;
}
.hero__mark-stage.is-resolved .hero__connectors path { opacity: 1; }

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.hero h1 .accent { color: var(--color-honor-text, var(--color-honor)); }

.hero__sub {
  text-wrap: balance;
  margin-top: var(--space-lg);
  max-width: 46rem;
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  line-height: var(--lh-lead);
}

.hero__ctas {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.hero__micro {
  margin-top: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-faint);
  animation: bob 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  transition: color 200ms var(--ease-out);
}
.hero__scroll-cue:hover { color: var(--color-honor-text, var(--color-honor)); }
.hero__scroll-cue svg { width: 18px; height: 18px; }

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue { animation: none; }
}

@media (max-width: 640px) {
  .hero { padding-top: 7rem; }
  .hero__eyebrow { font-size: 0.7rem; letter-spacing: var(--ls-wide); }
  .hero__node--purse { --tx: -78px; --ty: -42px; }
  .hero__node--time  { --tx: -56px; --ty: 78px; }
  .hero__node--remote { --tx: 56px; --ty: 78px; }
  .hero__node--order { --tx: 78px;  --ty: -42px; }
}

@media (max-width: 380px) {
  .hero__mark-stage { min-height: 220px; }
  .hero__node--purse { --tx: -66px; --ty: -42px; }
  .hero__node--time  { --tx: -56px; --ty: 78px; }
  .hero__node--remote { --tx: 56px; --ty: 78px; }
  .hero__node--order { --tx: 66px;  --ty: -42px; }
}

@media (max-width: 640px) {
  .hero__eyebrow span { display: block; }
  .hero__eyebrow .hero__eyebrow-sep { display: none; }
}
