.solution-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px,5vw,72px); align-items: center; padding-top: 24px; }
.solution-demo { margin: 0; padding: clamp(20px,3vw,36px); border: 1px solid #ffffff30; border-radius: 24px; background: #17263d; }
.solution-nodes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.solution-node { min-width: 0; padding: 16px 10px; border: 1px solid #718096; border-radius: 12px; display: flex; flex-direction: column; gap: 12px; transition: background .35s, border-color .35s; }
.solution-node strong { font-size: 1rem; overflow-wrap: anywhere; }
.solution-node > span:last-child { color: #cbd4e4; font-size: .8rem; }
.solution-number { color: #ff7474; font-size: .75rem; letter-spacing: .1em; }
.solution-track { height: 2px; background: #52617a; margin: 22px 0; position: relative; }
.solution-track span { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; background: #8ee4c1; border-radius: 50%; opacity: 0; }
.solution-demo.is-playing .solution-track span { opacity: 1; animation: solution-travel 3.6s ease-in-out forwards; }
.solution-node.is-active { border-color: #8ee4c1; background: #244a48; }
.solution-steps { padding-left: 20px; color: #d0d8e7; font-size: .9rem; }
.solution-steps li { padding: 4px 0; }
.solution-steps li.is-active { color: white; text-decoration: underline; text-underline-offset: 4px; }
.solution-demo figcaption { color: #cbd4e4; font-size: .8rem; margin-top: 20px; }
.solution-replay { margin-top: 20px; padding: 10px 16px; color: white; background: transparent; border: 1px solid #8a99af; border-radius: 8px; cursor: pointer; }
.solution-replay:focus-visible { outline: 3px solid #8ee4c1; outline-offset: 4px; }
.solution-copy { max-width: 1120px; }
.solution-hero .product-actions { gap: 14px; margin-top: 40px; }
.solution-copy > p { max-width: 70ch; color: var(--muted); font-size: 1.1rem; }
.solution-copy a { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.solution-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; }
.solution-columns--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.solution-columns article { border-top: 2px solid var(--red); padding-top: 10px; }
.solution-columns p { color: var(--muted); }
#explore { scroll-margin-top: 100px; }
@keyframes solution-travel { 0% { left: 0; } 35% { left: 48%; } 55% { left: 30%; } 75% { left: 48%; } 100% { left: calc(100% - 10px); } }
[data-demo="pqc"].is-playing .solution-track span { animation-name: solution-evolve; }
@keyframes solution-evolve { 0% { left: 0; background: #cbd4e4; } 50% { left: 48%; background: #8ee4c1; } 100% { left: calc(100% - 10px); } }
@media(max-width: 1000px) { .solution-hero { grid-template-columns: 1fr; } }
@media(max-width: 640px) { .solution-columns { grid-template-columns: 1fr; } .solution-nodes { gap: 6px; } .solution-node { padding: 12px 7px; } .solution-node strong { font-size: .85rem; } }
@media(prefers-reduced-motion: reduce) { .solution-node { transition: none; } .solution-demo.is-playing .solution-track span { animation: none; opacity: 0; } }
@media(max-width: 640px) {
  .solution-nodes { grid-template-columns: 1fr; gap: 10px; }
  .solution-node { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 5px 12px; padding: 12px 14px; }
  .solution-node .solution-number { grid-row: 1 / 3; align-self: center; }
  .solution-node strong { font-size: 1rem; overflow-wrap: normal; }
  .solution-node > span:last-child { grid-column: 2; }
}

/* Identity-layer demo: a copied card against a number-only reader, then the identity layer.
   Reuses the homepage challenge-response pieces (.cr__card, .cr__token, .cr__verdict, .cr__caption). */
.solution-hero--stacked { grid-template-columns: minmax(0,1fr); gap: clamp(40px,5vw,64px); }
.il { margin: 0; min-width: 0; }
.il__head { text-align: center; margin-bottom: 20px; }
.il__title { font-size: clamp(1.4rem,2.6vw,2rem); letter-spacing: -0.02em; }
.il__sub { margin-top: 8px; color: #cbd4e4; }
.il__scenes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.il__scene { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #C4CBD7; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.il__scene:hover { border-color: rgba(255,255,255,.45); color: var(--white); }
.il__scene-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); font: 700 .72rem/1 var(--font-mono); }
.il__scene[aria-current="step"], .il__scene[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--navy-deep); }
.il__scene[aria-current="step"] .il__scene-num, .il__scene[aria-pressed="true"] .il__scene-num { background: var(--red); color: var(--white); }

.il__stage { --il-col: 130px; position: relative; display: flex; align-items: center; justify-content: center; padding: 44px clamp(20px,4vw,56px) 50px; 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; }
.il__layer { position: relative; display: flex; align-items: center; padding: 56px 24px; border-radius: 22px; border: 2px dashed rgba(255,255,255,.22); transition: border-color .5s var(--ease), background-color .5s var(--ease); }
.il__layer-label { position: absolute; top: -13px; left: 20px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: opacity .4s; }
.il__layer-label--off { background: #0A1120; color: #C4CBD7; border: 1px solid rgba(255,255,255,.22); }
.il__layer-label--on { background: var(--red); color: var(--white); opacity: 0; }
.il__stage.is-layer .il__layer { border-style: solid; border-color: var(--red); background: rgba(200,0,0,.07); }
.il__stage.is-layer .il__layer-label--on { opacity: 1; }
.il__stage.is-layer .il__layer-label--off { opacity: 0; }

.il__node { position: relative; flex: none; }
.il__visual { position: relative; }
.il__label { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; white-space: nowrap; }
.il__name { font-size: .9rem; font-weight: 600; color: var(--white); }
.il__status { font: 600 .72rem/1 var(--font-mono); color: #8A93A3; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.06); transition: color .3s, background-color .3s; }

.il__card-slot { width: clamp(130px,15vw,200px); aspect-ratio: 172 / 108; }
.il__card-slot .cr__card { filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); }
.il__reader-slot { height: clamp(130px,15vw,190px); aspect-ratio: 2 / 3; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
.il__reader { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s var(--ease); }
.il__reader--tp { opacity: 0; }
.il__stage.is-layer .il__reader--tp { opacity: 1; }
.il__stage.is-layer .il__reader--legacy { opacity: 0; }
.il__reader-slot.is-ready { --led-b: #6EA4FF; --glow-b: .9; }
.il__reader-slot.is-ok { --led-g: #4BE27A; --glow-g: 1; }
.il__reader-slot.is-no { --led-r: #FF5A4F; --glow-r: 1; }
.il__visual .cr__verdict { top: -14px; right: -16px; width: 40px; height: 40px; }
.il__visual .cr__verdict svg { width: 20px; height: 20px; }

.il__box { display: grid; place-items: center; width: clamp(76px,8vw,100px); aspect-ratio: 1; border-radius: 18px; background: #111C31; border: 1px solid rgba(255,255,255,.14); color: #C4CBD7; transition: border-color .3s, color .3s, box-shadow .3s; }
.il__box > svg { width: 52%; height: 52%; }
.il__door-open { opacity: 0; }
.il__node.is-open .il__door-open { opacity: 1; }
.il__node.is-open .il__door-shut { opacity: 0; }
.il__node.is-busy .il__box { border-color: #6EA4FF; color: #9CC0FF; box-shadow: 0 0 0 5px rgba(110,164,255,.16); }
.il__node.is-ok .il__box { border-color: #34D058; color: #4BE27A; box-shadow: 0 0 0 5px rgba(52,208,88,.16); }
.il__node.is-ok .il__status { color: #4BE27A; background: rgba(52,208,88,.12); }
.il__node.is-breach .il__box { border-color: #FF3B30; color: #FF6A60; box-shadow: 0 0 0 5px rgba(255,59,48,.18); }
.il__node.is-breach .il__status { color: #FF7A70; background: rgba(255,59,48,.14); }

.il__path { position: relative; flex: 1 1 56px; min-width: 28px; max-width: 96px; height: 0; margin-inline: 14px; border-top: 2px dotted rgba(255,255,255,.22); }
.il__path--wire { flex-basis: 120px; max-width: 150px; }
.il__path--wire span { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A93A3; white-space: nowrap; }
.il .cr__token { z-index: 3; }
.il__id { box-shadow: 0 10px 24px rgba(0,0,0,.4), 0 0 0 4px rgba(251,191,36,.25); }

.il__static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.il__static ol { list-style: decimal; padding-left: 1.3em; display: grid; gap: 8px; color: var(--on-dark-2); }

.il .cr__footer { grid-template-columns: minmax(0,1fr); }
.il .cr__replay { margin-block: 8px; }
@media (max-width: 860px) {
  .il__stage { --il-col: clamp(100px,33vw,130px); --il-inset: 16px; flex-direction: column; align-items: stretch; padding: 40px 16px 32px; }
  .il__layer { flex-direction: column; align-items: stretch; padding: 40px 14px 24px; }
  .il__node { display: flex; align-items: center; gap: 14px; }
  .il__node--out { margin-left: var(--il-inset); }
  .il__visual { display: grid; place-items: center; }
  .il__card-slot, .il__reader-slot, .il__box { flex: none; }
  .il__card-slot { width: var(--il-col); }
  .il__reader-slot { height: 120px; margin-inline: calc((var(--il-col) - 80px) / 2); }
  .il__box { width: 72px; margin-inline: calc((var(--il-col) - 72px) / 2); }
  .il__label { position: static; transform: none; justify-items: start; white-space: normal; }
  .il__path, .il__path--wire { flex: none; width: 0; max-width: none; height: 34px; margin: 10px 0; border-top: 0; border-left: 2px dotted rgba(255,255,255,.22); }
  .il__layer > .il__path { margin-left: calc(var(--il-col) / 2 - 1px); }
  .il__stage > .il__path { margin-left: calc(var(--il-inset) + var(--il-col) / 2 - 1px); }
  .il__path--wire { height: 48px; }
  .il__path--wire span { bottom: auto; top: 50%; left: 14px; transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .il .il__scenes, .il__stage { display: none; }
  .il__static { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
  .il__static-col { padding: 24px; border-radius: 20px; background: #0A1120; border: 1px solid rgba(255,255,255,.08); }
  .il .cr__footer { order: 2; }
  .il { display: flex; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) { .il__static { grid-template-columns: 1fr; } }

/* "What changes. What stays." diagram, reused from the homepage */
.solution-flow { margin: 48px 0 56px; }

/* "Own the keys" trust chain, built from the homepage flow pieces.
   Every drawing sits in a 96px band so the arrows meet them at the same line. */
.solution-chain, .solution-chain .flow__group { align-items: flex-start; }
.solution-chain .flow__node > :first-child { height: 96px; }
.solution-chain .flow__box { height: 84px; margin-block: 6px; }
.solution-chain > .flow__node { padding-top: 36px; }
.solution-chain > .flow__arrow { margin-top: calc(36px + 48px - 1px); }
.solution-chain .flow__exchange { padding: 30px 6px 0; }
.solution-chain__note { margin-top: -4px; min-height: 2.6em; font-size: .78rem; line-height: 1.3; color: var(--muted); }
.solution-chain__key { color: var(--red); border-color: #F3C4C6; background: var(--red-wash); }
@media (min-width: 1001px) { .solution-chain .flow__arrow--wire { width: 120px; } }
@media (max-width: 1000px) {
  .solution-chain, .solution-chain .flow__group { align-items: center; }
  .solution-chain > .flow__node { padding-top: 0; }
  .solution-chain > .flow__arrow { margin-top: 0; }
  .solution-chain__note { min-height: 0; }
}
/* Phones: the request arrow comes first here (the homepage starts with the challenge), so swap the label sides */
@media (max-width: 480px) {
  .solution-chain .flow__exchange { padding: 14px 0; }
  .solution-chain .flow__xarrow--to-reader span { left: auto; right: 12px; }
  .solution-chain .flow__xarrow--to-card span { right: auto; left: 12px; }
}

/* Line-art illustrations in text sections */
.solution-art { margin: 36px 0 28px; }
.solution-art img { width: 100%; height: auto; }
.solution-art__credit { margin-top: 8px; font-size: 12px; line-height: 1.4; text-align: right; color: var(--muted, #6b7280); }
@media (max-width: 640px) { .solution-art { margin: 24px -8px 8px; } }
