/* =========================================
   HERO — Landing Page Hero Section
   ========================================= */

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse-glow 4s ease-in-out infinite;
}
.glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  bottom: -50px; right: 200px;
  animation-delay: 2s;
}

/* Content */
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent-bright);
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeUp 0.6s ease 0.2s both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 56px;
  animation: fadeUp 0.6s ease 0.3s both;
}
.btn-hero-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-hero-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.4);
}
.btn-hero-ghost {
  padding: 14px 24px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-hero-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: fadeUp 0.6s ease 0.4s both;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Code Window */
.hero-code {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease 0.2s both;
}
.code-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 60px rgba(59,130,246,0.1);
}
.code-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.code-filename {
  margin-left: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.code-body {
  padding: 24px;
  margin: 0;
  overflow-x: auto;
}
.code-body code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #e2e8f0;
  display: block;
  white-space: pre;
}
code .c  { color: #c084fc; }
code .s  { color: #86efac; }
code .fn { color: #60a5fa; }
code .n  { color: #fbbf24; }

/* Features Section */
.section-types {
  padding: 100px 0;
  position: relative;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: block;
  text-decoration: none;
}
.type-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.15);
}
.type-icon { font-size: 32px; margin-bottom: 14px; }
.type-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.type-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.type-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-bright);
  background: rgba(59,130,246,0.1);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
}

/* Features grid */
.section-features { padding: 60px 0 100px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--border-bright); }
.feature-card.feature-large {
  grid-column: span 2;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--text-secondary); }
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-icon-lg { font-size: 40px; margin-bottom: 16px; }

/* CTA */
.section-cta { padding: 80px 0; }
.cta-card {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.1));
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-card p { font-size: 17px; color: var(--text-secondary); margin-bottom: 36px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-ghost-light:hover { color: var(--text-primary); border-color: var(--border-bright); }

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 32px;
    min-height: auto;
    gap: 40px;
  }
  .hero-code { order: -1; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.feature-large { grid-column: span 1; }
}
@media (max-width: 640px) {
  .hero { padding: 24px 16px 40px; gap: 24px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 14px; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; gap: 10px; margin-bottom: 32px; }
  .btn-hero-primary, .btn-hero-ghost { width: 100%; text-align: center; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 12px; }
  .stat-num { font-size: 18px; }
  .stat-divider { display: none; }
  .code-body { padding: 16px; }
  .code-body code { font-size: 11px; }
  .type-grid { grid-template-columns: 1fr; }
  .section-types { padding: 48px 0; }
  .type-card { padding: 20px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .section-features { padding: 40px 0 60px; }
  .feature-card { padding: 20px; }
  .feature-icon-lg { font-size: 28px; }
  .cta-card { padding: 32px 20px; }
  .cta-card h2 { font-size: 24px; }
  .cta-card p { font-size: 14px; }
  .cta-actions { flex-direction: column; gap: 10px; }
  .section-cta { padding: 40px 0; }
  .hero-badge { font-size: 11px; padding: 4px 10px; }
}
