.pd { position: relative; isolation: isolate; overflow-x: clip; padding: 64px 0 96px; }
.pd::before { content: ''; position: absolute; z-index: -1; pointer-events: none; top: -80px; left: 50%; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); }
.pd-head { text-align: center; max-width: 820px; margin-inline: auto; }
.pd-head h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 600; line-height: 1.04; }
.pd-head h1 .accent { display: inline-block; color: var(--primary-ink); }
.pd-head > p { margin-top: 18px; font-size: 18px; color: var(--muted-fg); text-wrap: pretty; }

.pd-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.pd-jump a { display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); color: var(--muted-fg); font-size: 13px; text-decoration: none; text-align: left; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.pd-jump a:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); box-shadow: var(--shadow-md); }
.pd-jump img { width: 40px; height: 40px; border-radius: 50%; }
.pd-jump b { display: block; color: var(--fg); font-size: 15px; font-weight: 600; }

.pd-world { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; margin-top: 56px; padding: 56px; border-radius: 32px; border: 1px solid var(--border); scroll-margin-top: 84px; }
.pd-world + .pd-world { margin-top: 28px; }
.pd-world::before { content: ''; position: absolute; z-index: -1; pointer-events: none; width: 620px; height: 620px; right: -160px; top: -180px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); }
.pd-world-of { background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 9%, var(--card)), var(--card) 55%); box-shadow: var(--shadow); }
.pd-world-x { background: radial-gradient(90% 70% at 0% 100%, rgba(29, 155, 240, .14), transparent 60%), #0b0b0e; box-shadow: 0 30px 60px -30px rgba(9, 9, 11, .5); }
:root:not([data-theme='light']) .pd-world-x { background: radial-gradient(90% 70% at 0% 100%, rgba(29, 155, 240, .16), transparent 60%), #05070b; border-color: #24242e; }
.pd-world-x::before { left: -160px; right: auto; top: auto; bottom: -260px; }
.pd-world-x .btn-primary { background: #fafafa; color: #09090b; box-shadow: 0 6px 20px -8px rgba(255, 255, 255, .35); }
.pd-world-x .btn-primary:hover { background: #fff; }

.pd-lk { display: flex; align-items: center; gap: 14px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--fg); }
.pd-lk img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 1px var(--border), 0 8px 24px -10px var(--glow); }
.pd-lk .brand-sep { display: inline-block; width: 1.5px; height: 26px; margin: 0 12px; background: currentColor; opacity: .35; vertical-align: -4px; }
.pd-lk .brand-x { font-size: 30px; font-weight: 800; }
.pd-chip { display: inline-flex; margin-top: 18px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--primary-ink); background: color-mix(in srgb, var(--primary) 14%, transparent); }
.pd-world h2 { margin-top: 16px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; text-wrap: balance; }
.pd-lead { margin-top: 14px; font-size: 17px; line-height: 1.5; color: var(--muted-fg); text-wrap: pretty; }

.pd-proof { list-style: none; display: grid; margin: 24px 0 0; padding: 0; }
.pd-proof li { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 15px; color: var(--muted-fg); }
.pd-proof b { flex: none; min-width: 128px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }

.pd-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 30px; }
.pd-cta .btn svg { transition: transform .2s ease; }
.pd-cta .btn:hover svg { transform: translateX(3px); }
.pd-cta small { font-size: 13px; color: var(--muted-fg); }

.pd-scene { position: relative; min-width: 0; padding: 20px; border-radius: 22px; border: 1px solid var(--border); background: var(--card); box-shadow: 0 2px 8px rgba(9, 9, 11, .05), 0 32px 64px -28px rgba(9, 9, 11, .3); font-size: 14px; }
.pd-world-x .pd-scene { background: #15181e; border-color: #2a2e37; box-shadow: 0 32px 64px -28px rgba(0, 0, 0, .8); }
.sc-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; line-height: 1; color: #fff; background: linear-gradient(135deg, #f472b6, #fb923c); }
.sc-av.g2 { background: linear-gradient(135deg, #a78bfa, #38bdf8); }
.sc-av.g3 { background: linear-gradient(135deg, #34d399, #38bdf8); }
.sc-av-ph { background: var(--border); color: var(--muted-fg); }

.sc-feed { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 14px 0 0; padding: 0; }
.sc-feed li { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 14px; background: var(--muted); }
.sc-feed b { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-feed b small { font-weight: 500; font-size: 12px; color: var(--muted-fg); }
.sc-feed em { flex: none; display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.sc-feed em svg { width: 13px; height: 13px; }
.sc-ok { color: var(--green-fg); background: color-mix(in srgb, var(--green) 14%, transparent); }
.sc-no { color: var(--red-fg); background: color-mix(in srgb, var(--red) 12%, transparent); }
.sc-bad { opacity: .6; }
.sc-bad b { font-weight: 500; color: var(--muted-fg); }
.sc-vb { width: 15px; height: 15px; flex: none; }

.sc-base { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 10%, transparent); }
.sc-base small { display: block; font-size: 12px; color: var(--muted-fg); }
.sc-base b { display: block; margin: 2px 0; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--fg); }
.sc-spark { width: 120px; height: 52px; flex: none; }
.sc-spark-area { fill: color-mix(in srgb, var(--primary) 22%, transparent); }
.sc-spark-line { fill: none; stroke: var(--primary); stroke-width: 2.5; vector-effect: non-scaling-stroke; }

.sc-chat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.sc-bub { display: flex; align-items: center; gap: 8px; max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.3; }
.sc-me { justify-self: end; border-bottom-right-radius: 6px; background: var(--primary); color: #fff; font-weight: 500; }
.sc-them { justify-self: start; padding-left: 6px; border-bottom-left-radius: 6px; background: var(--muted); color: var(--fg); }
.sc-them .sc-av { width: 26px; height: 26px; font-size: 11px; }
.sc-typing { justify-self: start; display: flex; gap: 4px; padding: 13px 14px; border-radius: 18px; background: var(--muted); }
.sc-typing:not(.on) { display: none; }
.sc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-fg); animation: sc-dot 1s infinite; }
.sc-typing i:nth-child(2) { animation-delay: .15s; }
.sc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sc-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

.sc-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sc-top b { color: var(--fg); }
.sc-top small { color: var(--muted-fg); font-size: 12px; }
.sc-grp { display: flex; }
.sc-grp .sc-av { width: 26px; height: 26px; font-size: 11px; box-shadow: 0 0 0 2px #15181e; }
.sc-grp .sc-av + .sc-av { margin-left: -8px; }
.sc-x .sc-me { margin: 14px 0 0 auto; width: fit-content; background: #1d9bf0; }
.sc-gif { padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, .22); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.sc-x .sc-ok { color: #4ade80; }
.sc-x .sc-no { color: #f87171; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted-fg); font-size: 13px; }
.sc-cnt { font-size: 26px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.sc-cnt { display: inline-grid; }
.sc-cnt i { grid-area: 1 / 1; visibility: hidden; font-style: normal; text-align: right; background: #15181e; }
.sc-cnt i.on { visibility: visible; animation: sc-pop .45s ease; }
@keyframes sc-pop { from { transform: scale(1.6); color: #4ade80; } }

.sc-feed li, .sc-bub { transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.pd-scene.play .sc-feed li:not(.on), .pd-scene.play .sc-bub:not(.on) { opacity: 0; transform: translateY(10px) scale(.97); }

.pd-help { display: grid; justify-items: center; gap: 14px; margin-top: 64px; text-align: center; }
.pd-help p { font-size: 17px; color: var(--muted-fg); }
.pd-help p b { color: var(--fg); }
.pd-help .pd-facts { font-size: 13px; color: var(--faint); }

@media (max-width: 959px) {
  .pd-world { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 40px; }
  .pd-scene { width: 100%; max-width: 480px; }
}
@media (max-width: 719px) {
  .pd { padding: 36px 0 64px; }
  .sc-feed em { padding: 4px 8px; }
  .pd-world { margin-top: 40px; padding: 28px 20px; border-radius: 26px; }
  .pd-lk { font-size: 22px; }
  .pd-lk img { width: 48px; height: 48px; }
  .pd-proof li { flex-direction: column; gap: 2px; }
  .pd-cta .btn { width: 100%; }
  .pd-scene { padding: 14px; }
  .pd-jump a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-feed li, .sc-bub, .pd-jump a { transition: none; }
  .sc-typing i, .sc-cnt i { animation: none; }
}
