/* ============================================================
   Home V3 — Hero Section
   ============================================================ */

.hv3-hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
    overflow: hidden;
}

/* Headline block */
.hv3-hero__content {
    max-width: 820px;
    text-align: center;
    margin-bottom: var(--space-7);
    position: relative;
    z-index: 2;
}

.hv3-hero__headline {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-3xl);
    letter-spacing: -0.04em;
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    margin: 0 0 var(--space-4);
}

.hv3-hero__subheadline {
    font-family: var(--font-family-body);
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
    max-width: 640px;
    margin: 0 auto;
}

/* Chart Canvas */
.hv3-hero__chart {
    width: 100%;
    max-width: 1120px;
    aspect-ratio: 21 / 9;
    background-color: var(--color-surface-primary);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(73, 68, 84, 0.15);
    box-shadow: 0 0 32px rgba(129, 92, 235, 0.05);
    z-index: 2;
}

/* Controls bar */
.hv3-chart__controls {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    right: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    gap: var(--space-3);
}

.hv3-chart__timeframes {
    display: flex;
    gap: 4px;
    background: rgba(29, 31, 39, 0.8);
    backdrop-filter: blur(12px);
    padding: 4px;
    border-radius: var(--radius-md);
}

.hv3-chart__tf {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    font-family: var(--font-family-heading);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.hv3-chart__tf--active {
    background: var(--color-brand-secondary);
    color: var(--color-text-inverse);
}

.hv3-chart__tf:not(.hv3-chart__tf--active):hover {
    background: var(--color-surface-tertiary);
}

.hv3-chart__sliders {
    display: flex;
    gap: var(--space-3);
}

.hv3-chart__slider-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(29, 31, 39, 0.8);
    backdrop-filter: blur(12px);
    padding: 4px 12px;
    border-radius: var(--radius-md);
}

.hv3-chart__slider-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-border-default);
    white-space: nowrap;
}

.hv3-chart__track {
    width: 96px;
    height: 4px;
    background: var(--color-surface-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.hv3-chart__fill {
    height: 100%;
    border-radius: var(--radius-full);
}

.hv3-chart__fill--primary {
    background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-secondary) 100%);
}

.hv3-chart__fill--tertiary {
    background: var(--color-brand-accent);
}

/* Chart visual area */
.hv3-chart__visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hv3-chart__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    display: block;
}

.hv3-chart__ribbon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(113, 213, 230, 0.4));
}

.hv3-chart__ribbon svg {
    width: 100%;
    height: 256px;
    opacity: 0.6;
}

/* Signal badge */
.hv3-chart__badge {
    position: absolute;
    top: 50%;
    left: 66%;
    transform: translateY(-50%);
    background: rgba(43, 164, 104, 0.2);
    border: 1px solid rgba(106, 220, 154, 0.3);
    backdrop-filter: blur(16px);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: 10;
}

.hv3-chart__badge-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-status-success);
    box-shadow: 0 0 12px var(--color-status-success);
    flex-shrink: 0;
}

.hv3-chart__badge-title {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xs);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--color-status-success);
}

.hv3-chart__badge-sub {
    font-size: 10px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* CTA below chart */
.hv3-hero__cta {
    margin-top: var(--space-7);
    z-index: 2;
}

/* Responsive headline size */
@media (min-width: 768px) {
    .hv3-hero__headline {
        font-size: var(--font-size-4xl);
    }

    .hv3-chart__sliders {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hv3-hero__chart {
        aspect-ratio: 4 / 3;
    }

    .hv3-chart__sliders {
        display: none;
    }

    .hv3-chart__badge {
        left: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
    }
}
