.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 50%, var(--gray-100) 100%);
  z-index: -1;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

.hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.highlight-primary {
  color: var(--primary-600);
  font-weight: 800;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--gray-600);
  max-width: 660px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-600);
}

.stat-label {
  font-size: 14px;
  color: var(--gray-500);
}

.hero-visual {
  max-width: 820px;
  margin: 60px auto 0;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.code-window {
  background: var(--gray-900);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--gray-800);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ef4444;
}

.dot.yellow {
  background: #f59e0b;
}

.dot.green {
  background: #22c55e;
}

.code-title {
  margin-left: auto;
  font-size: 13px;
  color: var(--gray-400);
}

.code-body {
  padding: 24px 28px;
  overflow-x: auto;
}

.code-body pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-300);
}

.code-body .keyword {
  color: var(--primary-300);
}

.code-body .string {
  color: #86efac;
}

.code-body .dimmed {
  color: var(--gray-500);
}

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }
}
