.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--space-xl) var(--space-3xl);
  position: relative;
  overflow: hidden;
  background: var(--color-surface-default);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: hero-fade-up 0.5s ease 0.05s both;
}

.hero__pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-feedback-success);
  animation: hero-glow 2s infinite;
}

@keyframes hero-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
}

.hero__heading {
  position: relative;
  z-index: 1;
}

.hero__line {
  display: block;
  overflow: clip;
  overflow-clip-margin: 0.2em;
  padding-inline: 0.08em;
  margin-inline: -0.08em;
  line-height: var(--line-height-tight);
}

.hero__line-inner {
  display: block;
  font-size: clamp(3.8rem, 7.5vw, 8.2rem);
  font-weight: var(--font-weight-black);
  letter-spacing: -3.5px;
  transform: translateY(110%);
  animation: hero-word-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__line:nth-child(1) .hero__line-inner {
  animation-delay: 0.15s;
  font-weight: var(--font-weight-bold);
}

.hero__line:nth-child(2) {
  padding-bottom: 0.14em;
  overflow-clip-margin: 0.28em;
  padding-inline: 0.12em;
  margin-inline: -0.12em;
}

.hero__line:nth-child(2) .hero__line-inner {
  animation-delay: 0.3s;
  font-family: var(--font-family-serif);
  font-style: italic;
  font-weight: var(--font-weight-regular);
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--color-text-secondary);
}

.hero__line:nth-child(3) .hero__line-inner {
  animation-delay: 0.45s;
}

@keyframes hero-word-up {
  to {
    transform: translateY(0);
  }
}

.hero__accent {
  color: var(--color-brand-primary);
  margin-inline-start: 0.28em;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: var(--space-2xl);
  gap: var(--space-xl);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: hero-fade-up 0.6s ease 0.8s both;
}

.hero__desc {
  font-size: var(--font-size-lead);
  color: var(--color-text-secondary);
  max-width: 40ch;
  line-height: var(--line-height-relaxed);
  font-weight: var(--font-weight-light);
}

.hero__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.stats-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--color-border-default);
  margin-top: 4rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: hero-fade-up 0.6s ease 1s both;
}

.stat {
  flex: 1;
  padding: var(--space-lg) 0 0;
  border-inline-end: 1px solid var(--color-border-default);
}

.stat:last-child {
  border-inline-end: none;
}

.stat--offset {
  padding-inline-start: var(--space-xl);
}

.stat__number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--color-text-primary);
  display: flex;
  align-items: baseline;
}

.stat__suffix {
  font-size: 1.8rem;
  font-weight: var(--font-weight-bold);
  margin-inline-start: 1px;
}

.stat__label {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  inset-inline-end: var(--space-xl);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: hero-fade-up 0.5s ease 1.3s both;
}

.scroll-hint__label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  writing-mode: vertical-rl;
}

.scroll-hint__track {
  width: 1px;
  height: 52px;
  background: var(--color-border-default);
  position: relative;
  overflow: hidden;
}

.scroll-hint__progress {
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--color-text-primary);
  animation: scroll-line 2.5s ease-in-out 1.5s infinite;
}

@keyframes scroll-line {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 0 1.25rem 4rem;
  }

  .hero__pill {
    align-self: flex-start;
    margin-bottom: var(--space-sm);
  }

  .hero__line-inner {
    font-size: clamp(2.8rem, 9vw, 4.5rem);
    letter-spacing: -2px;
  }

  .hero__line:nth-child(2) .hero__line-inner {
    letter-spacing: -0.5px;
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: var(--space-xl);
  }

  .hero__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2.5rem;
  }

  .stat {
    flex: unset;
    min-width: 0;
    padding: var(--space-md) var(--space-md) var(--space-lg) 0;
    border-inline-end: none;
    border-bottom: 1px solid var(--color-border-default);
  }

  .stat:nth-child(odd) {
    border-inline-end: 1px solid var(--color-border-default);
  }

  .stat:nth-child(even) {
    padding-inline-start: var(--space-md);
    padding-inline-end: 0;
  }

  .stat--offset {
    padding-inline-start: var(--space-md);
  }

  .stat:nth-child(odd).stat--offset {
    padding-inline-start: 0;
  }

  .stat:nth-last-child(-n + 2) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .stat__number {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    letter-spacing: -1.5px;
  }

  .stat__suffix {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
  }

  .stat__label {
    font-size: var(--font-size-caption);
    line-height: 1.35;
  }

  .scroll-hint {
    top: 50%;
    bottom: auto;
    inset-inline-end: 0.5rem;
    transform: translateY(-50%);
    animation: hero-scroll-hint-mobile 0.5s ease 1.3s both;
  }
}

@keyframes hero-scroll-hint-mobile {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 14px));
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@media (max-width: 480px) {
  .stat__number {
    font-size: clamp(1.65rem, 10vw, 2rem);
    letter-spacing: -1px;
  }

  .stat__label {
    font-size: var(--font-size-caption);
    letter-spacing: 0.03em;
  }
}
