/* Syaaq marketing site: components
   Reusable blocks: diagram, cards, demos, tabs, FAQ, feature rows, flow. */

/* Hub diagram: sources -> Syaaq -> agents, with the team on top */
.brain { position: relative; margin-top: clamp(3rem, 6vw, 4.5rem); }
.brain-grid { position: relative; z-index: 1; display: grid; justify-content: center; grid-template-columns: minmax(0, 14.5rem) minmax(15rem, 21rem) minmax(0, 14.5rem); gap: clamp(1.5rem, 5.5vw, 5.5rem); align-items: center; }
.brain-col { display: grid; gap: 0.75rem; align-content: center; }
.brain-col-title { font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 0.15rem; }
.node-ic { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.55rem; flex: none; background: var(--forest); color: var(--aqua); }
.node-ic .icon { width: 1.2rem; height: 1.2rem; }
.node-ic img { width: 1.2rem; height: 1.2rem; }

/* Icon tiles: dark Forest square, aqua glyph */
.card-ic, .ic-mint, .ic-lilac, .ic-sun, .ic-coral, .ic-sky { background: var(--forest); color: var(--aqua); }
.ic-plain, .node-ic.ic-plain { background: var(--paper); color: var(--forest); border: 1px solid var(--line); }

.src, .agent { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 0.8rem; box-shadow: 0 1px 2px rgba(4, 23, 23, 0.04); transition: border-color 0.35s, box-shadow 0.35s; }
.src { padding: 0.75rem 0.8rem 0.8rem; }
.src.is-on, .agent.is-on { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(45, 255, 204, 0.32); }
.src-head { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; line-height: 1.4; }
.src-head small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.src-items { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; padding-top: 0.65rem; border-top: 1px solid var(--line-soft); }
.src-items span { font-size: 0.76rem; line-height: 1.5; padding: 0.12rem 0.55rem; border-radius: 0.4rem; background: var(--sage); color: var(--sub); transition: background 0.35s, color 0.35s, box-shadow 0.35s; }
.src-items span.is-on { background: var(--spearmint); color: var(--night); box-shadow: inset 0 0 0 1px var(--emerald); }
.src-logos span { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border-radius: 0.5rem; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.src-logos img { width: 1rem; height: 1rem; }
.src-logos span.is-on { background: var(--mint-wash); box-shadow: inset 0 0 0 1.5px var(--emerald); }
.src-logos .more { width: auto; padding-inline: 0.5rem; font-size: 0.76rem; font-weight: 700; color: var(--forest); background: var(--spearmint); box-shadow: none; }

.agent { display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.6rem; font-weight: 500; font-size: 0.95rem; }
.agent .node-ic { width: 2.1rem; height: 2.1rem; border-radius: 0.5rem; }
.agent .node-ic img { width: 1.1rem; height: 1.1rem; }
.agent bdi { flex: 1; }
.agent small { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; font-weight: 400; color: var(--muted); }
.agent small::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--emerald); }
.agents-more { font-size: 0.82rem; color: var(--muted); padding-inline: 0.25rem; }

.hub { --hub-w: 18rem; position: relative; display: grid; justify-items: center; text-align: center; }
.team { display: grid; justify-items: center; gap: 0.45rem; width: var(--hub-w); max-width: 100%; margin-bottom: 1.25rem; padding: 0.7rem 0.8rem 0.8rem; border-radius: 0.8rem; background: var(--paper); border: 1px solid var(--line-soft); }
.team-label { font-size: 0.8rem; color: var(--muted); }
.avatars { display: flex; }
.av { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; margin-inline-start: -0.45rem; border-radius: 50%; border: 2px solid var(--paper); font-style: normal; font-size: 0.85rem; font-weight: 700; color: var(--forest); background: var(--spearmint); transition: transform 0.3s, box-shadow 0.3s; }
.av:first-child { margin-inline-start: 0; }
img.av { display: block; object-fit: cover; background: var(--sage); }
.av-more { background: var(--paper); font-size: 0.72rem; box-shadow: inset 0 0 0 1px var(--line); }
.av.is-on { position: relative; z-index: 1; transform: translateY(-3px); box-shadow: 0 0 0 2px var(--emerald); }
.hub-core { position: relative; display: grid; justify-items: center; align-content: center; gap: 0.7rem; width: var(--hub-w); max-width: 100%; min-height: 12.5rem; padding: 1.1rem; border-radius: 1.3rem; background: var(--paper); border: 1.5px solid var(--line); transition: border-color 0.3s, box-shadow 0.3s; }
.hub-logo { display: grid; place-items: center; padding: 1.5rem 1.6rem; border-radius: 1rem; background: var(--paper); box-shadow: 0 1px 2px rgba(4, 23, 23, 0.05), 0 12px 30px -16px rgba(4, 23, 23, 0.3); transition: box-shadow 0.3s; }
.hub-logo img { width: clamp(8rem, 10vw, 9.5rem); height: auto; }

.hub-core.is-sending { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(45, 255, 204, 0.32), 0 10px 30px -12px rgba(2, 196, 161, 0.4); }
.hub-core.is-busy .hub-logo { box-shadow: 0 0 0 3px rgba(45, 255, 204, 0.4), 0 14px 34px -14px rgba(2, 196, 161, 0.45); }
.hub-log { width: var(--hub-w); max-width: 100%; margin-top: 1.1rem; padding: 0.6rem 0.8rem 0.7rem; border-radius: 0.8rem; background: var(--paper); border: 1px solid var(--line-soft); box-shadow: 0 8px 24px -12px rgba(4, 23, 23, 0.18); text-align: start; }
.hub-log-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.35rem; }
.hub-log-label i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px rgba(45, 255, 204, 0.35); }
.hub-log ol { display: grid; list-style: none; margin: 0; padding: 0; }
.hub-log li { grid-area: 1 / 1; display: grid; gap: 0.1rem; opacity: 0; transform: translateY(4px); transition: opacity 0.35s, transform 0.35s; }
.hub-log li.is-on { opacity: 1; transform: none; }
.hub-log b { font-size: 0.88rem; font-weight: 700; }
.hub-log span { font-size: 0.8rem; color: var(--sub); }

.brain-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.brain-links path { fill: none; stroke: var(--forest); stroke-opacity: 0.38; stroke-width: 1.6; stroke-dasharray: 0.01 6; stroke-linecap: round; transition: stroke 0.3s, stroke-opacity 0.3s; }
.brain-links path.is-live { stroke: var(--emerald); stroke-opacity: 1; stroke-width: 2.2; }
.brain-links .tip { fill: var(--paper); stroke: none; filter: drop-shadow(0 0.5px 1.5px rgba(4, 23, 23, 0.32)); }
.brain-links path.is-live + .tip, .brain-links path.is-live + .tip + .tip { stroke: var(--emerald); stroke-width: 2; }
.brain-links .spark { fill: var(--emerald); stroke: var(--paper); stroke-width: 2; }

@media (max-width: 52rem) {
  .brain-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .brain-col-title { text-align: center; }
  .hub { grid-template-columns: auto; }
  .team { order: 3; margin: 1rem 0 0; }
  .hub-core { min-height: 0; }
  .hub-log { order: 4; }
  .brain-agents { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .brain-agents .brain-col-title, .agents-more { grid-column: 1 / -1; text-align: center; }
  .agent { flex-direction: column; gap: 0.35rem; padding: 0.6rem 0.3rem 0.55rem; font-size: 0.86rem; }
  .agent bdi { flex: none; }
  .agent small { display: none; }
}
@media (max-width: 26rem) { .src-head small { font-size: 0.76rem; } .src-logos span { width: 1.85rem; height: 1.85rem; } }

/* Cards & grids */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 62rem) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { position: relative; padding: clamp(1.4rem, 2.4vw, 1.9rem); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: border-color 0.3s; }
.card:hover { border-color: var(--line-strong); }
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--sub); font-size: 0.99rem; }
.card .card-ic { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.6rem; margin-bottom: 1.4rem; }
.card .card-ic .icon { width: 1.35rem; height: 1.35rem; }
.card .card-foot { margin-top: 1.1rem; }
.card-tint { background: var(--freesia); }
.num { display: block; font-weight: 300; font-size: 2.6rem; line-height: 1; color: var(--forest); margin-bottom: 1.1rem; }

/* Editorial list variant for the readiness pillars */
.card.pillar { display: grid; gap: 0.4rem; align-content: start; padding: 1.6rem 0 0; background: none; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; }
.card.pillar .card-ic { width: 2.4rem; height: 2.4rem; margin-bottom: 0.9rem; }
.card.pillar .card-ic .icon { width: 1.15rem; height: 1.15rem; }
.pillar .tag { justify-self: start; margin-top: 0.7rem; font-size: 0.82rem; color: var(--muted); }
.pillar .tag::before { content: "— "; }

.checks { display: grid; gap: 0.65rem; }
.checks li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--sub); }
.checks li .icon { color: var(--emerald); margin-top: 0.35rem; stroke-width: 2.4; width: 1.05rem; height: 1.05rem; }
.checks.is-ink li { color: var(--ink); }
.checks.is-bad li .icon { color: var(--grey); }

/* Stage: a flat pastel block that holds a product card */
.stage { padding: clamp(1.1rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--spearmint); }
.stage-orchid { background: var(--orchid); }
.stage-mint { background: var(--spearmint); }

/* Chaos to order */
.chaos { position: relative; height: 26rem; border-radius: var(--radius-lg); background: var(--sage); overflow: hidden; }
.chaos-head { position: absolute; top: 1.2rem; inset-inline: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.88rem; color: var(--muted); transition: opacity 0.5s; }
.chaos-head b { color: var(--night); }
.chaos-head .after { position: absolute; inset-inline-start: 0; opacity: 0; display: flex; align-items: center; gap: 0.5rem; color: var(--forest); }
.chaos-head .after img { width: 1.25rem; }
.chaos.is-ordered .chaos-head .before { opacity: 0; }
.chaos.is-ordered .chaos-head .after { opacity: 1; }
.chip { position: absolute; left: var(--sx); top: var(--sy); translate: calc(var(--sx) * -1) 0; rotate: var(--sr); max-width: 92%; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.9rem; border-radius: 0.6rem; background: var(--paper); border: 1px solid var(--line-soft); box-shadow: 0 6px 18px -10px rgba(4, 23, 23, 0.3); font-size: 0.9rem; white-space: nowrap; transition: left 1s var(--ease), top 1s var(--ease), translate 1s var(--ease), rotate 1s var(--ease), width 1s var(--ease); transition-delay: calc(var(--i) * 70ms); animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s); }
.chip .icon { width: 1.05rem; height: 1.05rem; color: var(--muted); }
.chip .to { display: none; font-size: 0.78rem; color: var(--forest); margin-inline-start: auto; padding-inline-start: 0.75rem; }
.chaos.is-ordered .chip { left: 50%; translate: -50% 0; top: var(--oy); rotate: 0deg; width: 88%; animation: none; }
.chaos.is-ordered .chip .icon { color: var(--emerald); }
.chaos.is-ordered .chip .to { display: inline; }
.chaos-toggle { position: absolute; bottom: 1rem; inset-inline-start: 50%; translate: 50% 0; z-index: 2; background: var(--paper); }
[dir="ltr"] .chaos-toggle { translate: -50% 0; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (max-width: 40rem) { .chaos { height: 30rem; } .chip { font-size: 0.82rem; } .chaos.is-ordered .chip .from { display: none; } .chaos.is-ordered .chip .to { margin-inline-start: 0; padding-inline-start: 0; font-size: 0.82rem; } }

/* Chat demo */
.chat { border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-card); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.15rem; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; color: var(--sub); }
.chat-top img { width: 1.15rem; height: 1.15rem; }
.chat-top .pill { margin-inline-start: auto; font-size: 0.76rem; padding: 0.12rem 0.6rem; border-radius: 0.4rem; background: var(--spearmint); color: var(--night); display: inline-flex; gap: 0.3rem; align-items: center; }
.chat-body { display: grid; gap: 1rem; padding: 1.4rem 1.15rem 1.6rem; min-height: 22rem; align-content: start; }
.bubble { max-width: 88%; padding: 0.8rem 1rem; border-radius: 0.9rem; font-size: 0.97rem; line-height: 1.75; }
.bubble.me { justify-self: start; background: var(--forest); color: #fff; border-end-start-radius: 0.3rem; }
.bubble.ai { justify-self: end; background: var(--freesia); border: 1px solid var(--line-soft); border-end-end-radius: 0.3rem; }
.bubble .caret { display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -0.15em; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
.sources { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.source { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; padding: 0.15rem 0.55rem; border-radius: 0.4rem; background: var(--paper); border: 1px solid var(--line); color: var(--forest); }
.source .icon { width: 0.95rem; height: 0.95rem; color: var(--emerald); }
.typing { display: inline-flex; gap: 0.25rem; padding: 0.2rem 0; }
.typing i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--emerald); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes blink { 50% { opacity: 0; } }
.chat-fade { opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.chat-fade.is-in { opacity: 1; transform: none; }
html:not(.js) .chat-fade { opacity: 1; transform: none; }

/* Bilingual editor mock */
.editor { border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-card); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line-soft); font-size: 0.86rem; color: var(--sub); }
.win-dots { display: flex; gap: 0.35rem; direction: ltr; }
.win-dots i { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: #dfe5db; }
.win-bar .file { margin-inline-start: 0.5rem; display: inline-flex; gap: 0.35rem; align-items: center; padding: 0.15rem 0.6rem; border: 1px solid var(--line-soft); border-radius: 0.4rem; }
.win-bar .sync { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--forest); font-size: 0.8rem; }
.win-bar .sync::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--emerald); }
.doc { padding: clamp(1.25rem, 3vw, 2.1rem); display: grid; gap: 0.95rem; font-size: 0.98rem; }
.doc h3 { font-size: 1.4rem; font-weight: 300; line-height: inherit; }
.doc .lang-pick { justify-self: end; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--sub); padding: 0.15rem 0.55rem; border: 1px solid var(--line-soft); border-radius: 0.4rem; }
.doc p { position: relative; padding: 0.35rem 0.7rem; border-radius: 0.5rem; transition: background 0.4s; }
.doc p.en { direction: ltr; text-align: left; }
.doc p.is-flash { background: var(--spearmint); }
.doc .dir-tag { position: absolute; top: -0.85rem; inset-inline-end: 0.5rem; font-size: 0.68rem; padding: 0.05rem 0.45rem; border-radius: 0.3rem; background: var(--forest); color: #fff; opacity: 0; transition: opacity 0.4s; }
.doc p.en .dir-tag { inset-inline-end: auto; right: 0.5rem; }
.doc p.is-flash .dir-tag { opacity: 1; }
.doc pre { margin: 0; direction: ltr; text-align: left; padding: 0.85rem 1rem; border-radius: 0.6rem; background: var(--night); color: var(--spearmint); font-size: 0.85rem; overflow-x: auto; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.doc pre b { color: var(--aqua); font-weight: 400; }
.doc .cursor-name { display: inline-flex; align-items: center; font-size: 0.7rem; padding: 0 0.4rem; border-radius: 0.25rem; color: var(--night); vertical-align: 0.4em; margin-inline: 0.15rem; animation: blink 1.4s steps(1) infinite; }
.doc .cursor-name.c1 { background: #e993ff; }
.doc .cursor-name.c2 { background: var(--aqua); }
.doc .link { color: var(--forest); text-decoration: underline; text-decoration-color: var(--emerald); text-decoration-thickness: 1.5px; text-underline-offset: 0.35em; }

/* Tabs: segmented control */
.tabs { display: grid; gap: 2rem; }
.tab-list { justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem; padding: 0.3rem; border-radius: 1.6rem; background: var(--paper); border: 1px solid var(--line); }
.tab-list button { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 1.05rem; border-radius: 99px; border: 0; background: transparent; color: var(--sub); font-weight: 500; font-size: 0.95rem; transition: background 0.25s, color 0.25s; }
.tab-list button .icon { width: 1.05rem; height: 1.05rem; }
.tab-list button:hover { color: var(--night); }
.tab-list button[aria-selected="true"] { background: var(--forest); color: #fff; }
.tab-panel { animation: fade-up 0.5s var(--ease); }
.dept { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.4rem, 3vw, 2.5rem); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line-soft); align-items: start; }
.dept-copy { display: grid; gap: 1rem; }
.dept-files { display: grid; gap: 0.45rem; padding: 1rem; border-radius: var(--radius); background: var(--sage); }
.dept-files li { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.85rem; border-radius: 0.55rem; background: var(--paper); font-size: 0.93rem; }
.dept-files li .icon { color: var(--emerald); width: 1.1rem; height: 1.1rem; }
.dept-files li .meta { margin-inline-start: auto; font-size: 0.76rem; color: var(--muted); }
.prompt { margin-top: 0.5rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--orchid); }
.prompt .who { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--sub); font-weight: 500; margin-bottom: 0.3rem; }
.prompt p { font-size: 0.98rem; }
.outcome { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--spearmint); color: var(--night); font-size: 0.95rem; }
.outcome .icon { margin-top: 0.3rem; color: var(--forest); }
@media (max-width: 52rem) { .dept { grid-template-columns: 1fr; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.bento > * { grid-column: span 2; }
.bento > .wide { grid-column: span 3; }
@media (max-width: 62rem) { .bento > *, .bento > .wide { grid-column: span 3; } }
@media (max-width: 40rem) { .bento { grid-template-columns: 1fr; } .bento > *, .bento > .wide { grid-column: auto; } }
.mini-vis { height: 8.5rem; margin: -0.25rem 0 1.25rem; border-radius: 0.6rem; background: var(--sage); position: relative; overflow: hidden; display: grid; place-items: center; }
.bento > :nth-child(2) .mini-vis, .bento > :nth-child(5) .mini-vis { background: var(--spearmint); }
.bento > :nth-child(3) .mini-vis { background: var(--orchid); }

/* mini visuals */
.mv-collab { display: grid; gap: 0.45rem; width: 78%; }
.mv-collab span { height: 0.55rem; border-radius: 99px; background: rgba(7, 41, 41, 0.12); position: relative; }
.mv-collab span:nth-child(2) { width: 80%; }
.mv-collab span:nth-child(3) { width: 60%; }
.mv-collab span::after { content: ""; position: absolute; top: -0.3rem; width: 2px; height: 1.15rem; border-radius: 2px; }
.mv-collab span:nth-child(1)::after { background: #c85ee6; animation: caret-run 4s ease-in-out infinite; }
.mv-collab span:nth-child(3)::after { background: var(--forest); animation: caret-run 5s ease-in-out infinite reverse; }
@keyframes caret-run { 0%, 100% { inset-inline-start: 10%; } 50% { inset-inline-start: 85%; } }
.mv-history { display: flex; align-items: center; gap: 0; width: 80%; direction: ltr; }
.mv-history i { flex: 1; height: 0; border-top: 2px dotted rgba(7, 41, 41, 0.35); }
.mv-history b { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--paper); border: 2.5px solid rgba(255, 255, 255, 0.5); background-clip: padding-box; flex: none; }
.mv-history b:last-child { border-color: rgba(2, 196, 161, 0.65); }
.mv-dash { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.45rem; width: 80%; align-items: end; height: 60%; }
.mv-dash i { border-radius: 0.25rem 0.25rem 0.1rem 0.1rem; background: var(--forest); animation: grow 3s var(--ease) infinite alternate; transform-origin: bottom; }
.mv-dash i:nth-child(2) { background: #c85ee6; }
.mv-dash i:nth-child(1) { height: 55%; } .mv-dash i:nth-child(2) { height: 85%; animation-delay: -1s; } .mv-dash i:nth-child(3) { height: 40%; animation-delay: -2s; }
@keyframes grow { from { transform: scaleY(0.55); } }
.mv-offline { color: var(--forest); }
.mv-offline .icon { width: 2.6rem; height: 2.6rem; stroke-width: 1.4; }
.mv-graph { width: 100%; height: 100%; }
.mv-graph line { stroke: var(--forest); stroke-opacity: 0.45; stroke-width: 1.4; stroke-dasharray: 0.01 5; stroke-linecap: round; }
.mv-graph circle { fill: var(--paper); stroke: var(--forest); stroke-width: 1.5; }
.mv-graph circle.c { fill: var(--forest); }

/* FAQ: hairline list */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0.25rem; cursor: pointer; font-weight: 500; font-size: 1.08rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 1.7rem; height: 1.7rem; padding: 0.35rem; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 0.3s var(--ease), background 0.3s, color 0.3s; }
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--forest); border-color: var(--forest); color: var(--aqua); }
.faq .ans { padding: 0 0.25rem 1.4rem; color: var(--sub); max-width: 46rem; }

/* Support */
.support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: var(--radius-lg); background: var(--spearmint); }
.support .btn-primary { background: var(--forest); color: #fff; }
.support .btn-primary:hover { background: var(--night); }
@media (max-width: 52rem) { .support { grid-template-columns: 1fr; } }
.timeline { display: grid; gap: 0; position: relative; padding: clamp(1rem, 2.5vw, 1.75rem); border-radius: var(--radius); background: var(--paper); }
.timeline li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding-bottom: 1.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; top: 2.6rem; bottom: 0.3rem; inset-inline-start: 1.15rem; border-inline-start: 2px dotted var(--line-strong); }
.timeline .when { width: 2.3rem; height: 2.3rem; border-radius: 0.5rem; display: grid; place-items: center; background: var(--forest); color: var(--aqua); }
.timeline .when .icon { width: 1.05rem; height: 1.05rem; }
.timeline h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.timeline p { color: var(--sub); font-size: 0.95rem; }

/* Trust row */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 52rem) { .trust { grid-template-columns: 1fr; } }
.trust-item { display: flex; gap: 0.95rem; align-items: flex-start; padding: 1.35rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.trust-item .card-ic { margin: 0; width: 2.5rem; height: 2.5rem; border-radius: 0.55rem; display: grid; place-items: center; flex: none; }
.trust-item .card-ic .icon { width: 1.2rem; height: 1.2rem; }
.trust-item h3 { font-size: 1.04rem; margin-bottom: 0.2rem; }
.trust-item p { color: var(--sub); font-size: 0.95rem; }

/* Feature rows (product and use-case pages) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.feature + .feature { border-top: 1px solid var(--line-soft); }
.feature:nth-child(even) > :first-child { order: 2; }
@media (max-width: 58rem) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) > :first-child { order: 0; } }
.feature-copy { display: grid; gap: 1rem; }
.panel { position: relative; border-radius: var(--radius-lg); background: var(--spearmint); padding: clamp(1.1rem, 3vw, 2.25rem); overflow: hidden; }
.feature:nth-child(3n + 2) .panel { background: var(--orchid); }
.feature:nth-child(3n) .panel { background: var(--sage); }
.panel-tint { background: var(--freesia); }
.panel > .editor, .panel > .chat { box-shadow: var(--shadow-card); }
.panel-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--sub); margin-bottom: 1rem; }
.panel-title .icon { color: var(--forest); }
.rows { display: grid; gap: 0.5rem; }
.row { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; border-radius: 0.6rem; background: var(--paper); font-size: 0.94rem; box-shadow: 0 1px 2px rgba(4, 23, 23, 0.05); }
.row .icon { color: var(--emerald); width: 1.1rem; height: 1.1rem; }
.row .row-logo { flex: none; width: 1.1rem; height: 1.1rem; object-fit: contain; }
.row .end { margin-inline-start: auto; display: inline-flex; gap: 0.35rem; align-items: center; }
.pill-s { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; padding: 0.08rem 0.5rem; border-radius: 0.3rem; background: var(--sage); color: var(--sub); }
.row .pill-s .icon { width: 0.85rem; height: 0.85rem; color: currentColor; }
.pill-s.ok { background: var(--spearmint); color: var(--night); }
.pill-s.vi { background: var(--orchid); color: var(--night); }
.pill-s.sun { background: var(--freesia); color: var(--forest); border: 1px solid var(--line); }
.avatar { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 500; color: #fff; flex: none; }
.av-1 { background: #e993ff; color: var(--night); } .av-2 { background: var(--forest); } .av-3 { background: var(--grey); color: var(--night); } .av-4 { background: var(--emerald); color: var(--night); }
.avatar img { width: 1rem; height: 1rem; }
.av-ai { background: var(--paper); border: 1px solid var(--line); }

/* Jump links */
.jump { justify-content: center; }
.jump a { text-decoration: none; color: var(--sub); }
.jump li { transition: border-color 0.2s, background 0.2s; }
.jump li:hover { border-color: var(--forest); }
.jump li:has(a:focus-visible) { outline: 2px solid var(--forest); outline-offset: 2px; }
.jump a:focus-visible { outline: none; }

/* Dashboard mock */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.stats div { display: grid; gap: 0.1rem; padding: 0.9rem; border-radius: 0.6rem; background: var(--paper); }
.stats b { font-size: 1.8rem; font-weight: 300; line-height: 1.2; color: var(--night); }
.stats span { font-size: 0.8rem; color: var(--sub); }
.bars { display: flex; align-items: flex-end; gap: 0.45rem; height: 8rem; margin-top: 0.6rem; padding: 0.75rem; border-radius: 0.6rem; background: var(--paper); }
.bars i { flex: 1; height: var(--h); border-radius: 0.25rem 0.25rem 0.1rem 0.1rem; background: var(--forest); transform-origin: bottom; animation: grow 3.5s var(--ease) infinite alternate; }
.bars i:nth-child(even) { animation-delay: -1.5s; background: var(--emerald); }
.mv-collab-lg { display: grid; place-items: center; padding: 1.2rem; border-radius: 0.6rem; background: var(--paper); }

/* Flow diagram: cards joined by dotted connectors with diamond ends */
.flow { display: grid; grid-template-columns: 1fr minmax(2.5rem, 5rem) 1fr minmax(2.5rem, 5rem) 1fr; gap: 0; align-items: center; }
.flow > li:not(.flow-arrow) { display: grid; gap: 0.5rem; justify-items: center; text-align: center; padding: 1.6rem 1.3rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-soft); height: 100%; }
.flow > li.is-core { border-color: transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--velocity) border-box; border-width: 2px; }
.flow .card-ic { width: 2.75rem; height: 2.75rem; border-radius: 0.6rem; display: grid; place-items: center; margin-bottom: 0.4rem; }
.flow .card-ic .icon { width: 1.35rem; height: 1.35rem; }
.flow h3 { font-size: 1.1rem; }
.flow p { color: var(--sub); font-size: 0.95rem; }
.flow-arrow { position: relative; height: 2px; margin-inline: 0.45rem; background: radial-gradient(circle, rgba(7, 41, 41, 0.5) 1px, transparent 1.4px) center / 6px 2px repeat-x; }
.flow-arrow .icon { display: none; }
.flow-arrow::before, .flow-arrow::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; background: var(--paper) padding-box; border: 2.5px solid rgba(255, 255, 255, 0.5); translate: 0 -50%; }
.flow-arrow::before { inset-inline-start: -4px; }
.flow-arrow::after { inset-inline-end: -4px; }
@media (max-width: 52rem) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { justify-self: center; width: 2px; height: 2.5rem; margin: 0.45rem 0; background: radial-gradient(circle, rgba(7, 41, 41, 0.5) 1px, transparent 1.4px) center / 2px 6px repeat-y; }
  .flow-arrow::before, .flow-arrow::after { inset-inline: auto; left: 50%; translate: -50% 0; }
  .flow-arrow::before { top: -4px; }
  .flow-arrow::after { top: auto; bottom: -4px; }
}

/* ---------------------------------------------------------------------------
   Dark hero (homepage only): the panel inside the gradient frame is Night,
   with light copy and glass cards. Tokens are re-scoped so shared rules adapt. */
.brand-light { display: none; }
.hero-panel {
  --sub: #a7bcb8; --muted: #7d9692;
  --line: rgba(199, 255, 231, 0.16); --line-soft: rgba(199, 255, 231, 0.1); --line-strong: rgba(199, 255, 231, 0.3);
  --sage: rgba(199, 255, 231, 0.08);
  --glass: rgba(255, 255, 255, 0.045);
  color: var(--freesia);
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(17, 114, 91, 0.45), transparent 70%),
    radial-gradient(45% 40% at 50% 62%, rgba(2, 196, 161, 0.12), transparent 70%),
    var(--night);
}
.hero-panel .eyebrow { color: var(--aqua); }
.hero-panel h1 { color: var(--freesia); }
.hero-panel .accent { color: var(--aqua); }
.hero-panel .text-link { color: var(--freesia); }
.hero-panel .text-link .icon { background: rgba(45, 255, 204, 0.2); color: var(--aqua); }

/* Diagram on dark */
.hero-panel .node-ic { background: rgba(45, 255, 204, 0.12); color: var(--aqua); box-shadow: inset 0 0 0 1px rgba(45, 255, 204, 0.18); }
.hero-panel .node-ic.ic-plain { background: var(--paper); box-shadow: none; border-color: transparent; }
.hero-panel .src, .hero-panel .agent, .hero-panel .hub-log, .hero-panel .team {
  background: var(--glass); border-color: var(--line); box-shadow: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero-panel .src.is-on, .hero-panel .agent.is-on { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(45, 255, 204, 0.18), 0 0 26px -6px rgba(45, 255, 204, 0.35); }
.hero-panel .src-items span.is-on { background: rgba(45, 255, 204, 0.16); color: var(--spearmint); box-shadow: inset 0 0 0 1px rgba(45, 255, 204, 0.6); }
.hero-panel .src-logos span { box-shadow: none; }
.hero-panel .src-logos span.is-on { background: var(--paper); box-shadow: 0 0 0 2px var(--aqua); }
.hero-panel .av { border-color: var(--night); }
.hero-panel .av-more { background: #0f2f2c; color: var(--spearmint); box-shadow: none; }
.hero-panel .av.is-on { box-shadow: 0 0 0 2px var(--aqua); }
.hero-panel .hub-logo { padding: 0.6rem 0.5rem; background: none; box-shadow: none; transition: filter 0.3s; }
.hero-panel .hub-logo img { width: clamp(8.5rem, 11vw, 10.5rem); }
.hero-panel .hub-core { background: #0c2826; border-color: rgba(199, 255, 231, 0.18); }
.hero-panel .hub-core.is-sending { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(45, 255, 204, 0.2), 0 0 34px -6px rgba(45, 255, 204, 0.5); }
.hero-panel .hub-core.is-busy .hub-logo { box-shadow: none; filter: drop-shadow(0 0 14px rgba(45, 255, 204, 0.55)); }
.hero-panel .brain-links path { stroke: var(--spearmint); stroke-opacity: 0.4; }
.hero-panel .brain-links path.is-live { stroke: var(--aqua); stroke-opacity: 1; }
.hero-panel .brain-links .tip { filter: none; }
.hero-panel .brain-links path.is-live + .tip, .hero-panel .brain-links path.is-live + .tip + .tip { stroke: var(--aqua); }
.hero-panel .brain-links .spark { fill: var(--aqua); stroke: var(--night); filter: drop-shadow(0 0 4px rgba(45, 255, 204, 0.9)); }

/* Header over the dark hero, until it turns frosted white on scroll */
.page-index .site-header:not(.is-scrolled):not(:has(.site-nav.is-open)) .brand-dark { display: none; }
.page-index .site-header:not(.is-scrolled):not(:has(.site-nav.is-open)) .brand-light { display: block; }
.page-index .site-header:not(.is-scrolled):not(:has(.site-nav.is-open)) .site-nav a { color: rgba(251, 255, 235, 0.72); }
.page-index .site-header:not(.is-scrolled):not(:has(.site-nav.is-open)) .site-nav a:hover,
.page-index .site-header:not(.is-scrolled):not(:has(.site-nav.is-open)) .site-nav a[aria-current="page"] { color: var(--freesia); }
.page-index .site-header:not(.is-scrolled):not(:has(.site-nav.is-open)) .btn-ghost { border-color: rgba(251, 255, 235, 0.28); color: var(--freesia); }
.page-index .site-header:not(.is-scrolled):not(:has(.site-nav.is-open)) .btn-ghost:hover { border-color: var(--freesia); }
.page-index .site-header:not(.is-scrolled):not(:has(.site-nav.is-open)) .menu-toggle { background: rgba(255, 255, 255, 0.08); border-color: rgba(251, 255, 235, 0.25); color: var(--freesia); }
/* Over the dark panel the frosted header needs more white to stay white, not grey */
.page-index .site-header.is-scrolled { background: rgba(255, 255, 255, 0.88); }
.hero-panel .hero-note .icon { color: var(--aqua); }

/* Compact diagram inside the screen-high hero (side columns are 60% of their old width) */
@media (min-width: 52.01rem) {
  .hero-panel .brain-col { gap: 0.55rem; }
  .hero-panel .src { padding: 0.6rem 0.65rem 0.65rem; }
  .hero-panel .src-head { gap: 0.55rem; font-size: 0.95rem; }
  .hero-panel .src-head .node-ic { width: 2.1rem; height: 2.1rem; }
  .hero-panel .src-head small { font-size: 0.74rem; line-height: 1.45; }
  .hero-panel .src-items { gap: 0.25rem; margin-top: 0.5rem; padding-top: 0.5rem; }
  .hero-panel .src-items span { font-size: 0.7rem; padding: 0.06rem 0.42rem; }
  .hero-panel .src-logos span { width: 1.5rem; height: 1.5rem; border-radius: 0.4rem; }
  .hero-panel .src-logos img { width: 0.8rem; height: 0.8rem; }
  .hero-panel .src-logos .more { width: auto; padding-inline: 0.35rem; font-size: 0.68rem; }
  .hero-panel .agent { padding: 0.35rem 0.5rem; font-size: 0.9rem; }
  .hero-panel .agent .node-ic { width: 1.9rem; height: 1.9rem; }
  .hero-panel .team { margin-bottom: 1.25rem; }
  .hero-panel .hub-log { margin-top: 0.8rem; }
  .hero-panel .hero-cta .btn-lg { min-height: 2.9rem; padding-block: 0.6rem; }
}
/* Desktop hero: the three columns share one height; boxes stretch to fill it */
@media (min-width: 52.01rem) {
  .hero-panel .brain-grid { align-items: stretch; }
  .hero-panel .brain-col { display: flex; flex-direction: column; }
  .hero-panel .brain-sources .src { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
  .hero-panel .brain-agents { justify-content: space-between; }
  .hero-panel .hub { display: flex; flex-direction: column; align-items: center; }
  .hero-panel .hub-core { flex: 1; }
}
/* Hero copy and CTAs on dark */
.hero-panel .hero-sub { color: #fff; }
.hero-panel .btn-primary { box-shadow: 0 12px 32px -14px rgba(45, 255, 204, 0.7); }
.hero-panel .btn-ghost { color: var(--freesia); border-color: rgba(251, 255, 235, 0.24); background: rgba(255, 255, 255, 0.05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-panel .btn-ghost:hover { border-color: rgba(251, 255, 235, 0.7); background: rgba(255, 255, 255, 0.09); }
.hero-panel .btn-ghost .icon { color: var(--aqua); fill: currentColor; stroke: none; width: 0.85em; height: 0.85em; }
.hero-panel .hero-cta .hero-note { gap: 0.4rem 1.4rem; font-size: 0.86rem; color: rgba(251, 255, 235, 0.62); }
