/* Seymtech — straturi de mișcare și corecții de ritm peste design system. Prefix: st- */
:root { --container: 1280px; }

/* ---------- progres scroll ---------- */
.st-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; pointer-events: none; }
.st-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); box-shadow: 0 0 12px var(--electric); }

/* ---------- hero ---------- */
.st-hero { min-height: min(100vh, 920px); display: flex; flex-direction: column; justify-content: center; }
.st-hero .sx-hn-grid { flex: 0 0 auto; }
.st-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .9; }
.st-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 520px at var(--mx, 70%) var(--my, 40%), rgba(43,179,255,.16), transparent 70%); transition: background .2s; }
.st-hero > .sx-container { position: relative; z-index: 1; }
.sx-scene { zoom: 1; will-change: transform; transform: translate3d(0, var(--par, 0px), 0); }

/* titlu pe cuvinte, dezvăluit prin mască */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
[data-split] .w > span { display: inline-block; transform: translateY(110%) rotate(3deg); transition: transform 900ms cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--wi) * 60ms + var(--base, 0ms)); }
[data-split].in .w > span { transform: none; }
.sx-h1[data-split] { --base: 250ms; }
.sx-h1 em { background-size: 220% 100%; animation: st-shift 7s ease-in-out infinite alternate; }
@keyframes st-shift { to { background-position: 100% 0; } }

.st-fade { opacity: 0; transform: translateY(14px); animation: st-up 900ms cubic-bezier(.2,.8,.2,1) var(--d, 0s) forwards; }
@keyframes st-up { to { opacity: 1; transform: none; } }

/* ---------- marquee ---------- */
.st-marquee { overflow: hidden; background: var(--band); border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.st-marquee-track { display: flex; width: max-content; animation: st-marq 38s linear infinite; }
.st-marquee span { font: 500 15px/1 var(--font-mono); color: var(--on-band-muted); padding: 20px 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.st-marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); box-shadow: 0 0 10px var(--electric); }
@keyframes st-marq { to { transform: translateX(-50%); } }
.st-marquee:hover .st-marquee-track { animation-play-state: paused; }

/* ---------- reveal general ---------- */
[data-rv] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 800ms cubic-bezier(.2,.8,.2,1), transform 800ms cubic-bezier(.2,.8,.2,1), filter 800ms; transition-delay: var(--rd, 0ms); }
[data-rv].in { opacity: 1; transform: none; filter: none; }
.sx-reasons.st-reasons > .st-card[data-rv] { transition-delay: var(--rd, 0ms); }

/* ---------- carduri cu lumină și înclinare ---------- */
.st-card { position: relative; transform-style: preserve-3d; }
.st-card[data-rv].in { transition: opacity 800ms, filter 800ms, transform 220ms ease-out, border-color 150ms, box-shadow 220ms; }
.st-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 250ms;
  background: radial-gradient(360px circle at var(--cx, 50%) var(--cy, 50%), rgba(0,102,255,.10), transparent 60%); }
.st-card:hover::after { opacity: 1; }
.st-card[data-tilt].in:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); box-shadow: 0 24px 48px rgba(10,20,64,.12); }
.sx-card .sx-icon { transition: transform 300ms; }
.sx-card:hover .sx-icon { transform: translateY(-3px) scale(1.12); }

/* ---------- pipeline de automatizare ---------- */
.st-pipe { position: relative; padding: 8px 0 0; }
.st-pipe-line { position: absolute; left: 10%; right: 10%; top: 39px; height: 2px; background: var(--line-strong); opacity: .35; border-radius: 2px; }
.st-pipe-line > i { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); transform-origin: 0 50%; transform: scaleX(0); animation: st-fill 7s ease-in-out infinite; }
.st-pipe-line > b { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-cyan); box-shadow: 0 0 0 4px rgba(43,179,255,.2), 0 0 16px var(--electric); opacity: 0; animation: st-pack 7s linear infinite; }
.st-pipe-line > .p2 { animation-delay: .35s; width: 7px; height: 7px; top: -2.5px; }
.st-pipe-line > .p3 { animation-delay: .7s; width: 5px; height: 5px; top: -1.5px; }
@keyframes st-fill { 0% { transform: scaleX(0); } 80%, 94% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes st-pack { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 80% { left: calc(100% - 10px); opacity: 1; } 84%, 100% { left: calc(100% - 10px); opacity: 0; } }
.st-pipe-nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 12px; }
.st-pipe-nodes li { position: relative; text-align: center; padding: 0 8px; }
.st-pipe-nodes b { display: block; font: 600 17px/24px var(--font-sans); color: var(--ink); margin-top: 18px; }
.st-pipe-nodes small { display: block; font-size: 14px; line-height: 21px; color: var(--muted); margin-top: 4px; }
.st-dot { display: block; width: 24px; height: 24px; margin: 20px auto 0; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); position: relative; z-index: 1;
  animation: st-lit 7s ease-out infinite; animation-delay: calc(var(--n) * 1.4s); }
.st-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--brand-cyan); opacity: 0; animation: st-ring 7s ease-out infinite; animation-delay: calc(var(--n) * 1.4s); }
@keyframes st-lit { 0% { background: var(--surface); border-color: var(--line-strong); } 3% { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(0,102,255,.18); } 55%, 92% { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 0 transparent; } 100% { background: var(--surface); border-color: var(--line-strong); } }
@keyframes st-ring { 0% { opacity: .9; transform: scale(1); } 20% { opacity: 0; transform: scale(2.4); } 100% { opacity: 0; } }

.st-log { margin: var(--space-7) auto 0; max-width: 640px; border-radius: var(--radius-md); background: var(--night); color: var(--on-night); overflow: hidden; border: 1px solid var(--night-line); box-shadow: 0 24px 60px rgba(8,17,46,.25); }
.st-log-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--night-line); font: 500 13px/1 var(--font-mono); color: var(--on-night-muted); }
.st-log-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-line); }
.st-log-bar span { margin-left: 8px; }
.st-log ol { list-style: none; margin: 0; padding: 18px 20px; font: 400 14px/26px var(--font-mono); min-height: 190px; }
.st-log li { opacity: 0; transform: translateX(-8px); transition: opacity 400ms, transform 400ms; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-log li.on { opacity: 1; transform: none; }
.st-log li::before { content: "✓ "; color: var(--electric); }
.st-log li.cur::after { content: "▍"; color: var(--electric-hi); animation: st-blink 1s steps(2) infinite; margin-left: 4px; }
@keyframes st-blink { 50% { opacity: 0; } }

/* ---------- traseu: desenat de scroll ---------- */
.sx-route .rt-line { animation: none !important; stroke-dasharray: 1 !important; stroke-dashoffset: calc(1 - var(--p, 0)) !important; }
.sx-route .rt-tail { opacity: calc((var(--p, 0) - .9) * 10) !important; transition: none !important; }
.sx-route .rt-node { transition: transform 500ms cubic-bezier(.2,.8,.2,1), opacity 400ms !important; opacity: .25 !important; transform: scale(.6) !important; animation: none !important; }
.sx-route .rt-node.on { opacity: 1 !important; transform: scale(1) !important; }
.sx-route .rt-end.on { filter: drop-shadow(0 0 10px var(--brand-cyan)); }
.sx-route-steps li { opacity: .22 !important; transform: translateY(10px) !important; transition: opacity 600ms, transform 600ms cubic-bezier(.2,.8,.2,1) !important; animation: none !important; }
.sx-route-steps li.on { opacity: 1 !important; transform: none !important; }

/* ---------- bandă CTA: aurora ---------- */
.st-band { position: relative; overflow: hidden; }
.st-band > .sx-container { position: relative; z-index: 1; }
.st-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; will-change: transform; }
.st-aurora i:nth-child(1) { width: 520px; height: 520px; left: -8%; top: -40%; background: #0066ff; animation: st-drift 16s ease-in-out infinite alternate; }
.st-aurora i:nth-child(2) { width: 420px; height: 420px; right: 4%; bottom: -50%; background: #2bb3ff; animation: st-drift 20s ease-in-out -6s infinite alternate-reverse; }
.st-aurora i:nth-child(3) { width: 300px; height: 300px; left: 42%; top: 10%; background: #4b3bff; opacity: .35; animation: st-drift 24s ease-in-out -3s infinite alternate; }
@keyframes st-drift { to { transform: translate(120px, 60px) scale(1.25); } }

/* ---------- butoane magnetice ---------- */
[data-magnet] { transition: transform 250ms cubic-bezier(.2,.8,.2,1), background 150ms, color 150ms, border-color 150ms; will-change: transform; }

/* ---------- ritm: elimină golurile ---------- */
.sx-section { padding: 88px 0; }
.sx-section-head { margin-bottom: 48px; }
.sx-grid--3 { align-items: stretch; }
.sx-ai-demo { min-height: 380px; }

@media (max-width: 900px) {
  .st-hero { min-height: 0; }
  .sx-section { padding: 64px 0; }
  .st-pipe-line { display: none; }
  .st-pipe-nodes { grid-template-columns: 1fr; gap: 20px; }
  .st-pipe-nodes li { text-align: left; display: grid; grid-template-columns: 24px 1fr; column-gap: 16px; padding: 0; }
  .st-pipe-nodes .st-dot { margin: 4px 0 0; grid-row: span 2; }
  .st-pipe-nodes b { margin-top: 0; }
  .sx-scene { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .st-fade, [data-rv], [data-split] .w > span { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
  .st-marquee-track, .st-pipe-line > i, .st-pipe-line > b, .st-dot, .st-dot::after, .st-aurora i, .sx-h1 em { animation: none !important; }
  .st-pipe-line > i { transform: scaleX(1); }
  .st-log li { opacity: 1; transform: none; }
  .sx-route .rt-line { stroke-dashoffset: 0 !important; }
  .sx-route .rt-node, .sx-route-steps li { opacity: 1 !important; transform: none !important; }
}

/* ---------- demo AI: undă vocală + poziție ---------- */
[data-sticky] { position: sticky; top: 104px; }
.st-wave { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 72px; padding: 0 24px; border-bottom: 1px solid var(--line); overflow: hidden; }
.st-wave i { flex: 1; max-width: 6px; height: calc(var(--k) * 3px); min-height: 4px; border-radius: 3px; background: linear-gradient(var(--brand-cyan), var(--brand-blue)); opacity: .85;
  animation: st-bar 1.3s ease-in-out infinite alternate; animation-delay: calc(var(--o) * -90ms); transform-origin: center; }
@keyframes st-bar { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1.6); } }
@media (max-width: 900px) { [data-sticky] { position: static; } }
@media (prefers-reduced-motion: reduce) { .st-wave i { animation: none; } }
