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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,190,100,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,190,100,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(148,190,100,0.12) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(94,180,200,0.08) 0%, transparent 70%);
  bottom: 0;
  left: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-20);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border-1);
  border-radius: 999px;
  padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-1);
  margin-bottom: var(--sp-6);
  grid-column: 1;
  width: fit-content;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--accent); }
  50% { box-shadow: 0 0 12px var(--accent), 0 0 20px var(--accent-glow); }
}

.hero-title {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.title-line {
  display: block;
}

.title-line.accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.hero-sub {
  grid-column: 1;
  font-size: 18px;
  color: var(--text-1);
  line-height: 1.75;
  max-width: 480px;
}

.hero-cta {
  grid-column: 1;
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ─── TERMINAL ────────────────────────────────────── */
.hero-terminal {
  grid-column: 2;
  grid-row: 1 / 6;
  align-self: center;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(148,190,100,0.05), 0 0 60px rgba(148,190,100,0.08);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

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

.dot-red { background: #e05252; }
.dot-yellow { background: #e5a830; }
.dot-green { background: #5cb85c; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
}

.terminal-body {
  padding: var(--sp-5);
  min-height: 200px;
}

.term-line {
  display: flex;
  gap: var(--sp-5);
  min-height: 22.4px;
}

.ln {
  color: var(--syn-ln);
  user-select: none;
  flex-shrink: 0;
  width: 28px;
  text-align: right;
}

.kw { color: var(--syn-kw); }
.str { color: var(--syn-str); }
.fn { color: var(--syn-fn); }
.op { color: var(--syn-op); }

.cursor {
  color: var(--accent);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-statusline {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-1) var(--sp-5);
  background: var(--accent);
  font-size: 12px;
  font-weight: 700;
  color: #0d0f0e;
}

.mode-indicator {
  font-weight: 800;
  letter-spacing: 0.1em;
}

.file-info {
  flex: 1;
  text-align: center;
}

.pos-info {
  font-variant-numeric: tabular-nums;
}

/* ─── SCROLL HINT ─────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fade-in-up 1s 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  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; }
}

/* ─── STATS BAND ──────────────────────────────────── */
.stats-band {
  padding: var(--sp-10) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 24px var(--accent-glow);
}

.stat-label {
  font-size: 13px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── RESPONSIVE HERO ─────────────────────────────── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
    padding-top: var(--sp-16);
  }
  .hero-badge,
  .hero-title,
  .hero-sub,
  .hero-cta {
    grid-column: 1;
  }
  .hero-terminal {
    grid-column: 1;
    grid-row: auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
