/* Compact introduction: the message and its demonstration share a row. */
.hero.hero-balanced { padding-top: 58px; background: radial-gradient(ellipse at 85% 25%, #dceaf575, transparent 58%); }
:root[data-theme="dark"] .hero.hero-balanced { background: radial-gradient(ellipse at 85% 25%, #1a466455, transparent 58%); }
.hero-balanced .hero-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 58px; align-items: center; }
.hero-balanced .hero-copy { min-width: 0; }
.hero-balanced .hero-copy > .eyebrow { font-size: 10px; margin-bottom: 23px; }
.hero-balanced h1, html[lang="en"] .hero-balanced h1 { font-size: clamp(35px, 3.5vw, 53px); line-height: 1.2; letter-spacing: -2.1px; }
.hero-balanced .hero-title-line { padding-bottom: .16em; margin-bottom: -.16em; }
.hero-balanced .hero-description { font-size: 14px; line-height: 1.85; max-width: 515px; margin-top: 25px; }
.hero-balanced .hero-actions { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.hero-balanced .hero-actions .button { padding: 15px 17px; gap: 10px; font-size: 11px; min-height: 50px; }
.hero-balanced .hero-note { margin-top: 18px; font-size: 10px; }
.hero-balanced .hero-visual,
:root[data-theme="dark"] .hero-balanced .hero-visual { width: 100%; max-width: none; min-height: 0; padding: 21px 22px 15px; border-radius: 20px; overflow: hidden; background-image: radial-gradient(ellipse at 50% 48%, #286a9545, transparent 64%), radial-gradient(#9bbcd518 .8px, transparent .8px); background-size: auto, 20px 20px; box-shadow: 0 24px 55px -30px #0a325955, inset 0 1px 0 #ffffff12; }
.hero-balanced .studio-toolbar { display: flex; flex-direction: column; gap: 14px; }
.hero-balanced .visual-topline { color: #bed2e2; font-size: 8px; letter-spacing: 1px; }
.hero-balanced .visual-index { font-size: 8px; color: #85a7c0; }
.hero-balanced .hero-scenarios { margin: 0; display: flex; gap: 6px; }
.hero-balanced .scene-button { flex: 1; padding: 8px 7px; font-size: 10px; border-radius: 6px; text-align: center; }
.hero-balanced .diagram-canvas { position: relative; display: grid; grid-template-columns: 1fr; gap: 28px; height: auto; min-height: 0; margin: 0; padding-block: 20px; }
.hero-balanced .diagram-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-balanced .input-nodes, .hero-balanced .output-nodes { position: relative; inset: auto; width: auto; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 10px; z-index: 1; }
.hero-balanced .diagram-node, .hero-balanced .output-node,
:root[data-theme="dark"] .hero-balanced .diagram-node,
:root[data-theme="dark"] .hero-balanced .output-node { position: relative; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 7px; padding: 12px 5px; min-height: 48px; white-space: normal; border: 1px solid #52758d77; border-radius: 8px; color: #c6d9e7; background: #112f46; box-shadow: none; transition: border-color .4s, background .4s, box-shadow .4s; }
.hero-balanced .diagram-node > .icon, .hero-balanced .output-node > .icon,
:root[data-theme="dark"] .hero-balanced .output-node > .icon { width: 18px; height: 18px; padding: 0; box-sizing: border-box; flex-shrink: 0; background: transparent; color: #9dc9e3; }
.hero-balanced .diagram-node strong, .hero-balanced .output-node strong { display: block; font-size: 10px; font-weight: 650; line-height: 1.4; color: #d9eaf5; }
.hero-balanced .diagram-node > div > span, .hero-balanced .output-node > div > span { display: none; }
.hero-balanced .diagram-node.is-scene-current, .hero-balanced .output-node.is-scene-current,
:root[data-theme="dark"] .hero-balanced .diagram-node.is-scene-current,
:root[data-theme="dark"] .hero-balanced .output-node.is-scene-current { background: #234d6b; border-color: #8fc4e2; box-shadow: inset 0 1px 0 #ffffff0c; }
.hero-balanced .node-port { position: absolute; left: calc(50% - 2px); bottom: -3px; width: 4px; height: 4px; border-radius: 50%; background: #759cb7; box-shadow: 0 0 0 3px #0e2a40; }
.hero-balanced .output-node .node-port { top: -3px; bottom: auto; }
.hero-balanced .is-scene-current .node-port { background: #d5f2ff; box-shadow: 0 0 0 3px #173951, 0 0 10px #88d4ff; }
.hero-balanced .output-node > .node-check,
:root[data-theme="dark"] .hero-balanced .output-node > .node-check { display: none; }
.hero-balanced .central-node,
:root[data-theme="dark"] .hero-balanced .central-node { position: relative; left: auto; top: auto; transform: none; width: min(238px, calc(100% - 36px)); height: auto; min-height: 100px; margin-inline: auto; padding: 13px 19px 10px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; z-index: 1; border: 1px solid #abc7db; border-radius: 12px; background: linear-gradient(145deg, #fff, #e5f0f7); box-shadow: 0 0 0 5px #6cb6e70a, 0 0 0 6px #7eabc72b, 0 10px 25px #0002; color: #0a3259; }
.hero-balanced .central-node:after { inset: -12px; border-radius: 20px; border-color: #8cc5e435; }
.hero-balanced .engine-brand { display: flex; justify-content: center; gap: 8px; align-items: center; }
.hero-balanced .large-mark { width: 26px; height: 27px; border-radius: 0; background: transparent; }
.hero-balanced .large-mark img { width: 64px; height: 64px; left: -19px; top: -14px; }
.hero-balanced .engine-brand > span:last-child { font-size: 19px; font-weight: 800; letter-spacing: -.7px; color: #0a3259; }
.hero-balanced .engine-method { display: flex; justify-content: center; gap: 19px; margin-top: 10px; }
.hero-balanced .engine-method > span { display: flex; align-items: center; gap: 4px; font-size: 9px; line-height: 1.6; font-weight: 650; color: #355772; }
.hero-balanced .engine-method i { font-style: normal; font-size: 7px; color: #7895aa; }
.hero-balanced .engine-meter { display: flex; align-items: center; gap: 3px; height: 4px; margin-top: 9px; }
.hero-balanced .engine-meter > span { height: 2px; flex: 1; border-radius: 4px; background: #598aac; opacity: .3; }
.hero-balanced .workflow-card,
:root[data-theme="dark"] .hero-balanced .workflow-card { padding: 13px 14px; border: 1px solid #b7d5e52b; background: #18394fbb; border-radius: 9px; }
.hero-balanced .workflow-heading { gap: 10px; min-height: 42px; }
.hero-balanced .workflow-icon { display: none; }
.hero-balanced .workflow-heading strong { font-size: 12px; line-height: 1.5; }
.hero-balanced .workflow-heading > div > span { font-size: 10px; line-height: 1.6; }
.hero-balanced .scene-contact { width: 38px; height: 38px; }
.hero-balanced .visual-bottomline { display: none; }
.hero-balanced .visual-controls { margin-top: 12px; padding-top: 0; border: 0; gap: 10px; }
.hero-balanced .visual-controls > span { max-width: 185px; font-size: 8px; line-height: 1.6; }
.hero-balanced .motion-toggle { border: 0; background: transparent; padding: 5px 0; font-size: 9px; }
.hero-balanced .hero-proof { margin-top: 34px; padding-block: 23px 0; }
.hero-balanced .proof-icon { width: 31px; height: 31px; border-radius: 8px; }
.hero-balanced .proof-icon .icon { width: 16px; height: 16px; }
.hero-balanced .proof-item { gap: 11px; }
.hero-balanced .proof-item strong { font-size: 11px; }
.hero-balanced .proof-item p { font-size: 10px; }
.hero-balanced .hero-bottom { margin-top: 25px; padding-block: 19px; }
body[data-motion="running"] .hero-balanced .hero-visual.motion-active .engine-meter > span { animation: engine-signal 5.2s ease-in-out 1 both; }
.hero-balanced .engine-meter > span:nth-child(3n+2) { animation-delay: .12s; }
.hero-balanced .engine-meter > span:nth-child(3n+3) { animation-delay: .24s; }
@keyframes engine-signal { 0%, 18%, 60%, 100% { opacity: .3; } 35%, 48% { opacity: .9; } }
@keyframes solution-arrives { 0%, 55%, 100% { box-shadow: none; } 80%, 93% { box-shadow: 0 0 16px #67b5df22; } }
@media (max-width: 1100px) {
  .hero-balanced .hero-grid { gap: 32px; }
  .hero-balanced .hero-visual, :root[data-theme="dark"] .hero-balanced .hero-visual { padding-inline: 17px; }
  .hero-balanced .hero-actions .button { padding-inline: 13px; font-size: 10px; }
  .hero-balanced .hero-description { font-size: 13px; }
  .hero-balanced .diagram-node, .hero-balanced .output-node, :root[data-theme="dark"] .hero-balanced .diagram-node, :root[data-theme="dark"] .hero-balanced .output-node { flex-direction: column; gap: 5px; padding-block: 9px; }
  .hero-balanced .diagram-node strong, .hero-balanced .output-node strong { font-size: 9px; }
}
@media (max-width: 860px) {
  .hero.hero-balanced { padding-top: 39px; }
  .hero-balanced .hero-grid { grid-template-columns: 1fr; gap: 29px; }
  .hero-balanced .hero-copy { max-width: 660px; }
  .hero-balanced h1, html[lang="en"] .hero-balanced h1 { font-size: clamp(32px, 5vw, 43px); letter-spacing: -1.6px; }
  .hero-balanced .hero-description { max-width: 590px; font-size: 13px; margin-top: 19px; }
  .hero-balanced .hero-actions { margin-top: 21px; }
  .hero-balanced .hero-visual, :root[data-theme="dark"] .hero-balanced .hero-visual { width: 100%; max-width: 570px; justify-self: center; padding: 18px 20px 13px; }
  .hero-balanced .studio-toolbar { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; }
  .hero-balanced .visual-topline { max-width: 170px; font-size: 7px; }
  .hero-balanced .visual-index { display: none; }
  .hero-balanced .scene-button { flex: initial; font-size: 9px; padding-inline: 9px; }
  .hero-balanced .diagram-node, .hero-balanced .output-node, :root[data-theme="dark"] .hero-balanced .diagram-node, :root[data-theme="dark"] .hero-balanced .output-node { flex-direction: row; }
}
@media (max-width: 600px) {
  .hero-balanced h1, html[lang="en"] .hero-balanced h1 { font-size: clamp(25px, 6.1vw, 36px); letter-spacing: -1.1px; }
  .hero-balanced .hero-copy > .eyebrow { font-size: 8px; margin-bottom: 16px; }
  .hero-balanced .hero-actions .button { min-height: 47px; padding: 13px 14px; font-size: 10px; }
  .hero-balanced .hero-note { font-size: 9px; }
  .hero-balanced .hero-visual, :root[data-theme="dark"] .hero-balanced .hero-visual { padding: 17px 15px 12px; border-radius: 15px; }
  .hero-balanced .studio-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-balanced .visual-topline { max-width: none; font-size: 8px; }
  .hero-balanced .hero-scenarios { gap: 5px; }
  .hero-balanced .scene-button { flex: 1; padding-inline: 5px; font-size: 9px; }
  .hero-balanced .input-nodes, .hero-balanced .output-nodes { gap: 7px; }
  .hero-balanced .diagram-node, .hero-balanced .output-node, :root[data-theme="dark"] .hero-balanced .diagram-node, :root[data-theme="dark"] .hero-balanced .output-node { flex-direction: column; gap: 5px; padding: 8px 3px; min-height: 52px; }
  .hero-balanced .diagram-node > .icon, .hero-balanced .output-node > .icon, :root[data-theme="dark"] .hero-balanced .output-node > .icon { width: 16px; height: 16px; }
  .hero-balanced .diagram-canvas { gap: 24px; padding-block: 18px; }
  .hero-balanced .workflow-card, :root[data-theme="dark"] .hero-balanced .workflow-card { padding: 11px 12px; }
  .hero-balanced .workflow-heading strong { font-size: 11px; }
  .hero-balanced .workflow-heading > div > span { font-size: 9px; }
  .hero-balanced .visual-controls > span { max-width: 155px; font-size: 7px; }
  .hero-balanced .motion-toggle { font-size: 8px; max-width: 110px; }
  .hero-balanced .hero-proof { display: none; }
  .hero-balanced .hero-bottom { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-balanced .engine-meter > span, .hero-balanced .output-node { animation: none !important; }
}

/* Every viewport reads left to right: business need -> analysis -> options. */
.hero-balanced .diagram-canvas { grid-template-columns: minmax(0, 1fr) minmax(88px, 1.15fr) minmax(0, 1fr); gap: 26px; padding-block: 28px; min-height: 236px; }
.hero-balanced .input-nodes, .hero-balanced .output-nodes { grid-template-columns: 1fr; gap: 16px; }
.hero-balanced .central-node, :root[data-theme="dark"] .hero-balanced .central-node { width: 90%; max-width: 128px; min-height: 122px; padding: 11px 7px 9px; border-radius: 10px; box-shadow: 0 0 0 4px #7eabc718, 0 8px 18px #0002; }
.hero-balanced .central-node:after { inset: -8px; border-radius: 16px; border-color: #8cc5e428; }
.hero-balanced .large-mark { width: 22px; height: 23px; }
.hero-balanced .large-mark img { width: 54px; height: 54px; left: -16px; top: -12px; }
.hero-balanced .engine-brand { gap: 5px; }
.hero-balanced .engine-brand > span:last-child { font-size: 13px; }
.hero-balanced .engine-method { flex-direction: column; align-items: center; gap: 2px; margin-top: 8px; }
.hero-balanced .engine-method > span { font-size: 8px; font-weight: 550; }
.hero-balanced .engine-method i { font-size: 6px; }
.hero-balanced .engine-meter { margin-top: 7px; height: 3px; }
.hero-balanced .node-port { left: auto; right: -3px; bottom: auto; top: calc(50% - 2px); }
.hero-balanced .output-node .node-port { left: -3px; right: auto; top: calc(50% - 2px); }
.hero-balanced .diagram-node, .hero-balanced .output-node, :root[data-theme="dark"] .hero-balanced .diagram-node, :root[data-theme="dark"] .hero-balanced .output-node { flex-direction: column; gap: 5px; padding: 9px 3px; }
.hero-balanced .diagram-node strong, .hero-balanced .output-node strong { font-size: 9px; }
.hero-balanced .flow-pulse[data-route="0"]:not(.is-route-current),
.hero-balanced .flow-pulse[data-route="1"]:not(.is-route-current),
.hero-balanced .flow-pulse[data-route="2"]:not(.is-route-current) { animation: none !important; opacity: 0; }
.hero-balanced .solution-note { color: #b1c9da; font-size: 10px; line-height: 1.7; margin-top: 10px; text-align: center; }
@media (max-width: 600px) {
  .hero-balanced .diagram-canvas { gap: 20px; padding-block: 24px; }
  .hero-balanced .central-node, :root[data-theme="dark"] .hero-balanced .central-node { min-height: 122px; padding-inline: 5px; }
  .hero-balanced .engine-brand { flex-direction: column; gap: 3px; }
  .hero-balanced .engine-brand > span:last-child { font-size: 11px; }
  .hero-balanced .central-node:after { inset: -6px; border-radius: 15px; }
  .hero-balanced .engine-method { gap: 2px; margin-top: 7px; }
  .hero-balanced .engine-method > span { font-size: 8px; }
  .hero-balanced .engine-method i { display: none; }
  .hero-balanced .diagram-node strong, .hero-balanced .output-node strong { font-size: 8px; }
  .hero-balanced .solution-note { font-size: 9px; }
}

/* The center is only the supplied transparent brand asset. */
.hero-balanced .central-node, :root[data-theme="dark"] .hero-balanced .central-node { display: grid; place-items: center; min-height: 90px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.hero-balanced .central-node:after { display: none; }
.hero-balanced .flow-logo { display: block; width: 100%; height: auto; max-width: 128px; filter: brightness(0) invert(1); }

/* Input cards also select their corresponding scenario. */
.hero-balanced button.diagram-node { font: inherit; text-align: center; cursor: pointer; }
.hero-balanced .diagram-node .node-copy > span { display: none; }
.hero-balanced button.diagram-node:focus-visible { outline: 2px solid #b1e3ff; outline-offset: 4px; }

/* Keep the horizontal flow readable on narrow screens. */
.hero-balanced .diagram-node strong, .hero-balanced .output-node strong { font-size: 11px; }
.hero-balanced .scene-button { font-size: 11px; min-height: 44px; }
.hero-balanced .visual-controls > span { font-size: 10px; }
.hero-balanced .motion-toggle { font-size: 11px; min-height: 44px; }
@media (max-width: 600px) {
  .hero-balanced .diagram-canvas { grid-template-columns: minmax(0, 1fr) minmax(52px, .65fr) minmax(0, 1fr); gap: 13px; }
  .hero-balanced .diagram-node, .hero-balanced .output-node { min-height: 64px; }
  .hero-balanced .diagram-node strong, .hero-balanced .output-node strong { font-size: 11px; overflow-wrap: anywhere; }
  .hero-balanced .scene-button { font-size: 11px; white-space: normal; line-height: 1.5; }
  .hero-balanced .visual-controls { flex-wrap: wrap; gap: 8px; }
  .hero-balanced .visual-controls > span { max-width: none; font-size: 10px; }
  .hero-balanced .motion-toggle { max-width: none; font-size: 11px; }
}
