/* ============================================================
   PROTO HERO - kropki skladajace sie w slowa
   ============================================================ */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(88px, 12vh, 130px) 24px 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0;
}
.hero-keyword { font-size: clamp(50px, 8.5vw, 112px); margin-bottom: 6px; }
.hero-sub { margin-top: 20px; }
.hero-tagline { margin-top: 4px; transition: margin-top 0.12s ease; }
.hero-scrolled .hero-tagline { margin-top: 44px; }
.hero-actions { margin-top: 24px; max-height: 130px; overflow: hidden; transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.12s ease, margin-top 0.12s ease; }
.hero-scrolled .hero-actions { opacity: 0; transform: translateY(-8px); pointer-events: none; animation: none; max-height: 0; margin-top: 0; }

.hero.hero-scrolled { height: auto; min-height: 0; }
.hero-scrolled .hero-sandbox { min-height: 0; }

.hero-tagline .tagline-tail {
  display: inline-block;
  white-space: nowrap;
  vertical-align: baseline;
  max-width: var(--tail-w, 20em);
  opacity: 1;
  transition: opacity 0.18s ease, max-width 0.12s ease;
}
.hero-scrolled .hero-tagline .tagline-tail { max-width: 0; opacity: 0; }

/* Sandbox - obszar animacji kropek */
.hero-sandbox {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 150px;
  margin-top: clamp(6px, 2vh, 22px);
}
.hero-sandbox canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Tlo hero: SOLID, bez gradientow */
#heroVisual {
  background: #0c0e12;
}

.hero-tagline .gradient-text { position: relative; display: inline-block; }
.hero-tagline .gradient-text.proto-flash {
  background-image: linear-gradient(100deg,
    var(--accent) 0%, var(--accent) 38%,
    #eaf6ff 49%, #ffffff 52%, #eaf6ff 55%,
    var(--accent) 63%, var(--accent) 100%);
  background-size: 250% 100%;
  background-position: 135% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 calc(10px * var(--flash-strength, 1)) rgba(46, 163, 236, 0.55))
          brightness(calc(1 + 0.35 * var(--flash-strength, 1)));
  animation: gtShine var(--flash-dur, 700ms) ease-out;
}
@keyframes gtShine {
  from { background-position: 135% 0; }
  to   { background-position: -45% 0; }
}

@media (max-width: 560px) {
  .hero { padding-top: 82px; }
  .hero-sandbox { min-height: 110px; }
}

/* ---- Ukryty panel strojenia - tylko proto ---- */
.ph-dot {
  position: fixed;
  top: 3px; right: 3px;
  width: 2px; height: 2px;
  background: #ff3b54;
  z-index: 9999;
  cursor: pointer;
}
.ph-panel {
  position: fixed;
  top: 12px; right: 12px;
  z-index: 9998;
  width: 310px;
  max-height: 92vh;
  overflow: auto;
  display: none;
  background: rgba(12, 14, 18, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px 14px;
  font: 12px/1.4 system-ui, -apple-system, sans-serif;
  color: #cfd6e0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.ph-panel.open { display: block; }
.ph-panel h4 { margin: 0 0 10px; font-size: 12px; color: #fff; font-weight: 700; }
.ph-fps { margin: -4px 0 10px; font: 11px/1.4 ui-monospace, Consolas, monospace; color: #7dd87d; }
.ph-row { display: flex; flex-direction: column; margin-bottom: 9px; }
.ph-row label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.ph-row label span:last-child { color: #2ea3ec; font-variant-numeric: tabular-nums; }
.ph-row input[type=range] { width: 100%; accent-color: #2ea3ec; }
.ph-hint { margin-top: 10px; font-size: 11px; color: #8b93a1; }
.ph-panel pre {
  white-space: pre-wrap;
  word-break: break-all;
  background: #0a0c10;
  padding: 7px 8px;
  margin-top: 5px;
  font-size: 11px;
  color: #8fb7d6;
  user-select: all;
}
.ph-copy {
  margin-top: 8px;
  width: 100%;
  padding: 8px;
  background: #2ea3ec;
  color: #06121a;
  border: none;
  border-radius: 3px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.ph-copy:hover { background: #5bb8f2; }
