/* The main window contains captures of the real application, not recreated cards. */
.hero { padding: 90px 0 76px; }
.hero > .container { display: grid; grid-template-columns: 380px minmax(0,1fr); align-items: center; gap: 64px; }
.hero-copy { min-width: 0; max-width: 410px; }
.hero h1 { font-size: clamp(56px,4.4vw,62px); line-height: .98; }
.hero-summary { font-size: 15px; line-height: 1.75; }
.hero-actions { flex-wrap: wrap; gap: 10px; }
.product-film { position: relative; min-width: 0; width: 920px; }
.product-film [hidden] { display: none !important; }
.product-film__stage { position: relative; }
.product-film__window { position: relative; overflow: hidden; border: 1px solid #3d424b; border-radius: 12px; background: #0b0e13; box-shadow: 0 32px 100px #0008,0 0 90px #c7a36a08; }
.product-film__viewport { position: relative; width: 100%; aspect-ratio: 1440 / 900; overflow: hidden; }
.product-film__simulator { position: absolute; z-index: 2; inset: var(--app-header-offset,43.35px) 0 0; overflow: hidden; transform: translateY(100%); will-change: transform; }
.product-film__viewport iframe { position: absolute; inset: 0; width: 1440px; height: 900px; border: 0; transform: scale(var(--app-scale,.6375)); transform-origin: top left; pointer-events: none; }
.product-film__simulator iframe { top: calc(-1 * var(--app-header-offset,43.35px)); }
.product-codex { position: absolute; z-index: 3; left: -38px; top: 126px; width: 405px; border: 1px solid #57544e; border-radius: 12px; background: #17191df5; box-shadow: 0 30px 80px #0009; animation: film-window-in .6s both; }
.product-codex > header { display: flex; align-items: center; gap: 8px; padding: 15px 18px; border-bottom: 1px solid #ffffff12; }
.product-codex__mark { display: block; width: 25px; height: 25px; flex-shrink: 0; }
.product-codex header strong { color: #f0f0ec; font-size: 13px; }
.product-codex header > span:last-child { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #939d99; font-size: 9px; }
.product-codex header i { width: 5px; height: 5px; border-radius: 50%; background: #76c8a0; box-shadow: 0 0 10px #76c8a066; }
.product-codex__message { position: relative; margin: 20px 19px 20px 40px; padding: 14px; border-radius: 10px 10px 3px 10px; background: #282a2e; }
.product-codex__message > span { color: #b7babd; font-size: 9px; }
.product-codex__message p { min-height: 100px; margin-top: 7px; color: #eeefec; font-size: 13px; line-height: 1.65; }
.product-codex__cursor { position: absolute; bottom: 12px; right: 12px; width: 2px; height: 12px; background: #d1b57e; animation: film-blink .8s steps(2) infinite; }
.product-codex__reply { display: flex; align-items: flex-start; gap: 10px; padding: 0 20px; }
.product-codex__reply > img { display: block; width: 23px; height: 23px; flex-shrink: 0; }
.product-codex__reply p { padding-top: 5px; color: #b7bfc5; font-size: 11px; }
.product-codex__status { display: flex; align-items: center; gap: 8px; margin: 20px; color: #a6b7b1; font: 9px ui-monospace,Consolas,monospace; }
.product-codex__status > span:first-child { color: #818f89; font-size: 17px; }
.product-codex__thinking { display: flex; gap: 3px; margin-left: auto; }
.product-codex__thinking i { width: 3px; height: 3px; border-radius: 50%; background: #bba780; animation: film-blink 1s infinite alternate; }
.product-codex__thinking i:nth-child(2) { animation-delay: .2s; }
.product-codex__thinking i:nth-child(3) { animation-delay: .4s; }
.product-film__exchange { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; left: 28px; bottom: 65px; padding: 12px 16px; border: 1px solid #c7a36a44; border-radius: 8px; background: #171a20f5; box-shadow: 0 8px 35px #0006; opacity: 0; transition: opacity .4s; color: #d4d8df; font-size: 10px; pointer-events: none; }
.product-film__exchange > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.product-film__exchange img { width: 13px; height: 16px; }
.product-film__agent img { height: 13px; }
.product-film__exchange b { border-left: 1px solid #ffffff18; margin-left: 4px; padding-left: 12px; color: #baa984; font-size: 9px; font-weight: 400; }
.product-film__packets { position: relative; width: 65px; height: 1px; background: #5b5749; }
.product-film__packets i { position: absolute; top: -1px; width: 9px; height: 3px; background: #d5b578; border-radius: 2px; box-shadow: 0 0 6px #c7a36a77; animation: film-packet 1.5s ease-in-out infinite; }
.product-film__packets i:last-child { animation-direction: reverse; animation-delay: .4s; }
.product-film[data-stage="1"] .product-film__exchange,.product-film[data-stage="2"] .product-film__exchange { opacity: 1; }
.product-film__caption { display: flex; align-items: center; justify-content: space-between; gap: 15px; max-width: 780px; min-height: 55px; padding: 10px 3px; }
.product-film__caption > p { color: #9da5ae; font-size: 11px; }
.product-film__controls,.product-film__controls > div { display: flex; align-items: center; gap: 4px; }
.product-film__controls { flex-shrink: 0; }
.product-film__controls button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 5px; color: #98a1ad; background: transparent; font-size: 15px; }
.product-film__controls button:hover { color: #eceeea; background: #ffffff08; }
.product-film__controls button:focus-visible { outline: 2px solid #65cdbf; outline-offset: 1px; }
.product-film__controls [data-demo-seek] { width: 21px; }
.product-film__controls [data-demo-seek]::after { width: 4px; height: 4px; border-radius: 50%; background: #606773; content: ""; }
.product-film__controls [aria-pressed="true"]::after { background: #d3ba90; box-shadow: 0 0 0 3px #c7a36a18; }
.product-film__progress { height: 1px; max-width: 780px; background: #ffffff0a; }
.product-film__progress i { display: block; height: 100%; background: linear-gradient(90deg,#c7a36a,#65cdbf); transform: scaleX(var(--demo-progress,0)); transform-origin: left; }
.product-discord { position: absolute; z-index: 4; left: 60px; top: 115px; width: 435px; min-height: 413px; padding: 0 22px 20px; border: 1px solid #42524b; border-radius: 12px; background: #171b23fa; box-shadow: 0 25px 90px #000b,0 0 50px #69c49208; animation: film-window-in .6s both; }
.agent-demo__discord-heading i { width: 5px; height: 5px; border-radius: 50%; background: #69c492; box-shadow: 0 0 9px #69c49255; }
.agent-demo__workspace-bar { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px 8px; gap: 8px; font-size: 10px; }
.agent-demo__workspace-bar > span { display: flex; align-items: center; gap: 7px; color: #e2e4e8; }
.agent-demo__workspace-bar small { color: #6c7480; font-size: 9px; margin-left: 4px; }
.agent-demo__workspace-bar b { color: var(--demo-accent); font-size: 9px; font-weight: 500; }
.agent-demo__graph { display: grid; place-items: center; height: 200px; background-image: radial-gradient(#ffffff13 1px, transparent 1px); background-size: 16px 16px; }
.agent-demo__graph svg { display: block; width: min(100%, 411px); height: auto; aspect-ratio: 560 / 272; overflow: visible; }
.agent-demo__node { --node-color: #66c6ba; opacity: 0; transition: opacity .45s, filter .45s; }
.agent-demo__node.is-visible { opacity: 1; filter: drop-shadow(0 5px 8px #0005); }
.agent-demo__node rect { fill: #171c24; stroke: var(--node-color); stroke-opacity: .55; }
.agent-demo__node text { fill: #f0f1f3; font: 13px "Segoe UI", Arial, sans-serif; }
.agent-demo__node .agent-demo__node-kind { fill: var(--node-color); font: 8px ui-monospace, Consolas, monospace; letter-spacing: .5px; }
.agent-demo__node .agent-demo__node-detail { fill: #969da9; font-size: 10px; }
.agent-demo__node circle { fill: var(--node-color); stroke: #0c0f13; stroke-width: 2; }
.agent-demo__node--trigger { --node-color: #c7a36a; }
.agent-demo__node--decision { --node-color: #a293d8; }
.agent-demo__node--ticket { --node-color: #76c9ad; }
.agent-demo__edges path { stroke: #687585; stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset .8s; }
.agent-demo__edges path.is-visible { stroke-dashoffset: 0; }
.agent-demo[data-stage="2"] .agent-demo__edges path { stroke: #76c9ad; stroke-dasharray: 5 7; animation: demo-edge-flow 1s linear infinite; }
.agent-demo__tool { display: flex; align-items: center; gap: 8px; min-height: 34px; margin: 0 18px; border: 1px solid #c7a36a25; border-radius: 5px; padding: 7px 10px; background: #c7a36a08; color: #d1ba94; font: 9px ui-monospace, Consolas, monospace; }
.agent-demo__tool b { margin-left: auto; color: #9caaae; font-size: 9px; font-weight: 400; }
.agent-demo__tests { padding: 14px 18px; }
.agent-demo__tests-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #d5d9de; font-size: 10px; }
.agent-demo__tests-heading > span { color: #7e8a96; font-size: 9px; }
.agent-demo__tests > [data-demo-test] { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 10px; color: #89929e; }
.agent-demo__tests i { display: grid; place-items: center; width: 14px; height: 14px; border: 1px solid #3c454f; border-radius: 50%; font-size: 9px; font-style: normal; color: transparent; }
.agent-demo__tests b { margin-left: auto; font-size: 9px; font-weight: 400; color: #626d79; }
.agent-demo__tests .is-running { color: #e2c697; }
.agent-demo__tests .is-running i { border-top-color: #e2c697; animation: demo-spin .8s linear infinite; }
.agent-demo__tests .is-passed { color: #c4d6d0; }
.agent-demo__tests .is-passed i { border-color: #69c49266; color: #79d3a2; background: #69c49212; }
.agent-demo__tests .is-passed b { color: #79d3a2; }
.agent-demo__discord { padding: 0 22px 20px; background: radial-gradient(ellipse at 50% 110%, #69c49212, transparent 70%); }
.agent-demo__discord-heading { display: flex; gap: 8px; align-items: center; min-height: 51px; border-bottom: 1px solid #ffffff0b; color: #dce0e7; font-size: 11px; }
.agent-demo__discord-heading > span { color: #7f8794; font-size: 21px; }
.agent-demo__discord-heading b { display: flex; align-items: center; gap: 6px; margin-left: auto; color: #87d5ad; font-size: 9px; font-weight: 500; }
.agent-demo__discord-message { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; margin-top: 22px; }
.agent-demo__avatar { position: relative; height: 32px; padding: 5px; border-radius: 10px; background: #242a36; }
.agent-demo__avatar img { width: 100%; height: 100%; }
.agent-demo__avatar i { position: absolute; width: 9px; height: 9px; bottom: -2px; right: -2px; border: 2px solid #0c0f13; border-radius: 50%; background: #69c492; }
.agent-demo__discord-message strong { display: flex; align-items: center; gap: 6px; color: #e4e8ed; font-size: 11px; }
.agent-demo__discord-message strong > span { padding: 2px 4px; border-radius: 3px; background: #5865f2; font-size: 7px; letter-spacing: .05em; }
.agent-demo__discord-message small { color: #6c7481; font-size: 8px; font-weight: 400; }
.agent-demo__embed { margin-top: 10px; border-left: 3px solid #c7a36a; border-radius: 3px 8px 8px 3px; padding: 16px; background: #1b202a; }
.agent-demo__embed > span { color: #bfaa87; font: 8px ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.agent-demo__embed h3 { margin-top: 9px; font-size: 16px; letter-spacing: -.02em; }
.agent-demo__embed p { margin-top: 8px; color: #aeb6c3; font-size: 11px; }
.agent-demo__select { display: flex; justify-content: space-between; margin-top: 16px; padding: 9px 10px; border: 1px solid #454d5e; border-radius: 4px; background: #10141d; color: #d5dce6; font-size: 10px; }
.agent-demo__ticket { display: flex; gap: 10px; margin: 17px 0 0 43px; font-size: 10px; }
.agent-demo__ticket > span { color: #596273; font-size: 20px; }
.agent-demo__ticket strong { color: #c6c5f1; }
.agent-demo__ticket p { margin-top: 5px; color: #a8b2be; font-size: 10px; }
.agent-demo__ticket b { color: #b6b2ed; font-weight: 400; }
.agent-demo__ticket div > span { display: block; margin-top: 5px; color: #727e8b; font-size: 9px; }
.agent-demo__ticket > i { margin-left: auto; color: #79d3a2; font-style: normal; }
.agent-demo__delivered { display: flex; gap: 12px; align-items: center; margin: 22px 0 0 43px; padding-top: 14px; border-top: 1px solid #69c49225; }
.agent-demo__delivered > span { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #69c49255; border-radius: 50%; color: #79d3a2; box-shadow: 0 0 20px #69c49215; }
.agent-demo__delivered strong { color: #d7eadf; font-size: 14px; letter-spacing: -.02em; }
.agent-demo__delivered p { margin-top: 3px; font-size: 10px; }

.product-film.is-paused .product-film__packets i,.product-film.is-paused .product-codex__cursor,.product-film.is-paused .product-codex__thinking i { animation-play-state: paused; }
@keyframes film-window-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes film-blink { to { opacity: .2; } }
@keyframes film-packet { 0% { left: 0; opacity: 0; } 20%,80% { opacity: 1; } 100% { left: 56px; opacity: 0; } }
@media (max-width: 1120px) { .hero > .container { grid-template-columns: minmax(0,1fr); gap: 48px; } .hero-copy { max-width: 760px; } .product-film { width: 100%; max-width: 920px; } .product-codex { left: 22px; top: 100px; } .product-film__caption { max-width: 100%; } }
@media (max-width: 760px) {
  .hero { padding: 70px 0 48px; } .hero > .container { gap: 34px; } .hero h1 { font-size: clamp(48px,14vw,64px); line-height: .94; }
  /* Fit the entire real app capture, never a centered desktop-width crop.
     The square stage also leaves room for legible conversation/result cards. */
  .product-film__stage { aspect-ratio: 1; max-height: 470px; overflow: hidden; border: 1px solid #343b45; border-radius: 10px; background: #0b0e13; }
  .product-film__window { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .product-codex,.product-discord { left: 50%; top: 12px; translate: -50% 0; scale: var(--scene-scale, .6); transform-origin: top center; }
  .product-codex { width: 405px; border-radius: 9px; }
  .product-film__exchange { bottom: 18px; left: 12px; right: 12px; gap: 7px; padding: 10px; font-size: 9px; flex-wrap: wrap; } .product-film__exchange b { width: 100%; border-left: 0; padding: 5px 0 0; margin: 0; font-size: 9px; } .product-film__packets { flex: 1; }
  .product-film__caption { align-items: flex-start; min-height: 60px; padding-top: 13px; gap: 8px; } .product-film__caption p { font-size: 10px; padding-top: 6px; } .product-film__controls { gap: 0; } .product-film__controls [data-demo-seek] { width: 17px; }
  .product-discord { width: 435px; border-radius: 9px; }
}
@media (prefers-reduced-motion: reduce) { .product-film *,.product-film *::after { animation: none !important; transition: none !important; } }
