body.page-piano-home {
  color-scheme: dark;
  background: #04070d;
  overflow-x: hidden;
}

body.page-piano-home .announce,
body.page-piano-home header.top,
body.page-piano-home footer.foot,
body.page-piano-home .help-fab,
body.page-piano-home .noise {
  display: none !important;
}

body.page-piano-home .stage {
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 0;
  padding: 0;
}

.ph {
  --violet: #8b5cf6;
  --card: rgba(13, 21, 36, 0.72);
  --card-line: rgba(238, 246, 255, 0.09);
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  touch-action: manipulation;
  overflow: clip;
}
.ph-marquee { max-width: 100%; min-width: 0; }

.ph :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.ph h1,
.ph h2,
.ph h3 { text-wrap: balance; }
.ph a { color: inherit; text-decoration: none; }
.ph svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ph h1 em,
.ph h2 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--cyan) 10%, var(--cyan-2) 40%, var(--violet) 70%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

/* Auroras do fundo */
.ph-aurora {
  position: absolute;
  inset: 0 0 auto;
  height: 1300px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ph-aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: ph-drift 22s ease-in-out infinite alternate;
}
.ph-aurora i:nth-child(1) { width: 720px; height: 520px; left: 52%; top: -160px; background: rgba(34, 211, 238, 0.42); }
.ph-aurora i:nth-child(2) { width: 560px; height: 460px; left: -140px; top: 140px; background: rgba(255, 90, 54, 0.3); animation-duration: 28s; animation-delay: -6s; }
.ph-aurora i:nth-child(3) { width: 520px; height: 420px; left: 30%; top: 420px; background: rgba(139, 92, 246, 0.28); animation-duration: 25s; animation-delay: -12s; }
@keyframes ph-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(60px, 40px, 0) scale(1.12); }
  100% { transform: translate3d(-50px, 20px, 0) scale(0.94); }
}

/* Barra */
.ph-bar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.ph-bar.is-scrolled {
  background: rgba(6, 10, 18, 0.86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.ph-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}
.ph-brand em { font-style: normal; color: var(--cyan); }
.ph-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.ph-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.ph-links a:hover,
.ph-links a.is-here { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

.ph-go {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #05080f !important;
  font-weight: 650;
  white-space: nowrap;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ph-go svg {
  width: 30px;
  height: 30px;
  padding: 8px;
  border-radius: 50%;
  background: #05080f;
  color: #fff;
  fill: currentColor;
  stroke: none;
}
.ph-go::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--spin, 0deg), var(--cyan), var(--violet), var(--coral), var(--cyan));
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  animation: ph-spin 4s linear infinite;
}
.ph-go:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(34, 211, 238, 0.25); }
.ph-go:hover::after { opacity: 0.9; }
.ph-go-lg { height: 54px; padding: 0 24px 0 8px; font-size: 1.05rem; }
.ph-go-lg svg { width: 38px; height: 38px; padding: 11px; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ph-spin { to { --spin: 360deg; } }

.ph-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 20px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ph-quiet:hover { border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.06); }
.ph-quiet svg { animation: ph-bob 1.8s ease-in-out infinite; }
@keyframes ph-bob { 50% { transform: translateY(3px); } }

/* Hero */
.ph-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 72px;
}
.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: #bdf4fd;
  font-size: 0.85rem;
  font-weight: 600;
}
.ph-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
  animation: ph-ping 1.8s ease-out infinite;
}
@keyframes ph-ping { to { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } }
.ph-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.ph-lead {
  max-width: 34rem;
  margin: 24px 0 32px;
  color: #b7c6d9;
  font-size: 1.15rem;
  line-height: 1.6;
}
.ph-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ph-free {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.ph-free svg { color: #34d399; }

.ph-stage {
  position: relative;
  padding: 10px;
  border: 1px solid var(--card-line);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(20, 31, 52, 0.9), rgba(6, 10, 18, 0.92));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 0 80px rgba(34, 211, 238, 0.12);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s ease;
  will-change: transform;
}
.ph-stage::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, rgba(34, 211, 238, 0.7), rgba(139, 92, 246, 0.6), transparent);
  animation: ph-spin 7s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}
.ph-stage-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 12px 10px;
  font-size: 0.85rem;
}
.ph-stage-top strong { color: #c9d6e6; font-weight: 600; }
.ph-dots { display: inline-flex; gap: 6px; }
.ph-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.ph-dots i:nth-child(2) { background: #febc2e; }
.ph-dots i:nth-child(3) { background: #28c840; }
.ph-sound {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ph-sound .ph-ico-on { display: none; }
.ph-sound[aria-pressed="true"] { border-color: rgba(34, 211, 238, 0.5); background: rgba(34, 211, 238, 0.14); }
.ph-sound[aria-pressed="true"] .ph-ico-on { display: block; color: var(--cyan); }
.ph-sound[aria-pressed="true"] .ph-ico-off { display: none; }
.ph-viz {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: radial-gradient(120% 80% at 50% 0%, #0b1426, #03060c 70%);
  cursor: pointer;
}
.ph-tex {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 4px 4px;
}
.ph-tex button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ph-tex button:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.2); }
.ph-tex button.is-on { color: #05080f; background: #fff; border-color: #fff; }

/* Faixa rolando */
.ph-marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--card-line);
  background: rgba(255, 255, 255, 0.015);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ph-marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ph-marquee 38s linear infinite;
}
.ph-marquee span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  color: #9fb3ca;
  font-family: var(--display);
  font-size: 1.5rem;
  font-style: italic;
  white-space: nowrap;
}
.ph-marquee span::after { content: "✦"; color: var(--cyan); font-size: 0.9rem; font-style: normal; }
@keyframes ph-marquee { to { transform: translateX(-50%); } }

/* Números */
.ph-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto 0;
}
.ph-stat {
  padding: 26px 24px;
  border: 1px solid var(--card-line);
  border-radius: 22px;
  background: var(--card);
}
.ph-stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, #8fb8d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ph-stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* Seções */
.ph-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 0;
  scroll-margin-top: 80px;
}
.ph-section-head { max-width: 46rem; margin-bottom: 44px; }
.ph-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ph-section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.ph-section-head > p:last-child:not(.ph-kicker) { margin: 18px 0 0; color: #a9bbd0; font-size: 1.1rem; line-height: 1.6; }

/* Cartões com holofote */
.ph-card,
.ph-feature {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: 26px;
  background: var(--card);
  isolation: isolate;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.ph-card::before,
.ph-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(34, 211, 238, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ph-card:hover,
.ph-feature:hover { border-color: rgba(34, 211, 238, 0.28); transform: translateY(-3px); }
.ph-card:hover::before,
.ph-feature:hover::before { opacity: 1; }
.ph-card h3,
.ph-feature h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
.ph-card p,
.ph-feature p { margin: 0; color: #9fb1c6; line-height: 1.55; }

.ph-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.ph-card { display: flex; flex-direction: column; }
.ph-card-tex { grid-column: span 6; flex-direction: row; align-items: stretch; min-height: 340px; }
.ph-card-midi,
.ph-card-video { grid-column: span 3; }
.ph-card-copy { padding: 28px; }
.ph-card-tex .ph-card-copy { flex: 0 0 38%; align-self: center; padding: 40px; }
.ph-card-tex h3 { font-size: 1.7rem; }
.ph-card-art { position: relative; min-height: 220px; }
.ph-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
}
.ph-tag.is-coral { background: rgba(255, 90, 54, 0.14); color: #ff8a66; }

.ph-swatches {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  padding: 24px;
  transform: perspective(900px) rotateX(18deg) rotateZ(-6deg) scale(1.08);
  -webkit-mask: radial-gradient(120% 120% at 40% 50%, #000 55%, transparent 90%);
  mask: radial-gradient(120% 120% at 40% 50%, #000 55%, transparent 90%);
}
.ph-swatch {
  aspect-ratio: 1;
  border-radius: 14px;
  background-color: #111a2b;
  background-size: 220% 220%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: ph-pan 14s linear infinite;
  transition: transform 0.3s ease;
}
.ph-swatch:nth-child(2n) { animation-duration: 18s; animation-direction: reverse; }
.ph-swatch:nth-child(3n) { animation-duration: 11s; }
.ph-card-tex:hover .ph-swatch { transform: translateY(-6px); }
.ph-card-tex:hover .ph-swatch:nth-child(2n) { transform: translateY(6px); }
@keyframes ph-pan { to { background-position: 0 100%; } }

.ph-drop { display: grid; place-items: center; }
.ph-drop-zone {
  display: grid;
  place-items: end center;
  width: 70%;
  height: 150px;
  padding-bottom: 18px;
  border: 2px dashed rgba(255, 138, 102, 0.45);
  border-radius: 20px;
  color: #ff9f80;
  font-size: 0.9rem;
  font-weight: 600;
  animation: ph-zone 4s ease-in-out infinite;
}
.ph-file {
  position: absolute;
  top: 38px;
  display: grid;
  place-items: end center;
  width: 62px;
  height: 78px;
  padding-bottom: 10px;
  border-radius: 10px 22px 10px 10px;
  background: linear-gradient(160deg, #ff7a45, #ff3d6e);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(255, 90, 54, 0.4);
  animation: ph-drop 4s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
@keyframes ph-drop {
  0% { transform: translate(-120px, -30px) rotate(-18deg); opacity: 0; }
  20% { opacity: 1; }
  55%, 80% { transform: translate(0, 24px) rotate(0); opacity: 1; }
  100% { transform: translate(0, 34px) scale(0.6); opacity: 0; }
}
@keyframes ph-zone {
  0%, 45% { background: transparent; }
  60%, 80% { background: rgba(255, 90, 54, 0.1); border-color: #ff8a66; }
  100% { background: transparent; }
}

.ph-rec { display: grid; align-content: center; gap: 12px; padding: 28px 28px 0; }
.ph-rec small { color: var(--muted); font-weight: 600; }
.ph-rec-frame {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(#060b16, #0b1426);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.ph-rec-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.ph-rec-badge i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: ph-blink 1s steps(2) infinite; }
@keyframes ph-blink { 50% { opacity: 0.2; } }
.ph-rec-notes i {
  position: absolute;
  bottom: 40px;
  width: 9%;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(var(--violet), var(--cyan));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.6);
  animation: ph-fall 2.4s linear infinite;
}
.ph-rec-notes i:nth-child(1) { left: 12%; animation-delay: 0s; }
.ph-rec-notes i:nth-child(2) { left: 30%; height: 70px; animation-delay: -0.9s; background: linear-gradient(var(--coral), #fbbf24); box-shadow: 0 0 18px rgba(255, 90, 54, 0.6); }
.ph-rec-notes i:nth-child(3) { left: 48%; animation-delay: -1.5s; }
.ph-rec-notes i:nth-child(4) { left: 64%; height: 30px; animation-delay: -0.4s; background: linear-gradient(var(--coral), #fbbf24); box-shadow: 0 0 18px rgba(255, 90, 54, 0.6); }
.ph-rec-notes i:nth-child(5) { left: 80%; height: 58px; animation-delay: -1.9s; }
@keyframes ph-fall {
  from { transform: translateY(-170px); }
  to { transform: translateY(40px); }
}
.ph-rec-keys {
  position: absolute;
  inset: auto 0 0;
  height: 40px;
  background: repeating-linear-gradient(90deg, #f4f6f9 0 calc(100% / 14 - 1px), #9aa5b4 calc(100% / 14 - 1px) calc(100% / 14));
}
.ph-rec-bar { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.ph-rec-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  animation: ph-progress 6s ease-in-out infinite;
}
@keyframes ph-progress { from { width: 4%; } to { width: 100%; } }

/* Recursos */
.ph-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ph-feature { padding: 26px; }
.ph-mini {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
  margin-bottom: 22px;
}
.ph-radar { width: 64px; justify-content: center; color: var(--cyan); }
.ph-radar svg { width: 28px; height: 28px; position: relative; z-index: 1; }
.ph-radar i {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(34, 211, 238, 0.6);
  border-radius: 50%;
  animation: ph-radar 2.4s ease-out infinite;
}
.ph-radar i:nth-child(2) { animation-delay: 0.8s; }
.ph-radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ph-radar { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.ph-metro { width: 64px; justify-content: center; }
.ph-metro::before {
  content: "";
  position: absolute;
  bottom: 4px;
  border-inline: 22px solid transparent;
  border-bottom: 52px solid rgba(255, 138, 102, 0.18);
}
.ph-metro span {
  position: absolute;
  bottom: 8px;
  width: 3px;
  height: 50px;
  border-radius: 3px;
  background: #ff8a66;
  transform-origin: bottom center;
  animation: ph-swing 1.2s ease-in-out infinite alternate;
}
.ph-metro span::after {
  content: "";
  position: absolute;
  top: 10px;
  left: -5px;
  width: 13px;
  height: 9px;
  border-radius: 3px;
  background: #fff;
}
@keyframes ph-swing { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
.ph-wave { gap: 5px; }
.ph-wave i {
  width: 6px;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(var(--cyan), var(--violet));
  transform-origin: center;
  animation: ph-eq 1.1s ease-in-out infinite alternate;
}
.ph-wave i:nth-child(2n) { animation-delay: -0.3s; }
.ph-wave i:nth-child(3n) { animation-delay: -0.6s; }
.ph-wave i:nth-child(4n) { animation-delay: -0.9s; }
@keyframes ph-eq { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
.ph-voices,
.ph-notes { flex-wrap: wrap; gap: 6px; align-content: center; }
.ph-voices span,
.ph-notes span {
  padding: 6px 11px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #c9d6e6;
  font-size: 0.8rem;
  font-weight: 600;
  animation: ph-glow 5s ease-in-out infinite;
}
.ph-voices span:nth-child(2), .ph-notes span:nth-child(2) { animation-delay: 1s; }
.ph-voices span:nth-child(3), .ph-notes span:nth-child(3) { animation-delay: 2s; }
.ph-voices span:nth-child(4), .ph-notes span:nth-child(4) { animation-delay: 3s; }
.ph-voices span:nth-child(5) { animation-delay: 4s; }
.ph-notes span { font-family: var(--display); font-style: italic; font-size: 1rem; }
@keyframes ph-glow {
  0%, 70%, 100% { border-color: var(--card-line); color: #c9d6e6; box-shadow: none; }
  10%, 25% { border-color: rgba(34, 211, 238, 0.6); color: #fff; box-shadow: 0 0 18px rgba(34, 211, 238, 0.3); }
}
.ph-yt { width: 84px; }
.ph-yt span {
  position: relative;
  width: 64px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, #ff3b3b, #c4122f);
  box-shadow: 0 10px 30px rgba(255, 59, 59, 0.35);
  animation: ph-pulse 2.4s ease-in-out infinite;
}
.ph-yt span::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 13px;
  border-block: 9px solid transparent;
  border-left: 15px solid #fff;
}
@keyframes ph-pulse { 50% { transform: scale(1.07); } }

/* Passos */
.ph-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ph-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--coral));
  transform: scaleX(var(--line, 0));
  transform-origin: left;
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0.6;
}
.ph-steps.is-in::before { --line: 1; }
.ph-steps li { position: relative; padding-right: 12px; }
.ph-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 50%;
  background: #07101d;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 1.5rem;
  box-shadow: 0 0 0 8px #04070d, 0 0 30px rgba(34, 211, 238, 0.25);
}
.ph-steps strong { display: block; margin-bottom: 8px; font-size: 1.2rem; }
.ph-steps p { margin: 0; color: #9fb1c6; line-height: 1.55; }

/* Stage desktop */
.ph-desk {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 56px;
}
.ph-desk-copy > p:not(.ph-kicker):not(.ph-note) { margin: 18px 0 22px; color: #a9bbd0; font-size: 1.08rem; line-height: 1.6; }
.ph-list { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.ph-list li { display: flex; align-items: center; gap: 10px; color: #d3dfec; }
.ph-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ph-note { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; }
.ph-window {
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: 18px;
  background: #0a0f1a;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 60px rgba(139, 92, 246, 0.12);
}
.ph-window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-line);
  background: #0e1422;
  font-size: 0.85rem;
}
.ph-window-bar b { color: #c9d6e6; font-weight: 600; }
.ph-desk-viz { display: block; width: 100%; aspect-ratio: 16 / 9; }

/* Perguntas */
.ph-faq-list { display: grid; gap: 12px; max-width: 860px; }
.ph-faq details {
  border: 1px solid var(--card-line);
  border-radius: 18px;
  background: var(--card);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.ph-faq details[open] { border-color: rgba(34, 211, 238, 0.3); background: rgba(16, 27, 46, 0.85); }
.ph-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.ph-faq summary::-webkit-details-marker { display: none; }
.ph-faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.ph-faq details[open] summary::after { transform: rotate(45deg); }
.ph-faq details > div { padding: 0 22px 20px; }
.ph-faq details[open] > div { animation: ph-open 0.35s ease; }
.ph-faq p { margin: 0; color: #a9bbd0; line-height: 1.6; }
@keyframes ph-open { from { opacity: 0; transform: translateY(-6px); } }

/* Final */
.ph-end {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 120px auto 0;
  padding: 80px 24px 72px;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: 32px;
  background:
    radial-gradient(60% 90% at 50% 120%, rgba(34, 211, 238, 0.28), transparent 70%),
    radial-gradient(40% 60% at 15% 0%, rgba(255, 90, 54, 0.16), transparent 70%),
    radial-gradient(40% 60% at 85% 0%, rgba(139, 92, 246, 0.18), transparent 70%),
    #070c17;
  text-align: center;
}
.ph-end h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.ph-end-keys {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  height: 56px;
  opacity: 0.18;
  -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.ph-end-keys i {
  border-right: 1px solid #04070d;
  background: #fff;
  animation: ph-key 4.2s ease-in-out infinite;
}
.ph-end-keys i:nth-child(3n) { animation-delay: 0.6s; }
.ph-end-keys i:nth-child(4n) { animation-delay: 1.4s; }
.ph-end-keys i:nth-child(5n) { animation-delay: 2.2s; }
.ph-end-keys i:nth-child(7n) { animation-delay: 3s; }
@keyframes ph-key { 0%, 85%, 100% { background: #fff; } 90% { background: var(--cyan); } }

.ph-foot {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 48px 16px 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.ph-foot a:hover { color: var(--ink); }

/* Revelação ao rolar */
.ph.is-anim .ph-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0s);
}
.ph.is-anim .ph-reveal.is-in { opacity: 1; transform: none; }
.ph.is-anim .ph-stage.ph-reveal.is-in { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

@media (max-width: 980px) {
  .ph-links { display: none; }
  .ph-bar .ph-go { margin-left: auto; }
  .ph-hero,
  .ph-desk { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .ph-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-card-tex { flex-direction: column; }
  .ph-card-tex .ph-card-copy { padding: 28px; }
  .ph-card-midi,
  .ph-card-video { grid-column: span 6; }
  .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ph-bar { gap: 12px; padding-left: 14px; }
  .ph-brand span { display: none; }
  .ph-hero { padding: 40px 0 48px; }
  .ph-actions .ph-go-lg,
  .ph-actions .ph-quiet { width: 100%; justify-content: center; }
  .ph-stats { gap: 10px; margin-top: 48px; }
  .ph-stat { padding: 20px 18px; }
  .ph-section { padding-top: 80px; }
  .ph-grid,
  .ph-steps { grid-template-columns: 1fr; }
  .ph-steps::before { display: none; }
  .ph-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 18px; }
  .ph-end { margin-top: 80px; padding: 56px 20px 64px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ph *,
  .ph *::before,
  .ph *::after {
    animation: none !important;
    transition: none !important;
  }
  .ph-reveal { opacity: 1; transform: none; }
}
