.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-height) 5vw 0;
  position: relative;
  overflow: hidden;
}

/* Grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--black) 80%);
}

/* Scanline */
.hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: scanline 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes scanline {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Content */
.hero-content {
  flex: 1;
  max-width: 680px;
  position: relative;
  z-index: 2;
  padding-right: 40px;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(72px, 10vw, 140px);
  letter-spacing: 0.04em;
  line-height: 0.9;
  margin-bottom: 32px;
}

.hero-line {
  display: block;
  overflow: visible;
  padding-bottom: 0.06em;
}

.hero-line > span,
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(60px);
  animation: heroLineIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line[data-delay="0"] { animation-delay: 0.5s; }
.hero-line[data-delay="100"] { animation-delay: 0.65s; }
.hero-line[data-delay="200"] { animation-delay: 0.8s; }

@keyframes heroLineIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-line-accent {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.5);
}

.hero-sub {
  font-size: 17px;
  color: var(--accent-dim);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 480px;
  overflow: visible;
  padding: 0.1em 0;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.1s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.3s forwards;
}

.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.5s forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-row {
  display: flex;
  align-items: flex-end;
  line-height: 1;
  padding-bottom: 4px;
}

.stat-num {
  font-family: var(--display);
  font-size: 48px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.stat-sym {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 0.02em;
  line-height: 1;
  padding-bottom: 2px;
}

.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-top: 8px;
  display: block;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  min-height: 500px;
  opacity: 0;
  animation: fadeIn 1s ease 0.8s forwards;
}

.hero-box-container {
  position: relative;
  width: 340px;
  height: 340px;
}

/* 3D Box */
.hero-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(-20deg) rotateY(30deg);
  animation: boxRotate 12s linear infinite;
  margin-top: -20px;
}

@keyframes boxRotate {
  from { transform: translate(-50%, -50%) rotateX(-20deg) rotateY(0deg); }
  to { transform: translate(-50%, -50%) rotateX(-20deg) rotateY(360deg); }
}

.box-face {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
}

.box-front  { transform: translateZ(70px); }
.box-back   { transform: translateZ(-70px) rotateY(180deg); }
.box-left   { transform: translateX(-70px) rotateY(-90deg); }
.box-right  { transform: translateX(70px) rotateY(90deg); }
.box-top    { transform: translateY(-70px) rotateX(90deg); }
.box-bottom { transform: translateY(70px) rotateX(-90deg); }

/* Rings */
.hero-box-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}

.ring-1 {
  width: 200px; height: 200px;
  animation: ringRotate 8s linear infinite;
}
.ring-2 {
  width: 270px; height: 270px;
  animation: ringRotate 14s linear infinite reverse;
  border-style: dashed;
  border-color: rgba(255,255,255,0.05);
}
.ring-3 {
  width: 340px; height: 340px;
  animation: ringRotate 20s linear infinite;
  border-color: rgba(255,255,255,0.03);
}

@keyframes ringRotate {
  from { transform: rotate(0deg) rotateX(70deg); }
  to { transform: rotate(360deg) rotateX(70deg); }
}

/* Data Points */
.hero-data-points {
  position: absolute;
  inset: 0;
}

.data-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: dataFloat 4s ease-in-out infinite;
  animation-delay: calc(var(--x) * 10ms);
}

.data-point span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
}

@keyframes dataFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dim);
  opacity: 0;
  animation: fadeIn 0.6s ease 2s forwards;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--accent-dim);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollLineMove 2s ease-in-out infinite;
}

@keyframes scrollLineMove {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
  }
  .hero-content {
    padding-right: 0;
    max-width: 100%;
    text-align: center;
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-sub {
    margin: 0 auto 40px;
  }
  .hero-visual {
    width: 100%;
    min-height: 300px;
  }
  .hero-scroll-indicator {
    display: none;
  }
  .hero-label {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    gap: 20px;
  }
  .hero-stat-divider {
    height: 30px;
  }
  .stat-num, .stat-sym {
    font-size: 32px;
  }
}