/* ============================================================
   QIS · Hero
   ============================================================ */

.hero {
    position: relative;
    padding: 168px 0 84px;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--hair);
}

/* Technical grid background with animated scan line */
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(var(--tint-rgb),0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--tint-rgb),0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center center;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 85%);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

/* Market chart background */
.hero-chart {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 68%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.95;
    mask-image:
        linear-gradient(to top, #000 22%, rgba(0,0,0,0.65) 55%, transparent 92%),
        linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-image:
        linear-gradient(to top, #000 22%, rgba(0,0,0,0.65) 55%, transparent 92%),
        linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}
.hero-chart svg { width: 100%; height: 100%; display: block; }

.hero-chart .hc-wick { stroke-width: 1; }
.hero-chart .hc-line {
    fill: none;
    stroke: var(--maize);
    stroke-width: 1.5;
    opacity: 0.6;
}

/* Wordmark */
.hero-wordmark {
    width: min(740px, 88vw);
    height: auto;
    filter: drop-shadow(0 12px 40px var(--wordmark-shadow));
}

/* Tagline */
.hero-tagline {
    font-family: var(--f-serif);
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: -0.015em;
    max-width: 640px;
    margin: 0;
}

.hero-tagline em {
    font-style: italic;
    color: var(--accent-ink);
}

.hero-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 4px;
}

/* Stat strip under buttons — counting numbers */
.hero-stats {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 32px;
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    width: 100%;
    max-width: 860px;
}

.hero-stat {
    flex: 1 1 0;
    padding: 22px 18px;
    border-right: 1px solid var(--hair);
    text-align: left;
}
.hero-stat:last-child { border-right: 0; }

.hero-stat .hs-label {
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 10px;
}

.hero-stat .hs-num {
    font-family: var(--f-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1;
    font-feature-settings: "tnum";
}

.hero-stat .hs-num .unit {
    font-family: var(--f-mono);
    font-size: 0.55em;
    color: var(--ink-faint);
    margin-left: 4px;
    letter-spacing: 0.06em;
    vertical-align: baseline;
}

@media (max-width: 720px) {
    .hero-stats { flex-wrap: wrap; }
    .hero-stat {
        flex: 1 1 50%;
        border-bottom: 1px solid var(--hair);
    }
    .hero-stat:nth-child(2) { border-right: 0; }
    .hero-stat:nth-child(3) { border-bottom: 0; }
    .hero-stat:nth-child(4) { border-right: 0; border-bottom: 0; }
}

@media (max-width: 960px) {
    .hero { padding: 150px 0 64px; }
}
