/* =========================================================
   WorkTray — global styles
   ========================================================= */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg: #12112a;
  --bg-2: #1a1936;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.11);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f4f3fb;
  --muted: #bcbad4;
  --dim: #8a88a6;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --cyan: #22d3ee;
  --pink: #ff4d8d;
  --orange: #ff9a3c;
  --green: #34d399;
  --lime: #a3e635;
  --blue: #3b82f6;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --f-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 8px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: #fff; color: #0a0814; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }

main > section { overflow-x: clip; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Background layers ---------- */
#bg {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -3; opacity: 1; transition: opacity 1.2s var(--ease);
}
.bg-fallback {
  position: fixed; inset: 0; z-index: -4;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(139, 92, 246, .35), transparent 70%),
    radial-gradient(50% 40% at 85% 20%, rgba(34, 211, 238, .22), transparent 70%),
    radial-gradient(60% 60% at 50% 100%, rgba(255, 77, 141, .15), transparent 70%),
    var(--bg);
}
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(139, 92, 246, .16), transparent 62%);
  transform: translate3d(-999px, -999px, 0); will-change: transform;
}
@media (hover: none) { .cursor-glow { display: none; } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; }
.progress span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  box-shadow: 0 0 12px rgba(139, 92, 246, .8);
}
[dir="rtl"] .progress span { transform-origin: 100% 50%; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s;
  will-change: transform; isolation: isolate;
}
.btn > * { pointer-events: none; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-xl { height: 64px; padding: 0 36px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-primary {
  color: #0a0814;
  background: linear-gradient(180deg, #fff, #e6e1ff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 10px 40px -8px rgba(139, 92, 246, .7), 0 0 0 0 rgba(139, 92, 246, .4);
}
.btn-primary::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; opacity: 0;
  background: conic-gradient(from var(--angle), var(--cyan), var(--violet), var(--pink), var(--orange), var(--cyan));
  filter: blur(14px); transition: opacity .4s; animation: spin 4s linear infinite;
}
.btn-primary:hover::before { opacity: .9; }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .7) inset, 0 18px 60px -10px rgba(139, 92, 246, .9); }
.btn-ghost {
  color: var(--text); background: rgba(255, 255, 255, .04);
  box-shadow: 0 0 0 1px var(--line-2) inset; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.btn-accent, .btn-accent-dyn {
  color: #0a0814; background: linear-gradient(135deg, var(--a1, var(--violet)), var(--a2, var(--cyan)));
  box-shadow: 0 10px 40px -10px rgba(var(--a-rgb, 139, 92, 246), .9);
}
.btn-accent:hover, .btn-accent-dyn:hover { box-shadow: 0 16px 50px -8px rgba(var(--a-rgb, 139, 92, 246), 1); }
@keyframes spin { to { --angle: 360deg; } }

.link-arrow { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .25s; }
.link-arrow:hover { color: var(--text); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px var(--gutter);
  transition: padding .4s var(--ease);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; height: 60px; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 18px; border: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav.scrolled .nav-inner {
  background: rgba(30, 28, 54, .62);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.nav-links { display: flex; gap: 4px; margin-inline-start: 18px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 10px; font-size: 14.5px; color: var(--muted); font-weight: 500;
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 14.5px; color: var(--muted); font-weight: 500; padding: 8px 10px; transition: color .25s; }
.nav-login:hover { color: var(--text); }
.burger { display: none; width: 40px; height: 40px; border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }
.nav.open .burger span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.open .burger span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* Language selector */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 12px;
  font-size: 13px; font-weight: 600; color: var(--muted); font-family: var(--f-mono); letter-spacing: .04em;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: color .25s, border-color .25s, background .25s;
}
.lang-btn:hover, .lang.open .lang-btn { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 380px; max-width: calc(100vw - 32px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px;
  background: rgba(32, 30, 58, .92); border: 1px solid var(--line-2); border-radius: 18px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease);
  max-height: 70vh; overflow-y: auto;
}
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-align: start;
  font-size: 14px; color: var(--muted); transition: background .2s, color .2s;
}
.lang-menu button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.lang-menu button.on { background: rgba(139, 92, 246, .16); color: var(--text); }
.lang-menu button code {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; color: var(--dim);
  width: 26px; text-align: center; padding: 2px 0; border-radius: 6px; background: rgba(255, 255, 255, .05);
}
.lang-menu button.on code { color: var(--violet-2); background: rgba(139, 92, 246, .2); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-2);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.h2 {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -.035em; line-height: 1.04;
  font-size: clamp(36px, 5.6vw, 72px); margin: 16px 0 18px;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .55));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h3 {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.08;
  font-size: clamp(30px, 3.8vw, 50px); margin: 22px 0 18px;
}
.lead { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 640px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: clamp(56px, 8vw, 96px); }
.section-head.left { text-align: start; }
.section-head.left .lead { margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(130px, 18vh, 190px) 0 40px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  font-size: 13.5px; color: var(--muted); font-weight: 500;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, color .3s, background .3s;
}
.pill:hover { color: var(--text); border-color: rgba(167, 139, 250, .5); background: rgba(139, 92, 246, .1); }
.pill-new {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: #0a0814;
  padding: 3px 8px; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--violet-2));
}
[dir="rtl"] .pill svg, [dir="rtl"] .btn svg { transform: scaleX(-1); }

.hero-title {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -.045em; line-height: .98;
  font-size: clamp(44px, 8.4vw, 124px); margin: 28px 0 26px;
}
.hero-title .line { display: block; }
.hero-title .grad {
  padding-bottom: .08em;
  background: linear-gradient(92deg, #c4b5fd 0%, #8b5cf6 25%, #22d3ee 50%, #ff4d8d 75%, #c4b5fd 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.split .w { display: inline-block; white-space: pre; opacity: 0; transform: translateY(.5em) rotate(4deg); filter: blur(12px);
  animation: wordIn 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
.grad.rise { opacity: 0; transform: translateY(.35em); filter: blur(14px); animation: wordIn 1.3s var(--ease) .55s forwards, shimmer 8s linear infinite; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }

.hero-sub { color: var(--muted); font-size: clamp(17px, 1.7vw, 21px); max-width: 680px; margin: 0 auto 36px; line-height: 1.55; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--dim); }

/* Hero visual */
.hero-visual {
  position: relative; z-index: 1; max-width: 1120px; margin: clamp(60px, 9vw, 100px) auto 0; padding: 0 var(--gutter);
  perspective: 1800px;
}
.hv-glow {
  position: absolute; inset: 10% 8% -10%; border-radius: 50%; filter: blur(80px); z-index: -1;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .55), rgba(34, 211, 238, .2) 60%, transparent);
}
.hv-window {
  position: relative; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 18, 36, .92), rgba(30, 28, 54, .96));
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 60px 140px -30px rgba(0, 0, 0, .95), 0 0 120px -40px rgba(139, 92, 246, .6);
  transform: rotateX(var(--rx, 24deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, .92));
  transform-origin: 50% 0%; will-change: transform;
  transition: transform .15s linear;
}
.hv-window::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .06) 45%, transparent 60%);
}
.win-bar {
  height: 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.win-url, .win-title {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11.5px; color: var(--dim);
  padding: 4px 12px; border-radius: 8px; background: rgba(255, 255, 255, .04);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.win-title { background: none; padding: 0; color: var(--muted); }
.hv-body { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; }
.hv-side { border-inline-end: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; }
.hv-ws { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; padding: 6px 8px 14px; }
.hv-ws-logo { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.hv-nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13px; color: var(--muted); }
.hv-nav.active { background: rgba(255, 255, 255, .06); color: var(--text); }
.hv-nav .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.ic-grid { width: 12px; height: 12px; border-radius: 3px; background: conic-gradient(var(--text) 0 25%, transparent 0 50%, var(--text) 0 75%, transparent 0); opacity: .8; }
.hv-sep { height: 1px; background: var(--line); margin: 12px 6px; }
.hv-skel { height: 9px; margin: 7px 10px; border-radius: 5px; background: rgba(255, 255, 255, .05); width: 70%; }
.hv-skel.s2 { width: 50%; } .hv-skel.s3 { width: 62%; }
.hv-main { padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hv-h { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.hv-sub { font-size: 12.5px; color: var(--dim); }
.hv-avatars { display: flex; }
.hv-avatars span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 600;
  background: hsl(var(--h) 70% 55%); color: #0a0814; border: 2px solid #121022; margin-inline-start: -8px;
}
.hv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-l { font-size: 11.5px; color: var(--dim); }
.kpi-v { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-d { font-size: 11.5px; font-weight: 600; }
.kpi-d.up { color: var(--green); }
.hv-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; flex: 1; }
.hv-chart, .hv-feed { border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); padding: 14px; min-width: 0; }
.hv-chart-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.tag { font-size: 10.5px; font-weight: 600; color: var(--green); padding: 1px 8px; border-radius: 99px; background: rgba(52, 211, 153, .12); }
.chart-svg { width: 100%; height: 150px; overflow: visible; }
.grid-lines line { stroke: rgba(255, 255, 255, .05); stroke-dasharray: 3 5; }
.line-path { stroke-dasharray: 700; stroke-dashoffset: 700; filter: drop-shadow(0 0 6px rgba(139, 92, 246, .8)); }
.area { opacity: 0; }
.in-view .line-path { animation: draw 2.4s var(--ease) .3s forwards; }
.in-view .area { animation: fadeIn 1.6s ease 1.2s forwards; }
.chart-dot { fill: #fff; filter: drop-shadow(0 0 8px #ff4d8d); opacity: 0; }
.in-view .chart-dot { animation: fadeIn .4s ease 2.5s forwards, pulseDot 1.8s ease-in-out 2.9s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pulseDot { 50% { r: 7; } }
.hv-feed { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.feed-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03);
  font-size: 12px; animation: feedIn .6s var(--ease-spring) both;
}
.feed-item b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item small { color: var(--dim); font-size: 11px; }
.feed-item > div { min-width: 0; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.fl-ic {
  flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent) inset;
}
.hv-float {
  position: absolute; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px;
  background: rgba(34, 32, 60, .78); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  font-size: 13px; line-height: 1.3; white-space: nowrap;
  animation: float 7s ease-in-out infinite;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
}
.hv-float small { display: block; color: var(--muted); font-size: 12px; }
.hv-float.f1 { left: -10px; top: 26%; }
.hv-float.f2 { right: -14px; top: 12%; animation-delay: -2.3s; }
.hv-float.f3 { right: 6%; bottom: -16px; animation-delay: -4.6s; }
@keyframes float { 50% { translate: 0 -14px; } }

/* ---------- Ticker ---------- */
.ticker { position: relative; padding: 56px 0 34px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.ticker-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 32s linear infinite; }
.ticker-track span { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 5vw, 60px); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22); }
.ticker-track span.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; -webkit-text-stroke: 0; color: rgba(255, 255, 255, .85); }
.ticker-track span::before { content: attr(data-t); }
.ticker-track i { font-style: normal; color: var(--violet-2); font-size: 22px; }
@keyframes marquee { to { transform: translateX(-33.333%); } }
[dir="rtl"] .ticker-track { animation-name: marqueeRtl; }
@keyframes marqueeRtl { to { transform: translateX(33.333%); } }

/* ---------- Stats ---------- */
.stats { padding: 30px 0 clamp(90px, 12vw, 150px); }
.stats-grid { width: calc(100% - 2 * var(--gutter)); max-width: calc(1240px - 2 * var(--gutter)); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { padding: 34px 28px; background: rgba(28, 26, 52, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 4px; }
.stat-v { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .6)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-l { color: var(--muted); font-size: 14.5px; }

/* ---------- Products ---------- */
.products { padding-bottom: clamp(60px, 8vw, 120px); }
.product {
  position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center;
  padding: clamp(50px, 7vw, 110px) 0;
}
.product.flip { grid-template-columns: 1.1fr .9fr; }
.product.flip .product-copy { order: 2; }
.product::before {
  content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -10%; top: 50%; translate: 0 -50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--a-rgb), .18), transparent); filter: blur(40px); pointer-events: none;
}
.product.flip::before { right: auto; left: -10%; }
.product-badge { display: inline-flex; align-items: center; gap: 12px; }
.p-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #0a0814;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 10px 30px -6px rgba(var(--a-rgb), .7), 0 0 0 1px rgba(255, 255, 255, .25) inset;
}
.p-icon svg { width: 24px; height: 24px; }
.p-name { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.p-tag { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; color: var(--a1); background: rgba(var(--a-rgb), .1); border: 1px solid rgba(var(--a-rgb), .25); }
.product .h3 .accent, .product .h3 { background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, .7)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-desc { color: var(--muted); font-size: 17px; margin: 0 0 26px; max-width: 520px; }
.features { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; }
.features li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 500; }
.features li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px;
  background: rgba(var(--a-rgb), .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  box-shadow: 0 0 0 1px rgba(var(--a-rgb), .4) inset;
}
.p-ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.product-visual { perspective: 1400px; min-width: 0; }
.mock {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 18, 36, .9), rgba(9, 8, 18, .95));
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .95), 0 0 100px -30px rgba(var(--a-rgb), .55), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .6s var(--ease);
  transform-style: preserve-3d;
}
.mock::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .07), transparent 40%);
}
.live-badge {
  justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600;
  color: var(--a1); padding: 3px 9px; border-radius: 99px; background: rgba(var(--a-rgb), .12);
}
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* Framecraft mock */
.fc-body { display: grid; grid-template-columns: 1fr 170px; gap: 12px; padding: 14px 14px 0; }
.fc-preview { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.fc-canvas { width: 100%; height: 100%; }
.fc-caption { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; pointer-events: none; padding: 0 10px; }
.fc-caption span {
  display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: clamp(12px, 1.5vw, 17px); letter-spacing: -.01em;
  padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(4px);
  transition: opacity .4s, transform .4s var(--ease-spring);
}
.fc-caption span.swap { opacity: 0; transform: translateY(6px) scale(.96); }
.fc-hud { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 3px #000; }
.fc-scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 0, rgba(255, 77, 141, .22) 50%, transparent 52%); background-size: 100% 220%; animation: scan 3.2s linear infinite; mix-blend-mode: screen; opacity: .7; }
@keyframes scan { from { background-position: 0 -120%; } to { background-position: 0 120%; } }
.fc-side { border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; min-width: 0; }
.fc-side-h { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 8px; }
.fc-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 12px; flex: 1; }
.fc-steps li { display: flex; align-items: center; gap: 8px; color: var(--dim); transition: color .3s; white-space: nowrap; }
.fc-steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .18); flex: none; transition: all .3s; }
.fc-steps li.run { color: var(--text); }
.fc-steps li.run::before { border-color: var(--a1); border-top-color: transparent; animation: spinr .7s linear infinite; }
.fc-steps li.ok { color: var(--muted); }
.fc-steps li.ok::before { border: 0; background: var(--a1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }
@keyframes spinr { to { transform: rotate(360deg); } }
.fc-meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 10px; }
.fc-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a1), var(--a2)); transition: width .5s var(--ease); }
.fc-prompt {
  margin: 12px 14px 0; height: 42px; border-radius: 12px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(var(--a-rgb), .35); box-shadow: 0 0 30px -10px rgba(var(--a-rgb), .6);
  font-size: 13px; min-width: 0;
}
.spark { color: var(--a1, var(--violet-2)); animation: twinkle 2s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .4; transform: scale(.8) rotate(20deg); } }
.fc-input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 13px; }
.fc-input::placeholder { color: var(--dim); }
.fc-prompt:focus-within { border-color: var(--a1); box-shadow: 0 0 0 3px rgba(var(--a-rgb), .2), 0 0 40px -6px rgba(var(--a-rgb), .9); }
.fc-try { display: flex; align-items: center; gap: 8px; margin: 12px 16px -2px; font-size: 11.5px; font-weight: 600; color: var(--a1); cursor: text; }
.fc-try i { width: 7px; height: 7px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 0 0 rgba(var(--a-rgb), .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(var(--a-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--a-rgb), 0); } }
.fc-preview.gen { box-shadow: 0 0 0 1px rgba(var(--a-rgb), .6), 0 0 40px -6px rgba(var(--a-rgb), .9); }
.fc-gen { margin-inline-start: auto; flex: none; position: relative; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; color: #0a0814; background: linear-gradient(135deg, var(--a1), var(--a2)); transition: filter .2s, transform .2s; }
.fc-gen:hover { filter: brightness(1.12); }
.fc-gen:active { transform: scale(.96); }
.fc-gen.busy span { opacity: 0; }
.fc-gen.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .25); border-top-color: #0a0814; animation: spinr .7s linear infinite; }
.fc-timeline { position: relative; margin: 12px 14px 14px; padding: 18px 0 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); overflow: hidden; }
.fc-ruler { position: absolute; top: 0; left: 0; right: 0; height: 14px; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 10%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 2.5%); background-size: 100% 8px, 100% 4px; background-repeat: no-repeat; background-position: 0 6px, 0 10px; }
.fc-track { position: relative; height: 26px; margin: 4px 8px; }
.fc-track .clip { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(135deg, hsl(var(--h) 85% 62% / .9), hsl(calc(var(--h) + 30) 85% 50% / .7)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset; overflow: hidden; }
.fc-track .clip::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .15) 0 1px, transparent 1px 22px); }
.fc-track.txt { height: 16px; }
.fc-track .clip.t { background: rgba(255, 255, 255, .14); }
.fc-track.aud { display: flex; align-items: center; gap: 2px; height: 30px; }
.fc-track.aud i { flex: 1; border-radius: 2px; background: rgba(var(--a-rgb), .3); transition: background .2s; min-width: 1px; }
.fc-track.aud i.on { background: linear-gradient(180deg, var(--a2), var(--a1)); }
.playhead { position: absolute; top: 0; bottom: 0; left: 8px; width: 2px; background: #fff; box-shadow: 0 0 12px #fff, 0 0 30px var(--a1); z-index: 2; will-change: transform; }
.playhead::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top: 8px solid #fff; }

/* ClientBase mock */
.cb-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 14px 0; }
.cb-kpis div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); min-width: 0; }
.cb-kpis small { display: block; font-size: 10.5px; color: var(--dim); }
.cb-kpis b { font-family: var(--f-display); font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; display: block; overflow: hidden; text-overflow: ellipsis; }
.cb-kpis b.bump { animation: bump .6s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.12); color: var(--a1); } }
.cb-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 14px; height: 330px; }
.cb-col { border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; min-width: 0; }
.cb-col-h { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 4px 8px; white-space: nowrap; }
.cb-col-h i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.cb-col-h span { margin-inline-start: auto; font-family: var(--f-mono); font-size: 10px; color: var(--dim); background: rgba(255, 255, 255, .05); padding: 0 6px; border-radius: 6px; }
.cb-list { display: flex; flex-direction: column; gap: 6px; }
.cb-card {
  padding: 8px; border-radius: 9px; background: rgba(28, 26, 46, .95); border: 1px solid var(--line-2);
  font-size: 11px; line-height: 1.35; will-change: transform; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .8);
}
.cb-card .cc-top { display: flex; align-items: center; gap: 6px; }
.cb-card .av { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; color: #0a0814; background: hsl(var(--h) 75% 65%); flex: none; }
.cb-card b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-card .cc-val { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; color: var(--muted); font-variant-numeric: tabular-nums; gap: 4px; }
.cb-card .cc-val span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-card .score { font-family: var(--f-mono); font-size: 9.5px; padding: 1px 5px; border-radius: 5px; color: var(--a1); background: rgba(var(--a-rgb), .12); flex: none; }
.cb-card.moving { z-index: 5; position: relative; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .9), 0 0 0 1px rgba(var(--a-rgb), .6), 0 0 30px -4px rgba(var(--a-rgb), .6); }
.cb-card.won { border-color: rgba(52, 211, 153, .5); box-shadow: 0 0 24px -6px rgba(52, 211, 153, .6); }
.cb-card.enter { animation: cardIn .6s var(--ease-spring); }
.cb-card.leave { animation: cardOut .4s var(--ease) forwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(-10px) scale(.9); } }
@keyframes cardOut { to { opacity: 0; transform: scale(.85); } }
.cb-ai { margin: 0 14px 14px; padding: 10px 14px; border-radius: 12px; display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted);
  background: linear-gradient(90deg, rgba(var(--a-rgb), .1), transparent); border: 1px solid rgba(var(--a-rgb), .25); }
#cbAiText { transition: opacity .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ledgerflow mock */
.lf-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; padding: 14px; }
.lf-invoice {
  position: relative; border-radius: 12px; padding: 18px; color: #1a1830; background: linear-gradient(180deg, #fbfbff, #eeeef6);
  font-size: 11.5px; min-height: 360px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
}
.inv-head { display: flex; justify-content: space-between; gap: 10px; }
.inv-head small, .inv-to small { color: #7a789a; font-size: 10px; display: block; }
.inv-logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.inv-logo span { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(135deg, var(--a1), var(--a2)); }
.inv-no { text-align: end; }
.inv-no b { font-family: var(--f-mono); font-size: 12px; }
.inv-to { margin: 16px 0 12px; }
.inv-to b { font-size: 13px; }
.inv-lines { display: flex; flex-direction: column; gap: 0; min-height: 132px; }
.inv-line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #d8d7e6; animation: lineIn .5s var(--ease) both; font-variant-numeric: tabular-nums; }
.inv-line span:nth-child(2) { color: #7a789a; }
.inv-line span:last-child { font-weight: 600; min-width: 64px; text-align: end; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-12px); clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.inv-totals { margin-top: 12px; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.inv-totals div { display: flex; justify-content: space-between; color: #5a587a; }
.inv-totals .inv-total { margin-top: 6px; padding-top: 8px; border-top: 1.5px solid #1a1830; color: #1a1830; font-weight: 700; font-size: 15px; }
.stamp {
  position: absolute; right: 18px; bottom: 70px; font-family: var(--f-display); font-weight: 800; font-size: 34px; letter-spacing: .12em;
  color: #10b981; border: 4px solid #10b981; border-radius: 10px; padding: 2px 14px; rotate: -14deg; opacity: 0; scale: 2.4; pointer-events: none;
  mix-blend-mode: multiply;
}
.stamp.on { animation: stamp .45s cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes stamp { to { opacity: .85; scale: 1; } }
.lf-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lf-card { flex: 1; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.lf-card small { font-size: 11px; color: var(--dim); }
.lf-card > b { font-family: var(--f-display); font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-bars { flex: 1; display: flex; align-items: flex-end; gap: 4px; margin-top: 10px; min-height: 80px; }
.lf-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--a2), rgba(var(--a-rgb), .25)); height: 4%; transition: height 1s var(--ease); transition-delay: calc(var(--i) * 50ms); }
.lf-bars i:last-child { box-shadow: 0 0 16px rgba(var(--a-rgb), .8); }
.lf-ring { position: relative; width: 92px; height: 92px; margin: 10px auto 0; }
.lf-ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 5; }
.ring-fg { fill: none; stroke: var(--a1); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset 1.2s var(--ease); filter: drop-shadow(0 0 4px var(--a1)); }
.lf-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.lf-toast {
  position: absolute; right: 18px; top: 54px; z-index: 4; display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(34, 32, 60, .92); border: 1px solid rgba(52, 211, 153, .35); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .9), 0 0 30px -8px rgba(52, 211, 153, .6);
  font-size: 12.5px; line-height: 1.3; opacity: 0; transform: translateY(-14px) scale(.95); transition: opacity .4s, transform .5s var(--ease-spring);
}
.lf-toast small { display: block; color: var(--green); font-weight: 600; }
.lf-toast.on { opacity: 1; transform: none; }

/* ---------- Ecosystem ---------- */
.eco { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.eco-map { position: relative; max-width: 860px; margin: 0 auto; aspect-ratio: 800 / 420; }
.eco-map svg { width: 100%; height: 100%; overflow: visible; }
.eco-path { fill: none; stroke-width: 2.5; stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; opacity: .85; }
.eco-spoke { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1.2; stroke-dasharray: 2 6; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.eco-dot { filter: drop-shadow(0 0 6px #fff); }
.eco-node {
  position: absolute; translate: -50% -50%; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 18px 10px 10px; border-radius: 16px; font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em;
  background: rgba(32, 30, 58, .85); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 0 40px -8px var(--c), 0 20px 40px -20px #000;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.en-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; color: #0a0814; background: var(--c); }
.eco-node.core { padding: 18px; border-radius: 26px; border-color: rgba(167, 139, 250, .5); box-shadow: 0 0 80px -6px rgba(139, 92, 246, .9), 0 0 0 10px rgba(139, 92, 246, .06); animation: corePulse 3s ease-in-out infinite; }
@keyframes corePulse { 50% { box-shadow: 0 0 110px 0 rgba(139, 92, 246, 1), 0 0 0 22px rgba(139, 92, 246, .03); } }
.eco-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 70px); }
.glass {
  position: relative; border-radius: var(--radius); background: rgba(30, 28, 56, .62); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent 45%);
}
.glass:hover::before { opacity: 1; }
.eco-step { padding: 30px; }
.eco-step::after { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c), transparent); }
.step-n { font-family: var(--f-mono); font-size: 13px; color: var(--c); }
.eco-step h3 { font-family: var(--f-display); font-size: 23px; letter-spacing: -.02em; margin: 10px 0 8px; font-weight: 600; }
.eco-step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing { padding: clamp(80px, 10vw, 140px) 0; }
.pr-controls { display: flex; justify-content: center; align-items: center; gap: 22px 36px; flex-wrap: wrap; margin-bottom: 48px; }
.seg { position: relative; display: inline-flex; padding: 5px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; padding: 10px 20px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .3s; }
.seg button.on { color: #0a0814; }
.seg-ind { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 12px; background: var(--c, #fff); transition: transform .5s var(--ease-spring), width .5s var(--ease-spring), background .4s, box-shadow .4s; box-shadow: 0 6px 24px -4px var(--c, #fff); }
.billing { display: inline-flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.billing .on { color: var(--text); }
.switch { width: 52px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line-2); position: relative; transition: background .3s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .4s var(--ease-spring); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.switch[aria-checked="true"] { background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.switch[aria-checked="true"] span { transform: translateX(22px); }
[dir="rtl"] .switch[aria-checked="true"] span { transform: translateX(-22px); }
[dir="rtl"] .switch span { left: auto; right: 3px; }
.save-chip { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; color: var(--green); padding: 2px 8px; border-radius: 99px; background: rgba(52, 211, 153, .12); white-space: nowrap; }

.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { padding: 32px 28px; display: flex; flex-direction: column; gap: 0; transition: transform .5s var(--ease), border-color .4s; }
.price-card:hover { transform: translateY(-6px); }
.pc-head h3 { font-family: var(--f-display); font-size: 26px; letter-spacing: -.03em; margin: 6px 0 6px; font-weight: 600; }
.pc-head p { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; min-height: 44px; }
.pc-prod { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c, var(--muted)); transition: color .4s; }
.pc-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.amt { font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 4vw, 54px); letter-spacing: -.045em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.amt.flip { animation: amtFlip .5s var(--ease); }
@keyframes amtFlip { 0% { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.per { color: var(--muted); font-size: 15px; }
.pc-bill { font-size: 13px; color: var(--dim); margin-bottom: 24px; min-height: 22px; display: flex; gap: 8px; align-items: center; }
.pc-feats { list-style: none; padding: 22px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.pc-feats li { display: flex; gap: 10px; font-size: 14.5px; color: #d7d5ea; animation: fadeUp .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.pc-feats li::before { content: "✓"; flex: none; color: var(--c, var(--violet-2)); font-weight: 700; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.pc-flag { position: absolute; top: 22px; inset-inline-end: 22px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: color .4s, background .4s, border-color .4s; }
.featured-soft { border-color: color-mix(in srgb, var(--c, #fff) 35%, transparent); box-shadow: 0 0 60px -20px var(--c, transparent); }
.btn-accent-dyn { background: var(--c); box-shadow: 0 10px 40px -10px var(--c); }
.btn-accent-dyn:hover { box-shadow: 0 16px 50px -8px var(--c); }

.price-card.suite { position: relative; border-radius: var(--radius); padding: 32px 28px; background: linear-gradient(180deg, rgba(36, 24, 70, .85), rgba(30, 28, 56, .92)); isolation: isolate; overflow: hidden; }
.suite-border { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--angle), var(--cyan), var(--violet), var(--pink), var(--orange), var(--green), var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 5s linear infinite;
}
.price-card.suite::after { content: ""; position: absolute; inset: -40% -40% auto auto; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 92, 246, .45), transparent); z-index: -1; filter: blur(20px); }
.suite-flag { --c: #c4b5fd; }
.suite-prods { display: inline-flex; gap: 5px; }
.suite-prods i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.suite .pc-feats li::before { color: #c4b5fd; }
.suite s { color: var(--dim); }
.pr-ent { text-align: center; color: var(--muted); margin-top: 36px; font-size: 15px; }
.pr-ent a { color: var(--text); font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .25); transition: border-color .3s; }
.pr-ent a:hover { border-color: #fff; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(60px, 8vw, 120px) 0; }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq-wrap .section-head { margin: 0; position: sticky; top: 120px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 18px; background: rgba(30, 28, 56, .6); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: rgba(167, 139, 250, .35); background: rgba(24, 18, 46, .65); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 400; font-size: 20px; background: rgba(255, 255, 255, .05); transition: transform .4s var(--ease), background .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); background: rgba(139, 92, 246, .3); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--muted); animation: fadeUp .4s var(--ease); }

/* ---------- Final CTA ---------- */
.final { position: relative; padding: clamp(120px, 16vw, 220px) 0; text-align: center; overflow: hidden; }
.final-inner { position: relative; z-index: 2; }
.h1-final { font-family: var(--f-display); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-size: clamp(44px, 8vw, 110px); margin: 0 auto 22px; max-width: 1000px; }
.h1-final span { background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, .5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final .lead { margin-bottom: 40px; }
.orb { position: absolute; left: 50%; top: 50%; width: min(760px, 120vw); aspect-ratio: 1; translate: -50% -50%; z-index: 0; pointer-events: none; }
.orb span { position: absolute; inset: 0; border-radius: 50%; filter: blur(50px); opacity: .5; mix-blend-mode: screen; }
.orb span:nth-child(1) { background: conic-gradient(from 0deg, var(--violet), transparent 40%, var(--cyan), transparent 80%); animation: orb 14s linear infinite; }
.orb span:nth-child(2) { inset: 12%; background: conic-gradient(from 120deg, var(--pink), transparent 35%, var(--violet), transparent 75%); animation: orb 10s linear infinite reverse; }
.orb span:nth-child(3) { inset: 30%; background: radial-gradient(closest-side, rgba(255, 255, 255, .35), transparent); filter: blur(30px); animation: breathe 5s ease-in-out infinite; }
@keyframes orb { to { rotate: 360deg; } }
@keyframes breathe { 50% { scale: 1.2; opacity: .8; } }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding-top: 70px; overflow: hidden; background: linear-gradient(180deg, rgba(18, 17, 42, .4), rgba(18, 17, 42, .95)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.f-brand p { color: var(--muted); max-width: 320px; margin-top: 16px; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-col h3 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 6px; font-weight: 500; }
.f-col a { color: var(--muted); font-size: 15px; transition: color .25s; width: fit-content; }
.f-col a:hover { color: var(--text); }
.f-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 50px; padding-bottom: 20px; color: var(--dim); font-size: 13.5px; }
.f-status { display: inline-flex; align-items: center; gap: 8px; }
.f-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2s infinite; }
.f-giant {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.06em; line-height: .8; text-align: center; white-space: nowrap;
  font-size: clamp(80px, 19vw, 300px); margin-top: 10px; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  translate: 0 12%;
}

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: calc(100vw - 32px); width: 460px; overflow: visible; }
.modal::backdrop { background: rgba(10, 9, 28, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal[open] { animation: modalIn .5s var(--ease-spring); }
.modal[open]::backdrop { animation: fadeIn .3s ease both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
.modal-card { position: relative; border-radius: 26px; padding: 34px; background: linear-gradient(180deg, rgba(28, 22, 54, .96), rgba(30, 28, 56, .98)); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -20px #000, 0 0 100px -30px rgba(139, 92, 246, .8); }
.modal-x { position: absolute; top: 16px; inset-inline-end: 16px; width: 34px; height: 34px; border-radius: 10px; font-size: 22px; line-height: 1; color: var(--muted); background: rgba(255, 255, 255, .05); transition: background .2s, color .2s; }
.modal-x:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.modal h3 { font-family: var(--f-display); font-size: 30px; letter-spacing: -.03em; margin: 10px 0 6px; font-weight: 600; }
.m-sub { color: var(--muted); margin: 0 0 24px; }
.modal label { display: block; margin-bottom: 14px; }
.modal label span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.modal input { width: 100%; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .25s, box-shadow .25s, background .25s; }
.modal input:focus { border-color: var(--violet-2); background: rgba(139, 92, 246, .08); box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); }
.modal input.err { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .15); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.modal .btn-block { margin-top: 10px; }
.modal-step.done { text-align: center; padding-top: 10px; }
.ok-burst { width: 76px; height: 76px; margin: 0 auto 8px; }
.ok-burst svg { width: 100%; height: 100%; }
.ok-burst circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) forwards; }
.ok-burst path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .6s forwards; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .2); border-top-color: #0a0814; animation: spinr .7s linear infinite; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); filter: blur(10px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hv-body { grid-template-columns: 1fr; }
  .hv-side { display: none; }
  .product, .product.flip { grid-template-columns: 1fr; }
  .product.flip .product-copy { order: 0; }
  .product-copy { max-width: 640px; }
  .pr-grid { grid-template-columns: 1fr 1fr; }
  .price-card.suite { grid-column: 1 / -1; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 86px; left: var(--gutter); right: var(--gutter); flex-direction: column; margin: 0; padding: 10px;
    background: rgba(30, 28, 56, .95); border: 1px solid var(--line-2); border-radius: 18px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .burger { display: block; }
  .nav-login { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .eco-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .hv-float.f1 { left: 4px; } .hv-float.f2 { right: 4px; }
  .hv-grid { grid-template-columns: 1fr; }
  .hv-feed { display: none; }
}
@media (max-width: 640px) {
  .nav { padding: 10px 12px; }
  .nav-inner { padding: 0 6px 0 12px; gap: 10px; }
  .nav-actions .btn-sm { display: none; }
  .hero-ctas .btn { width: 100%; }
  .hv-kpis { grid-template-columns: 1fr 1fr; }
  .hv-kpis .kpi:last-child { display: none; }
  .hv-main { padding: 14px; }
  .hv-head .hv-avatars { display: none; }
  .hv-float { font-size: 11.5px; padding: 8px 12px 8px 8px; }
  .hv-float.f3 { display: none; }
  .hv-float.f1 { top: auto; bottom: -20px; left: 20px; }
  .hv-float.f2 { top: -20px; }
  .stat { padding: 24px 18px; }
  .fc-body { grid-template-columns: 1fr; }
  .fc-side { display: none; }
  .cb-board { gap: 5px; padding: 10px; height: 300px; }
  .cb-col { padding: 5px; }
  .cb-col-h { font-size: 9.5px; }
  .cb-col-h span { display: none; }
  .cb-card { padding: 6px; font-size: 10px; }
  .cb-card .score { display: none; }
  .cb-kpis b { font-size: 15px; }
  .lf-body { grid-template-columns: 1fr; }
  .lf-side { flex-direction: row; }
  .lf-toast { right: 10px; left: 10px; }
  .pr-grid { grid-template-columns: 1fr; }
  .seg button { padding: 9px 12px; font-size: 13px; }
  .eco-node { font-size: 12px; padding: 6px 10px 6px 6px; gap: 6px; border-radius: 12px; }
  .en-ic { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }
  .eco-node.core { padding: 10px; border-radius: 16px; }
  .eco-node.core svg { width: 24px; height: 24px; }
  .modal-card { padding: 26px 22px; }
  .lang-menu { position: fixed; top: 80px; left: 16px; right: 16px; width: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .split .w, .grad.rise { opacity: 1 !important; transform: none !important; filter: none !important; }
  .grain { display: none; }
}

/* ---------- Legal pages ---------- */
.legal-page .nav-inner { background: rgba(30, 28, 54, .62); border-color: var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.legal { max-width: 780px; padding-top: 150px; padding-bottom: 80px; }
.legal h1 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; font-size: clamp(40px, 6vw, 64px); margin: 14px 0 8px; }
.legal h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; font-size: 22px; margin: 44px 0 10px; }
.legal p, .legal li { color: #cfcde2; font-size: 16px; line-height: 1.75; }
.legal ul { padding-inline-start: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--violet-2); border-bottom: 1px solid rgba(167, 139, 250, .4); }
.legal-meta { color: var(--dim) !important; font-size: 14px !important; }
.legal mark { background: rgba(250, 204, 21, .16); color: #fde68a; padding: 1px 6px; border-radius: 5px; }
.draft-note { margin: 28px 0 8px; padding: 16px 18px; border-radius: 14px; border: 1px dashed rgba(250, 204, 21, .45); background: rgba(250, 204, 21, .06); color: #fde68a; font-size: 14.5px; }
.legal-foot { padding-bottom: 40px; color: var(--dim); font-size: 13.5px; }
.legal-foot a { color: var(--muted); }

/* consent line in signup */
.m-terms { margin: 14px 0 0; font-size: 12.5px; color: var(--dim); text-align: center; }
.m-terms a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.modal textarea { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 15px; outline: none; resize: vertical; transition: border-color .25s, box-shadow .25s; }
.modal textarea:focus { border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); }
.modal .f-msg { display: none; }
.modal[data-mode="contact"] .f-msg { display: block; }
.modal[data-mode="login"] .f-name, .modal[data-mode="login"] .f-company { display: none; }
.modal[data-mode="login"] .m-terms { display: none; }

/* ---------- LedgerFlow story ---------- */
.story { padding: clamp(40px, 6vw, 90px) 0 clamp(80px, 10vw, 140px); }
.story-eyebrow { color: #6ee7b7; }
.story-player { max-width: 1080px; margin: 0 auto; }
.story-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.story-bars span { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.story-bars i { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #22d3ee, #34d399); transform: scaleX(0); transform-origin: 0 50%; }
.story-bars span.done i { transform: scaleX(1); }
.story-bars span.on i { animation: storyFill 8.5s linear forwards; }
[dir="rtl"] .story-bars i { transform-origin: 100% 50%; }
@keyframes storyFill { to { transform: scaleX(1); } }
.story.hold .story-bars i, .story.offscreen .story-bars i, .story.hold .scene *, .story.offscreen .scene * { animation-play-state: paused !important; }

.story-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #1a1934;
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95), 0 0 120px -40px rgba(52, 211, 153, .55);
}
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.scene.on { opacity: 1; z-index: 1; }
.scene svg { width: 100%; height: 100%; display: block; }
.scene text { font-family: var(--f-body); }
.scene .kb { transform-origin: 480px 270px; }
.scene.play .kb { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.07) translate(-6px, -4px); } }
.story-stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(18, 17, 42, .85)); }
.story-prev, .story-next { position: absolute; top: 0; bottom: 0; width: 30%; z-index: 4; cursor: pointer; }
.story-prev { left: 0; } .story-next { right: 0; }
.story-frame { position: relative; }
.story-cap { position: absolute; left: 28px; bottom: 24px; right: 28px; z-index: 5; max-width: 560px; pointer-events: none; }
.story-cap.swap > * { animation: fadeUp .6s var(--ease) both; }
.story-cap.swap .cap-title { animation-delay: .06s; } .story-cap.swap .cap-text { animation-delay: .12s; }
.cap-time { display: inline-block; font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: #052e1c; background: #34d399; padding: 3px 9px; border-radius: 99px; margin-bottom: 10px; }
.cap-title { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.15; }
.cap-text { margin: 8px 0 0; color: #d4d2e6; font-size: 15px; line-height: 1.55; }
.story-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.story-tab { text-align: start; padding: 14px 16px; border-radius: 16px; background: rgba(30, 28, 56, .6); border: 1px solid var(--line); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.story-tab:hover { transform: translateY(-2px); border-color: var(--line-2); }
.story-tab span { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--dim); }
.story-tab b { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.story-tab.on { border-color: rgba(52, 211, 153, .5); background: rgba(16, 42, 32, .55); }
.story-tab.on span { color: #34d399; } .story-tab.on b { color: var(--text); }

/* ambient loops */
.walker { animation: walk var(--dur, 15s) linear infinite; animation-delay: var(--delay, 0s); }
.walker.rev { animation-name: walkRev; }
@keyframes walk { from { transform: translateX(20px); } to { transform: translateX(520px); } }
@keyframes walkRev { from { transform: translateX(520px); } to { transform: translateX(20px); } }
.walker > g { animation: bob .5s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-2px); } }
.walker.wide { animation-name: walkWide; }
@keyframes walkWide { from { transform: translateX(-80px); } to { transform: translateX(1040px); } }
.lamp { animation: swing 5s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.leaf { animation: sway 4s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.steam { stroke-dasharray: 60; animation: steam 3s ease-in-out infinite; }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-18px); } }
.bokeh circle { animation: drift 8s ease-in-out infinite alternate; }
.bokeh circle:nth-child(2) { animation-duration: 11s; } .bokeh circle:nth-child(3) { animation-duration: 9s; }
@keyframes drift { to { transform: translate(18px, -14px); } }
.cloud { animation: cloud var(--dur, 30s) linear infinite; animation-delay: var(--delay, 0s); }
@keyframes cloud { from { transform: translateX(640px); } to { transform: translateX(980px); } }
.twinkle { animation: twinkle 5s steps(1) infinite; }
@keyframes twinkle { 0%, 60% { opacity: .9; } 61%, 80% { opacity: .15; } 81% { opacity: .9; } }
.tail { animation: tail 2.6s ease-in-out infinite alternate; }
@keyframes tail { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
.breathe { animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scaleY(1.06); } }
.lampglow { animation: lampglow 4s ease-in-out infinite alternate; }
@keyframes lampglow { to { opacity: .75; } }
.tilt { animation: headTilt 6s ease-in-out infinite alternate; }
@keyframes headTilt { from { transform: rotate(-2deg); } to { transform: rotate(3deg); } }

/* scene 1 timeline */
.s1-ln, .s1-toast, .s1-plane { opacity: 0; }
.play .s1-ln { animation: lnIn .5s var(--ease) var(--d) both; }
@keyframes lnIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.play .s1-hand { animation: typing .16s ease-in-out .3s 16 alternate; }
@keyframes typing { to { transform: translate(4px, -4px); } }
.s1-send { transform-box: fill-box; transform-origin: center; }
.play .s1-send { animation: press .5s ease 3.3s both; }
@keyframes press { 40% { transform: scale(.88); filter: brightness(1.3); } }
.play .s1-toast { animation: toastIn 2.6s var(--ease) 3.6s both; }
@keyframes toastIn { 0% { opacity: 0; transform: translateY(-8px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 1; } }
.s1-plane { transform: translate(683px, 343px); }
.play .s1-plane { animation: fly 2.4s cubic-bezier(.4, 0, .6, 1) 3.6s both; }
@keyframes fly {
  0% { opacity: 1; transform: translate(683px, 343px) scale(1); }
  40% { opacity: 1; transform: translate(560px, 230px) scale(1.3) rotate(-10deg); }
  100% { opacity: 0; transform: translate(330px, 120px) scale(.4) rotate(-25deg); }
}

/* scene 2 timeline */
.s2-notif, .s2-card, .s2-match, .s2-paid, .s2-confetti rect { opacity: 0; }
.play .s2-notif { animation: notif 1s var(--ease-spring) .4s both; }
@keyframes notif { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
.play .s2-card { animation: lnIn .6s var(--ease) 1.4s both; }
.play .s2-match { animation: lnIn .6s var(--ease) 2.2s both; }
.s2-btn { transform-box: fill-box; transform-origin: center; }
.play .s2-btn { animation: press .45s ease 3.9s both; }
.play .s2-thumb { animation: thumb 2.4s var(--ease) 2.8s both; }
@keyframes thumb { 0% { transform: translate(40px, 60px); } 45% { transform: translate(-60px, -30px); } 55% { transform: translate(-64px, -24px) scale(.97); } 75%, 100% { transform: translate(10px, 40px); } }
.play .s2-paid { animation: fadeIn .3s ease 4.1s both; }
.play .s2-confetti rect { animation: confetti 1.3s cubic-bezier(.2, .8, .2, 1) 4.1s both; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(220deg); } }

/* scene 3 timeline */
.s3-kpi, .s3-flag { opacity: 0; }
.play .s3-kpi { animation: lnIn .5s var(--ease) var(--d) both; }
.s3-bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.play .s3-bar { animation: barUp .9s var(--ease) var(--d) both; }
@keyframes barUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.s3-line { stroke-dasharray: 300; stroke-dashoffset: 300; }
.play .s3-line { animation: draw 1.8s var(--ease) .6s both; }
.s3-area { opacity: 0; } .play .s3-area { animation: fadeIn 1s ease 1.6s both; }
.s3-arm { transform: rotate(55deg); }
.play .s3-arm { animation: point 1s var(--ease) 2s both; }
@keyframes point { from { transform: rotate(55deg); } to { transform: rotate(0deg); } }
.play .s3-flag { animation: notif .8s var(--ease-spring) 3.2s both; }
.play .s3-nod { animation: nod .5s ease-in-out 3.6s 4 alternate; }
@keyframes nod { to { transform: rotate(4deg) translateY(3px); } }
.play .s3-turn { animation: headTilt 1.2s ease-in-out 2.1s 2 alternate; }

/* scene 4 timeline */
.s4-row, .s4-ready { opacity: 0; }
.play .s4-row { animation: lnIn .5s var(--ease) var(--d) both; }
.s4-ready { transform-box: fill-box; transform-origin: center; }
.play .s4-ready { animation: pop .7s var(--ease-spring) 3s both; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.play .s4-head { animation: relax 2.4s ease-in-out 3.6s both; }
@keyframes relax { 50% { transform: rotate(-5deg) translateY(4px); } 100% { transform: rotate(-3deg) translateY(3px); } }

@media (max-width: 760px) {
  .story-stage { border-radius: 18px; }
  .story-stage::after { display: none; }
  .story-cap { position: static; max-width: none; padding: 16px 4px 0; }
  .story-player .story-stage { overflow: hidden; }
  .story-tabs { grid-template-columns: 1fr 1fr; }
  .story-tab b { font-size: 13px; }
}

/* ---------- ClientBase story timelines ---------- */
.story-cb .story-bars i { background: linear-gradient(90deg, #22d3ee, #2dd4bf, #99f6e4); }
.story-cb .story-stage { box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95), 0 0 120px -40px rgba(34, 211, 238, .55); }
.story-cb .cap-time { background: #22d3ee; color: #042f2e; }
.story-cb .story-tab.on { border-color: rgba(34, 211, 238, .5); background: rgba(8, 47, 52, .55); }
.story-cb .story-tab.on span { color: #22d3ee; }
.story-cb .story-eyebrow { color: #67e8f9; }

/* c1 import */
.c1-file, .c1-detect, .c1-map, .c1-done { opacity: 0; }
.play .c1-file { animation: fileIn 1.3s cubic-bezier(.3, .7, .3, 1) .3s both; }
@keyframes fileIn { 0% { opacity: 0; transform: translate(-300px, 230px) rotate(-14deg); } 25% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.play .c1-hand { animation: drag 1.3s cubic-bezier(.3, .7, .3, 1) .3s both; }
@keyframes drag { 0% { transform: translate(-10px, 4px); } 100% { transform: translate(6px, -3px); } }
.play .c1-detect { animation: pop .6s var(--ease-spring) 1.3s both; }
.play .c1-map { animation: lnIn .45s var(--ease) var(--d) both; }
.c1-prog { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); }
.play .c1-prog { animation: barX 1.4s var(--ease) 3.2s both; }
@keyframes barX { to { transform: scaleX(1); } }
.play .c1-done { animation: pop .7s var(--ease-spring) 4.6s both; }

/* c2 CVR lookup */
.c2-type { clip-path: inset(0 100% 0 0); }
.play .c2-type { animation: typeOn 1.1s steps(9) .4s both; }
@keyframes typeOn { to { clip-path: inset(0 0 0 0); } }
.c2-drop, .c2-card, .c2-field, .c2-ok { opacity: 0; }
.play .c2-drop { animation: lnIn .4s var(--ease) 1.6s both; }
.play .c2-card { animation: lnIn .5s var(--ease) 2.1s both; }
.play .c2-field { animation: lnIn .45s var(--ease) var(--d) both; }
.play .c2-ok { animation: pop .6s var(--ease-spring) 3.9s both; }
.c2-talk path { animation: talk 1.2s ease-in-out infinite; }
.c2-talk path:nth-child(2) { animation-delay: .2s; }
@keyframes talk { 0%, 100% { opacity: .1; } 50% { opacity: .9; } }

/* c3 website lead */
.c3-val, .c3-sent, .c3-card, .c3-toast, .c3-dot { opacity: 0; }
.play .c3-val { animation: fadeIn .4s ease var(--d) both; }
.c3-send { transform-box: fill-box; transform-origin: center; }
.play .c3-send { animation: press .45s ease 2.1s both; }
.play .c3-thumb { animation: thumb3 2s var(--ease) 1.4s both; }
@keyframes thumb3 { 0% { transform: translate(30px, 40px); } 40% { transform: translate(-60px, -40px); } 50% { transform: translate(-62px, -36px) scale(.97); } 80%, 100% { transform: translate(20px, 40px); } }
.play .c3-sent { animation: fadeIn .3s ease 2.3s both; }
.c3-flowline { stroke-dashoffset: 0; animation: dash 1.2s linear infinite; opacity: .5; }
.c3-dot { offset-path: path('M300,330 C390,250 450,240 560,210'); offset-rotate: 0deg; }
.play .c3-dot { animation: flowDot 1s cubic-bezier(.5, 0, .5, 1) 2.5s both; }
@keyframes flowDot { 0% { offset-distance: 0%; opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.play .c3-card { animation: dropIn .7s var(--ease-spring) 3.4s both; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-24px) scale(.9); } to { opacity: 1; transform: none; } }
.play .c3-toast { animation: toastIn 3s var(--ease) 3.6s both; }

/* c4 deal won */
.c4-item, .c4-badge { opacity: 0; }
.play .c4-item { animation: lnIn .5s var(--ease) var(--d) both; }
.play .c4-deal { animation: dealMove 1s var(--ease) 2.4s both; }
@keyframes dealMove { 0% { transform: none; } 30% { transform: translate(0, -6px) rotate(-3deg); } 100% { transform: translate(130px, 0); } }
.play .c4-badge { animation: pop .6s var(--ease-spring) 3.4s both; }
.play .story-cb .s2-confetti rect, .story-cb .play .s2-confetti rect { animation-delay: 3.3s; }
.c4-armL { transform: rotate(150deg); } .c4-armR { transform: rotate(-150deg); }
.play .c4-armL { animation: cheerL 1.6s var(--ease) 3.4s both; }
.play .c4-armR { animation: cheerR 1.6s var(--ease) 3.4s both; }
@keyframes cheerL { 0% { transform: rotate(150deg); } 45% { transform: rotate(-8deg); } 70% { transform: rotate(6deg); } 100% { transform: rotate(0deg); } }
@keyframes cheerR { 0% { transform: rotate(-150deg); } 45% { transform: rotate(8deg); } 70% { transform: rotate(-6deg); } 100% { transform: rotate(0deg); } }
.play .c4-bounce { animation: bounce .5s ease-in-out 3.5s 3 alternate; }
@keyframes bounce { to { transform: translateY(-8px); } }
.play .c4-look { animation: headTilt 1.4s ease-in-out 2.4s 2 alternate; }

/* ---------- What is WorkTray ---------- */
.what { padding: 70px 0 10px; }
.what-title { text-align: center; color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.what-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.what-card { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 22px; transition: transform .4s var(--ease), border-color .3s; }
.what-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.what-ic { grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; color: #0a0814; background: var(--c); box-shadow: 0 10px 30px -8px var(--c); }
.what-card b { font-family: var(--f-display); font-size: 20px; letter-spacing: -.02em; }
.what-k { justify-self: end; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.what-card p { grid-column: 2 / 4; margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.what-go { display: none; }
@media (max-width: 860px) { .what-grid { grid-template-columns: 1fr; } }

/* stories inside the product list */
.products .story { padding: 10px 0 clamp(60px, 8vw, 110px); }
.story-head { margin-bottom: 34px; }
.story-h { font-size: clamp(30px, 4.2vw, 52px); }

.cb-act-ic { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; background: rgba(var(--a-rgb), .14); }

.scene .breath { animation: breathe2 4.2s ease-in-out infinite; }
@keyframes breathe2 { 50% { transform: scaleY(1.012) scaleX(1.004); } }
.demo-note { text-align: center; font-size: 12px; color: var(--dim); margin: 14px 0 0; font-family: var(--f-mono); letter-spacing: .02em; }
.hero-visual .demo-note { margin-top: 26px; }

.eco-path.faint { opacity: .28; animation: none; }
