/* Post-quantum demo. Visual language matches the homepage challenge-response animation and the
   identity-layer demo: dark radial stage, white monospace token pills, dotted paths, pill status
   labels, the shared .il__scene buttons and the white .cr__replay button. */
.pqc-hero { grid-template-columns: 1fr; }
.pqc-hero > div:first-child { max-width: 900px; }
.pqc-hero .product-lead { max-width: 48em; }

.pqc-demo { margin: 0; min-width: 0; }
.pqc-demo > header { text-align: center; margin-bottom: 20px; }
.pqc-demo > header .product-kicker { margin-bottom: 12px; }
.page-product .pqc-demo h2 { font-size: clamp(1.4rem,2.6vw,2rem); letter-spacing: -0.02em; }
.pqc-controls { margin-bottom: 18px; }
.pqc-controls[hidden] { display: none; }

/* Stage */
.pqc-scene { padding: clamp(28px,4vw,48px) clamp(20px,4vw,56px); border-radius: 28px; border: 1px solid rgba(255,255,255,.08); background: radial-gradient(60% 80% at 80% 50%,rgba(110,164,255,.10),transparent 70%), radial-gradient(50% 70% at 15% 50%,rgba(255,255,255,.05),transparent 70%), #0A1120; }
.pqc-attack { display: grid; grid-template-columns: 1fr 30px 1.2fr 30px 1.5fr; gap: 12px; align-items: center; padding: 18px 22px; border-radius: 20px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); font-size: .9rem; }
.pqc-public { font-weight: 600; }
.pqc-public small { font-weight: 400; color: #8A93A3; }
.pqc-computer { color: #C4CBD7; }
.pqc-attack-arrow { color: #8A93A3; text-align: center; }
.pqc-key { color: #4BE27A; font-weight: 600; transition: color .3s; }

.pqc-exchange { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 24px; margin: 36px 0 28px; }
.pqc-device { display: grid; justify-items: center; text-align: center; gap: 8px; }
.pqc-device svg { display: block; width: clamp(130px,15vw,200px); max-width: 100%; height: auto; aspect-ratio: 172 / 108; margin-bottom: 6px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); }
.pqc-device .pqc-reader { width: auto; height: clamp(130px,15vw,190px); aspect-ratio: 2 / 3; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); --led-g: #4BE27A; --glow-g: 1; }
.pqc-device strong { font-size: .9rem; font-weight: 600; }
.pqc-algorithm, .pqc-verdict { font: 600 .72rem/1 var(--font-mono); padding: 5px 9px; border-radius: 999px; color: #C4CBD7; background: rgba(255,255,255,.06); transition: color .3s, background-color .3s; }
.pqc-verdict { color: #4BE27A; background: rgba(52,208,88,.12); }

.pqc-wire { position: relative; display: grid; justify-items: center; gap: 14px; }
.pqc-challenge { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A93A3; }
.pqc-line { width: 100%; height: 0; border-top: 2px dotted rgba(255,255,255,.22); }
.pqc-token { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; background: var(--white); color: var(--navy-deep); font: 600 .8rem/1 var(--font-mono); white-space: nowrap; box-shadow: 0 10px 24px rgba(0,0,0,.4), 0 0 0 4px rgba(45,212,191,.28); }
.pqc-pacs { text-align: center; font-size: .8rem; color: #8A93A3; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }

/* Scenario 2: the forged response passes, so the stage warns in red */
.pqc-demo[data-stage="1"] .pqc-key { color: #FF7A70; }
.pqc-demo[data-stage="1"] .pqc-verdict { color: #FF7A70; background: rgba(255,59,48,.14); }
.pqc-demo[data-stage="1"] .pqc-token { box-shadow: 0 10px 24px rgba(0,0,0,.4), 0 0 0 4px rgba(255,59,48,.25); }
/* Scenario 3: verification depends on compatible hardware, so the verdict is informational */
.pqc-demo[data-stage="2"] .pqc-verdict { color: #9CC0FF; background: rgba(110,164,255,.14); }

/* Caption and actions under the stage */
.pqc-demo .cr__footer { grid-template-columns: minmax(0,1fr); }
.pqc-demo .cr__replay { margin-block: 8px; }
.page-product main .pqc-description h3 { margin: 0; font-family: var(--font-text); font-size: clamp(1.2rem,2vw,1.5rem); font-weight: 500; line-height: 1.35; }
.pqc-description p { margin: 0; max-width: 62ch; color: #cbd4e4; }
.pqc-note, .pqc-source { color: #8A93A3; font-size: .8rem; }
.pqc-note { margin: 14px auto 0; max-width: 60ch; text-align: center; }
.pqc-source { margin-top: 14px; text-align: center; }
.pqc-source a { color: #dce8ff; }

.pqc-demo.is-animating .pqc-token { animation: pqc-response 3.6s ease-in-out both; }
.pqc-demo.is-animating .pqc-challenge { display: inline-block; animation: pqc-challenge 3.6s ease-in-out both; }
.pqc-demo.is-animating .pqc-key { animation: pqc-key 3.6s ease both; }
@keyframes pqc-response { 0%,30% { opacity: 0; transform: translateX(-50%); } 45% { opacity: 1; transform: translateX(-40%); } 85%,100% { opacity: 1; transform: translateX(35%); } }
@keyframes pqc-challenge { 0% { opacity: 0; transform: translateX(30%); } 15% { opacity: 1; } 40%,100% { opacity: 1; transform: translateX(-30%); } }
@keyframes pqc-key { 0%,15% { opacity: .35; } 35%,100% { opacity: 1; } }

@media(max-width:640px) {
 .pqc-scene { padding: 24px 16px; }
 .pqc-attack { grid-template-columns: 1fr; text-align: center; gap: 8px; }
 .pqc-attack-arrow { transform: rotate(90deg); }
 .pqc-exchange { gap: 18px 10px; grid-template-columns: 1fr 1fr; }
 .pqc-wire { grid-column: 1 / -1; grid-row: 2; }
 .pqc-device svg { width: 125px; }
 .pqc-device .pqc-reader { width: auto; height: 130px; }
 .pqc-device strong { font-size: .85rem; }
 .pqc-algorithm, .pqc-verdict { white-space: normal; line-height: 1.3; }
}
@media(prefers-reduced-motion:reduce) { .pqc-demo.is-animating .pqc-token,.pqc-demo.is-animating .pqc-challenge,.pqc-demo.is-animating .pqc-key { animation: none; } }
