/* HeroSection — ported from core/presentation/section/HeroSection.kt */

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--divider);
}

/*
 * The moonrise: a soft radial glow with a hard-edged disc sitting in it. The
 * Compose build drew both on a Canvas; here they are two absolutely-positioned
 * elements, which the compositor can paint without touching the main thread.
 */
.hero-image-wrapper {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.hero-image {
    width: 100%;
    max-width: 1800px;
    min-width: 1200px;
    height: auto;
}

@keyframes hero-drift {
    0%, 100% { translate: -50% 0; }
    50%      { translate: -50% -10px; }
}

/* Respect the OS setting — a drifting background is exactly what this is for. */
@media (prefers-reduced-motion: reduce) {
    .hero__glow { animation: none; }
}

.hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: calc(var(--hero-padding-top) + var(--header-height) + var(--header-float-inset) * 2);
    padding-bottom: var(--hero-padding-bottom);
    padding-inline: var(--hero-padding-h);
}

.hero__eyebrow {
    color: var(--accent);
    margin-bottom: 28px;
}

.hero__title {
    max-width: var(--hero-title-max-width);
    margin: 0;
    color: var(--text-primary);
}

.hero__body {
    max-width: var(--hero-body-max-width);
    margin: 30px 0 0;
    color: var(--text-body);
}

.hero__cta {
    margin-top: 36px;
}
