/* ── Hero ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-12);
  padding: calc(var(--nav-h) + var(--sp-12)) var(--sp-6) var(--sp-12);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

/* ── Animated Background ──────────────────────── */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .13;
  animation: blobFloat 18s ease-in-out infinite;
}
.blob-1 {
  width: 700px; height: 700px;
  background: var(--violet);
  top: -20%; left: -15%;
  animation-duration: 20s;
}
.blob-2 {
  width: 600px; height: 600px;
  background: var(--blue);
  top: -10%; right: -10%;
  animation-duration: 25s;
  animation-delay: -8s;
}
.blob-3 {
  width: 500px; height: 500px;
  background: var(--cyan);
  bottom: -10%; left: 30%;
  animation-duration: 22s;
  animation-delay: -4s;
}

@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.05); }
  66%      { transform: translate(-30px,20px) scale(.95); }
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ── Hero Content ─────────────────────────────── */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  animation: fadeInUp .9s cubic-bezier(.4,0,.2,1) both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  color: #34d399;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem 1rem;
  border-radius: var(--r-full);
  width: fit-content;
  letter-spacing: .04em;
}

.badge-pulse {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16,185,129,.4);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.hero-name {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typewriter {
  font-family: var(--mono);
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: var(--cyan-l);
  min-height: 2em;
  display: flex;
  align-items: center;
  gap: 2px;
}
.tw-prefix { color: var(--violet-l); opacity: .7; }
.tw-cursor {
  display: inline-block;
  animation: blink .85s step-end infinite;
  color: var(--violet-l);
  font-weight: 400;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-subtitle {
  font-size: 1rem;
  color: var(--txt-2);
  max-width: 500px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.hero-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.stack-badge {
  font-size: .75rem;
  font-weight: 600;
  color: var(--txt-3);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: .25rem .75rem;
  border-radius: var(--r-full);
  letter-spacing: .04em;
  transition: all var(--ease);
}
.stack-badge:hover {
  color: var(--violet-l);
  border-color: var(--border-glow);
  background: var(--bg-glass-h);
}

/* ── Terminal Widget ──────────────────────────── */
.hero-terminal {
  background: var(--bg-1);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md), 0 0 0 1px rgba(124,58,237,.08);
  animation: fadeInUp .9s .2s cubic-bezier(.4,0,.2,1) both;
  font-family: var(--mono);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.terminal-title {
  flex: 1;
  text-align: center;
  font-size: .75rem;
  color: var(--txt-3);
  letter-spacing: .04em;
}

.terminal-body {
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl { font-size: .82rem; line-height: 1.5; }
.tl-cmd   { color: var(--violet-l); }
.tl-out   { color: var(--txt-2); padding-left: 1.2em; }
.tl-out.accent  { color: var(--cyan-l); }
.tl-out.success { color: #34d399; }
.blink { animation: blink .85s step-end infinite; }

/* ── Scroll Indicator ─────────────────────────── */
.scroll-down {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  color: var(--txt-3);
  font-size: .85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  animation: scrollBounce 2s ease-in-out infinite;
  transition: color var(--ease);
}
.scroll-down:hover { color: var(--violet-l); }
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: var(--sp-16);
  }
  .hero-content { align-items: center; }
  .hero-subtitle { text-align: center; }
  .hero-badge, .hero-ctas, .hero-stack-row { justify-content: center; }
  .hero-terminal { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 500px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { justify-content: center; }
}
