/* ── Hero: break out of the site's normal 1360px container, fit + center in the first viewport ── */
.hero {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    box-sizing: border-box;
}
.hero-bg-glow, .hero-bg-glow2 { display: none; }
.hero-inner { grid-template-columns: 1fr 940px; max-width: 1920px; padding: 0 3rem; width: 100%; }
.hero-tag {
    display: block; background: none; border: none; padding: 0; margin-bottom: 1.5rem;
    color: var(--text-3); font-family: 'Rajdhani', sans-serif; font-size: .85rem;
    font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.hero-cta { align-items: center; }
.hero-cta .btn-outline {
    background: none; border: none; padding: .85rem 0; color: var(--accent-hi);
    text-decoration: underline; text-underline-offset: 3px;
}
.hero-cta .btn-outline:hover { color: var(--text-1); }
.hero-visual-wrap { position: relative; }

.hero-cta-note {
    margin-top: .85rem;
    font-size: .82rem;
    color: var(--text-3);
    line-height: 1.4;
    max-width: 420px;
}

.cta-card .hero-cta-note {
    margin: 1.25rem auto 0;
    max-width: 420px;
}
.safari-window {
    background: var(--bg-2);
    border: 1px solid var(--line-dim);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 48px -16px rgba(0,0,0,.45);
    position: relative;
    z-index: 1;
}
.safari-titlebar {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-0); padding: 8px 14px 0;
}
.safari-dots { display: flex; gap: 8px; padding-bottom: 8px; }
.safari-dots span { width: 11px; height: 11px; border-radius: 50%; }
.safari-dots span:nth-child(1) { background: #ff5f57; }
.safari-dots span:nth-child(2) { background: #febc2e; }
.safari-dots span:nth-child(3) { background: #28c840; }
.safari-tab {
    margin-left: 6px; padding: 0 14px 8px; font-size: 12px; color: var(--text-1);
    border-bottom: 2px solid var(--accent-hi); display: flex; align-items: center; gap: 6px;
}
.safari-toolbar {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-0); padding: 7px 14px 9px;
    border-bottom: 1px solid var(--line-dim);
}
.safari-nav-btns { color: var(--text-3); font-size: 15px; display: flex; gap: 10px; }
.safari-address {
    flex: 1; text-align: center; background: var(--bg-3); border: 1px solid var(--line-dim); border-radius: 7px;
    padding: 6px 14px; font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.safari-actions { color: var(--text-3); font-size: 14px; display: flex; gap: 10px; }
.safari-window .demo-panel { border: none; border-radius: 0; box-shadow: none; z-index: auto; }

/* ── Hero demo panel ── */
.demo-panel {
    background: var(--bg-2);
    border: 1px solid var(--line-dim);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 48px -16px rgba(0,0,0,.45);
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 460px;
    position: relative;
    z-index: 1;
}
.demo-sidebar {
    background: var(--bg-0);
    border-right: 1px solid var(--line-dim);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.demo-sidebar-label { font-size: 10px; letter-spacing: .08em; color: var(--text-3); text-transform: uppercase; padding: 4px 6px; }
.demo-sidebar-item { padding: 7px 8px; border-radius: 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-sidebar-item.active { background: var(--bg-3); color: var(--text-1); }
.demo-main { display: flex; flex-direction: column; }
.demo-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 18px; border-bottom: 1px solid var(--line-dim);
    font-size: 13px; color: var(--text-2);
}
.demo-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent-soft); border: 1px solid var(--line);
    color: var(--accent-hi); font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 100px;
}
.demo-body { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 11px; }
.demo-msg-user {
    align-self: flex-end; max-width: 82%;
    background: var(--bg-3); border-radius: 12px 12px 2px 12px;
    padding: 9px 13px; font-size: 13px; color: var(--text-1); line-height: 1.5;
}
.demo-msg-ai { align-self: flex-start; max-width: 85%; display: flex; gap: 8px; }
.demo-msg-ai-avatar {
    width: 22px; height: 22px; border-radius: 50%; flex: none;
    background: var(--accent-dim); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700;
}
.demo-msg-ai-text { font-size: 13px; color: var(--text-2); line-height: 1.5; padding-top: 2px; }
.demo-spacer { flex: 1; }
.demo-alert {
    border-radius: 10px; padding: 12px 14px; display: none;
    gap: 10px; align-items: flex-start; animation: demoPopIn .25s ease-out;
}
.demo-alert.show { display: flex; }
.demo-alert.blocked { border: 1px solid rgba(217,43,43,.35); background: rgba(217,43,43,.08); }
.demo-alert.warned { border: 1px solid rgba(217,168,32,.35); background: rgba(217,168,32,.08); }
.demo-alert-icon { flex: none; margin-top: 1px; }
.demo-alert-title { font-size: 12.5px; font-weight: 700; }
.demo-alert.blocked .demo-alert-title { color: #f2a9a9; }
.demo-alert.warned .demo-alert-title { color: #f2d08a; }
.demo-alert-desc { font-size: 11.5px; color: var(--text-3); line-height: 1.5; margin-top: 2px; }
@keyframes demoPopIn { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
.demo-scanning { display: none; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.demo-scanning.show { display: flex; }

.demo-toast {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 5;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    max-width: 320px;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.demo-toast.show { opacity: 1; transform: none; }
.demo-toast.info { background: #2652B9; }
.demo-toast.success { background: #1f9d55; }
.demo-toast.error { background: #d92b2b; }
.demo-scan-spinner {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--accent); border-top-color: transparent;
    animation: demoSpin .8s linear infinite;
}
@keyframes demoSpin { to { transform: rotate(360deg); } }
.demo-composer {
    border: 1px solid var(--line-dim); border-radius: 12px; background: var(--bg-0);
    padding: 11px 13px; display: flex; flex-direction: column; gap: 9px;
    transition: border-color .2s;
}
.demo-composer.blocked { border-color: rgba(217,43,43,.45); }
.demo-composer.warned { border-color: rgba(217,168,32,.45); }
.demo-composer-text { font-size: 13px; color: var(--text-1); min-height: 38px; line-height: 1.6; caret-color: #fff; padding: 6px 8px; }
.demo-sens { border-radius: 2px; box-shadow: inset 0 -1.5px currentColor; }
.demo-sens.blocked { background: rgba(217,43,43,.18); color: #e37b7b; }
.demo-sens.warned { background: rgba(217,168,32,.18); color: #e0b64d; }
.demo-caret { display: inline-block; width: 1.5px; height: 13px; background: var(--text-1); vertical-align: -2px; margin-left: 1px; animation: demoBlink 1s step-end infinite; }
@keyframes demoBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.demo-composer-row { display: flex; align-items: center; justify-content: space-between; }
.demo-composer-icons { color: var(--text-3); font-size: 13px; }
.demo-send {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    background: var(--accent); color: #fff;
}
.demo-send.blocked { background: rgba(217,43,43,.22); color: #f2a9a9; }
.demo-send.warned { background: rgba(217,168,32,.22); color: #f2d08a; }
.demo-footnote { text-align: center; font-size: 10.5px; color: var(--text-3); margin-top: 8px; }
@media (max-width: 1700px) {
    .hero-inner { grid-template-columns: 1fr; max-width: 940px; padding: 0 1.5rem; }
    .safari-window { max-width: 940px; margin: 0 auto; }
}
@media (max-width: 980px) {
    .demo-panel { grid-template-columns: 1fr; }
    .demo-sidebar { display: none; }
}

/* ── Architecture (story section, text on top / image in its own row) ── */
.arch-section { border-top: 1px solid var(--line-dim); }
.arch-text.centered { max-width: 720px; margin: 0 auto 3rem; }
.arch-text .lead { max-width: 620px; }
.arch-illustration { display: flex; justify-content: center; margin-top: 1rem; }
.arch-illustration .pi-scene { max-width: 100%; width: 100%; }

.ai-panel { fill: rgba(255,255,255,.015); stroke: var(--line-dim); stroke-width: 1.5; }
.ai-panel-dashed { fill: rgba(255,255,255,.015); stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 6 5; }
.ai-panel-label {
    font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700;
    letter-spacing: .07em; fill: var(--text-2);
}
.ai-sub-label {
    font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 600;
    letter-spacing: .03em; fill: var(--text-3);
}
.ai-sub-label-accent { fill: var(--accent-hi); }

.ai-shield, .ai-gateway-shield { fill: var(--bg-3); stroke: var(--line); stroke-width: 1.5; }
.ai-check { stroke: var(--accent-hi); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ai-blocked-ring { fill: rgba(217,95,95,.12); stroke: #d95f5f; stroke-width: 1.5; }
.ai-blocked-x { stroke: #d95f5f; stroke-width: 2; stroke-linecap: round; }
.ai-pipeline circle { fill: var(--text-3); }
.ai-pipeline-line { stroke: var(--line-dim); stroke-width: 1.5; stroke-dasharray: 1 8; stroke-linecap: round; }
.ai-solid-arrow { stroke: var(--accent-hi); stroke-width: 2; fill: none; }
.ai-solid-arrowhead { stroke: var(--accent-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ai-flow-arrow { stroke: var(--accent-hi); stroke-width: 2; stroke-dasharray: 6 6; fill: none; animation: ai-dash-flow 1s linear infinite; }
.ai-return-arrow { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
.ai-return-arrowhead { stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ai-dest-box { fill: var(--bg-3); stroke: rgba(122,163,255,.4); stroke-width: 1.5; }
.ai-dest-dot { fill: var(--accent-hi); animation: ai-pulse 2s ease-in-out infinite; }

/* ── Illustration motion: flowing dashes, pulsing decision points, streaming events ── */
@keyframes ai-dash-flow { to { stroke-dashoffset: -24; } }
@keyframes ai-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ai-stream { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.ai-pipeline-line,
.ai-return-arrow,
.pi-boundary,
.hiw-fork-allow,
.hiw-fork-block,
.hiw-converge {
    animation: ai-dash-flow 1.4s linear infinite;
}
/* dasharray is "5 5" (10-unit repeat); -24 isn't a multiple of that so the shared ai-dash-flow
   animation visibly jumps at loop restart here — use its own offset that loops seamlessly */
@keyframes pi-arrow-dash-flow { to { stroke-dashoffset: -20; } }
.pi-arrow-path {
    animation: pi-arrow-dash-flow 1.4s linear infinite;
}
.hiw-dot-decide, .pi-warn-ring { animation: ai-pulse 2s ease-in-out infinite; }
.ai-log-tick { animation: ai-stream 2.4s ease-in-out infinite; }
.ai-log-tick:nth-of-type(1) { animation-delay: 0s; }
.ai-log-tick:nth-of-type(2) { animation-delay: .15s; }
.ai-log-tick:nth-of-type(3) { animation-delay: .3s; }
.ai-log-tick:nth-of-type(4) { animation-delay: .45s; }
.ai-log-tick:nth-of-type(5) { animation-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
    .ai-pipeline-line, .ai-return-arrow, .pi-boundary, .pi-arrow-path, .ai-flow-arrow,
    .hiw-fork-allow, .hiw-fork-block, .hiw-converge,
    .hiw-dot-decide, .pi-warn-ring, .ai-log-tick, .ai-dest-dot {
        animation: none;
    }
}

.arch-details {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
    margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line-dim);
}
.arch-detail svg {
    width: 22px; height: 22px; stroke: var(--text-3); fill: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem;
}
.arch-detail h4 {
    font-family: 'Rajdhani', sans-serif; font-size: .95rem; font-weight: 700;
    letter-spacing: .03em; color: var(--text-1); margin-bottom: .75rem;
}
.arch-detail p { font-size: .88rem; color: var(--text-2); line-height: 1.65; }
@media (max-width: 900px) {
    .arch-details { grid-template-columns: 1fr; gap: 2rem; }
}

.flow-results {
    display: flex; margin-top: 5rem; border-top: 1px solid var(--line-dim);
}
.flow-result {
    flex: 1; text-align: center; padding: 2.25rem 1rem 0;
}
.flow-result svg { width: 20px; height: 20px; stroke: var(--text-3); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .8rem; }
.flow-result-label { font-size: .86rem; font-weight: 600; color: var(--text-1); }

@media (max-width: 1150px) {
    .flow-results { flex-wrap: wrap; }
    .flow-result { flex: 0 0 50%; padding-bottom: 1.5rem; }
}
/* ── How it works (story, text on top / image in its own row) ── */
.hiw-section { border-top: 1px solid var(--line-dim); }

.hiw-doc-bg { fill: var(--bg-3); stroke: var(--line-dim); }
.hiw-doc-lines { stroke: var(--text-3); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.hiw-doc-line-1 { stroke-dasharray: 36; stroke-dashoffset: 36; animation: hiw-type-line-a 8s linear infinite paused; }
.hiw-doc-line-2 { stroke-dasharray: 36; stroke-dashoffset: 36; animation: hiw-type-line-b 8s linear infinite paused; }
.hiw-doc-line-3 { stroke-dasharray: 22; stroke-dashoffset: 22; animation: hiw-type-line-c 8s linear infinite paused; }
/* typing runs once per token run (twice per 16s cycle, since the animation repeats every 8s) */
@keyframes hiw-type-line-a {
    0% { stroke-dashoffset: 36; }
    6%, 100% { stroke-dashoffset: 0; }
}
@keyframes hiw-type-line-b {
    0%, 4% { stroke-dashoffset: 36; }
    11%, 100% { stroke-dashoffset: 0; }
}
@keyframes hiw-type-line-c {
    0%, 9% { stroke-dashoffset: 22; }
    16%, 100% { stroke-dashoffset: 0; }
}
.hiw-dot { fill: var(--text-3); }
.hiw-dot-decide { fill: var(--accent-hi); }
.hiw-stage-ring { fill: rgba(255,255,255,.02); stroke: var(--text-3); stroke-width: 1.5; }
.hiw-stage-glyph { stroke: var(--text-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.hiw-stage-dot { fill: var(--text-3); r: 6px; }
/* each dot pulses right as the travelling token passes through it, twice per 16s cycle (once per token run) */
.hiw-pulse-intercept { animation: hiw-pulse-intercept 16s linear infinite paused; }
.hiw-pulse-classify { animation: hiw-pulse-classify 16s linear infinite paused; }
.hiw-pulse-scorerisk { animation: hiw-pulse-scorerisk 16s linear infinite paused; }
@keyframes hiw-pulse-intercept {
    0%, 13%, 17%, 63%, 67%, 100% { r: 6px; fill: var(--text-3); }
    15%, 65% { r: 9px; fill: var(--accent-hi); }
}
@keyframes hiw-pulse-classify {
    0%, 19%, 23%, 69%, 73%, 100% { r: 6px; fill: var(--text-3); }
    21%, 71% { r: 9px; fill: var(--accent-hi); }
}
@keyframes hiw-pulse-scorerisk {
    0%, 26%, 31%, 76%, 81%, 100% { r: 6px; fill: var(--text-3); }
    27%, 30%, 77%, 80% { r: 9px; fill: var(--accent-hi); }
}
/* quick "scoring" spinner that flashes on the score risk dot during its 0.5s stagger */
.hiw-score-spinner {
    fill: none; stroke: var(--accent-hi); stroke-width: 2; stroke-dasharray: 6 6;
    opacity: 0; transform-box: fill-box; transform-origin: center;
    animation: hiw-score-spin 16s linear infinite paused;
}
@keyframes hiw-score-spin {
    0%, 26% { opacity: 0; transform: rotate(0deg); }
    27% { opacity: 1; }
    30% { opacity: 1; transform: rotate(220deg); }
    31%, 76% { opacity: 0; }
    77% { opacity: 1; transform: rotate(0deg); }
    80% { opacity: 1; transform: rotate(220deg); }
    81%, 100% { opacity: 0; }
}
.hiw-fork-allow { stroke: #6bcf8a; stroke-width: 2; stroke-dasharray: 4 4; fill: none; }
.hiw-fork-block { stroke: #d95f5f; stroke-width: 2; stroke-dasharray: 4 4; fill: none; }
.hiw-allow-ring { fill: rgba(107,207,138,.12); stroke: #6bcf8a; stroke-width: 2; }
.hiw-allow-check { stroke: #6bcf8a; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.hiw-block-ring { fill: rgba(217,95,95,.12); stroke: #d95f5f; stroke-width: 2; }
.hiw-block-x { stroke: #d95f5f; stroke-width: 2.5; stroke-linecap: round; }
.hiw-outcome-label { font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.hiw-outcome-allow { fill: #6bcf8a; }
.hiw-outcome-block { fill: #d95f5f; }
.hiw-converge { stroke: var(--line-dim); stroke-width: 1.5; stroke-dasharray: 3 5; fill: none; }
.hiw-converge-allow { animation: hiw-converge-glow-allow 16s linear infinite paused; }
.hiw-converge-block { animation: hiw-converge-glow-block 16s linear infinite paused; }
@keyframes hiw-converge-glow-allow {
    0%, 37% { stroke: var(--line-dim); stroke-width: 1.5; stroke-dasharray: 3 5; filter: none; }
    39%, 42% { stroke: #6bcf8a; stroke-width: 2.5; stroke-dasharray: none; filter: drop-shadow(0 0 5px #6bcf8a); }
    44%, 100% { stroke: var(--line-dim); stroke-width: 1.5; stroke-dasharray: 3 5; filter: none; }
}
@keyframes hiw-converge-glow-block {
    0%, 87% { stroke: var(--line-dim); stroke-width: 1.5; stroke-dasharray: 3 5; filter: none; }
    89%, 92% { stroke: #d95f5f; stroke-width: 2.5; stroke-dasharray: none; filter: drop-shadow(0 0 5px #d95f5f); }
    94%, 100% { stroke: var(--line-dim); stroke-width: 1.5; stroke-dasharray: 3 5; filter: none; }
}
.hiw-log-ring { fill: rgba(122,163,255,.08); stroke: var(--accent-hi); stroke-width: 1.5; animation: hiw-log-outcome 16s linear infinite paused; }
.hiw-log-check { stroke: #6bcf8a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; opacity: 0; animation: hiw-log-show-check 16s linear infinite paused; }
.hiw-log-x { stroke: #d95f5f; stroke-width: 2; stroke-linecap: round; fill: none; opacity: 0; animation: hiw-log-show-x 16s linear infinite paused; }
.hiw-token { fill: var(--accent-hi); filter: drop-shadow(0 0 4px var(--accent-hi)); }
.hiw-token-allow { fill: #6bcf8a; filter: drop-shadow(0 0 4px #6bcf8a); }
.hiw-token-block { fill: #d95f5f; filter: drop-shadow(0 0 4px #d95f5f); }
/* the whole diagram starts paused; JS adds .hiw-playing to .pi-scene once it scrolls into view */
.hiw-playing .hiw-doc-line-1, .hiw-playing .hiw-doc-line-2, .hiw-playing .hiw-doc-line-3,
.hiw-playing .hiw-pulse-intercept, .hiw-playing .hiw-pulse-classify, .hiw-playing .hiw-pulse-scorerisk,
.hiw-playing .hiw-score-spinner,
.hiw-playing .hiw-converge-allow, .hiw-playing .hiw-converge-block,
.hiw-playing .hiw-log-ring, .hiw-playing .hiw-log-check, .hiw-playing .hiw-log-x {
    animation-play-state: running;
}
.hiw-playing .hiw-token {
    animation-play-state: running !important;
}
/* the token waits at the prompt until typing finishes (~8%), travels to score risk, then holds there
   for a ~0.5s "scoring" stagger (27%-30%) before handing off to the fork token */
@keyframes hiw-travel-spine {
    0%, 8% { offset-distance: 0%; opacity: 0; }
    9% { opacity: 1; }
    27% { offset-distance: 100%; opacity: 1; }
    30% { offset-distance: 100%; opacity: 1; }
    31%, 100% { offset-distance: 100%; opacity: 0; }
}
@keyframes hiw-travel-fork {
    0%, 30% { offset-distance: 0%; opacity: 0; }
    31% { opacity: 1; }
    39% { offset-distance: 100%; opacity: 1; }
    41%, 100% { offset-distance: 100%; opacity: 0; }
}
@keyframes hiw-log-outcome {
    0%, 37% { stroke: var(--accent-hi); filter: none; }
    39%, 42% { stroke: #6bcf8a; filter: drop-shadow(0 0 6px #6bcf8a); }
    44%, 87% { stroke: var(--accent-hi); filter: none; }
    89%, 92% { stroke: #d95f5f; filter: drop-shadow(0 0 6px #d95f5f); }
    94%, 100% { stroke: var(--accent-hi); filter: none; }
}
@keyframes hiw-log-show-check {
    0%, 37% { opacity: 0; }
    39%, 42% { opacity: 1; }
    44%, 100% { opacity: 0; }
}
@keyframes hiw-log-show-x {
    0%, 87% { opacity: 0; }
    89%, 92% { opacity: 1; }
    94%, 100% { opacity: 0; }
}
.hiw-caption-stage {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 1rem;
    width: 100%; margin: 1.25rem auto 0;
}
.hiw-caption {
    text-align: center;
}
.hiw-caption h4 {
    font-family: 'Rajdhani', sans-serif; font-size: .78rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--accent-hi);
    margin: 0 0 .3rem;
}
.hiw-caption p {
    margin: 0; font-size: .8rem; color: var(--text-2); line-height: 1.35;
}
@media (max-width: 900px) {
    .hiw-caption-stage { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hiw-token-allow, .hiw-token-block { display: none; }
    .hiw-log-ring, .hiw-log-check, .hiw-log-x { animation: none; }
    .hiw-log-check { opacity: 1; }
    .hiw-log-x { opacity: 0; }
    .hiw-doc-line-1, .hiw-doc-line-2, .hiw-doc-line-3 { animation: none; stroke-dashoffset: 0; }
    .hiw-pulse-intercept, .hiw-pulse-classify, .hiw-pulse-scorerisk, .hiw-score-spinner,
    .hiw-converge-allow, .hiw-converge-block {
        animation: none;
    }
    .hiw-score-spinner { opacity: 0; }
}

/* ── Browser extension listing strip ── */
.cws-strip {
    display: flex; align-items: center; gap: 1.5rem;
    border-top: 1px solid var(--line-dim); border-bottom: 1px solid var(--line-dim);
    padding: 150px 0; flex-wrap: wrap;
}
.cws-icon {
    flex: none; width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-soft), var(--violet-soft));
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    position: relative;
    overflow: hidden;
}
.cws-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}
.cws-info { flex: 1; min-width: 240px; }
.cws-name {
    font-family: 'Orbitron', sans-serif; font-size: 1.05rem; font-weight: 700;
    color: var(--text-1); display: flex; align-items: center; gap: .5rem;
}
.cws-verified {
    width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
    color: #fff; font-size: 10px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
    padding: 0; text-align: center;
}
.cws-meta {
    font-size: .92rem; color: var(--text-3); margin-top: .35rem; line-height: 1.5;
}
.cws-cta-wrap { flex: none; display: flex; align-items: center; gap: 1.5rem; }
.cws-cta-wrap .btn-primary { padding: .7rem 1.5rem; }
.cws-cta-note { max-width: 220px; font-size: .82rem; color: var(--text-3); line-height: 1.4; }

/* ── The Problem (story section) ── */
.problem-section { border-top: 1px solid var(--line-dim); padding: 3.5rem 0; }
.problem-grid {
    display: grid; grid-template-columns: 1fr 480px; gap: 4rem; align-items: center;
}
.problem-text .lead { max-width: 560px; }
.problem-illustration { display: flex; justify-content: center; }
.pi-scene { display: flex; flex-direction: column; gap: .75rem; width: 100%; max-width: 480px; }
.pi-scene svg { width: 100%; height: auto; }
.pi-caption-row { display: flex; align-items: baseline; justify-content: space-between; }
.pi-caption {
    font-family: 'Rajdhani', sans-serif; font-size: .78rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.pi-caption-right { color: #d95f5f; }
.pi-device-frame { fill: var(--bg-3); stroke: var(--line); stroke-width: 1.5; }
.pi-device-dot { fill: var(--text-3); opacity: .5; }
.pi-doc-bg { fill: var(--bg-2); stroke: var(--line-dim); }
.pi-doc-lines { stroke: var(--text-3); stroke-width: 3; stroke-linecap: round; fill: none; }
.pi-boundary { stroke: var(--line-dim); stroke-width: 2; stroke-dasharray: 3 6; }
.pi-arrow-path { stroke: #d95f5f; stroke-width: 2; stroke-dasharray: 5 5; fill: none; }
.pi-arrow-head { stroke: #d95f5f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.pi-server-bg { fill: var(--bg-3); stroke: #d95f5f; stroke-opacity: .35; stroke-width: 1.5; }
.pi-server-lines { stroke: var(--text-3); stroke-width: 3; stroke-linecap: round; fill: none; }
.pi-warn-ring { fill: rgba(217,95,95,.12); stroke: #d95f5f; stroke-width: 2; }
.pi-warn-mark { stroke: #d95f5f; stroke-width: 2.5; stroke-linecap: round; }

@media (max-width: 900px) {
    .problem-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .problem-illustration { order: -1; }
}
