/*
 * Home V3 — Hero Section
 */

.hv3-hero {
  position: relative;
  min-height: 921px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-5);
  overflow: hidden;
  background: var(--color-surface-primary);
}

/* ── Ambient background blobs ────────────────────────────────── */
.hv3-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hv3-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.hv3-hero__blob--purple {
  width: 600px;
  height: 600px;
  background: var(--color-brand-primary-container);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.hv3-hero__blob--cyan {
  width: 400px;
  height: 400px;
  background: var(--color-brand-accent);
  bottom: 0;
  right: 5%;
  opacity: 0.1;
}

/* ── Text content ────────────────────────────────────────────── */
.hv3-hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  margin-bottom: var(--space-7);
}

.hv3-hero__headline {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: var(--line-height-tight);
  letter-spacing: -0.04em;
  color: var(--color-primary-fixed);
  margin-bottom: var(--space-5);
}

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

/* ── Chart shell ─────────────────────────────────────────────── */
.hv3-hero__chart-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 75rem;
  aspect-ratio: 21 / 9;
  background: var(--color-surface-lowest);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(73, 68, 84, 0.15);
  box-shadow: var(--hv3-glow-purple);
}

/* ── Chart controls bar ──────────────────────────────────────── */
.hv3-hero__chart-controls {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  gap: var(--space-3);
}

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

.hv3-chart-tf {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--color-text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.hv3-chart-tf--active {
  background: var(--color-brand-primary-container);
  color: var(--color-text-inverse);
}

.hv3-chart-tf:hover:not(.hv3-chart-tf--active) {
  background: var(--color-surface-tertiary);
  color: var(--color-text-primary);
}

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

.hv3-chart-slider-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(29, 31, 39, 0.8);
  backdrop-filter: blur(12px);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
}

.hv3-chart-slider-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-border-default);
  white-space: nowrap;
}

.hv3-chart-slider-track {
  width: 6rem;
  height: 0.25rem;
  background: var(--color-surface-highest);
  border-radius: var(--radius-full);
  overflow: hidden;
}

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

.hv3-chart-slider-fill--primary {
  background: var(--hv3-gradient);
}

.hv3-chart-slider-fill--tertiary {
  background: var(--color-brand-accent);
}

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

.hv3-hero__chart-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hv3-hero__chart-placeholder {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(129, 92, 235, 0.04) 0px,
      rgba(129, 92, 235, 0.04) 1px,
      transparent 1px,
      transparent 60px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(129, 92, 235, 0.04) 0px,
      rgba(129, 92, 235, 0.04) 1px,
      transparent 1px,
      transparent 40px
    );
}

/* ── Ribbon SVG overlay ──────────────────────────────────────── */
.hv3-hero__ribbon-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.hv3-hero__ribbon-svg {
  width: 100%;
  height: 16rem;
  filter: drop-shadow(0 0 8px rgba(113, 213, 230, 0.4));
}

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

.hv3-hero__signal-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-brand-secondary);
  flex-shrink: 0;
  box-shadow: var(--hv3-glow-green);
}

.hv3-hero__signal-title {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: 0.6875rem;
  color: var(--color-brand-secondary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hv3-hero__signal-detail {
  font-size: 0.625rem;
  color: var(--color-text-secondary);
}

/* ── CTA row ─────────────────────────────────────────────────── */
.hv3-hero__cta-wrap {
  position: relative;
  z-index: 10;
  margin-top: var(--space-7);
}
