/* ============================================
   hero.css — Hero Section & Ticker
   ============================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 2rem 6rem;
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0b1a0e 0%, #0d1117 60%, #1a0b00 100%);
  z-index: 0;
}

.pixel-ground {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background:
    repeating-linear-gradient(90deg,
      #3d7a27 0px, #3d7a27 32px,
      #4a8f30 32px, #4a8f30 64px)
      top / 64px 16px,
    repeating-linear-gradient(90deg,
      #5c3a1e 0px, #5c3a1e 32px,
      #6b4422 32px, #6b4422 64px)
      0 16px / 64px 32px,
    #1a0d06;
  image-rendering: pixelated;
}

/* Sun */
.sun {
  position: absolute;
  top: 80px; right: 120px;
  width: 64px;
  height: 64px;
  background: var(--gold);
  box-shadow: 0 0 0 8px var(--gold-dark), 0 0 0 16px rgba(245,200,66,0.2);
  image-rendering: pixelated;
  animation: sun-pulse 4s ease-in-out infinite;
}

@keyframes sun-pulse {
  0%,100% { box-shadow: 0 0 0 8px  var(--gold-dark), 0 0 0 16px rgba(245,200,66,0.2); }
  50%     { box-shadow: 0 0 0 12px var(--gold-dark), 0 0 0 24px rgba(245,200,66,0.3); }
}

/* Clouds */
.clouds { position: absolute; top: 60px; left: 0; right: 0; }

.cloud {
  position: absolute;
  height: 32px;
  background: rgba(200,220,255,0.12);
  border: 2px solid rgba(200,220,255,0.15);
  image-rendering: pixelated;
  animation: drift linear infinite;
}

.c1 { width: 128px; top:  0px; left: -140px; animation-duration: 30s; }
.c2 { width:  96px; top: 40px; left: -110px; animation-duration: 45s; animation-delay: -10s; }
.c3 { width: 160px; top: 10px; left: -180px; animation-duration: 35s; animation-delay: -20s; }

@keyframes drift { to { transform: translateX(110vw); } }

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.hero-badge {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--green);
  border: 2px solid var(--green-dark);
  background: rgba(90,175,58,0.1);
  display: inline-block;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  box-shadow: var(--pixel-shadow);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.title-line {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 4px;
}

.title-main {
  font-family: var(--font-pixel);
  font-size: 3rem;
  color: var(--green-light);
  text-shadow: 4px 4px 0 var(--green-dark), 8px 8px 0 rgba(0,0,0,0.5);
  line-height: 1.1;
  animation: title-in 0.8s ease both;
}

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

.cursor-blink { animation: blink 1s step-end infinite; }

.hero-sub {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* IP Box */
.hero-ip-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--night-2);
  border: 2px solid var(--green-dark);
  padding: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--pixel-shadow);
  flex-wrap: wrap;
  justify-content: center;
}

.ip-label {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--text-muted);
}

.ip-address {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--green-light);
}

.copy-btn {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  background: var(--green-dark);
  color: var(--text-main);
  border: 2px solid var(--green);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}
.copy-btn:hover {
  background: var(--green);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

/* CTA Buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobs */
.hero-mobs {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3rem;
  z-index: 1;
}

.mob {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  animation: mob-idle 1s steps(2) infinite;
}

.creeper {
  background:
    repeating-linear-gradient(0deg, transparent 0px, transparent 4px,
      rgba(0,0,0,0.1) 4px, rgba(0,0,0,0.1) 8px),
    #4aa33b;
  box-shadow: 0 0 0 2px #2d6e23;
}

.steve {
  background: #c68642;
  box-shadow: 0 0 0 2px #8b5e3c;
}

@keyframes mob-idle {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

/* Scroll hint */
.scroll-indicator {
  position: absolute;
  bottom: 90px;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  animation: fade-in-out 2s ease-in-out infinite;
  z-index: 2;
}

.arrow-down {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  animation: bounce-down 1s ease-in-out infinite;
}

/* ---------- STATUS TICKER ---------- */
.status-ticker {
  background: var(--green-dark);
  border-top: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  overflow: hidden;
  white-space: nowrap;
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}

.ticker-inner {
  display: inline-flex;
  gap: 4rem;
  animation: ticker-scroll 25s linear infinite;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  padding: 0 2rem;
}

.ticker-inner span { white-space: nowrap; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .hero-buttons    { flex-direction: column; align-items: center; }
  .title-main      { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .title-main { font-size: 1.3rem; }
}
