/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(124, 92, 196, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 45% at 15% 75%, rgba(73, 198, 232, 0.09), transparent 60%),
    var(--black-0);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(216,173,85,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,173,85,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 60% 30%, black, transparent 70%);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  width: 100%;
}

.hero-copy .eyebrow { margin-bottom: 1.4rem; }

.hero-copy h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.08;
  margin-bottom: 1.4rem;
}

.hero-copy h1 .accent-gold { color: var(--gold-bright); }
.hero-copy h1 .accent-purple { color: var(--purple-soft); }

.hero-copy p.lead {
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 480px;
  margin-bottom: 2.1rem;
  line-height: 1.75;
}

.hero-cta-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.hero-secondary-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-secondary-row a, .hero-secondary-row button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-3);
  font-weight: 500;
  transition: color 0.25s;
}
.hero-secondary-row a:hover, .hero-secondary-row button:hover { color: var(--gold-bright); }
.hero-secondary-row svg { width: 16px; height: 16px; }

.hero-chain-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--ink-3);
  margin-top: 2rem;
  letter-spacing: 0.04em;
}
.hero-chain-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(111,191,138,0.6);
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(111,191,138,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(111,191,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,191,138,0); }
}

/* ---- Mascot stage ---- */
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.mascot-ring {
  position: absolute;
  width: min(92%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.mascot-ring.ring-2 {
  width: min(78%, 350px);
  border-style: dashed;
  border-color: rgba(216,173,85,0.18);
  animation: spin-slow 60s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.mascot-glow {
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,173,85,0.22), transparent 70%);
  filter: blur(8px);
}

.mascot-frame {
  position: relative;
  z-index: 3;
  width: min(78%, 340px);
  animation: mascot-float 5.5s var(--ease-in-out) infinite;
}

.mascot-frame img {
  width: 100%;
  border-radius: 50%;
  border: 2px solid rgba(216,173,85,0.35);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 0 40px rgba(124,92,196,0.15);
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-14px) rotate(0.6deg); }
}

.speech-bubble {
  position: absolute;
  top: 6%;
  right: -4%;
  max-width: 250px;
  background: var(--black-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.05rem;
  font-size: 0.86rem;
  color: var(--white);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  z-index: 4;
}
.speech-bubble.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px; left: 28px;
  width: 14px; height: 14px;
  background: var(--black-2);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.speech-bubble .cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--gold-bright);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink-caret 0.9s step-end infinite;
}
@keyframes blink-caret { 50% { opacity: 0; } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta-row, .hero-secondary-row { justify-content: center; }
  .hero-chain-tag { justify-content: center; width: 100%; }
  .hero-stage { min-height: 320px; order: -1; margin-bottom: 1rem; }
  .speech-bubble { right: 4%; }
}
