/* Aigentrix — editorial design system (shared with Bidix).
   Ink on paper, one accent (chartreuse), Fraunces / Inter Tight / JetBrains Mono. */

:root {
	--ink: #0E0F11;
	--ink-2: #2A2A2E;
	--paper: #F5F1EA;
	--paper-2: #FFFFFF;
	--tint: #EDE8DD;
	--muted: #6E695C;
	--line: #E2DCCF;
	--line-strong: #D0CCC0;
	--accent: #D8FF3C;
	--accent-hover: #C8EE2C;
	--accent-muted: #EEFFA8;
	--ok: #2E7D32;
	--warn: #9A6A00;
	--serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	--mono: 'JetBrains Mono', Consolas, monospace;
	--wrap: 1200px;
	--r-md: 8px;
	--r-lg: 12px;
	--r-xl: 16px;
	--shadow: 0 4px 12px rgba(14, 15, 17, .06);
	--shadow-xl: 0 24px 48px rgba(14, 15, 17, .12);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 14px; border-radius: var(--r-md); }
.mono { font-family: var(--mono); font-size: .85em; letter-spacing: .01em; }
.muted { color: var(--muted); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 48px); }

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 800; font-variation-settings: "opsz" 144, "SOFT" 100; font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -.02em; line-height: 1.04; }
.display--sm { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.h2 { font-family: var(--serif); font-weight: 600; font-variation-settings: "opsz" 72, "SOFT" 50; font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.015em; max-width: 22ch; }
.h3, h3 { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.005em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.eyebrow { font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.eyebrow a { text-decoration: none; }
.eyebrow--accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.3rem; border-radius: 999px; font: 600 .98rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.section--ink .btn--ghost { color: var(--paper); border-color: rgba(245, 241, 234, .35); }
.btn--sm { padding: .6rem 1rem; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 0; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.text-link .icon { width: 16px; height: 16px; }
.text-link--light { color: var(--paper); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 241, 234, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.site-header__brand .logo { height: 26px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list { display: flex; gap: 1.6rem; }
.site-nav__list a { text-decoration: none; font-weight: 500; font-size: .96rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { border-bottom-color: var(--accent); }
.site-nav__extra { display: flex; align-items: center; gap: 1rem; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.lang a { font: 600 .74rem/1 var(--mono); padding: .45rem .6rem; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }
.site-header__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--flush { padding-top: 1rem; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .lead { color: rgba(245, 241, 234, .78); }
.section--ink .eyebrow { color: rgba(245, 241, 234, .55); }
.section--ink .eyebrow--accent { color: var(--accent); }
.section--tint { background: var(--tint); }
.section--accent { background: var(--accent-muted); }
.section__head { margin-bottom: 3rem; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem; }
.page-hero--tall { padding-bottom: 8rem; }

.grid { display: grid; gap: 1.25rem; }
.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)); margin-top: 2.5rem; margin-bottom: 2rem; }
.grid--agents { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.two-col--form { grid-template-columns: 1.2fr .8fr; }
.stack { display: grid; gap: 1.25rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero .display { max-width: 16ch; }
.hero .display::after { content: ""; display: block; width: 72px; height: 6px; background: var(--accent); margin-top: 1.4rem; border-radius: 3px; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.proof li { display: grid; gap: .3rem; font-size: .92rem; color: var(--muted); }
.proof strong { color: var(--ink); font-size: .9rem; }

.demo { background: var(--ink); color: var(--paper); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); overflow: hidden; transform: rotate(-1.2deg); }
.demo__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(245, 241, 234, .12); }
.demo__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(245, 241, 234, .25); }
.demo__bar em { margin-left: 10px; font-style: normal; color: rgba(245, 241, 234, .55); font-size: .75rem; }
.demo__body { padding: 20px; display: grid; gap: 10px; }
.demo__label { color: var(--accent); margin: 0 0 4px; font-size: .78rem; }
.demo__row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 10px; background: rgba(245, 241, 234, .06); font-size: .9rem; opacity: 0; transform: translateY(6px); animation: row .5s var(--ease) forwards; }
.demo__row b { font-weight: 600; }
.demo__row i { font-style: normal; color: rgba(245, 241, 234, .5); font-size: .72rem; border: 1px solid rgba(245, 241, 234, .2); padding: 2px 6px; border-radius: 4px; }
.demo__row--flag { background: rgba(216, 255, 60, .12); box-shadow: inset 3px 0 0 var(--accent); }
.demo__row:nth-child(2) { animation-delay: .25s; } .demo__row:nth-child(3) { animation-delay: .45s; } .demo__row:nth-child(4) { animation-delay: .65s; } .demo__row:nth-child(5) { animation-delay: .85s; } .demo__row:nth-child(6) { animation-delay: 1.05s; }
.demo__chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.demo__chips span { font: 500 .72rem/1 var(--mono); padding: 6px 8px; border-radius: 4px; background: var(--accent); color: var(--ink); }
@keyframes row { to { opacity: 1; transform: none; } }

/* ---------- Problem ---------- */
.numbered { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 3rem; }
.numbered li { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.numbered__n { display: block; color: var(--muted); margin-bottom: .9rem; }
.numbered p { color: var(--ink-2); }

/* ---------- Tiles ---------- */
.tile { padding: 1.75rem; border: 1px solid rgba(245, 241, 234, .14); border-radius: var(--r-lg); }
.tile .icon { color: var(--accent); width: 22px; height: 22px; margin-bottom: 1.1rem; }
.tile p { color: rgba(245, 241, 234, .72); margin: 0; font-size: .97rem; }
.tile--light { border-color: var(--line); background: var(--paper-2); }
.tile--light p { color: var(--ink-2); }

/* ---------- Agents ---------- */
.agent-card { height: 100%; display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.6rem; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.agent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.agent-card--early { border-color: var(--ink); box-shadow: inset 0 4px 0 var(--accent); }
.agent-card--custom { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.agent-card__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1.2rem; }
.agent-card__cat { font-size: .8rem; color: var(--muted); }
.agent-card__title { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; margin-top: .6rem; }
.agent-card__title a { text-decoration: none; }
.agent-card__text { color: var(--ink-2); font-size: .96rem; flex: 1; }
.agent-card__langs { color: var(--muted); margin-bottom: 1rem; }
.agent-card__link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; margin-top: auto; }
.agent-card__link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.agent-card:hover .agent-card__link .icon { transform: translateX(3px); }
.badge { align-self: flex-start; margin-right: .5rem; display: inline-flex; align-items: center; font: 600 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .45rem .6rem; border-radius: 4px; background: var(--tint); color: var(--muted); }
.badge--live { background: #E4F7DB; color: var(--ok); }
.badge--pilot { background: var(--spark); color: var(--bx-ink, #14130F); }
.badge--early { background: var(--accent); color: var(--ink); }
.badge--soon { background: #FFF4DE; color: var(--warn); }

/* ---------- Flagship ---------- */
.flagship__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.flagship .btn { margin-top: 1rem; }
.stats { display: grid; gap: 1rem; margin: 0; }
.stats > div { border-top: 1px solid rgba(245, 241, 234, .18); padding-top: 1rem; }
.stats__v { font-family: var(--serif); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--accent); line-height: 1; margin-bottom: .35rem; }
.stats dd { margin: 0; color: rgba(245, 241, 234, .72); }

/* ---------- Services / steps ---------- */
.service { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.service p { color: var(--ink-2); font-size: .97rem; }
.service--big { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 2rem; }
.service--big .h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-top: .6rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; counter-reset: s; }
.steps li { position: relative; padding: 1.5rem; background: var(--paper); border-radius: var(--r-lg); }
.steps__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--accent); margin-bottom: 1rem; }
.steps p { color: var(--ink-2); margin: 0; font-size: .96rem; }

/* ---------- Security ---------- */
.security { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); }
.checks { display: grid; gap: 1.1rem; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(245, 241, 234, .12); }
.checks .icon { color: var(--accent); width: 24px; height: 24px; }
.checks h3 { margin-bottom: .3rem; }
.checks p { color: rgba(245, 241, 234, .72); margin: 0; }

/* ---------- Markets ---------- */
.markets { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.regions { display: grid; gap: .75rem; }
.regions li { display: flex; justify-content: space-between; align-items: center; padding: 1.15rem 1.35rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.regions em { font-style: normal; color: var(--muted); }
.regions .is-now { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.regions .is-now em { color: var(--accent); }

/* ---------- Waitlist, cards, forms ---------- */
.waitlist { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.card--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: .75rem .85rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; margin: 1.2rem 0 1.4rem; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: .2rem; accent-color: var(--ink); width: 18px; height: 18px; }
.form__hp { position: absolute; left: -9999px; }
.form__notice { padding: .9rem 1rem; border-radius: var(--r-md); font-weight: 500; }
.form__notice--ok { background: #E4F7DB; color: var(--ok); }
.form__notice--err { background: #FFE8E8; color: #B3261E; }
.contact-item { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact-item .h3 { text-decoration: none; margin: 0; }

/* ---------- Final CTA ---------- */
.final .display { max-width: 24ch; }
.final .lead { margin-bottom: 2rem; }

/* ---------- Agent page, prose, posts ---------- */
.agent-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.agent-hero__img img { border-radius: var(--r-xl); }
.ticks { display: grid; gap: .7rem; margin-bottom: 2rem; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; }
.ticks .icon { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }
.prose { font-size: 1.05rem; max-width: 70ch; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin-top: 2rem; }
.prose ul:not(.ticks) { list-style: disc; padding-left: 1.2rem; margin-bottom: 1em; }
.prose img { border-radius: var(--r-lg); margin: 1.5rem 0; }
.prose--lead p { font-size: 1.15rem; color: var(--ink-2); }
.post-card { display: flex; flex-direction: column; gap: .4rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.post-card__img img { border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: .6rem; }
.post-card h2 a { text-decoration: none; }
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: .5rem; }
.pagination .page-numbers { padding: .5rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(245, 241, 234, .75); padding: 4.5rem 0 2rem; font-size: .95rem; border-top: 1px solid rgba(245, 241, 234, .08); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer__brand .logo { height: 24px; width: auto; margin-bottom: 1.2rem; }
.site-footer__brand p { max-width: 36ch; }
.site-footer__h { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 241, 234, .45); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(245, 241, 234, .1); font-size: .85rem; color: rgba(245, 241, 234, .5); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.site-header__toggle { display: block; }
	.site-nav { position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1.5rem 24px 2rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
	.site-nav.is-open { transform: none; visibility: visible; }
	.site-nav__list { flex-direction: column; gap: .2rem; }
	.site-nav__list a { display: block; font-size: 1.1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
	.site-nav__extra { justify-content: space-between; }
	.hero__grid, .flagship__grid, .security, .markets, .waitlist, .two-col, .two-col--form, .agent-hero { grid-template-columns: 1fr; }
	.hero__visual { order: 2; }
	.numbered { grid-template-columns: 1fr; }
	.proof { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.grid--2, .grid--3, .grid--4, .steps, .form__grid { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.site-footer__base { flex-direction: column; }
	.demo { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
	.demo__row { opacity: 1; transform: none; }
}

/* =====================================================================
   1.1.0 — full-vision homepage, language switcher, agentic animation
   ===================================================================== */

/* Language switcher (EN / FR). Plain links, protected from page translators. */
.langswitch { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; background: var(--paper-2); }
.langswitch__opt { font: 600 .74rem/1 var(--mono); letter-spacing: .04em; padding: .45rem .62rem; border-radius: 999px; text-decoration: none; color: var(--muted); transition: background .2s, color .2s; }
.langswitch__opt:hover { color: var(--ink); }
.langswitch__opt.is-current { background: var(--ink); color: var(--paper); }

.h2--wide { max-width: 30ch; }

/* Hero animation card */
.agentic { margin: 0; background: var(--ink); color: var(--paper); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); overflow: hidden; position: relative; }
.agentic__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(245, 241, 234, .12); }
.agentic__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(245, 241, 234, .25); }
.agentic__bar em { margin-left: 10px; font-style: normal; color: rgba(245, 241, 234, .55); font-size: .75rem; }
.agentic__task { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 18px 0; min-height: 44px; }
.agentic__status { font-size: .74rem; color: rgba(245, 241, 234, .6); display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.agentic__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(245, 241, 234, .4); }
.agentic[data-phase="work"] .agentic__status::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(216, 255, 60, .18); }
.agentic[data-phase="done"] .agentic__status { color: var(--accent); }
.agentic[data-phase="done"] .agentic__status::before { background: var(--accent); }
.agentic__name { font: 600 .92rem/1.3 var(--sans); text-align: right; transition: opacity .4s; }
.agentic__canvas { display: block; width: 100%; aspect-ratio: 5 / 4; }
.agentic__stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 14px 16px; font-size: .68rem; }
.agentic__stages li { text-align: center; padding: .5rem .2rem; border-radius: 6px; color: rgba(245, 241, 234, .45); background: rgba(245, 241, 234, .05); transition: background .35s, color .35s; }
.agentic__stages li.is-active { background: rgba(216, 255, 60, .16); color: var(--accent); }
.agentic__stages li.is-done { color: rgba(245, 241, 234, .8); }
.agentic__stages li.is-human.is-active { background: var(--accent); color: var(--ink); }

/* Vision: three eras */
.eras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.era { position: relative; padding: 1.6rem; border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); }
.era__when { display: block; color: var(--muted); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.era h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; }
.era p { color: var(--ink-2); margin: 0; }
.era:not(:last-child)::after { content: "→"; position: absolute; right: -1rem; top: 50%; transform: translate(50%, -50%); color: var(--muted); font-size: 1.1rem; z-index: 1; }
.era.is-now { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: inset 0 4px 0 var(--accent); }
.era.is-now .era__when { color: var(--accent); }
.era.is-now p { color: rgba(245, 241, 234, .8); }
.vision-statement { margin: 2.5rem 0 0; padding: 1.5rem 1.75rem; border-left: 4px solid var(--accent); background: var(--paper); border-radius: 0 var(--r-lg) var(--r-lg) 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.4; max-width: 60ch; }
.vision-statement strong { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: .4rem; color: var(--muted); }

/* Problem: four items */
.numbered--4 { grid-template-columns: repeat(4, 1fr); }

/* Model: pillars + layers */
.pillar { display: flex; flex-direction: column; padding: 1.75rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl); }
.pillar__n { color: var(--muted); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.pillar h3 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; }
.pillar p { color: var(--ink-2); flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.tags li { font: 500 .74rem/1 var(--sans); padding: .45rem .6rem; border-radius: 999px; background: var(--tint); color: var(--ink-2); }
.layers__label { display: flex; align-items: center; gap: 1rem; margin: 2.25rem 0 1rem; color: var(--muted); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.layers__label::before, .layers__label::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.layers { display: grid; gap: .75rem; margin-bottom: 2rem; }
.layer { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; align-items: center; padding: 1.15rem 1.5rem; border-radius: var(--r-lg); background: var(--ink); color: var(--paper); }
.layer h3 { margin: 0; color: var(--accent); font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.layer p { margin: 0; color: rgba(245, 241, 234, .8); }

/* Agents: Bidix spotlight */
.spotlight { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r-xl); background: var(--ink); color: var(--paper); box-shadow: var(--shadow-xl); scroll-margin-top: 96px; }
.spotlight__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.15; max-width: 24ch; }
.spotlight__text { color: rgba(245, 241, 234, .8); max-width: 60ch; }
.spotlight__for { color: rgba(245, 241, 234, .6); font-size: .92rem; margin: 1.25rem 0 1.5rem; }
.flow { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; font-size: .74rem; }
.flow li { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .65rem; border-radius: 999px; border: 1px solid rgba(245, 241, 234, .2); color: rgba(245, 241, 234, .85); }
.flow li:last-child { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.agents__next { margin: 3rem 0 1.25rem; }

@media (max-width: 1024px) {
	.numbered--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.eras { grid-template-columns: 1fr; }
	.era:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -1rem; transform: translate(50%, 50%); }
	.spotlight { grid-template-columns: 1fr; }
	.layer { grid-template-columns: 1fr; gap: .4rem; }
}
@media (max-width: 640px) {
	.numbered--4 { grid-template-columns: 1fr; }
	.agentic__stages { font-size: .6rem; padding: 0 10px 12px; }
	.agentic__task { flex-direction: column; align-items: flex-start; gap: .35rem; }
	.agentic__name { text-align: left; }
}
.agentic__name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.regions li { gap: 1rem; }

/* ---------- Services page (1.1.0): four tones on ink and paper ---------- */
:root { --t-lime: #D8FF3C; --t-teal: #4FD1B5; --t-violet: #A98BFF; --t-amber: #FFB547; }
.svc-card--lime, .svc-pkg--lime, .svc-course--lime, .svc-orbit__node--lime { --tone: var(--t-lime); }
.svc-card--teal, .svc-pkg--teal, .svc-course--teal, .svc-orbit__node--teal { --tone: var(--t-teal); }
.svc-card--violet, .svc-pkg--violet, .svc-course--violet, .svc-orbit__node--violet { --tone: var(--t-violet); }
.svc-card--amber, .svc-pkg--amber, .svc-course--amber, .svc-orbit__node--amber { --tone: var(--t-amber); }

.svc-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.svc-hero::before, .svc-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none; }
.svc-hero::before { width: 420px; height: 420px; background: var(--t-violet); top: -140px; right: 8%; animation: svcDrift 14s ease-in-out infinite alternate; }
.svc-hero::after { width: 360px; height: 360px; background: var(--t-teal); bottom: -180px; left: -60px; opacity: .22; animation: svcDrift 18s ease-in-out infinite alternate-reverse; }
@keyframes svcDrift { to { transform: translate(-40px, 30px) scale(1.08); } }
.svc-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.svc-hero .lead { color: rgba(245, 241, 234, .8); }
.btn--light { color: var(--paper); border-color: rgba(245, 241, 234, .35); }
.btn--light:hover { border-color: var(--paper); }
.svc-orbit svg { width: 100%; max-width: 440px; margin-inline: auto; display: block; overflow: visible; }
.svc-orbit__ring { stroke: rgba(245, 241, 234, .16); stroke-width: 1; stroke-dasharray: 3 7; transform-origin: 200px 200px; animation: svcSpin 60s linear infinite; }
@keyframes svcSpin { to { transform: rotate(360deg); } }
.svc-orbit__track { stroke: rgba(245, 241, 234, .22); stroke-width: 1.5; }
.svc-orbit__core { fill: rgba(245, 241, 234, .06); stroke: rgba(245, 241, 234, .2); }
.svc-orbit__core-t { fill: rgba(245, 241, 234, .85); font: 600 13px/1 var(--mono); letter-spacing: .04em; }
.svc-orbit__node circle { fill: var(--tone); stroke: var(--ink); stroke-width: 4; transition: transform .3s var(--ease); }
.svc-orbit__node text { fill: var(--ink); font: 700 10px/1 var(--sans); letter-spacing: .02em; }
.svc-orbit__dot { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(216, 255, 60, .9)); }
.svc-orbit__dot--2 { fill: var(--t-violet); filter: drop-shadow(0 0 6px rgba(169, 139, 255, .9)); }

.svc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.svc-card { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.9rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--tone); }
.svc-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: var(--tone); opacity: .14; transition: transform .5s var(--ease), opacity .3s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--line-strong); }
.svc-card:hover::after { transform: scale(1.25); opacity: .22; }
.svc-card__head { display: flex; align-items: center; gap: 1rem; position: relative; z-index: 1; }
.svc-card__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--tone); font-size: .85rem; flex: none; }
.svc-card__title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 2.4vw, 2rem); }
.svc-card__text { margin: 0; color: var(--ink-2); position: relative; z-index: 1; }
.svc-card__steps { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .72rem; counter-reset: st; }
.svc-card__steps li { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .6rem; border-radius: 999px; background: var(--tint); color: var(--ink-2); }
.svc-card__steps li:not(:last-child)::after { content: "→"; color: var(--muted); margin-left: .15rem; }
.svc-card__out { margin-top: auto; padding: 1rem 1.1rem; border-radius: var(--r-lg); background: var(--tint); background: color-mix(in srgb, var(--tone) 16%, var(--paper-2)); border-left: 3px solid var(--tone); }
.svc-card__out span { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.svc-card__out p { margin: 0; font-weight: 500; }

.svc-pkgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.svc-pkg { position: relative; padding: 1.6rem; border-radius: var(--r-xl); border: 1px solid rgba(245, 241, 234, .14); background: rgba(245, 241, 234, .03); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.svc-pkg:hover { transform: translateY(-4px); border-color: var(--tone); background: rgba(245, 241, 234, .06); }
.svc-pkg__dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 6px rgba(245, 241, 234, .05), 0 0 18px var(--tone); margin-bottom: 1.2rem; }
.svc-pkg h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--tone); }
.svc-pkg p { margin: 0; color: rgba(245, 241, 234, .75); font-size: .96rem; }

.svc-timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.svc-timeline::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: linear-gradient(90deg, var(--t-lime), var(--t-teal), var(--t-violet), var(--t-amber)); }
@keyframes svcLine { from { transform: scaleX(0); } }
.svc-timeline li { position: relative; }
.svc-timeline__n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--accent); margin-bottom: 1rem; box-shadow: 0 0 0 6px var(--tint); }
.svc-timeline p { color: var(--ink-2); margin: 0; font-size: .96rem; }

.svc-academy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.svc-course { display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem; border-radius: var(--r-xl); background: var(--tint); background: color-mix(in srgb, var(--tone) 22%, var(--paper)); transition: transform .3s var(--ease); }
.svc-course:hover { transform: translateY(-3px) rotate(-.4deg); }
.svc-course__dur { align-self: flex-start; padding: .35rem .55rem; border-radius: 999px; background: var(--ink); color: var(--tone); font-size: .7rem; margin-bottom: .5rem; }
.svc-course h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 0; }
.svc-course p { margin: 0; color: var(--ink-2); font-size: .95rem; }

@media (max-width: 1024px) {
	.svc-pkgs, .svc-academy, .svc-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.svc-timeline::before { display: none; }
}
@media (max-width: 900px) {
	.svc-hero__grid, .svc-cards { grid-template-columns: 1fr; }
	.svc-orbit svg { max-width: 340px; }
}
@media (max-width: 640px) {
	.svc-pkgs, .svc-academy, .svc-timeline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.svc-orbit__dot { display: none; }
}

/* Hero: animation a little larger, caption underneath (1.1.0) */
.hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.hero__visual { min-width: 0; }
.agentic-caption { margin: .9rem .25rem 0; font-size: .92rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* Agents in the build (replaces the marketplace grid for now) */
.agents-build { margin-top: 2rem; padding: 1.4rem 1.6rem; border: 1px dashed var(--line-strong); border-radius: var(--r-xl); display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; align-items: start; }
.agents-build__mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--accent); font: 600 .8rem/1 var(--mono); }
.agents-build p { margin: 0; color: var(--ink-2); max-width: 70ch; }
.agents-build .text-link { margin-top: .6rem; }

/* ==========================================================================
   1.2.0 — new Bidix logo, interactive Bidix product tour, interactive hero,
   site-wide micro-interactions. Everything here is disabled or made static
   under prefers-reduced-motion (see the block at the end).
   ========================================================================== */

/* Sora ExtraBold, used only for the Bidix logo (SIL Open Font License). */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/sora-800.woff2') format('woff2'); }

:root {
	--spark: #C6F432;       /* Bidix brand: the spark and the smile */
	--spark-deep: #7FA800;  /* spark on white tiles, green text on light green */
	--bx-ink: #0E0E0C;
}

/* Buttons and labels in Bidix sections */
.btn--spark { background: var(--spark); color: var(--bx-ink); }
.btn--spark:hover { background: #D4FA5A; }
.eyebrow--spark { color: var(--spark); }
.btn[data-magnetic] { transition: transform .25s var(--ease), background .2s, border-color .2s; will-change: transform; }

/* Reading progress under the sticky header */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* Cursor light on cards (position set by site.js) */
.has-glow { background-image: radial-gradient(520px circle at var(--gx, -999px) var(--gy, -999px), rgba(14, 15, 17, .05), transparent 45%); }
.section--ink .has-glow, .spotlight.has-glow, .layer.has-glow { background-image: radial-gradient(620px circle at var(--gx, -999px) var(--gy, -999px), rgba(198, 244, 50, .09), transparent 45%); }

/* Hero animation: tilt + hint */
.agentic[data-tilt] { transition: transform .35s var(--ease); transform-style: preserve-3d; }
.agentic__hint { display: block; text-align: center; font-size: .66rem; color: rgba(245, 241, 234, .45); padding: 0 14px 10px; transition: opacity .5s; }
.agentic.is-touched .agentic__hint { opacity: 0; }
@media (hover: none) { .agentic__hint { display: none; } }

/* ---------- Bidix logo ---------- */
.bx-lockup { display: inline-flex; align-items: center; gap: .7rem; line-height: 1; }
.bx-lockup .bx-mark { width: 1.6em; height: 1.6em; }
.bx-lockup .bx-word { font-size: 1.55em; }
.bx-lockup--dark { color: #FFFFFF; }
.bx-lockup--light { color: var(--bx-ink); }
.bx-word { font-family: 'Sora', var(--sans); font-weight: 800; letter-spacing: -.05em; line-height: 1; white-space: nowrap; display: inline-flex; align-items: baseline; }
.bx-i { display: inline-grid; align-items: baseline; justify-items: center; margin-right: -.045em; }
.bx-i__stem { grid-area: 1 / 1; letter-spacing: 0; }
.bx-i__anchor { grid-area: 1 / 1; display: block; width: 0; height: 0; position: relative; }
.bx-i__dot { position: absolute; left: -.115em; bottom: calc(1ex + .09em); width: .23em; height: .23em; border-radius: 50%; background: currentColor; }
.bx-i__dot.bx-spark { background: var(--spark); }
.bx-i__smile { position: absolute; left: -.34em; top: .07em; width: .68em; height: .32em; max-width: none; overflow: visible; } /* max-width:none beats the global svg rule (anchor is 0 px wide) */
.bx-i__smile path { fill: none; stroke: var(--spark); stroke-width: 8.5; stroke-linecap: round; }
.spotlight__logo { font-size: 1.15rem; margin: 0 0 1.4rem; }
.agent-hero__logo { font-size: 1.6rem; margin: .4rem 0 1.2rem; }

/* Working state: the spark hops, the smile is drawn from progress (bidix-demo.js) */
@keyframes bx-hop { 0%, 100% { transform: translateY(0) scale(1.18, .82); } 12% { transform: translateY(0) scale(1); } 48% { transform: translateY(-.42em) scale(.94, 1.06); } 84% { transform: translateY(0) scale(1); } }
@keyframes bx-pop { 0% { transform: scale(1); } 40% { transform: scale(1.9); } 100% { transform: scale(1); } }
.bx-word--working .bx-spark { animation: bx-hop 1.1s cubic-bezier(.45, 0, .55, 1) infinite; transform-origin: 50% 100%; }
.bx-word--working.is-done .bx-spark { animation: none; }
.bx-word--working .bx-spark.bx-pop { animation: bx-pop .6s ease-out 1; }
.bx-word--working .bx-i__smile path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .25s linear; }

/* ---------- Bidix spotlight (homepage) ---------- */
.spotlight--bidix { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); grid-template-areas: "copy demo" "stats stats"; align-items: start; row-gap: 2.5rem; overflow: hidden; }
.spotlight--bidix .spotlight__copy { grid-area: copy; }
.spotlight--bidix .spotlight__demo { grid-area: demo; min-width: 0; }
.spotlight--bidix .flow li:last-child { background: var(--spark); border-color: var(--spark); color: var(--bx-ink); }
.stats--row { grid-area: stats; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.stats--row .stats__v { color: var(--spark); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section--tour { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Bidix product tour ---------- */
.bxdemo { --app-side: #0E0E0C; --app-paper: #F5F1EA; --app-line: #E2DCCF; --app-muted: #6E695C; }
.bxdemo__tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .85rem; }
.bxdemo__tabs button { display: inline-flex; align-items: center; gap: .45rem; font: 600 .8rem/1 var(--sans); color: rgba(245, 241, 234, .7); background: rgba(245, 241, 234, .06); border: 1px solid rgba(245, 241, 234, .14); border-radius: 999px; padding: .55rem .85rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.bxdemo__tabs button:hover { color: #fff; border-color: rgba(245, 241, 234, .35); }
.bxdemo__tabs button[aria-selected="true"] { background: var(--spark); color: var(--bx-ink); border-color: var(--spark); }
.bxdemo__live-dot { width: 7px; height: 7px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: bx-live 1.6s infinite; }
[aria-selected="true"] .bxdemo__live-dot { background: var(--bx-ink); animation: none; }
@keyframes bx-live { 70% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
.bxdemo__device { border-radius: 14px; overflow: hidden; background: #1A1A18; box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(245, 241, 234, .1); }
.bxdemo__chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1A1A18; }
.bxdemo__chrome span { width: 9px; height: 9px; border-radius: 50%; background: rgba(245, 241, 234, .22); }
.bxdemo__chrome em { margin: 0 auto; font-style: normal; font-size: .68rem; color: rgba(245, 241, 234, .5); background: rgba(245, 241, 234, .06); padding: .25rem .9rem; border-radius: 6px; }
.bxdemo__panel[hidden] { display: none !important; }
.bxdemo__shot img { width: 100%; height: auto; aspect-ratio: 1440 / 1040; object-fit: cover; object-position: top left; background: var(--app-paper); }
.bxdemo__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: .7rem .2rem 0; font-size: .7rem; color: rgba(245, 241, 234, .5); }
.bxdemo__replay { font: 600 .78rem/1 var(--sans); color: var(--spark); background: none; border: 1px solid rgba(198, 244, 50, .4); border-radius: 999px; padding: .45rem .8rem; cursor: pointer; }
.bxdemo__replay:hover { background: rgba(198, 244, 50, .1); }

/* The mini app (container queries keep it readable from phone to desktop) */
.bxapp { container-type: inline-size; display: grid; grid-template-columns: 128px minmax(0, 1fr); aspect-ratio: 1440 / 1040; background: var(--app-paper); color: var(--bx-ink); font-family: var(--sans); text-align: left; }
.bxapp__side { background: var(--app-side); color: #F5F1EA; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; }
.bxapp__brand { display: flex; align-items: center; gap: 7px; padding: 2px 6px 14px; color: #fff; }
.bxapp__brand .bx-word { font-size: 17px; }
.bxapp__nav { padding: 7px 8px; border-radius: 7px; color: rgba(245, 241, 234, .65); }
.bxapp__nav.is-on { background: rgba(245, 241, 234, .12); color: #fff; box-shadow: inset 2px 0 0 #fff; }
.bxapp__main { position: relative; padding: 16px; overflow: hidden; min-width: 0; }
.bxscene { height: 100%; }
.bxscene[hidden] { display: none !important; }

/* Scene: drop */
.bxscene--drop { display: grid; place-items: center; position: relative; }
.bxdrop { width: 100%; height: 100%; border: 2px dashed #D0CCC0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; color: var(--app-muted); font-size: 12px; transition: background .25s, border-color .25s, transform .25s; }
.bxdrop b { color: var(--bx-ink); font-size: 15px; }
.bxdrop__icon { width: 30px; height: 30px; fill: none; stroke: var(--bx-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.bxdrop__try { margin-top: 8px; font: 700 12.5px/1 var(--sans); background: var(--spark); color: var(--bx-ink); border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.bxdrop__try:hover { background: #D4FA5A; }
.bxdrop__hint { font-size: 11px; }
.bxdrop.is-over { background: #F2F8DA; border-color: var(--spark-deep); transform: scale(.985); }
.bxfile { position: absolute; right: 6%; top: 10%; width: 112px; padding: 34px 10px 10px; background: #fff; border: 1px solid #D0CCC0; border-radius: 9px; box-shadow: 0 14px 30px rgba(14, 14, 12, .16); display: flex; flex-direction: column; gap: 3px; font: 600 9.5px/1.25 var(--mono); color: var(--bx-ink); cursor: grab; animation: bx-bob 3s ease-in-out infinite; transform: rotate(4deg); }
.bxfile b { width: max-content; background: #B3261E; color: #fff; border-radius: 3px; padding: 2px 5px; font-size: 9px; }
.bxfile small { color: var(--app-muted); font-weight: 500; }
.bxfile:active { cursor: grabbing; }
@keyframes bx-bob { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-6px); } }

/* Scene: reading */
.bxscene--read { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.bxread { background: var(--bx-ink); color: #F5F1EA; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.bxread__hero { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.bxread__logo { padding: 12px 2px 18px; color: #fff; }
.bxread__logo .bx-word { font-size: 40px; }
.bxread__meta { display: flex; flex-direction: column; gap: 4px; min-width: 170px; flex: 1; }
.bxread__kick { font-size: 8.5px; white-space: nowrap; letter-spacing: .14em; text-transform: uppercase; color: var(--spark); }
.bxread__pages { font: 600 17px/1.2 var(--serif); }
.bxread__eta { font-size: 11px; color: rgba(245, 241, 234, .7); }
.bxread__bar { height: 5px; border-radius: 999px; background: rgba(245, 241, 234, .15); overflow: hidden; margin-top: 4px; }
.bxread__bar i { display: block; height: 100%; width: 0; background: var(--spark); border-radius: 999px; }
.bxsteps { background: rgba(245, 241, 234, .06); border-radius: 10px; padding: 2px 12px; }
.bxsteps li { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 11.5px; color: rgba(245, 241, 234, .45); border-top: 1px solid rgba(245, 241, 234, .08); transition: color .3s; }
.bxsteps li:first-child { border-top: 0; }
.bxsteps__ic { width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; border: 2px solid rgba(245, 241, 234, .3); display: inline-flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 800; }
.bxsteps li.is-done { color: #F5F1EA; }
.bxsteps li.is-done .bxsteps__ic { background: #2E7D32; border-color: #2E7D32; }
.bxsteps li.is-done .bxsteps__ic::after { content: "✓"; color: #fff; }
.bxsteps li.is-now { color: var(--spark); font-weight: 600; }
.bxsteps li.is-now .bxsteps__ic { border-color: var(--spark); animation: bx-ring 1.2s infinite; }
@keyframes bx-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 244, 50, .55); } 70% { box-shadow: 0 0 0 6px rgba(198, 244, 50, 0); } }
.bxfacts { display: flex; flex-direction: column; gap: 7px; }
.bxfacts__h { font: 600 13px/1.2 var(--serif); margin: 2px 0 2px; }
.bxfact { background: #fff; border: 1px solid var(--app-line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s var(--ease); }
.bxfact.is-in { opacity: 1; transform: none; }
.bxfact span { font-size: 9.5px; color: var(--app-muted); }
.bxfact b { font-size: 11.5px; line-height: 1.3; }
.bxfact em { font-style: normal; font-weight: 500; color: #2E7D32; }
.bxfact:last-child b { color: #2E7D32; }

/* Scene: ready record */
.bxscene--ready { display: flex; flex-direction: column; gap: 10px; animation: bx-in .5s var(--ease) both; }
@keyframes bx-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bxrec__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bxrec__title { margin: 0; font: 600 18px/1.2 var(--serif); }
.bxrec__go { white-space: nowrap; font-size: 11px; font-weight: 700; color: #2E7D32; background: #E4F7DB; border-radius: 999px; padding: 5px 10px; }
.bxrec__sub { display: inline-block; font-size: 10.5px; background: var(--bx-ink); color: #F5F1EA; border-radius: 7px; padding: 5px 9px; }
.bxrec__sub b { color: var(--spark); }
.bxrec__tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--app-line); font-size: 11.5px; font-weight: 600; color: var(--app-muted); }
.bxrec__tabs span { padding-bottom: 7px; }
.bxrec__tabs .is-on { color: var(--bx-ink); box-shadow: inset 0 -2px 0 var(--bx-ink); }
.bxrec__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.bxrec__card { margin: 0; background: #fff; border: 1px solid var(--app-line); border-radius: 12px; padding: 12px; font-size: 11.5px; line-height: 1.5; }
.bxrec__card--ink { background: var(--bx-ink); color: #F5F1EA; border-color: var(--bx-ink); display: flex; flex-direction: column; gap: 6px; }
.bxrec__card--ink small { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 241, 234, .6); }
.bxrec__card--ink b { font: 600 14px/1.25 var(--serif); }
.bxrec__btn { align-self: flex-start; background: var(--spark); color: var(--bx-ink); font-weight: 700; border-radius: 999px; padding: 6px 11px; }

/* Toast */
.bxtoast { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 9px; background: var(--bx-ink); color: #F5F1EA; border-radius: 11px; padding: 8px 12px; font-size: 11.5px; box-shadow: 0 14px 28px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.bxtoast.is-on { opacity: 1; transform: none; }

/* Narrow app (phones, small tablets): drop the sidebar, stack the columns */
@container (max-width: 560px) {
	.bxscene--read, .bxrec__grid { grid-template-columns: 1fr; }
	.bxfacts .bxfact:nth-of-type(n+4) { display: none; }
	.bxread__logo .bx-word { font-size: 38px; }
}
@media (max-width: 640px) {
	.bxapp { grid-template-columns: 1fr; aspect-ratio: auto; min-height: 460px; }
	.bxapp__side { display: none; }
	.bxfile { right: 4%; top: 4%; width: 96px; }
}
@media (max-width: 900px) {
	.spotlight--bidix { grid-template-columns: 1fr; grid-template-areas: "copy" "demo" "stats"; }
	.stats--row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.bx-word--working .bx-spark, .bx-word--working .bx-spark.bx-pop, .bxfile, .bxdemo__live-dot, .bxsteps li.is-now .bxsteps__ic, .bxscene--ready { animation: none !important; }
	.bx-word--working .bx-i__smile path, .bxfact, .bxtoast, .agentic[data-tilt], .btn[data-magnetic] { transition: none !important; }
	.scroll-progress { display: none; }
}

/* Ready record: required documents per offer */
.bxrec__offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bxrec__offer { background: #fff; border: 1px solid var(--app-line); border-radius: 10px; padding: 9px 10px; font-size: 10.5px; color: var(--app-muted); display: flex; flex-direction: column; gap: 3px; }
.bxrec__offer b { font: 600 15px/1 var(--serif); color: var(--bx-ink); }
.bxrec__offer i { display: block; height: 4px; border-radius: 999px; background: var(--app-line); margin-top: 4px; position: relative; overflow: hidden; }
.bxrec__offer i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 8%; border-radius: 999px; background: var(--c, #4FD1B5); }
@container (max-width: 560px) { .bxrec__offers { grid-template-columns: 1fr; } }

/* 1.4.0: agent page — pilot status, website link, narrated demo, pilot card */
.agent-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.agent-hero__ctas:empty { display: none; }
.agent-video { max-width: 980px; }
.agent-video .eyebrow { margin-bottom: .9rem; }
.pilot-card { display: grid; gap: .8rem; align-content: start; border-top: 4px solid var(--spark); }
.pilot-card .badge { justify-self: start; }
.pilot-card .h3 { margin: 0; }
.pilot-card .ticks { margin: .2rem 0 .4rem; }
.pilot-card .ticks .icon { color: var(--spark-deep); }
.pilot-card__btn { justify-content: center; }
.pilot-card__fine { font-size: .82rem; text-align: center; margin: 0; }

/* ---------- 1.4.0 motion ---------- */
/* Staggered reveals: elements with style="--i:n" arrive one after another. */
.js .reveal { transition-delay: calc(var(--i, 0) * 70ms); }
/* "Piloting now" badges and eyebrow: a small live dot that pulses. */
.badge--live-dot, .eyebrow--live { display: inline-flex; align-items: center; gap: .5em; }
.badge--live-dot::before, .eyebrow--live::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; flex: none; animation: aigx-live 2.2s ease-out infinite; }
.badge--pilot.badge--live-dot::before { background: var(--bx-ink); }
.eyebrow--live::before { background: var(--spark); }
@keyframes aigx-live { 0% { box-shadow: 0 0 0 0 rgba(198, 244, 50, .7); } 70% { box-shadow: 0 0 0 .55em rgba(198, 244, 50, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 244, 50, 0); } }
/* Agent hero badge gets the same live dot. */
.agent-hero .badge--pilot { display: inline-flex; align-items: center; gap: .5em; }
.agent-hero .badge--pilot::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--bx-ink); animation: aigx-live 2.2s ease-out infinite; }
/* Demo video: rises and un-tilts into place, with a spark glow on hover. */
.js .agent-video__frame.reveal { transform: perspective(1400px) rotateX(8deg) translateY(28px) scale(.97); transition-duration: 1s; }
.js .agent-video__frame.reveal.is-in { transform: none; }
.agent-video__frame { transition: box-shadow .4s var(--ease); }
.agent-video__frame:hover { box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(198, 244, 50, .45), 0 0 60px rgba(198, 244, 50, .12); }
/* Pilot card: the top bar sweeps in, ticks pop in one by one. */
.pilot-card { position: relative; overflow: hidden; border-top: 0; }
.pilot-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--spark); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .25s; }
.pilot-card.is-in::before, html:not(.js) .pilot-card::before { transform: none; }
.ticks li.reveal .icon { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i, 0) * 70ms + .15s); transform: scale(0); }
.ticks li.reveal.is-in .icon { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .agent-video__frame.reveal, .ticks li.reveal .icon { transform: none; }
	.pilot-card::before { transform: none; }
	.badge--live-dot::before, .eyebrow--live::before, .agent-hero .badge--pilot::before { animation: none; }
}
