/* Working Demos: live HTML interfaces, with a static completed state by default. */
:root { --content: min(1440px, calc(100vw - 96px)); }
body { background: #050814; }
.brand-mark { font-size: 1.5rem; }
.hero-copy { max-width: 1240px; }
.hero-inner { padding: 48px 0 20px; }
.hero .headline { max-width: 30ch; margin-top: 0; font-size: clamp(2.3rem, 4.2vw, 4.1rem); line-height: 1.08; }
.hero .lead { max-width: 90ch; font-size: 1.05rem; line-height: 1.7; }
.hero .cta-row { margin-top: 28px; }
.hero .cta { min-width: 280px; }
.hero .scene { opacity: .55; }
.hero .logo-wordmark, .hero .proof-strip, .hero .cta-meta { display: none; }
.workflow-section { padding-top: 12px; padding-bottom: 64px; }
.workflow-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 0; border-bottom: 1px solid var(--line); }
.workflow-heading .section-label { margin: 0; color: var(--muted); letter-spacing: .11em; }
.motion-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 24px; color: var(--muted); background: transparent; font: .8rem/1.4 "Sora", sans-serif; cursor: pointer; }
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: var(--text); border-color: var(--accent); }
.demo-icon { width: 18px; height: 18px; flex: 0 0 auto; filter: brightness(0) invert(1); opacity: .8; }
.demo-icon.accent { filter: invert(83%) sepia(28%) saturate(1320%) hue-rotate(166deg) brightness(105%); opacity: 1; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 16px; }
.workflow-card { min-width: 0; }
.workflow-card h2 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); line-height: 1.25; font-weight: 600; letter-spacing: -.04em; }
.workflow-copy { min-height: 66px; padding-top: 12px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.demo-visual { position: relative; height: 286px; margin: 20px 0 0; padding: 18px 14px; overflow: hidden; isolation: isolate; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(9, 20, 37, .8); transition: opacity .75s cubic-bezier(.33,1,.68,1), transform 1.05s cubic-bezier(.16,1,.3,1), filter .75s cubic-bezier(.33,1,.68,1); }
.motion-enabled .demo-visual:not(.is-visible) { opacity: 0; transform: translateY(24px) scale(.985); filter: blur(6px); }
.demo-panel { min-width: 0; padding: 12px 10px; background: #101f35; border: 1px solid rgba(153,211,255,.22); border-radius: 9px; }
.demo-label { display: block; color: var(--accent); font: .58rem/1.5 "IBM Plex Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.demo-title { display: flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 500; line-height: 1.5; }
.demo-small { color: var(--muted); font-size: .66rem; line-height: 1.6; }
.demo-arrow { width: 14px; height: 14px; }
.demo-flow { display: grid; grid-template-columns: minmax(0,1fr) 12px minmax(0,.94fr) 12px minmax(0,1fr); align-items: center; gap: 4px; height: 100%; }
.ai-stage { display: grid; grid-template-rows: 20px 1fr; gap: 9px; align-self: stretch; }
.ai-stage .demo-panel { padding: 12px 8px; }
.ai-request { color: var(--text); font-size: .69rem; line-height: 1.55; }
.demo-file { display: flex; align-items: center; gap: 5px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font: .53rem/1.5 "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.demo-file .demo-icon { width: 12px; height: 12px; }
.review-list { display: grid; gap: 17px; padding: 3px 0; }
.review-step { display: flex; gap: 5px; align-items: flex-start; color: var(--accent-strong); font-size: .61rem; line-height: 1.45; transition: opacity .7s cubic-bezier(.33,1,.68,1); }
.review-step .demo-icon { width: 13px; height: 13px; }
.demo-result { transition: opacity .7s cubic-bezier(.33,1,.68,1), transform .9s cubic-bezier(.16,1,.3,1), filter .7s; }
.demo-result .demo-title { display: block; }
.demo-result .demo-title .demo-icon { display: block; width: 14px; height: 14px; margin-bottom: 7px; }
.result-points { display: grid; gap: 11px; margin-top: 16px; color: var(--muted); font-size: .62rem; line-height: 1.5; list-style: none; }
.result-points li { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.demo-visual[data-step="0"] .review-step, .demo-visual[data-step="1"] .review-step:nth-child(n+2), .demo-visual[data-step="2"] .review-step:nth-child(3) { opacity: .28; }
.demo-visual:not([data-step="3"]) .demo-result { opacity: .15; transform: translateY(10px); filter: blur(2px); }
.payment-flow { display: grid; grid-template-columns: 1fr 18px .68fr 18px 1.15fr; gap: 3px; align-items: center; height: 100%; }
.payment-request { align-self: stretch; display: flex; flex-direction: column; gap: 14px; padding: 16px 10px; }
.payment-request > .demo-icon { width: 27px; height: 27px; }
.payment-request .demo-small { font-size: .61rem; }
.demo-pay { margin-top: auto; padding: 9px 4px; border-radius: 5px; background: var(--accent); color: #07111f; text-align: center; font-size: .57rem; font-weight: 600; }
.payment-status { text-align: center; }
.approval-mark { width: 45px; height: 45px; margin: 0 auto 10px; padding: 10px; border: 1px solid #47d6b1; border-radius: 50%; transition: transform .7s cubic-bezier(.16,1,.3,1), opacity .7s; }
.approval-mark .demo-icon { width: 23px; height: 23px; }
.payment-status .demo-small { font-size: .6rem; }
.approval-waiting { display: none; }
.demo-visual[data-step="0"] .approval-mark, .demo-visual[data-step="1"] .approval-mark { opacity: .25; transform: scale(.86); }
.demo-visual[data-step="0"] .approval-ready, .demo-visual[data-step="1"] .approval-ready { display: none; }
.demo-visual[data-step="0"] .approval-waiting, .demo-visual[data-step="1"] .approval-waiting { display: block; }
.transaction-list { align-self: stretch; padding: 12px 9px; }
.transaction-list .demo-title { font-size: .65rem; margin-bottom: 13px; }
.transaction-row { display: flex; align-items: center; gap: 5px; min-height: 39px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .59rem; line-height: 1.4; }
.transaction-row .demo-icon { width: 13px; height: 13px; }
.transaction-new { color: #9ce7d1; transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .7s; }
.demo-visual[data-step="0"] .transaction-new, .demo-visual[data-step="1"] .transaction-new { opacity: 0; transform: translateY(-16px); }
.app-shell { display: grid; grid-template-columns: .75fr 1fr; height: 100%; margin-right: 30px; padding: 0; overflow: hidden; }
.app-sidebar { padding: 13px 9px; background: rgba(4,12,24,.35); border-right: 1px solid var(--line); }
.app-sidebar .demo-title { font-size: .67rem; margin-bottom: 18px; }
.app-nav { display: grid; gap: 16px; font-size: .64rem; color: var(--muted); }
.app-nav strong { color: var(--text); font-weight: 500; }
.app-main { padding: 15px 12px; }
.app-main .demo-title { font-size: .75rem; margin-bottom: 16px; }
.app-workflow { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .65rem; }
.app-integrations { position: absolute; top: 93px; right: 13px; width: 140px; padding: 13px; border: 1px solid var(--accent); border-radius: 8px; background: #142840; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.app-integrations .demo-title { font-size: .68rem; margin-bottom: 11px; }
.app-module { display: flex; align-items: center; gap: 7px; padding: 10px 0; color: var(--text); font-size: .62rem; transition: opacity .7s, transform .9s cubic-bezier(.16,1,.3,1); }
.app-module .demo-icon { width: 14px; height: 14px; }
.app-module .module-state { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #69dbb9; }
.demo-visual[data-step="0"] .app-module, .demo-visual[data-step="1"] .app-module:nth-of-type(n+2), .demo-visual[data-step="2"] .app-module:nth-of-type(3) { opacity: .25; transform: translateX(14px); }
.motion-paused .demo-visual *, .motion-paused .demo-visual { transition: none; }
.workflow-note { margin-top: 18px; color: var(--soft); font-size: .75rem; line-height: 1.6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1440px) { .demo-visual { height: 280px; padding: 20px 16px; } .demo-small { font-size: .7rem; } }
@media (max-width: 1080px) {
  .workflow-grid { grid-template-columns: 1fr; gap: 40px; }
  .workflow-card { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1fr); gap: 28px; align-items: center; }
  .workflow-copy { min-height: 0; }
  .demo-visual { margin-top: 0; }
}
@media (max-width: 680px) {
  :root { --content: calc(100vw - 40px); }
  .hero-inner { padding: 38px 0 34px; }
  .hero .headline { font-size: clamp(2rem, 7.2vw, 3.1rem); max-width: 24ch; }
  .hero .lead { font-size: .95rem; }
  .hero .cta { min-width: 0; }
  .workflow-heading { align-items: flex-start; gap: 12px; }
  .workflow-heading .section-label { padding-top: 12px; font-size: .64rem; }
  .motion-toggle { font-size: .68rem; white-space: nowrap; }
  .workflow-card { display: block; }
  .workflow-card h2 { font-size: 1.5rem; }
  .workflow-copy { max-width: 46ch; }
  .demo-visual { margin-top: 20px; height: 290px; }
  .demo-label { font-size: .6rem; }
}
@media (max-width: 360px) { [data-demo="ai"] .demo-visual { height: 380px; } }
@media (prefers-reduced-motion: reduce) {
  .demo-visual, .demo-visual * { transition: none !important; animation: none !important; }
}
@media print { .motion-toggle { display: none; } .demo-visual { break-inside: avoid; } }

@media (max-width: 680px) { .hero-line-break { display: none; } }
