/* ══════════════════════════════════════════════════
 HOMEPAGE - Workspace hero (Jira-style)
 Mirrors morphdesk / dynamic-pages / data-analysis.
 Cycles a demo cursor through 3 product views.
══════════════════════════════════════════════════ */

.hh-hero {
 position: relative;
 padding: calc(var(--header-h, 68px) + 64px) 0 132px;
 background:
 radial-gradient(60% 48% at 18% 8%, rgba(91, 61, 232, 0.07), transparent 60%),
 radial-gradient(45% 40% at 82% 14%, rgba(56, 189, 248, 0.04), transparent 65%),
 linear-gradient(180deg, #fbfaf6 0%, #f3f2ed 60%, #ecebe6 100%);
 overflow: hidden;
}

.hh-hero .container { position: relative; z-index: 1; }

.hh-hero-head { max-width: 820px; margin-bottom: 48px; }

.hh-eyebrow {
 display: inline-flex;
 align-items: center;
 gap: 9px;
 font-family: var(--sans);
 font-size: 10.5px;
 letter-spacing: 0.28em;
 text-transform: uppercase;
 font-weight: 600;
 color: var(--ix-violet, #5b3de8);
 border-left: 2px solid var(--ix-violet, #5b3de8);
 padding-left: 12px;
 margin-bottom: 22px;
}

.hh-title {
 font-family: var(--sans);
 font-size: clamp(40px, 5vw, 76px);
 font-weight: 700;
 letter-spacing: -0.046em;
 line-height: 0.98;
 color: var(--ix-ink, #0f111a);
 margin: 0 0 24px;
}

.hh-title em {
 font-style: normal;
}

.hh-sub {
 font-family: var(--sans);
 font-size: 16.5px;
 line-height: 1.62;
 color: var(--ix-ink-muted, #4a4d57);
 max-width: 660px;
 margin: 0 0 32px;
 letter-spacing: -0.005em;
}

.hh-cta-row {
 display: inline-flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 10px;
}

.hh-btn {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 font-family: var(--sans);
 font-size: 13.5px;
 font-weight: 600;
 padding: 13px 22px;
 border-radius: 10px;
 letter-spacing: -0.005em;
 text-decoration: none;
 border: 1px solid transparent;
 transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
 cursor: pointer;
}

.hh-btn-primary {
 background: var(--ix-ink, #0f111a);
 color: #fff;
 box-shadow: 0 1px 0 rgba(255,255,255,0.07) inset, 0 10px 24px rgba(15,17,26,0.22);
}

.hh-btn-primary:hover {
 background: var(--ix-violet, #5b3de8);
 box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 16px 36px rgba(91,61,232,0.34);
}

.hh-btn-ghost {
 background: transparent;
 color: var(--ix-ink, #0f111a);
 border-color: rgba(18, 20, 28, 0.14);
}

.hh-btn-ghost:hover {
 background: rgba(255, 255, 255, 0.7);
 border-color: rgba(18, 20, 28, 0.32);
}

/* ══ WORKSPACE WINDOW ══ */
.hh-workspace {
 position: relative;
 background: #ffffff;
 border: 1px solid rgba(18, 20, 28, 0.08);
 border-radius: 14px;
 box-shadow:
 0 1px 2px rgba(18, 20, 28, 0.03),
 0 28px 80px -20px rgba(18, 20, 28, 0.18),
 0 8px 24px -8px rgba(91, 61, 232, 0.08);
 overflow: hidden;
}

.hh-appbar {
 display: grid;
 grid-template-columns: 1fr auto 1fr;
 align-items: center;
 gap: 24px;
 padding: 12px 22px;
 background: linear-gradient(180deg, #fbfaf6 0%, #f7f6f1 100%);
 border-bottom: 1px solid rgba(18, 20, 28, 0.08);
}

.hh-appbar-crumb {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 font-family: var(--sans);
 font-size: 12px;
 color: var(--ix-ink-muted, #4a4d57);
 letter-spacing: -0.005em;
 min-width: 0;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.hh-appbar-icon {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 22px;
 height: 22px;
 border-radius: 6px;
 background: linear-gradient(135deg, #5b3de8, #8b7cf0);
 color: #fff;
 font-family: var(--sans);
 font-weight: 800;
 font-size: 11px;
 letter-spacing: -0.02em;
 flex-shrink: 0;
 box-shadow: 0 2px 6px rgba(91, 61, 232, 0.28);
}

.hh-appbar-app { font-weight: 700; color: var(--ix-ink, #0f111a); letter-spacing: -0.01em; }
.hh-appbar-sep { color: rgba(18, 20, 28, 0.18); font-weight: 400; margin: 0 2px; }
.hh-appbar-section { color: var(--ix-ink-muted, #4a4d57); font-weight: 500; }

.hh-appbar-id {
 font-family: var(--mono, ui-monospace, monospace);
 font-size: 11px;
 color: var(--ix-ink, #0f111a);
 font-weight: 600;
 padding: 3px 8px;
 background: rgba(18, 20, 28, 0.05);
 border-radius: 6px;
 letter-spacing: 0.02em;
 transition: background 0.3s ease;
}

.hh-appbar-tabs {
 display: inline-flex;
 align-items: center;
 gap: 2px;
 padding: 3px;
 background: rgba(18, 20, 28, 0.04);
 border-radius: 8px;
}

.hh-appbar-tab {
 font-family: var(--sans);
 font-size: 12px;
 font-weight: 500;
 letter-spacing: -0.005em;
 padding: 5px 12px;
 border-radius: 6px;
 border: none;
 background: transparent;
 color: var(--ix-ink-muted, #4a4d57);
 cursor: pointer;
 transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.hh-appbar-tab:hover { color: var(--ix-ink, #0f111a); }

.hh-appbar-tab.is-active {
 background: #fff;
 color: var(--ix-ink, #0f111a);
 font-weight: 600;
 box-shadow: 0 1px 2px rgba(18, 20, 28, 0.06), 0 0 0 1px rgba(18, 20, 28, 0.05);
}

.hh-appbar-status {
 justify-self: end;
 display: inline-flex;
 align-items: center;
 gap: 12px;
 font-family: var(--sans);
 font-size: 11.5px;
 color: var(--ix-ink-muted, #4a4d57);
 letter-spacing: -0.005em;
}

.hh-appbar-live {
 display: inline-flex;
 align-items: center;
 gap: 7px;
 font-size: 11px;
 font-weight: 600;
 color: var(--ix-success, #16a34a);
 letter-spacing: 0.02em;
}

.hh-live-dot {
 width: 7px; height: 7px;
 border-radius: 50%;
 background: var(--ix-success, #16a34a);
 position: relative;
 flex-shrink: 0;
}

.hh-live-dot::after {
 content: "";
 position: absolute;
 inset: 0;
 border-radius: 50%;
 background: var(--ix-success, #16a34a);
 animation: hh-live-ping 1.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes hh-live-ping {
 0% { transform: scale(1); opacity: 0.55; }
 80% { transform: scale(2.4); opacity: 0; }
 100% { transform: scale(2.4); opacity: 0; }
}

/* ══ Workspace body ══ */
.hh-body {
 display: grid;
 grid-template-columns: 256px minmax(0, 1fr) 296px;
 align-items: stretch;
}

.hh-zone {
 position: relative;
 padding: 24px 22px;
 min-width: 0;
}

.hh-zone-left {
 background: linear-gradient(180deg, #fcfbf7 0%, #f8f7f2 100%);
 border-right: 1px solid rgba(18, 20, 28, 0.08);
}

.hh-zone-center {
 padding: 28px 28px 32px;
 background: #ffffff;
}

.hh-zone-right {
 background: linear-gradient(180deg, #fcfbf7 0%, #f8f7f2 100%);
 border-left: 1px solid rgba(18, 20, 28, 0.08);
}

.hh-zone-h {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 8px;
 margin-bottom: 14px;
}

.hh-zone-title {
 font-family: var(--sans);
 font-size: 11px;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 0.16em;
 color: var(--ix-ink, #0f111a);
}

.hh-zone-sub {
 font-family: var(--sans);
 font-size: 10.5px;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 0.18em;
 color: var(--ix-ink-soft, #6e7280);
 margin-bottom: 12px;
}

.hh-zone-divider {
 height: 1px;
 background: rgba(18, 20, 28, 0.08);
 margin: 22px -22px 20px;
}

.hh-zone-note {
 margin: 0;
 font-family: var(--sans);
 font-size: 11.5px;
 line-height: 1.55;
 color: var(--ix-ink-soft, #6e7280);
 letter-spacing: -0.005em;
}

.hh-zone-pill {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 3px 8px 3px 6px;
 background: rgba(91, 61, 232, 0.10);
 color: var(--ix-violet, #5b3de8);
 border-radius: 999px;
 font-family: var(--sans);
 font-weight: 700;
 font-size: 9px;
 letter-spacing: 0.12em;
 text-transform: uppercase;
}

.hh-pulse {
 width: 6px; height: 6px;
 border-radius: 50%;
 background: var(--ix-violet, #5b3de8);
 position: relative;
 flex-shrink: 0;
}

.hh-pulse::before {
 content: "";
 position: absolute;
 inset: 0;
 border-radius: 50%;
 background: var(--ix-violet, #5b3de8);
 animation: hh-pulse 1.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes hh-pulse {
 0% { transform: scale(1); opacity: 0.6; }
 80% { transform: scale(2.6); opacity: 0; }
 100% { transform: scale(2.6); opacity: 0; }
}

/* ── Product palette (Jira-style ticket rows) ── */
.hh-prod-list {
 display: flex;
 flex-direction: column;
 gap: 1px;
 margin: 0 -8px;
}

.hh-prod {
 position: relative;
 display: grid;
 grid-template-columns: 28px 1fr auto;
 align-items: center;
 gap: 10px;
 padding: 9px 32px 9px 12px;
 background: transparent;
 border: none;
 border-radius: 8px;
 cursor: pointer;
 text-align: left;
 font-family: var(--sans);
 color: var(--ix-ink, #0f111a);
 text-decoration: none;
 transition: background 0.15s ease;
}

.hh-prod::before {
 content: "";
 position: absolute;
 left: 4px; top: 18%; bottom: 18%;
 width: 2px;
 background: var(--src-color, #5b3de8);
 border-radius: 2px;
 transform: scaleY(0);
 transform-origin: center;
 transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hh-prod:hover { background: rgba(18, 20, 28, 0.04); }
.hh-prod:hover::before { transform: scaleY(1); }

.hh-prod.is-active {
 background: #fff;
 box-shadow: 0 1px 2px rgba(18, 20, 28, 0.05), 0 0 0 1px rgba(18, 20, 28, 0.06);
}

.hh-prod.is-active::before { transform: scaleY(1); }

.hh-prod-tag {
 width: 26px; height: 26px;
 border-radius: 6px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 background: var(--src-color, #5b3de8);
 color: #fff;
 font-family: var(--sans);
 font-weight: 800;
 font-size: 11px;
 letter-spacing: -0.01em;
 flex-shrink: 0;
}

.hh-prod-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.hh-prod-id {
 font-family: var(--sans);
 font-size: 12.5px;
 font-weight: 600;
 color: var(--ix-ink, #0f111a);
 letter-spacing: -0.005em;
}

.hh-prod-sub {
 font-family: var(--sans);
 font-size: 10.5px;
 color: var(--ix-ink-soft, #6e7280);
 letter-spacing: -0.005em;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.hh-prod-pri {
 font-family: var(--mono, ui-monospace, monospace);
 font-size: 9.5px;
 font-weight: 700;
 color: var(--ix-ink-soft, #6e7280);
 letter-spacing: 0.05em;
 flex-shrink: 0;
}

.hh-prod.is-active .hh-prod-pri { color: var(--src-color, #5b3de8); }

.hh-prod-chev {
 position: absolute;
 right: 12px; top: 50%;
 transform: translate(-4px, -50%);
 font-family: var(--mono, ui-monospace, monospace);
 font-size: 12px;
 font-weight: 600;
 color: var(--src-color, #5b3de8);
 opacity: 0;
 pointer-events: none;
 transition: opacity 0.15s ease, transform 0.15s ease;
}

.hh-prod:hover .hh-prod-chev,
.hh-prod.is-active .hh-prod-chev {
 opacity: 1;
 transform: translate(0, -50%);
}

.hh-prod.is-active .hh-prod-chev {
 animation: hh-chev-nudge 1.6s ease-in-out infinite;
}

@keyframes hh-chev-nudge {
 0%, 100% { transform: translate(0, -50%); }
 50% { transform: translate(3px, -50%); }
}

/* ── KV rows ── */
.hh-kv { margin: 0; padding: 0; display: flex; flex-direction: column; }

.hh-kv-row {
 display: flex;
 justify-content: space-between;
 align-items: baseline;
 gap: 12px;
 padding: 9px 0;
 font-family: var(--sans);
 font-size: 12px;
 color: var(--ix-ink-muted, #4a4d57);
 border-bottom: 1px dashed rgba(18, 20, 28, 0.08);
 letter-spacing: -0.005em;
}

.hh-kv-row:last-child { border-bottom: none; }

.hh-kv-row dt { margin: 0; font-weight: 500; color: var(--ix-ink-muted, #4a4d57); transition: color 0.3s ease; }

.hh-kv-row dd {
 margin: 0;
 font-weight: 700;
 color: var(--ix-ink, #0f111a);
 font-feature-settings: "tnum" 1;
 transition: color 0.3s ease;
}

.hh-kv-row dd .small {
 color: var(--ix-ink-soft, #6e7280);
 font-weight: 500;
 font-size: 11px;
 margin-left: 2px;
}

.hh-kv-row dd.is-good { color: var(--ix-success, #16a34a); }
.hh-kv-row dd.is-warn { color: #b45309; }
.hh-kv-row dd.is-bad { color: var(--ix-danger, #dc2626); }

.hh-kv-bar dd {
 display: inline-flex;
 align-items: center;
 width: 110px;
 flex-shrink: 0;
}

.hh-bar-track {
 display: block;
 width: 100%;
 height: 4px;
 border-radius: 2px;
 background: rgba(18, 20, 28, 0.08);
 overflow: hidden;
}

.hh-bar-fill {
 display: block;
 height: 100%;
 background: linear-gradient(90deg, #5b3de8, #8b7cf0, #38bdf8);
 border-radius: 2px;
 transition: width 0.6s ease;
}

/* ══ CENTER detail head ══ */
.hh-detail-head {
 display: grid;
 grid-template-columns: 1fr auto;
 align-items: start;
 gap: 16px;
 padding-bottom: 20px;
 margin-bottom: 24px;
 border-bottom: 1px solid rgba(18, 20, 28, 0.08);
}

.hh-detail-meta {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 10px;
 margin-bottom: 10px;
 grid-column: 1 / 2;
}

.hh-detail-id {
 font-family: var(--mono, ui-monospace, monospace);
 font-size: 11.5px;
 font-weight: 600;
 color: var(--ix-ink, #0f111a);
 padding: 4px 9px;
 background: rgba(18, 20, 28, 0.05);
 border-radius: 6px;
 letter-spacing: 0.02em;
 transition: color 0.3s ease;
}

.hh-detail-tags {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 font-family: var(--sans);
 font-size: 11px;
 font-weight: 500;
 color: var(--ix-ink-soft, #6e7280);
 letter-spacing: 0.04em;
 text-transform: uppercase;
}

.hh-detail-title {
 grid-column: 1 / 2;
 margin: 0;
 font-family: var(--sans);
 font-size: clamp(20px, 1.8vw, 26px);
 font-weight: 700;
 letter-spacing: -0.03em;
 line-height: 1.18;
 color: var(--ix-ink, #0f111a);
}

.hh-detail-priority {
 grid-column: 2 / 3;
 grid-row: 1 / 3;
 align-self: start;
 font-family: var(--sans);
 font-size: 10px;
 font-weight: 700;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 padding: 5px 10px;
 border-radius: 999px;
 background: rgba(91, 61, 232, 0.10);
 color: var(--ix-violet, #5b3de8);
 white-space: nowrap;
 flex-shrink: 0;
 transition: background 0.3s ease, color 0.3s ease;
}

.hh-detail-priority.is-bad { background: rgba(220, 38, 38, 0.10); color: var(--ix-danger, #dc2626); }
.hh-detail-priority.is-good { background: rgba(22, 163, 74, 0.10); color: var(--ix-success, #16a34a); }

.hh-activity-bar {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
 margin-bottom: 16px;
}

.hh-activity-h {
 font-family: var(--sans);
 font-size: 11px;
 font-weight: 700;
 letter-spacing: 0.18em;
 text-transform: uppercase;
 color: var(--ix-ink, #0f111a);
}

.hh-activity-meta {
 font-family: var(--sans);
 font-size: 11px;
 color: var(--ix-ink-soft, #6e7280);
 letter-spacing: -0.005em;
}

/* ══ Stage frame - three crossfading product views ══ */
.hh-stage-frame {
 position: relative;
 min-height: 380px;
}

.hh-stage {
 position: absolute;
 inset: 0;
 opacity: 0;
 pointer-events: none;
 transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
 transform: translateY(8px);
}

.hh-stage.is-active {
 opacity: 1;
 pointer-events: auto;
 transform: translateY(0);
}

/* ── Stage 1 · Data Analysis · system map ── */
.hh-graph {
 position: relative;
 height: 100%;
 min-height: 380px;
 border-radius: 12px;
 border: 1px solid rgba(18, 20, 28, 0.08);
 background-color: #fcfbf7;
 background-image: radial-gradient(rgba(15, 17, 26, 0.10) 1px, transparent 1px);
 background-size: 22px 22px;
 background-position: 11px 11px;
 overflow: hidden;
}

.hh-graph-svg {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 pointer-events: none;
}

.hh-node {
 position: absolute;
 display: grid;
 grid-template-columns: 26px 1fr;
 gap: 9px;
 align-items: center;
 padding: 8px 12px 8px 8px;
 border-radius: 10px;
 background: #fff;
 border: 1px solid rgba(18, 20, 28, 0.08);
 box-shadow: 0 1px 2px rgba(18, 20, 28, 0.05), 0 8px 18px -8px rgba(18, 20, 28, 0.18);
 font-family: var(--sans);
 transform: translate(-50%, -50%);
 z-index: 2;
 white-space: nowrap;
}

.hh-node-ico {
 width: 26px; height: 26px;
 border-radius: 6px;
 display: flex;
 align-items: center;
 justify-content: center;
 color: #fff;
 font-family: var(--sans);
 font-weight: 800;
 font-size: 10.5px;
 letter-spacing: -0.01em;
}

.hh-node-name {
 font-size: 12px;
 font-weight: 600;
 color: var(--ix-ink, #0f111a);
 letter-spacing: -0.005em;
 line-height: 1.1;
}

.hh-node-tag {
 font-family: var(--mono, ui-monospace, monospace);
 font-size: 8px;
 letter-spacing: 0.12em;
 color: var(--ix-ink-soft, #6e7280);
 text-transform: uppercase;
 margin-top: 3px;
}

.hh-graph-label {
 position: absolute;
 top: 14px;
 left: 14px;
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 6px 11px;
 border-radius: 999px;
 background: rgba(220, 38, 38, 0.10);
 color: var(--ix-danger, #dc2626);
 border: 1px solid rgba(220, 38, 38, 0.18);
 font-family: var(--sans);
 font-size: 10.5px;
 font-weight: 700;
 letter-spacing: 0.04em;
 z-index: 3;
}

.hh-graph-label::before {
 content: "";
 width: 6px; height: 6px;
 border-radius: 50%;
 background: var(--ix-danger, #dc2626);
}

.hh-edge {
 fill: none;
 stroke-width: 1.6;
 stroke-linecap: round;
}

.hh-edge.good { stroke: #5b3de8; opacity: 0.7; }

.hh-edge.gap {
 stroke: rgba(220, 38, 38, 0.65);
 stroke-dasharray: 5 5;
 animation: hh-dash 1.4s linear infinite;
}

@keyframes hh-dash { to { stroke-dashoffset: -18; } }

.hh-cost {
 font-family: var(--mono, ui-monospace, monospace);
 font-size: 10px;
 font-weight: 700;
 fill: var(--ix-danger, #dc2626);
}

.hh-cost-bg {
 fill: #fff;
 stroke: rgba(220, 38, 38, 0.32);
 stroke-width: 1;
}

/* ── Stage 2 · Dynamic Pages · mini live page ── */
.hh-page-wrap {
 display: grid;
 grid-template-rows: auto 1fr;
 gap: 0;
 border-radius: 12px;
 border: 1px solid rgba(18, 20, 28, 0.08);
 overflow: hidden;
 background: #fff;
 box-shadow: 0 1px 2px rgba(18, 20, 28, 0.04), 0 14px 32px -10px rgba(18, 20, 28, 0.12);
 min-height: 380px;
}

.hh-page-bar {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 10px 14px;
 background: #f5f4ee;
 border-bottom: 1px solid rgba(18, 20, 28, 0.08);
}

.hh-page-dots { display: inline-flex; gap: 5px; }
.hh-page-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(18,20,28,0.12); display: block; }
.hh-page-dots span:nth-child(1) { background: #ff5f57; }
.hh-page-dots span:nth-child(2) { background: #ffbd2e; }
.hh-page-dots span:nth-child(3) { background: #28c840; }

.hh-page-url {
 flex: 1;
 display: inline-flex;
 align-items: center;
 gap: 8px;
 background: #fff;
 border-radius: 6px;
 padding: 5px 11px;
 font-family: var(--mono, ui-monospace, monospace);
 font-size: 10.5px;
 color: var(--ix-ink-soft, #6e7280);
 letter-spacing: 0.02em;
 border: 1px solid rgba(18, 20, 28, 0.05);
}

.hh-page-url::before {
 content: "🔒";
 font-size: 9px;
 filter: grayscale(1) opacity(0.4);
}

.hh-page-body {
 display: grid;
 grid-template-columns: 1.4fr 1fr;
 gap: 22px;
 padding: 26px 26px 28px;
 background:
 radial-gradient(80% 60% at 0% 0%, rgba(91, 61, 232, 0.04), transparent 60%),
 linear-gradient(180deg, #fff 0%, #fafaf6 100%);
}

.hh-page-badge {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 background: rgba(91, 61, 232, 0.10);
 color: var(--ix-violet, #5b3de8);
 font-family: var(--sans);
 font-size: 10.5px;
 font-weight: 700;
 letter-spacing: 0.04em;
 padding: 5px 11px;
 border-radius: 999px;
 width: fit-content;
 margin-bottom: 14px;
}

.hh-page-h {
 font-family: var(--sans);
 font-size: clamp(20px, 2vw, 26px);
 font-weight: 800;
 letter-spacing: -0.03em;
 line-height: 1.12;
 color: var(--ix-ink, #0f111a);
 margin: 0 0 12px;
}

.hh-page-sub {
 font-family: var(--sans);
 font-size: 12.5px;
 line-height: 1.55;
 color: var(--ix-ink-muted, #4a4d57);
 letter-spacing: -0.005em;
 margin: 0 0 18px;
}

.hh-page-cta {
 display: inline-flex;
 align-items: center;
 gap: 7px;
 background: var(--ix-ink, #0f111a);
 color: #fff;
 border: none;
 border-radius: 8px;
 font-family: var(--sans);
 font-size: 12.5px;
 font-weight: 600;
 padding: 10px 16px;
 letter-spacing: -0.005em;
 cursor: pointer;
}

.hh-page-aside {
 background: #fff;
 border: 1px solid rgba(18, 20, 28, 0.08);
 border-radius: 10px;
 padding: 16px 16px 18px;
 align-self: start;
 box-shadow: 0 1px 2px rgba(18, 20, 28, 0.03);
}

.hh-page-aside-h {
 font-family: var(--sans);
 font-size: 9.5px;
 font-weight: 700;
 letter-spacing: 0.18em;
 text-transform: uppercase;
 color: var(--ix-violet, #5b3de8);
 margin-bottom: 10px;
}

.hh-page-stat {
 font-family: var(--sans);
 font-size: 28px;
 font-weight: 800;
 letter-spacing: -0.03em;
 color: var(--ix-ink, #0f111a);
 line-height: 1;
 margin-bottom: 4px;
}

.hh-page-stat-l {
 font-family: var(--sans);
 font-size: 10.5px;
 color: var(--ix-ink-soft, #6e7280);
 letter-spacing: -0.005em;
 margin-bottom: 12px;
}

.hh-page-quote {
 font-family: var(--sans);
 font-size: 11px;
 font-style: italic;
 line-height: 1.5;
 color: var(--ix-ink-muted, #4a4d57);
 letter-spacing: -0.005em;
 margin-bottom: 6px;
 padding-top: 10px;
 border-top: 1px dashed rgba(18, 20, 28, 0.10);
}

.hh-page-attr {
 font-family: var(--sans);
 font-size: 10px;
 font-weight: 700;
 letter-spacing: 0.04em;
 color: var(--ix-violet, #5b3de8);
}

/* ── Stage 3 · MorphDesk · pipeline ── */
.hh-pipe {
 display: flex;
 flex-direction: column;
 gap: 0;
 min-height: 380px;
 padding: 20px 22px 22px;
 border-radius: 12px;
 border: 1px solid rgba(18, 20, 28, 0.08);
 background: #fff;
 box-shadow: 0 1px 2px rgba(18, 20, 28, 0.04), 0 14px 32px -10px rgba(18, 20, 28, 0.12);
}

.hh-pipe-head {
 display: flex;
 align-items: center;
 gap: 10px;
 padding-bottom: 14px;
 border-bottom: 1px dashed rgba(18, 20, 28, 0.08);
 margin-bottom: 14px;
}

.hh-pipe-id {
 font-family: var(--mono, ui-monospace, monospace);
 font-size: 11.5px;
 font-weight: 700;
 background: rgba(18, 20, 28, 0.05);
 color: var(--ix-ink, #0f111a);
 border-radius: 6px;
 padding: 4px 9px;
 letter-spacing: 0.02em;
}

.hh-pipe-title {
 font-family: var(--sans);
 font-size: 13px;
 font-weight: 600;
 color: var(--ix-ink, #0f111a);
 letter-spacing: -0.005em;
 flex: 1;
 min-width: 0;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.hh-pipe-tag {
 font-family: var(--sans);
 font-size: 9.5px;
 font-weight: 700;
 letter-spacing: 0.12em;
 text-transform: uppercase;
 padding: 4px 8px;
 border-radius: 999px;
 background: rgba(220, 38, 38, 0.10);
 color: var(--ix-danger, #dc2626);
}

.hh-steps {
 display: flex;
 flex-direction: column;
 gap: 0;
 position: relative;
}

.hh-steps::before {
 content: "";
 position: absolute;
 left: 11px;
 top: 16px;
 bottom: 16px;
 width: 1px;
 background: rgba(18, 20, 28, 0.10);
 z-index: 0;
}

.hh-step {
 position: relative;
 display: grid;
 grid-template-columns: 24px 1fr auto;
 align-items: center;
 gap: 14px;
 padding: 11px 0;
 border-bottom: 1px dashed rgba(18, 20, 28, 0.06);
}

.hh-step:last-child { border-bottom: none; }

.hh-step-marker {
 position: relative;
 width: 22px; height: 22px;
 border-radius: 50%;
 background: #fff;
 border: 1px solid rgba(18, 20, 28, 0.18);
 display: flex;
 align-items: center;
 justify-content: center;
 font-family: var(--mono, ui-monospace, monospace);
 font-size: 9.5px;
 font-weight: 700;
 color: var(--ix-ink-soft, #6e7280);
 z-index: 1;
}

.hh-step.is-done .hh-step-marker {
 background: var(--ix-success, #16a34a);
 border-color: var(--ix-success, #16a34a);
 color: #fff;
}

.hh-step.is-current .hh-step-marker {
 background: var(--ix-violet, #5b3de8);
 border-color: var(--ix-violet, #5b3de8);
 color: #fff;
 box-shadow: 0 0 0 4px rgba(91, 61, 232, 0.18);
}

.hh-step-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.hh-step-title {
 font-family: var(--sans);
 font-size: 12.5px;
 font-weight: 600;
 color: var(--ix-ink, #0f111a);
 letter-spacing: -0.005em;
}

.hh-step.is-pending .hh-step-title { color: var(--ix-ink-soft, #6e7280); }

.hh-step-owner {
 font-family: var(--sans);
 font-size: 10.5px;
 letter-spacing: -0.005em;
 color: var(--ix-ink-soft, #6e7280);
}

.hh-step-owner.ml { color: var(--ix-violet, #5b3de8); font-weight: 600; }
.hh-step-owner.human { color: #b45309; font-weight: 600; }
.hh-step-owner.auto { color: var(--ix-success, #16a34a); font-weight: 600; }

.hh-step-status {
 font-family: var(--mono, ui-monospace, monospace);
 font-size: 10px;
 font-weight: 700;
 letter-spacing: 0.06em;
 text-transform: uppercase;
 color: var(--ix-ink-soft, #6e7280);
}

.hh-step.is-done .hh-step-status { color: var(--ix-success, #16a34a); }
.hh-step.is-current .hh-step-status { color: var(--ix-violet, #5b3de8); animation: hh-status-pulse 1.4s ease-in-out infinite; }

@keyframes hh-status-pulse {
 0%, 100% { opacity: 1; }
 50% { opacity: 0.45; }
}

/* In-view "poke" pulse - fires when the demo cursor taps a node/CTA/step */
[data-hh-poke].is-poked {
 animation: hh-poke 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hh-poke {
 0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(91, 61, 232, 0.0); }
 35% { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 10px rgba(91, 61, 232, 0.18); }
 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 22px rgba(91, 61, 232, 0.0); }
}

.hh-page-cta[data-hh-poke].is-poked {
 animation: hh-poke-cta 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hh-poke-cta {
 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(91, 61, 232, 0.0); }
 35% { transform: scale(0.97); box-shadow: 0 0 0 8px rgba(91, 61, 232, 0.22); }
 100% { transform: scale(1); box-shadow: 0 0 0 18px rgba(91, 61, 232, 0.0); }
}

.hh-step[data-hh-poke].is-poked {
 animation: hh-poke-step 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hh-poke-step {
 0% { background: transparent; }
 35% { background: rgba(91, 61, 232, 0.10); }
 100% { background: transparent; }
}

/* ══ Demo cursor ══ */
.hh-cursor {
 position: absolute;
 left: 0; top: 0;
 width: 22px; height: 22px;
 pointer-events: none;
 transform: translate3d(-100px, -100px, 0);
 transition: transform 0.85s cubic-bezier(0.5, 0, 0.18, 1);
 z-index: 8;
 will-change: transform;
}

.hh-cursor-arrow {
 position: relative;
 z-index: 2;
 width: 22px; height: 22px;
 display: block;
 filter: drop-shadow(0 3px 6px rgba(15, 17, 26, 0.32))
 drop-shadow(0 1px 2px rgba(15, 17, 26, 0.4));
 transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.hh-cursor.is-clicking .hh-cursor-arrow { transform: scale(0.82); }

.hh-cursor-ripple {
 position: absolute;
 left: 1px; top: 1px;
 width: 18px; height: 18px;
 border-radius: 50%;
 background: rgba(91, 61, 232, 0.35);
 opacity: 0;
 transform: scale(0.4);
 pointer-events: none;
 z-index: 1;
}

.hh-cursor.is-clicking .hh-cursor-ripple {
 animation: hh-cursor-ripple 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hh-cursor-ripple {
 0% { opacity: 0.7; transform: scale(0.35); background: rgba(91, 61, 232, 0.55); }
 60% { opacity: 0.35; }
 100% { opacity: 0; transform: scale(3.4); background: rgba(91, 61, 232, 0.0); }
}

/* ══ Responsive ══ */
@media (max-width: 1100px) {
 .hh-body { grid-template-columns: 220px minmax(0, 1fr) 264px; }
 .hh-zone-center { padding: 24px 22px 28px; }
 .hh-stage-frame { min-height: 360px; }
 .hh-graph, .hh-page-wrap, .hh-pipe { min-height: 360px; }
 .hh-page-body { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 900px) {
 .hh-appbar {
 grid-template-columns: 1fr auto;
 gap: 14px;
 padding: 12px 16px;
 }
 .hh-appbar-tabs { display: none; }
 .hh-body { grid-template-columns: 1fr; }
 .hh-zone-left, .hh-zone-right {
 border-right: none;
 border-left: none;
 border-top: 1px solid rgba(18, 20, 28, 0.08);
 }
 .hh-zone-left { border-top: none; }
 .hh-stage-frame { min-height: 320px; }
 .hh-graph, .hh-page-wrap, .hh-pipe { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
 .hh-pulse::before,
 .hh-live-dot::after,
 .hh-prod.is-active .hh-prod-chev,
 .hh-edge.gap,
 .hh-step.is-current .hh-step-status,
 .hh-cursor.is-clicking .hh-cursor-ripple {
 animation: none !important;
 }
 .hh-cursor { transition: none !important; }
 .hh-stage { transition: opacity 0.2s linear !important; }
}
