/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center;
  background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s; }
.header.scrolled { border-color: var(--border); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { position: relative; font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); transition: color .2s; padding-block: .3rem; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; transition: border-color .2s, transform .3s var(--ease); }
.icon-btn:hover { border-color: var(--red); transform: rotate(20deg); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .icon-sun, [data-theme="dark"] .icon-moon { display: none; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-120%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav a::after { display: none; }
  .header-actions .btn { display: none; }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 6vw, 6rem); }
.hero-mark { position: absolute; right: -10%; top: -22%; width: min(560px, 55vw); opacity: .06; pointer-events: none; animation: spin 90s linear infinite; }
[data-theme="dark"] .hero-mark { opacity: .12; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: var(--fs-h1); margin: 1.3rem 0 1.5rem; letter-spacing: -.035em; line-height: 1.02; }
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: block; transform: translateY(112%); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * .13s + .15s); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 33rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-top: 2.2rem; }
.hero-facts { display: flex; gap: 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-facts div { font-size: var(--fs-sm); color: var(--text-muted); }
.hero-facts b { display: block; font-family: var(--mono); font-weight: 500; font-size: 1.15rem; color: var(--text); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Product window */
.stagewrap { position: relative; }
.win { border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); border-radius: 12px; overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: .65rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); font-family: var(--mono); font-size: .66rem; color: var(--text-muted); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.win-bar i:first-child { background: var(--red); }
.win-bar span { margin-left: .6rem; }
.win-live { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; display: inline-block; }
.win-body { display: grid; grid-template-columns: 138px 1fr; font-size: .72rem; }
.win-side { background: #0B0B0B; color: #c9cbd1; padding: 1rem .6rem; }
.win-side li { padding: .45rem .6rem; border-radius: 6px; margin-bottom: .1rem; }
.win-side li.on { background: var(--red); color: #fff; font-weight: 600; }
.win-main { padding: 1rem; background: var(--bg-alt); min-width: 0; }
.win-main h4 { font-size: .85rem; margin-bottom: .7rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .55rem .6rem; }
.kpi .kl { color: var(--text-muted); display: block; font-size: .62rem; }
.kpi b { font-size: .95rem; font-weight: 800; display: block; white-space: nowrap; font-variant-numeric: tabular-nums; margin: .1rem 0; }
.kpi b .kv { font: inherit; color: inherit; }
.kpi .kt { font-style: normal; color: #16a34a; font-size: .62rem; }
.kpi .kt.warn { color: var(--red); }
.win-side li { transition: background .3s, color .3s; }
#hTitle, #hChartTitle { transition: opacity .25s; }
.swap { opacity: 0; }
.win-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: .5rem; margin-top: .5rem; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .65rem; min-width: 0; }
.box > b { font-size: .72rem; }
.hero-chart { width: 100%; height: 96px; margin-top: .4rem; display: block; }
.hero-chart .ln { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s .9s var(--ease) forwards; }
.hero-chart .ar { opacity: 0; animation: fadein 1s 2.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.feed { margin-top: .4rem; display: grid; gap: .3rem; overflow: hidden; height: 128px; align-content: start; }
.feed li { background: var(--surface-2); border-radius: 6px; padding: .4rem .5rem; color: var(--text-muted); animation: slidein .5s var(--ease); display: flex; gap: .4rem; line-height: 1.3; }
.feed li b { color: var(--text); font-weight: 600; flex: none; }
.feed li.warn b { color: var(--red); }
.ai-bar { margin-top: .5rem; display: flex; gap: .6rem; align-items: center; background: #0B0B0B; color: #fff; border-radius: 8px; padding: .65rem .8rem; }
.ai-bar .spark { color: var(--red); font-size: 1rem; }
.ai-bar p { font-family: var(--mono); font-size: .68rem; min-height: 1.1em; }
.caret { display: inline-block; width: 6px; height: .9em; background: var(--red); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float { position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); padding: .7rem .95rem; font-size: .74rem; display: flex; gap: .6rem; align-items: center; animation: bob 6s ease-in-out infinite; transform: translate(var(--mx, 0), var(--my, 0)); transition: transform .4s var(--ease); }
.float b { display: block; font-size: .76rem; }
.float span { color: var(--text-muted); }
.float--a { left: -2.2rem; bottom: 4.5rem; }
.float--b { right: -1rem; top: -1.4rem; animation-delay: -3s; }
@media (max-width: 960px) { .float--a { left: .5rem; bottom: -1.5rem; } .float--b { right: .5rem; top: -1.6rem; } }
@media (max-width: 560px) { .win-body { grid-template-columns: 1fr; } .win-side { display: none; } .kpis { grid-template-columns: repeat(2, 1fr); } .win-row { grid-template-columns: 1fr; } .float { display: none; } }

/* ===== Marquee ===== */
.marquee { border-block: 1px solid var(--border); overflow: hidden; background: var(--bg-alt); padding-block: 1.1rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font-family: var(--mono); font-size: var(--fs-sm); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }

/* ===== Section heads ===== */
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.split-head h2 { font-size: var(--fs-h2); margin-top: .9rem; letter-spacing: -.035em; }
.split-head p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 30rem; }
.split-head > div:only-child { grid-column: 1 / -1; }
@media (max-width: 800px) { .split-head { grid-template-columns: 1fr; gap: 1rem; } }

/* ===== Scroll story ===== */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.st { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; }
.st.on { opacity: 1; }
.st .n { font-family: var(--mono); font-size: .8rem; color: var(--red); letter-spacing: .14em; }
.st h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); margin: .8rem 0 1rem; letter-spacing: -.035em; }
.st p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 28rem; }
.st ul { margin-top: 1.2rem; display: grid; gap: .5rem; font-size: var(--fs-sm); color: var(--text-muted); }
.st li { padding-left: 1.4rem; position: relative; }
.st li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 2px; background: var(--red); }
.stage { position: sticky; top: calc(var(--header-h) + 1.5rem); height: min(540px, calc(100vh - var(--header-h) - 3rem)); }
.stage .win { height: 100%; display: flex; flex-direction: column; }
.pane-wrap { position: relative; flex: 1; background: var(--bg-alt); }
.pane { position: absolute; inset: 0; padding: 1.4rem; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s, transform .6s var(--ease); pointer-events: none; display: flex; flex-direction: column; justify-content: center; }
.pane.on { opacity: 1; transform: none; }
.pane h5 { font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 1rem; }
.stage-dots { display: flex; gap: .4rem; margin-left: auto; }
.stage-dots i { width: 18px; height: 3px; background: var(--border); transition: background .3s, width .3s; }
.stage-dots i.on { background: var(--red); width: 30px; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .stage { order: -1; top: calc(var(--header-h) + .5rem); height: 300px; z-index: 5; }
  .st { min-height: 62vh; }
}

/* pane 1: network */
.net { width: 100%; height: 100%; }
.net .node rect { fill: var(--surface); stroke: var(--border); }
.net .node text { fill: var(--text); font-size: 11px; font-weight: 600; text-anchor: middle; }
.net .link { stroke: var(--red); stroke-width: 1.6; stroke-dasharray: 4 6; animation: flow 1s linear infinite; opacity: .8; }
.net .core-ring { fill: none; stroke: var(--red); opacity: .35; transform-origin: 200px 150px; animation: ringpulse 2.4s ease-out infinite; }
@keyframes ringpulse { from { transform: scale(.7); opacity: .6; } to { transform: scale(1.5); opacity: 0; } }

/* pane 2: bars */
.bar { display: grid; grid-template-columns: 96px 1fr 54px; gap: .8rem; align-items: center; font-size: .78rem; margin-bottom: .9rem; }
.bar > div { height: 10px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--text); border-radius: 6px; transition: width 1.2s var(--ease) calc(var(--k) * .12s + .2s); }
.pane.on .bar i { width: var(--w); }
.bar b { text-align: right; font-family: var(--mono); font-weight: 500; font-size: .72rem; }
.bar.crit i { background: var(--red); }
.bar.crit b { color: var(--red); }
.toast { margin-top: .6rem; background: #0B0B0B; color: #fff; padding: .8rem 1rem; display: flex; gap: .7rem; align-items: center; font-size: .78rem; opacity: 0; transform: translateY(12px); transition: opacity .5s 1.6s, transform .6s var(--ease) 1.6s; border-left: 3px solid var(--red); }
.pane.on .toast { opacity: 1; transform: none; }

/* pane 3: forecast */
.fc-read { display: flex; justify-content: space-between; align-items: flex-end; margin: -.2rem 0 .4rem; }
.fc-k { font-family: var(--mono); font-size: .68rem; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; }
.fc-v { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; margin: 0 .4rem; font-variant-numeric: tabular-nums; }
.fc-read .badge { background: var(--surface-2); transition: background .3s, color .3s; }
.fc-read .badge.fcst { background: var(--red); color: #fff; }
.fc { width: 100%; height: auto; display: block; overflow: visible; }
.fc .grid-l { stroke: var(--border); stroke-width: 1; }
.fc .grid-l.zero { stroke: var(--text-muted); opacity: .5; }
.fc text { fill: var(--text-muted); font-size: 10px; font-family: var(--mono); }
.fc .area { fill: url(#fcg); }
.fc .real { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.fc .pred { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 7 6; stroke-linecap: round; }
.fc .band { fill: var(--red); opacity: .13; }
.fc .pt { fill: var(--surface); stroke: var(--text); stroke-width: 1.8; }
.fc .now-l { stroke: var(--text-muted); stroke-dasharray: 3 4; }
.fc .now-t { fill: var(--text); font-weight: 500; }
.fc .scan { stroke: var(--red); stroke-width: 1.5; }
.fc .scan-dot { fill: var(--red); }
.fc .callout { opacity: 0; transition: opacity .5s; }
.fc .callout.show { opacity: 1; }
.fc .end-pulse { fill: var(--red); transform-box: fill-box; transform-origin: center; animation: endpulse 1.6s ease-out infinite; }
@keyframes endpulse { from { transform: scale(1); opacity: .5; } to { transform: scale(3.2); opacity: 0; } }

/* pane 4: approval */
.appr { background: var(--surface); border: 1px solid var(--border); padding: 1.2rem; position: relative; }
.appr .badge { background: var(--red-soft); color: var(--red); }
.appr h6 { margin: .8rem 0 .5rem; font-size: 1rem; letter-spacing: -.01em; }
.appr blockquote { margin: 0 0 1rem; padding-left: .9rem; border-left: 3px solid var(--red); color: var(--text-muted); font-size: .82rem; }
.appr-btn { position: relative; display: inline-block; background: var(--text); color: var(--bg); font-weight: 600; font-size: .8rem; padding: .65rem 1.3rem; overflow: hidden; }
.appr-btn .ok { position: absolute; inset: 0; display: grid; place-items: center; background: #16a34a; color: #fff; opacity: 0; }
.pane.on .appr-btn { animation: press .3s 2.6s; }
.pane.on .appr-btn .ok { animation: fadein .3s 2.7s forwards; }
@keyframes press { 50% { transform: scale(.94); } }
.cursor { position: absolute; width: 22px; left: 8%; top: 85%; opacity: 0; fill: var(--text); stroke: var(--bg); }
.pane.on .cursor { animation: cursormove 2.6s .3s var(--ease) forwards; }
@keyframes cursormove { 0% { opacity: 0; transform: translate(0, 40px); } 15% { opacity: 1; } 100% { opacity: 1; transform: translate(96px, -52px); } }
.appr-log { margin-top: 1rem; font-family: var(--mono); font-size: .68rem; color: var(--text-muted); opacity: 0; }
.pane.on .appr-log { animation: fadein .5s 3s forwards; }

/* ===== Numbers band ===== */
.band { background: #0B0B0B; color: #fff; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; right: -6%; bottom: -55%; width: 640px; height: 640px; background: url("../assets/logo/o-red.svg") no-repeat center / contain; opacity: .12; }
.band-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem; }
.band-item { border-left: 2px solid var(--red); padding: 1.4rem 1.3rem; transition: background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.band-item b { display: block; font-size: clamp(2.6rem, 2rem + 3vw, 4.6rem); letter-spacing: -.04em; line-height: 1; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; transition: color .3s; }
.band-item b .count { font-size: inherit; font-weight: inherit; color: inherit; margin: 0; display: inline; max-width: none; }
.band-item > span { display: block; margin-top: .6rem; color: #a3a8b3; font-size: var(--fs-sm); max-width: 14rem; transition: color .3s; }
.band-item:hover { background: var(--red); transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--red), 0 0 38px 8px rgba(230, 0, 40, .55), 0 20px 44px -12px rgba(230, 0, 40, .65); }
.band-item:hover b, .band-item:hover > span { color: #fff; }

/* ===== Roles ===== */
.role-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.role-panel h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: .8rem; letter-spacing: -.03em; }
.role-panel p { color: var(--text-muted); max-width: 30rem; }
.role-panel ul { margin-top: 1.2rem; display: grid; gap: .5rem; font-size: var(--fs-sm); }
.role-panel li { padding-left: 1.4rem; position: relative; }
.role-panel li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 2px; background: var(--red); }
.role-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.metric { background: var(--surface); padding: 1.5rem 1.4rem; position: relative; overflow: hidden; transition: background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.metric b { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 800; color: var(--red); display: block; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; transition: color .3s; }
.metric b .count { font-size: inherit; font-weight: inherit; color: inherit; }
.metric > span { display: block; margin-top: .35rem; font-size: var(--fs-sm); color: var(--text-muted); transition: color .3s; }
.metric:hover { background: var(--red); transform: translateY(-3px); z-index: 1;
  box-shadow: 0 0 0 1px var(--red), 0 0 34px 6px rgba(230, 0, 40, .5), 0 18px 40px -12px rgba(230, 0, 40, .6); }
.metric:hover b, .metric:hover > span { color: #fff; }
@media (max-width: 800px) { .role-panel { grid-template-columns: 1fr; gap: 1.5rem; } }
.note { margin-top: 1.4rem; font-size: var(--fs-xs); color: var(--text-muted); font-family: var(--mono); }

/* ===== Simulator ===== */
.sim { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 860px) { .sim { grid-template-columns: 1fr; } }
.sim-intro h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: .9rem 0 .8rem; letter-spacing: -.03em; }
.sim-intro p { color: var(--text-muted); }
.sim-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.6rem; flex-wrap: wrap; }
.sim-panel { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 1.6rem; }
.sim-tag { font-family: var(--mono); font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .12em; display: flex; justify-content: space-between; }
.progress { height: 4px; background: var(--surface-2); overflow: hidden; margin: 1rem 0 .6rem; }
.progress i { display: block; height: 100%; width: 0; background: var(--red); transition: width .6s var(--ease); }
.steps li { display: flex; justify-content: space-between; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.steps li span { color: var(--text-muted); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.steps li.done span { color: #16a34a; }
.steps li.active span { color: var(--red); }
.steps li.active div { font-weight: 700; }
.draft { margin-top: 1.1rem; padding: 1.1rem; background: var(--bg-alt); border-left: 3px solid var(--red); font-size: var(--fs-sm); color: var(--text-muted); animation: slidein .5s var(--ease); }
.draft[hidden] { display: none; }
.draft .badge { margin-bottom: .6rem; background: var(--red-soft); color: var(--red); }
.draft blockquote { margin: .6rem 0 0; }
.draft .sim-actions { margin-top: 1rem; }
.sim-status { margin-top: .8rem; font-weight: 600; font-size: var(--fs-sm); min-height: 1.4em; }

/* ===== Alerts ===== */
.alert-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: .5rem; }
.alert-top small { font-family: var(--mono); font-size: .66rem; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; }
.alert h3 { margin: 0 0 1rem; }
.alert dl { margin: 0; display: grid; gap: .7rem; font-size: var(--fs-sm); }
.alert dt { font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--red); font-weight: 500; }
.alert dd { margin: 0; color: var(--text-muted); }
.badge .dot { width: 6px; height: 6px; background: #fff; animation-duration: 1.4s; }
.alert-more { margin-top: 1.5rem; }
.channels { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.channels h4 { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1rem; font-weight: 600; }

/* ===== Timeline ===== */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: 2.4rem; }
.timeline::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--border); }
.timeline::after { content: ""; position: absolute; top: 7px; left: 0; height: 2px; width: calc(var(--pos, 0px) + 8px); background: var(--red); transition: width 1.1s var(--ease); }
.tl-marker { position: absolute; z-index: 2; top: -6px; left: calc(var(--pos, 0px) - 6px); width: 28px; height: 28px; background: var(--red); transform: rotate(45deg); transition: left 1.1s var(--ease); box-shadow: 0 0 22px 4px rgba(230, 0, 40, .55); }
.tl-marker::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--red); animation: ringout 1.8s ease-out infinite; }
@keyframes ringout { from { transform: scale(1); opacity: .8; } to { transform: scale(2.2); opacity: 0; } }
.step { position: relative; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; opacity: .45; transition: opacity .4s; }
.step.on, .step.done { opacity: 1; }
.step:hover { opacity: 1; }
.step::before { content: ""; position: absolute; top: -2.4rem; left: 0; width: 16px; height: 16px; background: var(--bg); border: 2px solid var(--border); transform: rotate(45deg); transition: background .4s, border-color .4s; }
.step.on::before, .step.done::before { background: var(--red); border-color: var(--red); }
.step small { font-family: var(--mono); color: var(--red); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; }
.step h3 { margin: .6rem 0 .5rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -.03em; }
.step p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 20rem; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 1.2rem; padding-top: 0; }
  .timeline::before, .timeline::after, .tl-marker, .step::before { display: none; }
  .step { padding-left: 1.2rem; border-left: 3px solid var(--border); }
  .step.on { border-left-color: var(--red); }
}

/* ===== Video slot ===== */
.video-slot {
  position: relative;
  aspect-ratio: 16/9;
  background: #0B0B0B;
  display: block;
  overflow: hidden;
  text-align: center;
  color: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.35);
}
.video-slot video, .video-slot iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  object-fit: cover;
  background: #000;
}

/* ===== CTA ===== */
.cta { background: #0B0B0B; color: #fff; padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem); position: relative; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 48px 100%, 0 calc(100% - 48px)); }
.cta::before { content: ""; position: absolute; right: -4%; top: 50%; width: 520px; height: 520px; translate: 0 -50%; background: url("../assets/logo/o-red.svg") no-repeat center / contain; opacity: .9; animation: spin 80s linear infinite; }
.cta > * { position: relative; }
.cta h2 { font-size: var(--fs-h2); max-width: 640px; margin: 1rem 0; letter-spacing: -.035em; }
.cta p { color: #b9bcc4; max-width: 460px; margin-bottom: 2rem; }
.cta .hero-cta { margin: 0; }
.cta .btn--secondary { color: #fff; border-color: #fff; }
.cta .btn--primary:hover { background: #fff; color: #0B0B0B; }
@media (max-width: 800px) { .cta::before { opacity: .18; right: -30%; } }

/* ===== Footer (content placeholders – fill later) ===== */
.footer { position: relative; background: var(--footer-bg); border-top: 1px solid var(--border); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; min-height: 190px; padding-block: 2.2rem 0; }
.footer-col { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 2; font-family: var(--mono); }
.footer-col--right { text-align: right; }
.footer-col .accent { color: var(--red); }
.footer-link { transition: color .2s; }
.footer-link:hover { color: var(--red); }
.footer-logo { align-self: end; justify-self: center; height: 110px; overflow: hidden; }
.footer-logo img { width: clamp(220px, 34vw, 420px); height: auto; transform: translateY(18%); }
.footer-strip { position: absolute; right: 0; top: 28%; width: 10px; height: 52%; background: var(--red); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 1.2rem; }
  .footer-col--right { text-align: center; }
  .footer-logo { order: 3; height: 100px; }
  .footer-strip { display: none; }
}

/* ===== Integrations: tools orbit a dotted globe (theme-aware) ===== */
.orbit-sec { padding-bottom: 0; padding-top: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.orbit-stage { --bs: clamp(32px, 4.2vw, 46px); position: relative; width: min(100% - 2.5rem, 860px); margin-inline: auto; aspect-ratio: 1.8 / 1; overflow: hidden; }
.orbit-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 58% 72% at 50% 100%, rgba(230, 0, 40, .17), transparent 70%); }
#globe { position: absolute; left: 50%; bottom: 0; translate: -50% 0; }
.orbit { position: absolute; left: 50%; top: 100%; width: var(--d); aspect-ratio: 1; translate: -50% -50%;
  border: 1px solid var(--border); border-radius: 50%; animation: orbit var(--dur) linear infinite; }
.arm { position: absolute; inset: 0; rotate: var(--a); }
.ico { position: absolute; left: 50%; top: 0; translate: -50% -50%; width: var(--bs); height: var(--bs);
  rotate: calc(var(--a) * -1); animation: unspin var(--dur) linear infinite; }
.bdg { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.bdg img { display: block; width: 100%; height: 100%; border-radius: 50%; }
/* dark theme keeps the original logo colours: white discs with the true ORBIX red */
[data-theme="dark"] .bdg { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 26px -8px rgba(0,0,0,.8); }
.ico:hover .bdg { transform: scale(1.12); }
.ico em { position: absolute; top: 100%; left: 50%; translate: -50% 0; margin-top: .4rem; white-space: nowrap;
  font-family: var(--mono); font-style: normal; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.core { position: absolute; left: 50%; bottom: 0; translate: -50% 50%; width: clamp(60px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background: #0B0B0B; display: grid; place-items: start center; padding-top: clamp(8px, 1.3vw, 15px); box-shadow: 0 0 0 8px var(--red-soft), 0 0 60px 10px rgba(230, 0, 40, .35); }
.core img { width: 38%; height: auto; }
@keyframes orbit { to { rotate: calc(360deg * var(--dir, 1)); } }
@keyframes unspin { from { rotate: calc(var(--a) * -1); } to { rotate: calc(var(--a) * -1 - 360deg * var(--dir, 1)); } }
@media (max-width: 700px) { .orbit-stage { aspect-ratio: 1.25 / 1; } .ico em { display: none; } }.orbit-stage.paused .orbit, .orbit-stage.paused .ico { animation-play-state: paused; }

/* ===== Demo request dialog ===== */
body.dlg-open { overflow: hidden; }
.demo-dlg { border: 0; padding: 0; width: min(580px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto;
  background: var(--surface); color: var(--text);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px)); }
.demo-dlg::backdrop { background: rgba(11, 11, 11, .62); backdrop-filter: blur(5px); }
.demo-dlg[open] { animation: dlgin .4s var(--ease); }
.demo-dlg[open]::backdrop { animation: fadein .3s forwards; }
@keyframes dlgin { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.demo-dlg form { position: relative; padding: clamp(1.6rem, 4vw, 2.4rem); }
.demo-dlg h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); letter-spacing: -.03em; margin: .7rem 0 .5rem; }
.dlg-sub { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 1.4rem; }
.dlg-x { position: absolute; top: .9rem; right: 1.6rem; width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 1px solid var(--border);
  border-radius: 50%; font-size: 1.4rem; line-height: 1; color: var(--text); transition: border-color .2s, color .2s, transform .3s var(--ease); }
.dlg-x:hover { border-color: var(--red); color: var(--red); transform: rotate(90deg); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-grid label { display: grid; gap: .4rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.f-grid .full { grid-column: 1 / -1; }
.f-grid input, .f-grid select, .f-grid textarea { width: 100%; font: inherit; font-family: var(--font); font-size: var(--fs-sm); letter-spacing: 0; text-transform: none; color: var(--text);
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 0; padding: .75rem .9rem; transition: border-color .2s, background .2s; }
.f-grid textarea { resize: vertical; min-height: 84px; }
.f-grid input:focus, .f-grid select:focus, .f-grid textarea:focus { outline: none; border-color: var(--red); background: var(--surface); }
.f-grid input.bad, .f-grid select.bad { border-color: var(--red); }
.dlg-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; min-height: 52px; }
.dlg-hint { font-family: var(--mono); font-size: .68rem; color: var(--text-muted); letter-spacing: .04em; }
#demoSend:not([hidden]) { animation: slidein .45s var(--ease); margin-left: auto; }
.demo-dlg.ready .dlg-hint { display: none; }
@media (max-width: 560px) { .f-grid { grid-template-columns: 1fr; } #demoSend { width: 100%; } .dlg-x { right: 1.2rem; } }


/* ===== Connect & Work Through Teams, WhatsApp & Slack ===== */
.chat-ops-sec {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}
.chat-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 960px) {
  .chat-ops-grid {
    grid-template-columns: 1fr;
  }
}
.chat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.chat-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}
.chat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.chat-app-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text);
}
.chat-app-tag img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex: none;
}
.chat-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 0.25rem 0.55rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
}
.chat-bubble-stream {
  margin-block: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 210px;
  justify-content: center;
}
.chat-bubble {
  max-width: 92%;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  font-size: var(--fs-xs);
  line-height: 1.45;
}
.chat-bubble--in {
  align-self: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
}
.chat-bubble--out {
  align-self: flex-end;
  background: #128C7E;
  color: #fff;
  border-radius: 12px 12px 2px 12px;
  font-weight: 600;
}
.chat-sender {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.chat-action-pills {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.chat-pill {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

/* Teams Adaptive Card */
.teams-adaptive-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  border-left: 4px solid #5059C9;
}
.teams-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.teams-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5059C9;
}
.teams-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.68rem;
  padding: 0.5rem;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 0.7rem;
}
.teams-meta-grid small {
  display: block;
  color: var(--text-muted);
  font-size: 0.6rem;
}
.teams-meta-grid span {
  font-weight: 600;
  font-family: var(--mono);
}
.teams-btn-row {
  display: flex;
  gap: 0.4rem;
}
.t-btn {
  flex: 1;
  padding: 0.35rem 0.5rem;
  font-size: 0.68rem;
  font-family: var(--font);
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
}
.t-btn--primary {
  background: #5059C9;
  color: #fff;
}
.t-btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

/* Slack Message Block */
.slack-msg-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
}
.slack-msg-author {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-xs);
  margin-bottom: 0.5rem;
}
.slack-msg-author b {
  color: var(--text);
}
.slack-msg-author small {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.64rem;
}
.slack-quote-box {
  border-left: 3px solid #E01E5A;
  padding-left: 0.75rem;
  font-size: 0.72rem;
  line-height: 1.4;
}
.slack-tag {
  display: inline-block;
  margin-top: 0.45rem;
  background: rgba(54, 197, 240, 0.15);
  color: #037aa6;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.chat-card-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.chat-card-foot b {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text);
  margin-bottom: 0.25rem;
}
.chat-card-foot p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}


/* ===== Walkthrough Video Stages & Actions ===== */
.video-stages-bar {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
}
.video-stages-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.video-stages-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
}
.video-stages-scroll::-webkit-scrollbar {
  display: none;
}
.stage-cut-btn {
  padding: 0.4rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  user-select: none;
}
.stage-cut-btn span {
  opacity: 0.8;
  font-weight: 600;
}
.stage-cut-btn:hover {
  border-color: var(--red);
  color: var(--text);
  background: var(--surface);
  transform: translateY(-1px);
}
.stage-cut-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(230, 0, 40, 0.3);
}
.stage-cut-btn.active span {
  opacity: 1;
  color: #fff;
}
.video-actions-bar {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .video-stages-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
  }
  .video-actions-bar {
    flex-direction: column;
    width: 100%;
  }
  .video-actions-bar .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ===== Landing improvements (Brevo checklist) ===== */
/* Reassurance line under CTAs */
.cta-note { margin-top: 1rem; font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-muted); letter-spacing: .02em; }
.cta-note--dark { color: #9ea2ab; margin-top: 1.4rem; }

/* Hero "watch the tour" link */
.watch-link { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.1rem; font-size: var(--fs-sm); font-weight: 600; color: var(--text); text-decoration: none; }
.watch-link .watch-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red-soft); color: var(--red); transition: transform .25s var(--ease), background .25s; }
.watch-link .watch-ico svg { margin-left: 2px; }
.watch-link:hover { color: var(--red); }
.watch-link:hover .watch-ico { background: var(--red); color: #fff; transform: scale(1.08); }

/* FAQ accordion */
.faq { display: grid; gap: .75rem; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 1.25rem; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--red); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 600; font-size: var(--fs-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 700; font-size: 1.1rem; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }
.faq details p { margin: 0 0 1.2rem; color: var(--text-muted); line-height: 1.6; max-width: 70ch; }

/* Consent line in demo form */
.dlg-consent { margin: 1rem 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--text-muted); }
.dlg-consent a { color: var(--text); }

/* Mobile sticky CTA bar */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: .6rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); transform: translateY(110%); transition: transform .35s var(--ease); }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { flex: 1; justify-content: center; text-align: center; }
  body.has-sticky .footer { padding-bottom: 5rem; }
}

/* Success toast after demo form */
.orbix-toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 200; max-width: min(460px, calc(100% - 2rem)); padding: .9rem 1.2rem; border-radius: var(--r-md); background: #0B0B0B; color: #fff; font-size: var(--fs-sm); box-shadow: 0 16px 40px rgba(0,0,0,.3); border-left: 4px solid var(--red); transform: translate(-50%, 140%); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.orbix-toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 760px) { .orbix-toast { bottom: 5.5rem; } }
