/* Oneview website — "the plant on one board"
   Night-shift slate, signal violet, andon amber, process teal. Barlow Semi Condensed (signage) + IBM Plex Sans. */
:root {
  --night: #12172B;
  --night-2: #1A2140;
  --night-3: #252E55;
  --board: #F5F6FA;
  --paper: #FFFFFF;
  --ink: #141A30;
  --steel: #5B6478;
  --steel-2: #8A93A8;
  --rule: #DDE1EB;
  --violet: #7A52F4;
  --violet-2: #9A7BFF;
  --violet-ink: #5A35D8;
  --amber: #F5A524;
  --teal: #12B5A5;
  --teal-2: #4FD8C9;
  --red: #E5484D;
  --display: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1160px;
  --gut: clamp(18px, 4vw, 40px);
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--board); color: var(--ink); font: 400 clamp(14.5px, 0.35vw + 10.5px, 16px)/1.58 var(--body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--violet-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--violet); color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--night); padding: 8px 14px; border-radius: 6px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -0.01em; margin: 0; color: inherit; }
h1 { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 2.9vw, 40px); }
h3 { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.15; }
h4 { font-size: clamp(16.5px, 1.2vw, 18.5px); line-height: 1.22; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(15.5px, 1.15vw, 18px); line-height: 1.55; color: var(--steel); max-width: 60ch; }
.on-dark .lead, .night .lead { color: #C3C9DD; }
.small { font-size: 14px; color: var(--steel); }
.tag { font: 500 12px/1 var(--mono); letter-spacing: 0.02em; color: var(--teal); }
strong { font-weight: 600; }

/* ---------- layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 2 * var(--gut)); }
section { padding-block: clamp(44px, 6vw, 84px); position: relative; }
.night { background: var(--night); color: #EEF0F8; }
.night a:not(.btn) { color: var(--violet-2); }
.paper { background: var(--paper); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.stack > * + * { margin-top: 18px; }
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }
.head { max-width: 720px; margin-bottom: clamp(26px, 3.4vw, 44px); }
.head p { margin-top: 12px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(18, 23, 43, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 21px; width: auto; }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.menu a { display: block; padding: 7px 10px; border-radius: 8px; color: #C9CEE0; text-decoration: none; font-size: 14px; font-weight: 500; }
.menu a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.menu a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.head-cta { display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,0.18); color: #fff; border-radius: 8px; padding: 8px 12px; font: 500 14px var(--body); cursor: pointer; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .menu, .head-cta .btn-ghost { display: none; }
  .site-head.open .menu { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 56px; left: 0; right: 0; background: var(--night); padding: 12px var(--gut) 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .site-head.open .menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); }
}
@media (max-width: 560px) { .head-cta .btn { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 9px; font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-ink); color: #fff; }
.btn-amber { background: var(--amber); color: var(--night); }
.btn-amber:hover { background: #FFB940; color: var(--night); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.night .btn-ghost, .site-head .btn-ghost { color: #E3E6F2; border-color: rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.night .btn-ghost:hover, .site-head .btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-sm { padding: 8px 12px; font-size: 13.5px; border-radius: 7px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(36px, 5vw, 64px); padding-bottom: 0; overflow: hidden; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 16px; }
.hero-note { margin-top: 18px; font-size: 14px; color: #9DA5C0; }
.hero-note b { color: #E3E6F2; font-weight: 500; }
.pid { margin-top: clamp(28px, 4vw, 48px); position: relative; }
.pid svg { width: 100%; height: auto; overflow: visible; }
.pid .flow { stroke-dasharray: 10 14; animation: flow 1.6s linear infinite; }
.pid .flow.slow { animation-duration: 2.6s; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.pid .lamp { animation: lamp 2.4s ease-in-out infinite; }
.pid .lamp.d1 { animation-delay: .6s; } .pid .lamp.d2 { animation-delay: 1.2s; } .pid .lamp.d3 { animation-delay: 1.8s; }
@keyframes lamp { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.pid text { font-family: var(--body); }
.pid .t-tag { font-family: var(--mono); font-size: 11px; fill: var(--teal-2); }
.pid .t-name { font-size: 15px; font-weight: 600; fill: #fff; }
.pid .t-sub { font-size: 12px; fill: #9DA5C0; }
.pid-tall { display: none; }
@media (max-width: 700px) { .pid-wide { display: none; } .pid-tall { display: block; max-width: 420px; margin-inline: auto; } }
.pid-caption { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 28px; color: #9DA5C0; font-size: 14px; flex-wrap: wrap; }

/* ---------- the process line: sections are stations along it ---------- */
.line-page { position: relative; }
.line-page::before { content: ''; position: absolute; left: max(calc((100% - var(--wrap)) / 2 - 28px), 10px); top: 0; bottom: 0; width: 2px; background: rgba(138,147,168,0.32); z-index: 2; pointer-events: none; }
.line-page::after { content: ''; position: absolute; left: max(calc((100% - var(--wrap)) / 2 - 28px), 10px); top: 0; width: 2px; height: calc(var(--progress, 0) * 100%); background: linear-gradient(var(--teal), var(--violet)); transition: height .2s linear; z-index: 2; pointer-events: none; }
.station { position: relative; }
.station > .wrap > .marker { position: absolute; z-index: 3; left: -36px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--board); border: 2px solid var(--rule); transition: border-color .3s, background .3s, box-shadow .3s; }
.station.lit > .wrap > .marker { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 6px rgba(18,181,165,0.15); }
.station > .wrap { position: relative; }
.station .label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 500 13px/1 var(--mono); color: var(--teal); }
.night.station > .wrap > .marker { background: var(--night); border-color: var(--night-3); }
@media (max-width: 1320px) { .line-page::before, .line-page::after, .station > .wrap > .marker { display: none; } }

/* ---------- product frames ---------- */
.screen { border-radius: var(--r); overflow: hidden; background: var(--night-2); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 60px -30px rgba(18,23,43,0.45), 0 0 0 1px rgba(18,23,43,0.08); }
.screen .bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; background: #0E1326; color: #7F88A6; font: 12px var(--mono); }
.screen .bar::before { content: ''; width: 34px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #3A4268 0 8px, transparent 8px 13px, #3A4268 13px 21px, transparent 21px 26px, #3A4268 26px); }
.screen img, .screen video { width: 100%; height: auto; }
.phone { width: min(300px, 100%); border-radius: 36px; padding: 10px; background: #0B0F1F; box-shadow: 0 0 0 1px #2A3150, 0 30px 60px -24px rgba(18,23,43,0.55); }
.phone img, .phone video { border-radius: 28px; width: 100%; height: auto; }
.shot-caption { margin-top: 12px; font-size: 14px; color: var(--steel); }
.night .shot-caption { color: #9DA5C0; }

/* ---------- capability rows ---------- */
.row + .row { margin-top: clamp(44px, 6vw, 80px); }
.row.flip > :first-child { order: 2; }
@media (max-width: 900px) { .row.flip > :first-child { order: 0; } }
.points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.points li { position: relative; padding-left: 26px; }
.points li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--teal); box-shadow: 0 0 0 4px rgba(18,181,165,0.14); }
.points.amber li::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(245,165,36,0.16); }
.points.violet li::before { background: var(--violet); box-shadow: 0 0 0 4px rgba(122,82,244,0.14); }

/* ---------- steps (a real sequence) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--night-3); }
.steps li { list-style: none; counter-increment: step; padding: 24px 20px 0 0; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: -17px; left: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font: 700 15px var(--display); }
.steps h4 { margin-bottom: 8px; color: #fff; }
.steps p { color: #B5BCD3; font-size: 14.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- demo gallery ---------- */
.demos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.demo { grid-column: span 2; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.demo.wide { grid-column: span 3; }
.demo:hover { border-color: var(--violet); color: inherit; transform: translateY(-2px); }
.demo .pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.demo .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.demo .txt { padding: 14px 16px 16px; }
.demo .industry { font-size: 13px; font-weight: 600; color: var(--violet-ink); }
.demo h4 { margin: 4px 0 6px; }
.demo p { font-size: 14px; color: var(--steel); margin: 0; }
@media (max-width: 900px) { .demos { grid-template-columns: 1fr 1fr; } .demo, .demo.wide { grid-column: span 1; } }
@media (max-width: 560px) { .demos { grid-template-columns: 1fr; } }

/* ---------- card mosaic (visual types) ---------- */
.mosaic { columns: 3 280px; column-gap: 18px; }
.mosaic figure { break-inside: avoid; margin: 0 0 18px; border-radius: var(--r); overflow: hidden; background: var(--night-2); border: 1px solid rgba(255,255,255,0.06); }
.mosaic figcaption { padding: 10px 14px 12px; font-size: 14px; color: #B5BCD3; }

/* ---------- facts / spec table ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.facts > div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); }
.facts .k { font: 700 clamp(24px, 2.3vw, 32px)/1 var(--display); color: var(--ink); }
.facts .v { margin-top: 8px; font-size: 15px; color: var(--steel); }
.night .facts, .night .facts > div { border-color: var(--night-3); }
.night .facts .k { color: #fff; }
.night .facts .v { color: #B5BCD3; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* ---------- chapters (capabilities page) ---------- */
.chapters { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 76px; list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--steel); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--violet); font-weight: 600; }
.chapter { padding-bottom: clamp(40px, 5vw, 64px); scroll-margin-top: 80px; }
.chapter + .chapter { border-top: 1px solid var(--rule); padding-top: clamp(40px, 5vw, 64px); }
.chapter h2 { font-size: clamp(24px, 2.6vw, 34px); }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 30px; margin-top: 22px; }
.spec h4 { font-family: var(--body); font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.spec p { font-size: 14.5px; color: var(--steel); margin: 0; }
@media (max-width: 980px) { .chapters { grid-template-columns: 1fr; } .toc { display: none; } }
@media (max-width: 620px) { .spec { grid-template-columns: 1fr; } }

/* ---------- deployment diagram ---------- */
.deploy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.deploy > div { border: 1px solid var(--night-3); border-radius: var(--r); padding: 20px; background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); }
.deploy h4 { color: #fff; margin: 10px 0 8px; }
.deploy p { color: #B5BCD3; font-size: 14.5px; margin: 0; }
.deploy svg { width: 36px; height: 36px; }
@media (max-width: 900px) { .deploy { grid-template-columns: 1fr; } }

/* ---------- licence ---------- */
.licence { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); }
.contact-card { background: var(--night); color: #EEF0F8; border-radius: var(--r); padding: 22px; }
.contact-card a, .night .contact-card a:not(.btn) { color: #fff; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--night-3); font-size: 16px; }
.contact-card a:last-child { border-bottom: 0; }
.contact-card a:hover, .night .contact-card a:not(.btn):hover { color: var(--amber); }
@media (max-width: 900px) { .licence { grid-template-columns: 1fr; } }

/* ---------- roadmap ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.timeline > li { position: relative; padding: 0 0 26px 36px; }
.timeline > li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(18,181,165,0.15); }
.timeline > li.next::before { background: var(--board); border: 2px dashed var(--violet); box-shadow: none; }
.timeline .ver { font: 500 13px var(--mono); color: var(--teal); }
.timeline li.next .ver { color: var(--violet-ink); }
.timeline h3 { margin: 4px 0 10px; }
.timeline ul { margin: 0; padding-left: 18px; color: var(--steel); }
.timeline ul li { margin: 4px 0; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 26px/1 var(--display); color: var(--violet); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--steel); }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(ellipse at 85% 0%, rgba(122,82,244,0.45), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(18,181,165,0.25), transparent 50%), var(--night); color: #fff; }
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; }
.cta-band p { color: #C3C9DD; }
@media (max-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { background: #0D1122; color: #9DA5C0; font-size: 14px; padding: 48px 0 28px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-foot h4 { font-family: var(--body); font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { color: #C9CEE0; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid #1E2542; font-size: 12.5px; }
.site-foot .entira { display: inline-flex; align-items: center; gap: 8px; }
.site-foot .entira img { height: 18px; width: auto; }
@media (max-width: 860px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- page heads (inner pages) ---------- */
.page-head { padding-top: clamp(36px, 5vw, 68px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-head h1 { font-size: clamp(32px, 3.9vw, 54px); max-width: 17ch; }
.page-head .lead { margin-top: 14px; }

/* ---------- misc ---------- */
.quote { font: 600 clamp(22px, 2.4vw, 32px)/1.2 var(--display); max-width: 30ch; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(122,82,244,0.12); color: var(--violet-ink); font-size: 13px; font-weight: 600; }
.night .badge { background: rgba(154,123,255,0.16); color: #C9B8FF; }
.badge.amber { background: rgba(245,165,36,0.16); color: #A26600; }
.night .badge.amber { color: #FFC766; }
.embed-form { width: 100%; height: 620px; border: 0; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.kbd { font: 500 13px var(--mono); padding: 2px 6px; border-radius: 4px; background: rgba(18,23,43,0.06); }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* scroll-in: a quiet rise, only for elements marked .rise (JS adds .in) */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pid .flow, .pid .lamp { animation: none; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .line-page::after { transition: none; }
}

/* ---------- tabs (home showcase) ---------- */
.tablist { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.tablist [role="tab"] { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 10px 14px; font: 600 14.5px var(--body); color: var(--steel); cursor: pointer; }
.tablist [role="tab"]:hover { color: var(--ink); }
.tablist [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--violet); }
.panel[hidden] { display: none; }
.panel h3 { margin-bottom: 4px; }

/* ---------- AI mocks ---------- */
.mock { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px; box-shadow: 0 30px 60px -36px rgba(18,23,43,0.35); font-size: 14.5px; }
.paper .mock { background: var(--board); }
.mock .q { margin-left: auto; max-width: 85%; background: var(--night); color: #EEF0F8; padding: 12px 16px; border-radius: 16px 16px 4px 16px; }
.mock .a { margin-top: 14px; padding: 16px 18px; border-radius: 4px 16px 16px 16px; background: rgba(122,82,244,0.07); border: 1px solid rgba(122,82,244,0.18); }
.mock .a p { margin: 0 0 10px; }
.mock code { display: block; font: 500 13px/1.5 var(--mono); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; margin: 0 0 8px; color: var(--violet-ink); overflow-wrap: anywhere; }
.mock .preview { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px dashed var(--rule); margin-top: 6px; }
.mock .preview b { font: 700 30px var(--display); }
.mock-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mock-actions .btn-ghost { color: var(--violet-ink); }
.ai-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--night-3); border-left: 1px solid var(--night-3); }
.ai-grid > div { padding: 18px; border-right: 1px solid var(--night-3); border-bottom: 1px solid var(--night-3); }
.ai-grid h4 { color: #fff; margin-bottom: 6px; }
.ai-grid p { color: #B5BCD3; font-size: 14px; margin: 0; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ai-grid { grid-template-columns: 1fr; } }
.spec.on-dark h4 { color: #fff; }
.spec.on-dark p { color: #B5BCD3; }
@media (max-width: 900px) { .spec.on-dark { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 620px) { .spec.on-dark { grid-template-columns: 1fr !important; } }

/* ---------- workflow strip ---------- */
.wf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.wf li { position: relative; background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--teal); border-radius: var(--r); padding: 16px 16px 18px; }
.wf li + li::before { content: ''; position: absolute; left: -29px; top: 34px; width: 28px; height: 2px; background: var(--steel-2); }
.wf li + li::after { content: ''; position: absolute; left: -8px; top: 30px; border: 5px solid transparent; border-left-color: var(--steel-2); }
.wf li.if { border-top-color: var(--amber); }
.wf li.ai { border-top-color: var(--violet); }
.wf li.notify { border-top-color: var(--red); }
.wf .k { display: block; font-size: 13px; color: var(--steel); font-weight: 500; }
.wf b { display: block; margin: 4px 0 6px; font-size: 15.5px; line-height: 1.3; }
.wf .s { display: block; font-size: 13px; color: var(--steel); line-height: 1.45; }
@media (max-width: 1000px) {
  .wf { grid-template-columns: 1fr; gap: 22px; max-width: 520px; }
  .wf li + li::before { left: 28px; top: -23px; width: 2px; height: 22px; }
  .wf li + li::after { left: 24px; top: -8px; border-left-color: transparent; border-top-color: var(--steel-2); }
}
.tpl { border-top: 3px solid var(--violet); padding-top: 18px; }
.tpl p { color: var(--steel); font-size: 14.5px; margin-top: 6px; }

/* ---------- industries ---------- */
.sample { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.sample + .sample { margin-top: clamp(48px, 7vw, 88px); }
.sample.flip > .scroller { order: 2; }
.sample { scroll-margin-top: 90px; }
.scroller { --h: 440px; height: var(--h); overflow: hidden; border-radius: var(--r); background: var(--night); box-shadow: 0 0 0 1px rgba(18,23,43,0.1), 0 30px 60px -30px rgba(18,23,43,0.45); position: relative; }
.scroller img { width: 100%; height: auto; transition: transform 7s cubic-bezier(.45,.05,.4,1); }
.scroller:hover img, .scroller:focus img { transform: translateY(calc(-100% + var(--h))); }
.scroller::after { content: 'Hover to scroll the page'; position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(18,23,43,0.82); color: #fff; font-size: 12.5px; pointer-events: none; transition: opacity .3s; }
.scroller:hover::after, .scroller:focus::after { opacity: 0; }
@media (hover: none) { .scroller { overflow-y: auto; -webkit-overflow-scrolling: touch; } .scroller::after { content: 'Scroll inside'; } .scroller img { transition: none; } .scroller:hover img, .scroller:focus img { transform: none; } }
.about .industry { font-weight: 600; color: var(--violet-ink); font-size: 15px; }
.about h2 { margin: 4px 0 2px; font-size: clamp(26px, 2.8vw, 36px); }
.about .who { color: var(--steel); margin-bottom: 18px; }
.kv { display: grid; grid-template-columns: 86px 1fr; gap: 8px 14px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; }
.kv dt { color: var(--steel); }
.kv dd { margin: 0; }
@media (max-width: 900px) { .sample { grid-template-columns: 1fr; } .sample.flip > .scroller { order: 0; } .scroller { --h: 360px; } }
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.uses > div { border-top: 2px solid var(--teal); padding-top: 16px; }
.uses h4 { color: #fff; margin-bottom: 6px; }
.uses p { color: #B5BCD3; font-size: 14.5px; margin: 0; }
@media (max-width: 900px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }

/* ---------- security ---------- */
.arch svg { width: 100%; height: auto; }
.arch .flow { stroke-dasharray: 10 14; animation: flow 1.6s linear infinite; }
.arch .flow.slow { animation-duration: 2.6s; }
.arch .t-tag { font-family: var(--mono); font-size: 11px; fill: var(--teal-2); }
.arch .t-name { font-family: var(--body); font-size: 15px; font-weight: 600; fill: #fff; }
.arch .t-sub { font-family: var(--body); font-size: 12px; fill: #9DA5C0; }
@media (max-width: 700px) { .arch { display: none; } }
@media (prefers-reduced-motion: reduce) { .arch .flow { animation: none; } }
.where > div { border-top: 3px solid var(--night); padding-top: 18px; }
.where p { color: var(--steel); margin-top: 6px; font-size: 14.5px; }

/* ---------- contact ---------- */
.next-steps { list-style: none; counter-reset: n; padding: 0; margin: 24px 0 0; }
.next-steps li { counter-increment: n; position: relative; padding: 0 0 22px 52px; }
.next-steps li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: #fff; font: 700 16px var(--display); }
.next-steps li:not(:last-child)::after { content: ''; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: var(--rule); }
.next-steps p { color: var(--steel); margin: 4px 0 0; font-size: 14.5px; }

/* ---------- split heroes (v2: compact) ---------- */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-split.home { align-items: end; }
.hero-visual { display: grid; gap: 14px; max-width: 460px; width: 100%; justify-self: end; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } .hero-visual { justify-self: stretch; max-width: none; } }

/* price on request */
.price-card { position: relative; border: 1px solid rgba(245,165,36,0.35); border-radius: var(--r); padding: 16px 18px; background: linear-gradient(135deg, rgba(245,165,36,0.10), rgba(122,82,244,0.08) 60%, transparent); color: #EEF0F8; overflow: hidden; }
.price-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.07) 45%, transparent 60%); transform: translateX(-100%); animation: sheen 5s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.price-top { display: flex; align-items: center; justify-content: space-between; }
.price-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(245,165,36,0.6); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(245,165,36,0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(245,165,36,0); } }
.price-card h3 { margin: 10px 0 4px; color: #fff; font-size: clamp(20px, 1.8vw, 24px); }
.price-card p { margin: 0; font-size: 14px; color: #C3C9DD; }
.price-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.price-mail { display: inline-block; margin-top: 10px; font-size: 13.5px; color: #C9B8FF !important; }
.paper .price-card, .licence .price-card { color: var(--ink); }

/* trial card (home) */
.trial-card { border: 1px solid var(--night-3); border-radius: var(--r); padding: 16px 18px; background: var(--night-2); }
.trial-card h3 { color: #fff; font-size: clamp(18px, 1.6vw, 22px); }
.trial-card ul { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 6px; font-size: 14px; color: #C3C9DD; }
.trial-card b { display: inline-block; min-width: 26px; color: var(--teal-2); font: 700 18px var(--display); }

/* mini board animation */
.mini-board { border-radius: var(--r); background: #0E1326; border: 1px solid var(--night-3); padding: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); font-size: 12px; color: #C3C9DD; }
.mb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mb-head b { color: #fff; font-weight: 600; font-size: 13px; }
.mb-time { margin-left: auto; color: #8A93A8; }
.mb-live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: lamp 1.6s ease-in-out infinite; }
.mb-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mb-kpis > div { background: var(--night-2); border-radius: 8px; padding: 8px 9px 4px; }
.mb-kpis span { display: block; color: #8A93A8; font-size: 11px; }
.mb-kpis b { display: block; color: #fff; font: 700 19px/1.15 var(--display); }
.mb-kpis b i { font-style: normal; }
.mb-kpis svg { width: 100%; height: 18px; margin-top: 2px; }
.spark { fill: none; stroke: var(--teal-2); stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 2.2s ease-out .3s forwards; }
.spark.s2 { stroke: var(--violet-2); animation-delay: .5s; }
.spark.s3 { stroke: var(--amber); animation-delay: .7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mb-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; margin-top: 8px; }
.mb-bars { display: flex; align-items: flex-end; gap: 5px; height: 92px; background: var(--night-2); border-radius: 8px; padding: 8px; }
.mb-bars span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(var(--violet-2), var(--violet)); transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.7,.2,1) both, breathe 3.2s ease-in-out 1.2s infinite; }
.mb-bars span:nth-child(3n) { background: linear-gradient(var(--teal-2), var(--teal)); }
.mb-bars span:nth-child(2) { animation-delay: .08s, 1.5s; } .mb-bars span:nth-child(3) { animation-delay: .16s, 1.9s; } .mb-bars span:nth-child(4) { animation-delay: .24s, 1.3s; } .mb-bars span:nth-child(5) { animation-delay: .32s, 2.2s; } .mb-bars span:nth-child(6) { animation-delay: .4s, 1.7s; } .mb-bars span:nth-child(7) { animation-delay: .48s, 2.5s; } .mb-bars span:nth-child(8) { animation-delay: .56s, 1.4s; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.86); } }
.mb-lights { list-style: none; margin: 0; padding: 8px; background: var(--night-2); border-radius: 8px; display: grid; gap: 5px; align-content: center; }
.mb-lights li { display: flex; align-items: center; gap: 7px; }
.mb-lights b { margin-left: auto; color: #fff; font-weight: 600; }
.mb-lights i { width: 8px; height: 8px; border-radius: 50%; }
.mb-lights .ok { background: var(--teal); } .mb-lights .warn { background: var(--amber); animation: lamp 2s ease-in-out infinite; } .mb-lights .bad { background: var(--red); animation: lamp 1.2s ease-in-out infinite; }
.mb-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 9px; border-radius: 8px; background: rgba(122,82,244,0.12); border: 1px solid rgba(154,123,255,0.25); }
.mb-note p { margin: 0; font-size: 12px; line-height: 1.45; color: #DCE0EE; clip-path: inset(0 100% 0 0); animation: wipe 2.4s ease-out 1.4s forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.mb-ai { flex-shrink: 0; font: 700 10px/1 var(--mono); padding: 4px 5px; border-radius: 4px; background: var(--violet); color: #fff; }

/* access flow (security) */
.access { border-radius: var(--r); background: #0E1326; border: 1px solid var(--night-3); padding: 14px; font-size: 13px; color: #C3C9DD; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.ac-step { display: flex; align-items: center; gap: 10px; background: var(--night-2); border-radius: 8px; padding: 9px 10px; opacity: 0; animation: rise-in .5s ease-out forwards; }
.ac-step:nth-of-type(3) { animation-delay: .7s; }
.ac-step b { display: block; color: #fff; font-weight: 600; font-size: 13px; }
.ac-step small { color: #8A93A8; font-size: 11.5px; }
.ac-ico { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; background: conic-gradient(#F25022 0 25%, #7FBA00 0 50%, #00A4EF 0 75%, #FFB900 0); }
.ac-ico.role { background: var(--violet); }
.ac-ok { margin-left: auto; font-size: 11px; color: var(--teal-2); }
.ac-line { width: 2px; height: 12px; margin-left: 22px; background: linear-gradient(var(--teal), var(--violet)); }
.ac-rows { display: grid; gap: 4px; background: var(--night-2); border-radius: 8px; padding: 8px; }
.ac-row { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 5px; opacity: 0; animation: rise-in .4s ease-out forwards; }
.ac-row:nth-child(1) { animation-delay: 1.3s; } .ac-row:nth-child(2) { animation-delay: 1.45s; } .ac-row:nth-child(3) { animation-delay: 1.6s; } .ac-row:nth-child(4) { animation-delay: 1.75s; }
.ac-row.in { background: rgba(18,181,165,0.12); color: #fff; }
.ac-row.out { color: #5B6478; text-decoration: line-through; text-decoration-color: rgba(229,72,77,0.6); }
.ac-audit { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: #8A93A8; }
.ac-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: ping 2.2s ease-out infinite; }
@keyframes rise-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* fan of demo apps (industries) */
.fan { position: relative; aspect-ratio: 16 / 10.5; }
.fan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: var(--r); border: 1px solid var(--night-3); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.7); opacity: 0; animation: deal 15s ease-in-out infinite; }
.fan img:nth-child(2) { animation-delay: 3s; } .fan img:nth-child(3) { animation-delay: 6s; } .fan img:nth-child(4) { animation-delay: 9s; } .fan img:nth-child(5) { animation-delay: 12s; }
@keyframes deal { 0% { opacity: 0; transform: scale(1.03); } 4%, 20% { opacity: 1; transform: none; } 24%, 100% { opacity: 0; transform: scale(.97); } }

.compact-facts { margin-top: 22px; }
.compact-facts > div { padding: 12px 14px 12px 0; }

@media (prefers-reduced-motion: reduce) {
  .price-card::after, .price-dot, .mb-live, .mb-lights i, .ac-pulse { animation: none; }
  .spark { animation: none; stroke-dashoffset: 0; }
  .mb-bars span { animation: none; }
  .mb-note p { animation: none; clip-path: none; }
  .ac-step, .ac-row { animation: none; opacity: 1; }
  .fan img { animation: none; } .fan img:first-child { opacity: 1; }
}
