/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 120px;
}

/* Canvas grid background */
#grid-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
}

/* Blue radial glow behind hero text */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* Eyebrow tag */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.2s forwards;
}

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

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

/* Main headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-headline .line {
  display: block;
  overflow: hidden;
}

.hero-headline .line-inner {
  display: block;
  opacity: 0;
  transform: translateY(110%);
}

.hero-headline .line:nth-child(1) .line-inner {
  animation: revealLine 0.9s var(--ease-out) 0.4s forwards;
}
.hero-headline .line:nth-child(2) .line-inner {
  animation: revealLine 0.9s var(--ease-out) 0.55s forwards;
  color: var(--blue);
}
.hero-headline .line:nth-child(3) .line-inner {
  animation: revealLine 0.9s var(--ease-out) 0.7s forwards;
  -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  -webkit-text-fill-color: transparent;
}

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

@keyframes fadeSlideUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}

/* Subtext + CTA row */
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 1s forwards;
}

.hero-sub {
  max-width: 400px;
  color: var(--gray-400);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-sub strong {
  color: var(--white);
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Floating badge */
.hero-badge {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 1.2s forwards;
}

.hero-badge-ring {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spin 12s linear infinite;
}

.hero-badge-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(var(--blue), transparent, transparent, var(--blue));
  animation: spin 4s linear infinite;
  z-index: -1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-badge-inner {
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  line-height: 1.4;
  animation: spin 12s linear infinite reverse;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 1.5s forwards;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gray-600);
  text-transform: uppercase;
}

/* Stats bar */
.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 32px var(--gutter);
  max-width: 100%;
  display: flex;
  justify-content: center;
  gap: 0;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 1.3s forwards;
}

.hero-stat {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 0 40px;
  position: relative;
}

.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--white);
  letter-spacing: 0.05em;
}

.hero-stat-value span {
  color: var(--blue);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badge {
    display: none;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .hero-stat {
    min-width: 50%;
    padding: 16px;
  }
}
