/* ─────────────────────────────── HERO ─────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* soft radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(230,57,70,0.13) 0%, rgba(167,139,250,0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* subtle grid lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.038) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  background: rgba(62,207,142,0.06);
  border: 1px solid rgba(62,207,142,0.22);
  border-radius: 99px;
  font-size: 0.7rem;
  color: var(--green);
  margin-bottom: 2.5rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.01em;
  animation: slideDown 0.6s ease-out;
}
.hero-pill .pulse {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}

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

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: slideDown 0.6s ease-out 0.1s both;
}

.hero-wordmark {
  font-size: clamp(4.5rem, 14vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.87;
  color: #fff;
  margin-bottom: 0.5rem;
  position: relative;
  animation: slideDown 0.6s ease-out 0.2s both;
  /* subtle text shadow for depth */
  text-shadow: 0 0 80px rgba(230,57,70,0.18), 0 2px 0 rgba(0,0,0,0.4);
}
.hero-wordmark .dot { color: var(--accent); }

.hero-wordmark-jp {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  color: var(--text-3);
  letter-spacing: 0.28em;
  font-weight: 400;
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-desc {
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  font-weight: 450;
  color: var(--text-2);
  line-height: 1.75;
  animation: slideDown 0.6s ease-out 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: slideDown 0.6s ease-out 0.4s both;
}

/* Stats bar */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: slideDown 0.6s ease-out 0.5s both;
  flex-wrap: wrap;
}
.stat-cell {
  padding: 1rem 1.75rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-val {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.05em;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-key {
  display: block;
  font-size: 0.62rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .hero { padding: 7rem 1.5rem 4rem; }
}

@media (max-width: 768px) {
  .hero { padding: 6rem 1.25rem 3.5rem; }
  .hero-wordmark { font-size: clamp(3.5rem, 12vw, 8rem); }
  .hero-pill { font-size: 0.65rem; padding: 0.25rem 0.75rem; }
  .hero-actions { gap: 0.5rem; margin-bottom: 3rem; }
  .hero-stats { flex-direction: row; }
}

@media (max-width: 640px) {
  .hero { 
    padding: 5.5rem 1rem 3rem;
    min-height: auto;
  }
  .hero-wordmark { font-size: clamp(2.5rem, 10vw, 5rem); margin-bottom: 0.75rem; }
  .hero-wordmark-jp { font-size: clamp(0.6rem, 1.2vw, 0.8rem); margin-top: 0.5rem; margin-bottom: 1.25rem; }
  .hero-pill { font-size: 0.6rem; margin-bottom: 1.5rem; }
  .hero-eyebrow { font-size: 0.6rem; margin-bottom: 1rem; }
  .hero-desc { font-size: 0.85rem; margin-bottom: 1.75rem; }
  .hero-actions { gap: 0.4rem; margin-bottom: 2.5rem; }
  .hero-stats { display: flex; gap: 0; flex-wrap: wrap; }
  .stat-cell { 
    padding: 0.85rem 1.25rem;
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
  .stat-cell:nth-child(3), .stat-cell:nth-child(4) {
    border-right: none;
  }
  .stat-val { font-size: 1.1rem; margin-bottom: 0.25rem; }
  .stat-key { font-size: 0.55rem; }
}

@media (max-width: 480px) {
  .hero { padding: 5rem 0.75rem 2.5rem; }
  .hero-wordmark { font-size: clamp(2rem, 8vw, 3.5rem); }
  .hero-pill { margin-bottom: 1.25rem; }
  .hero-desc { font-size: 0.8rem; line-height: 1.6; margin-bottom: 1.5rem; }
  .stat-cell { 
    padding: 0.75rem 1rem;
    flex: 1;
    border-bottom: 1px solid var(--border);
    border-right: none;
    width: 50%;
  }
  .stat-cell:last-child { border-bottom: none; }
  .stat-cell:nth-child(3), .stat-cell:nth-child(4) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat-cell:nth-child(4) { border-bottom: none; }
  .stat-val { font-size: 1rem; }
  .stat-key { font-size: 0.5rem; }
}

@media (max-width: 360px) {
  .hero { padding: 4rem 0.5rem 2rem; }
  .hero-wordmark { font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -0.04em; }
  .hero-wordmark-jp { letter-spacing: 0.18em; font-size: 0.55rem; margin-top: 0.4rem; margin-bottom: 1rem; }
  .hero-pill { font-size: 0.58rem; margin-bottom: 1rem; }
  .hero-eyebrow { font-size: 0.55rem; }
  .hero-desc { font-size: 0.75rem; line-height: 1.55; margin-bottom: 1.25rem; }
  .stat-val { font-size: 0.88rem; }
  .stat-key { font-size: 0.48rem; letter-spacing: 0.08em; }
  .hero-actions { margin-bottom: 2rem; }
}

/* ── Hero canvas particles layer ─────────────────────────────────────────── */
#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Stats float — triggered by JS class after entrance anim ─────────────── */
.hero-stats.floating {
  animation: float-y 5s ease-in-out infinite !important;
}

/* ── Glitch class (JS toggles this) ─────────────────────────────────────── */
.hero-wordmark.glitching {
  animation: slideDown 0.6s ease-out 0.2s both, glitch-skew 0.4s steps(3) forwards !important;
}

/* ── EYEBROW BRACKET STYLE ──────────────────────────────────────────── */
.eyebrow-bracket {
  color: var(--accent);
  font-weight: 700;
  opacity: 0.6;
}

/* ── HERO WORDMARK ACCENT SPLIT ─────────────────────────────────────── */
.wm-accent {
  color: #fff;
}

/* ── HERO SCANLINES ─────────────────────────────────────────────────── */
.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  opacity: 0.5;
}

