/* === HERO STYLES === */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 40px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--bg);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
}
.live-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: live 2s infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 var(--accent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  font-size: clamp(56px, 10vw, 156px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 18ch;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}

.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--fg-dim);
  max-width: 52ch;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 720px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-metric-n {
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1;
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: -0.04em;
}
.hero-metric-l {
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: pre-line;
  line-height: 1.4;
}

/* Canvas */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.2s ease-out;
}
.hero-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 95%);
  pointer-events: none;
  z-index: 2;
}

/* Floating panels */
.hero-panels {
  position: absolute;
  inset: 0;
  transition: transform 0.3s ease-out;
}
.float-panel {
  position: absolute;
  width: 260px;
  background: rgba(22, 22, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  animation: float 8s ease-in-out infinite;
  transform-origin: center;
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.5);
}
[data-theme="light"] .float-panel {
  background: rgba(245, 242, 237, 0.72);
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-14px) rotate(0.5deg); }
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
}
[data-theme="light"] .panel-head {
  background: rgba(0,0,0,0.04);
}
.panel-lights { display: flex; gap: 4px; }
.panel-lights span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fg-mute);
  opacity: 0.4;
}
.panel-lights span:first-child { background: #FF5F57; opacity: 0.8; }
.panel-lights span:nth-child(2) { background: #FEBC2E; opacity: 0.8; }
.panel-lights span:nth-child(3) { background: #28C840; opacity: 0.8; }
.panel-title {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}
.panel-body {
  padding: 14px;
}
.panel-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
  padding: 4px 0;
}
.panel-line .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.dot.g { background: #28C840; }
.dot.a { background: var(--accent); }
.dot.w { background: #FEBC2E; }
.panel-meter {
  margin-top: 10px;
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.panel-meter-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  animation: fillAnim 3s ease-out forwards;
}
@keyframes fillAnim {
  from { width: 0 !important; }
}
.panel-foot {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--fg-mute);
  margin-top: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.panel-big {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.panel-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-mute);
  margin-left: 6px;
  letter-spacing: 0.05em;
}

/* Alt grid variant */
.hero-canvas-grid {
  opacity: 0.35;
}
.hero-terms {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}
.hero-terms-row {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 45s linear infinite;
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 6vw, 90px);
  line-height: 1;
  color: var(--fg-mute);
  font-weight: 300;
  letter-spacing: -0.02em;
  width: max-content;
}
.hero-terms-row:nth-child(even) { animation-direction: reverse; }
.hero-terms-row .em {
  color: var(--accent);
  font-style: italic;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.scroll-line > div {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  to { left: 100%; }
}

@media (max-width: 900px) {
  .hero { padding: 120px 20px 60px; }
  .hero-metrics { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-metric:last-child { grid-column: 1 / -1; }
  .float-panel { width: 180px; }
  .float-panel:nth-child(2) { display: none; }
  .scroll-hint { display: none; }
}
