/* Hero: "Meet Blobby." on a plain white band, with the live menu ring and the site's accent
   Blobby (Tang, 2026-10-22: the white and orange look is cleaner than the dark Pearl one).
   js/hero.js fills #heroMenu, scales it and runs the idle demo (ghost cursor carrying a file chip). */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(20px, 3vw, 40px) 0 clamp(64px, 8vw, 112px);
  background: var(--paper);
}

.hero-grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas: "copy toy";
  column-gap: clamp(24px, 4vw, 64px); row-gap: 28px;
}
.hero-copy { grid-area: copy; }
.hero-toy { grid-area: toy; }

.hero-kicker { --kc: var(--accent); }
.hero h1 { margin-bottom: .25em; isolation: isolate; letter-spacing: -.035em; }
.hero-name { color: var(--ink); position: relative; white-space: nowrap; }
/* a glossy accent bar under the name */
.hero-name::after {
  content: ""; position: absolute; left: 0; right: 5%; bottom: .04em; height: .18em; z-index: -1;
  background: var(--sheen), var(--accent); border-radius: 999px; box-shadow: var(--sheen-edge);
}
.hero-tag { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem); line-height: 1.2; margin: .35em 0 .6em; }
.hero-pitch { margin-bottom: 0; }
.hero-cta { margin: 28px 0 0; }

/* ---------- the stage: square, the 480 px menu inside is scaled to fit ---------- */
.hero-stage {
  position: relative; width: 100%; max-width: 600px; margin: 0 auto; aspect-ratio: 1;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.hero-ring { position: absolute; inset: 0; transform-origin: 50% 50%; }
.hero-ring.pop { animation: hero-pop .5s var(--ease-spring); }
@keyframes hero-pop { 0% { transform: scale(.84); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.hero-stage .pm { transform-origin: 0 0; }
/* soft accent glow behind the ring */
.hero-glow {
  position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), color-mix(in srgb, var(--accent) 10%, transparent) 62%, transparent);
  filter: blur(14px); transform: translateY(5%);
}
.hero-bubble {
  position: absolute; left: 50%; bottom: 4%; z-index: 3; white-space: nowrap;
  font: 600 18px/1 var(--font-display); color: var(--ink); background: var(--sheen), var(--gold); border-radius: 999px;
  padding: 11px 18px 10px; box-shadow: var(--sheen-edge), 0 14px 28px -14px rgba(0, 0, 0, .7);
  transform: translate(-50%, 12px) scale(.6); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-spring), opacity .15s;
}
.hero-bubble.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* file chips: the one being dragged, and the original plus the new file after a drop.
   Also used by the explainer scenes (explain.css). */
.hero-chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--ink);
  font: 600 15px/1 var(--font-display); background: var(--paper);
  border-radius: 999px; padding: 7px 13px 6px 8px; box-shadow: inset 0 0 0 1px var(--line), var(--pop-sm);
}
.hero-chip::before {
  content: ""; width: 13px; height: 16px; flex: none; border-radius: 3px 6px 3px 3px;
  background: var(--sheen), var(--sky); box-shadow: var(--sheen-edge);
}
.hero-chip.new { background: var(--sheen), var(--green); box-shadow: var(--sheen-edge), 0 12px 24px -12px color-mix(in srgb, var(--green) 70%, #000); }
.hero-chip.new::before { background: var(--sheen), var(--paper); }
.hero-files {
  position: absolute; left: 50%; bottom: 1%; z-index: 3; display: flex; gap: 10px;
  transform: translateX(-50%); opacity: 0; transition: opacity .25s; pointer-events: none;
}
.hero-files .hero-chip.new { transform: scale(0); transition: transform .45s var(--ease-spring) .25s; }
.hero-files.show { opacity: 1; }
.hero-files.show .hero-chip.new { transform: scale(1); }

.hero-ghost {
  position: absolute; left: var(--gx, -10%); top: var(--gy, 100%); z-index: 4; width: 0; height: 0;
  opacity: 0; pointer-events: none;
  transition: left .75s cubic-bezier(.45, .05, .3, 1), top .75s cubic-bezier(.45, .05, .3, 1), opacity .25s;
}
.hero-ghost.instant { transition: opacity .25s; }
.hero-ghost.show { opacity: 1; }
.hero-cursor { position: absolute; left: -3px; top: -2px; width: 28px; height: 28px; filter: drop-shadow(0 3px 4px rgba(11, 11, 16, .3)); }
.hero-ghost .drag { position: absolute; left: 16px; top: 24px; transition: transform .25s, opacity .2s; }
.hero-ghost.dropped .drag { transform: scale(.2); opacity: 0; }
.hero-key {
  position: absolute; left: 26px; top: -32px; font: 600 14px/1 var(--font-display); color: var(--ink);
  background: linear-gradient(180deg, #fff, #ececf1); border-radius: 9px; padding: 6px 10px 5px;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -3px 0 rgba(11, 11, 16, .1), var(--pop-sm);
  transform: scale(0); transition: transform .3s var(--ease-spring);
}
.hero-ghost.shift .hero-key { transform: scale(1); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "toy"; }
  .hero-copy { text-align: center; }
  .hero-pitch { margin-left: auto; margin-right: auto; }
  .hero-stage { max-width: 520px; }
}
@media (max-width: 480px) {
  .hero-stage { width: calc(100% + 16px); margin: 0 -8px; }
  .hero-bubble { font-size: 16px; }
  .hero-chip { font-size: 13px; }
}
