/* ==========================================================================
   Mozgó elemek: hero-kompozíció, videó-szerű bemutató (lejátszó + jelenetek),
   folyamat-csővezeték, bento-illusztrációk.
   A jelenetek em-ben méretezettek: a .player-stage betűmérete a szélességhez kötött
   (cqw), így az egész jelenet arányosan skálázódik.
   ========================================================================== */

/* ---------- Közös mozgások (több helyen használt) ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes grow-x { 0% { transform: scaleX(0); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: .0; } }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.ping { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); flex: none; }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); animation: ping 1.6s ease-out infinite; }

/* ---------- Hero háttér: fénysugarak + fénytócsa ---------- */
.rays { position: absolute; inset: -20% -10% 0 -10%; pointer-events: none; overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 62% 18%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 70% at 62% 18%, #000 25%, transparent 75%); }
.rays i { position: absolute; inset: 0; filter: blur(14px); }
.rays i:nth-child(1) { background: repeating-linear-gradient(102deg, transparent 0 70px, rgba(40,196,95,.16) 70px 86px, transparent 86px 150px, rgba(var(--mi),.10) 150px 158px, transparent 158px 230px); animation: rays-a 22s ease-in-out infinite alternate; }
.rays i:nth-child(2) { background: repeating-linear-gradient(98deg, transparent 0 120px, rgba(var(--mi),.12) 120px 132px, transparent 132px 260px); filter: blur(22px); animation: rays-b 30s ease-in-out infinite alternate; opacity: .9; }
.rays i:nth-child(3) { background: linear-gradient(100deg, transparent 40%, rgba(var(--mi),.18) 48%, transparent 56%); filter: blur(30px); animation: rays-sweep 9s ease-in-out infinite; }
@keyframes rays-a { from { transform: translateX(-4%) skewX(-4deg); } to { transform: translateX(6%) skewX(3deg); } }
@keyframes rays-b { from { transform: translateX(5%) skewX(3deg); opacity: .6; } to { transform: translateX(-6%) skewX(-3deg); opacity: 1; } }
@keyframes rays-sweep { 0% { transform: translateX(-60%); opacity: 0; } 15% { opacity: 1; } 60% { opacity: 1; } 100% { transform: translateX(70%); opacity: 0; } }
.glow-pool { position: absolute; right: -8%; top: 4%; width: 62%; height: 70%; pointer-events: none; background: radial-gradient(closest-side, rgba(40,196,95,.34), transparent); filter: blur(42px); animation: pool 8s ease-in-out infinite alternate; }
.glow-pool.gp-2 { left: -18%; right: auto; top: 50%; width: 46%; height: 50%; opacity: .5; animation-duration: 11s; }
@keyframes pool { from { opacity: .65; transform: scale(.95); } to { opacity: 1; transform: scale(1.06); } }

/* ---------- Hero: bekötött folyamat (érdeklődő → ajánlat → projekt → pénzügy) ---------- */
@property --on { syntax: '<number>'; inherits: true; initial-value: 0; }
.hf { position: relative; width: 100%; max-width: 580px; margin-left: auto; aspect-ratio: 560 / 500; container-type: inline-size; }
/* A cqw a legközelebbi KONTÉNER-ŐSHÖZ mér, ezért a betűméret a gyerekeken van, nem a .hf-en. */
.hf > .hf-panel { font-size: 2.55cqw; }
.hf-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hf-base { fill: none; stroke: rgba(var(--wh),.10); stroke-width: 1.5; stroke-dasharray: 4 6; }
.hf-wire { fill: none; stroke: var(--mint-hex); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(var(--mi),.75)); }
.hf-spark { fill: var(--spark); filter: drop-shadow(0 0 6px rgba(var(--mi),.95)) drop-shadow(0 0 14px rgba(40,196,95,.8)); }

.hf-panel { --on: 0; position: absolute; width: 44%; height: 26%; padding: 1em 1.1em; border-radius: 1.2em; color: var(--d-ink);
    background: var(--panel);
    border: 1px solid rgba(var(--mi), calc(.08 + var(--on) * .5));
    box-shadow: 0 0 0 1px rgba(var(--mi), calc(var(--on) * .18)), 0 1.6em 3.4em -1.4em rgba(40,196,95, calc(var(--on) * .7)), 0 1.4em 3em -1.6em rgba(0,0,0,.8);
    filter: saturate(calc(.55 + var(--on) * .45)) brightness(calc(.8 + var(--on) * .2));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden;
    animation: var(--anim) 9s linear infinite, hf-in .9s var(--ease) both; }
.hf-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(var(--mi),.10) 50%, transparent 70%); transform: translateX(-100%); opacity: var(--on); animation: hf-shine 3s ease-in-out infinite; pointer-events: none; }
.hf-k { display: block; font-family: var(--mono); font-size: .62em; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--mi), calc(.5 + var(--on) * .5)); margin-bottom: .7em; }
.hf-row { display: flex; align-items: center; gap: .7em; }
.hf-tile { width: 2.4em; height: 2.4em; border-radius: .7em; display: grid; place-items: center; flex: none; color: var(--mint-hex);
    background: rgba(var(--mi), calc(.08 + var(--on) * .14)); box-shadow: inset 0 0 0 1px rgba(var(--mi), calc(.15 + var(--on) * .35)); }
.hf-tile .icon { width: 1.2em; height: 1.2em; }
.hf-t { font-weight: 700; font-size: 1.08em; letter-spacing: -0.01em; line-height: 1.2; }
.hf-s { display: block; font-size: .74em; color: var(--d-ink-3); margin-top: .15em; }
.hf-sk { display: grid; gap: .4em; margin-top: .9em; }
.hf-sk i { display: block; height: .45em; border-radius: 1em; background: rgba(var(--wh),.08); }
.hf-sk i:first-child { width: 78%; } .hf-sk i:last-child { width: 52%; }
.hf-pill { display: inline-flex; align-items: center; gap: .35em; margin-top: .8em; padding: .3em .75em; border-radius: 2em; font-size: .72em; font-weight: 700;
    background: rgba(var(--mi), calc(var(--on) * .16)); color: var(--mint-hex); border: 1px solid rgba(var(--mi), calc(.15 + var(--on) * .3)); opacity: calc(.35 + var(--on) * .65); }
.hf-pill .icon { width: 1.1em; height: 1.1em; stroke-width: 2.6; }
.hf-bars { display: grid; gap: .35em; margin-top: .8em; }
.hf-bars span { position: relative; height: .5em; border-radius: 1em; background: rgba(var(--wh),.07); overflow: hidden; }
.hf-bars span::after { content: ""; position: absolute; inset: 0 auto 0 var(--l); width: var(--w); border-radius: 1em; background: linear-gradient(90deg, #4fd88a, var(--mint-hex)); transform-origin: left; transform: scaleX(var(--on)); transition: transform .6s var(--ease); }
.hf-spark-line { width: 100%; height: 2.2em; margin-top: .5em; overflow: visible; }
.hf-spark-line path { fill: none; stroke: var(--mint-hex); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: calc(.35 + var(--on) * .65); }
.hf-big { font-size: 1.35em; font-weight: 800; letter-spacing: -0.03em; color: var(--hf-big); }

.hf-p1 { left: 2%; top: 4%; --anim: hf-on1; }
.hf-p2 { left: 54%; top: 20%; --anim: hf-on2; animation-delay: 0s, .12s; }
.hf-p3 { left: 8%; top: 54%; --anim: hf-on3; animation-delay: 0s, .24s; }
.hf-p4 { left: 56%; top: 76%; width: 40%; height: 22%; --anim: hf-on4; animation-delay: 0s, .36s; }
@keyframes hf-on1 { 0%, 26% { --on: 1; } 32%, 94% { --on: 0; } 100% { --on: 1; } }
@keyframes hf-on2 { 0%, 25% { --on: 0; } 29%, 54% { --on: 1; } 60%, 100% { --on: 0; } }
@keyframes hf-on3 { 0%, 53% { --on: 0; } 57%, 80% { --on: 1; } 86%, 100% { --on: 0; } }
@keyframes hf-on4 { 0%, 79% { --on: 0; } 83%, 96% { --on: 1; } 100% { --on: 0; } }
@keyframes hf-in { from { opacity: 0; translate: 0 1.6em; } }
@keyframes hf-shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.hf-badge { position: absolute; right: 0; top: 2%; display: flex; align-items: center; gap: .6em; padding: .6em 1em; border-radius: 2em; font-size: max(12px, 2cqw); color: var(--d-ink-2);
    background: var(--badge-bg); border: 1px solid var(--d-line); backdrop-filter: blur(10px); animation: float 6s ease-in-out infinite, hf-in .9s .6s var(--ease) both; }
.hf-badge b { color: var(--mint-hex); }
@media (max-width: 980px) { .hf { margin: 10px auto 0; } }
@media (max-width: 560px) { .hf-badge { display: none; } }
@media (prefers-reduced-motion: reduce) { .hf-panel { animation: none; --on: 1; } .hf-spark { display: none; } .rays i, .glow-pool { animation: none; } }

/* ---------- Lejátszó ---------- */
.player { position: relative; background: linear-gradient(180deg, rgba(var(--wh),.07), rgba(var(--wh),.02)); border: 1px solid var(--d-line); border-radius: 26px; padding: 10px 10px 14px; box-shadow: 0 0 0 1px rgba(var(--mi),.12), 0 50px 120px -40px rgba(16,185,129,.55), var(--shadow-lg); color: var(--d-ink); }
.player-chrome { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 8px 12px; font-size: .8rem; }
.pc-dots { display: flex; gap: 6px; }
.pc-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(var(--wh),.16); }
.pc-dots i:first-child { background: #f87171; } .pc-dots i:nth-child(2) { background: #fbbf24; } .pc-dots i:nth-child(3) { background: #4ade80; }
.pc-url { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem 1rem; border-radius: 999px; background: rgba(var(--wh),.06); color: var(--d-ink-2); font-family: var(--mono); font-size: .76rem; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pc-url [data-player-url] { overflow: hidden; text-overflow: ellipsis; }
.pc-lock { width: 12px; height: 12px; color: var(--lime); }
.pc-live { display: inline-flex; align-items: center; gap: .4rem; color: var(--d-ink-3); font-size: .74rem; white-space: nowrap; }
.pc-live i { width: 7px; height: 7px; border-radius: 50%; background: #f87171; animation: blink 1.4s infinite; }
.player.is-paused .pc-live i { animation: none; opacity: .4; }
@keyframes blink { 50% { opacity: .25; } }

.player-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #f3f7f4; color: #0b1a12; container-type: inline-size; line-height: 1.35; }
.player-stage > * { font-size: 1.6cqw; }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.scene.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease; z-index: 2; }
.scene.is-active:not(.is-leaving) { animation: scene-in .45s ease both; }
.scene.is-leaving { z-index: 1; opacity: 1; }
@keyframes scene-in { from { opacity: 0; } }
.player.is-paused .scene *, .player.is-paused .scene *::before, .player.is-paused .scene *::after { animation-play-state: paused !important; }
.player-bigplay { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--grad); color: var(--on-grad-2); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 10px rgba(var(--mi),.18), 0 20px 40px -10px rgba(0,0,0,.5); opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 5; }
.player-bigplay svg { width: 34px; height: 34px; fill: currentColor; margin-left: 5px; }
.player.is-paused .player-bigplay { opacity: 1; transform: none; pointer-events: auto; }
.player.is-paused .player-stage::after { content: ""; position: absolute; inset: 0; background: rgba(10,12,11,.35); z-index: 4; pointer-events: none; }
.player-bigplay:hover { transform: scale(1.06); }

.player-caption { margin: 14px 10px 4px; min-height: 2.9em; font-size: clamp(.98rem, 1.5vw, 1.12rem); color: var(--d-ink) !important; text-align: center; transition: opacity .3s, transform .3s; }
.player-caption.is-changing { opacity: 0; transform: translateY(6px); }

.player-controls { display: flex; align-items: center; gap: 14px; padding: 6px 8px 0; }
.pc-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--d-line); background: rgba(var(--wh),.06); color: var(--d-ink); display: grid; place-items: center; cursor: pointer; flex: none; transition: background .2s; }
.pc-btn:hover { background: rgba(var(--wh),.14); }
.pc-btn svg { width: 16px; height: 16px; fill: currentColor; }
.pc-btn .i-play { display: none; margin-left: 2px; }
.player.is-paused .pc-btn .i-play { display: block; } .player.is-paused .pc-btn .i-pause { display: none; }
.chapters { display: flex; gap: 6px; flex: 1; min-width: 0; }
.chapter { flex-basis: 0; min-width: 0; background: none; border: 0; padding: 6px 0; cursor: pointer; text-align: left; color: var(--d-ink-3); font: inherit; }
.chapter-bar { display: block; height: 4px; border-radius: 4px; background: rgba(var(--wh),.12); overflow: hidden; margin-bottom: 8px; transition: height .2s; }
.chapter:hover .chapter-bar { height: 6px; }
.chapter-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 4px; }
.chapter.is-done .chapter-bar i { width: 100%; }
.chapter-label { display: block; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.chapter-label b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(var(--wh),.08); font-size: .66rem; margin-right: 3px; }
.chapter.is-active .chapter-label { color: var(--d-ink); }
.chapter.is-active .chapter-label b { background: var(--lime); color: var(--on-grad-2); }
.pc-time { font-family: var(--mono); font-size: .78rem; color: var(--d-ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
    .player { padding: 6px 6px 12px; border-radius: 20px; }
    .pc-live { display: none; }
    .player-stage { aspect-ratio: 3 / 4; }
    .player-stage > * { font-size: 2.9cqw; }
    .chapter-label { font-size: 0; } .chapter-label b { font-size: .66rem; }
    .pc-time { display: none; }
}

/* ---------- Jelenet: közös ERP-keret ---------- */
.erp { position: absolute; inset: 0; display: grid; grid-template-columns: 9.5em 1fr; background: #f3f7f4; }
.e-side { background: #052417; color: rgba(234,255,242,.6); padding: 1.3em .8em; display: flex; flex-direction: column; gap: .35em; }
.e-logo { display: block; margin: 0 0 1.2em .5em; }
.e-logo svg { width: 2.4em; height: 2.4em; }
.e-nav { display: flex; align-items: center; gap: .6em; padding: .6em .7em; border-radius: .7em; font-size: .9em; }
.e-nav .icon { width: 1.25em; height: 1.25em; }
.e-nav em { font-style: normal; }
.e-nav.on { background: rgba(134,233,168,.15); color: #c9f7d9; }
.e-main { padding: 1.5em 1.8em; display: flex; flex-direction: column; min-width: 0; }
.e-top { display: flex; align-items: center; gap: 1em; margin-bottom: 1.2em; }
.e-top strong { font-size: 1.45em; letter-spacing: -0.02em; margin-right: auto; }
.e-search { display: inline-flex; gap: .4em; align-items: center; padding: .45em 1em; border-radius: 2em; background: #fff; border: 1px solid #dfe8e2; color: #7a8a81; font-size: .85em; }
.e-search .icon { width: 1.1em; height: 1.1em; }
.e-avatar { width: 2.2em; height: 2.2em; border-radius: 50%; background: #064e3b; color: #86e9a8; display: grid; place-items: center; font-size: .8em; font-weight: 700; }
.e-pill { padding: .3em .9em; border-radius: 2em; background: #dcfce7; color: #065f46; font-size: .8em; font-weight: 700; }
.e-progress { font-size: .9em; color: #45554c; }
.e-progress b { color: #059669; font-size: 1.2em; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
    .erp { grid-template-columns: 3.6em 1fr; }
    .e-nav em, .e-search { display: none; }
    .e-logo { margin-left: 0; }
    .e-side { padding: 1em .45em; align-items: center; }
    .e-main { padding: 1.2em 1em; }
}

/* ---------- 1. jelenet: weboldal ---------- */
.w-site { position: absolute; inset: 0; background: #fbfdfb; display: flex; flex-direction: column; overflow: hidden; }
.w-nav { display: flex; align-items: center; gap: 1.6em; padding: 1em 1.8em; border-bottom: 1px solid #e4ece6; font-size: .92em; }
.w-brand { display: inline-flex; align-items: center; gap: .5em; font-weight: 800; letter-spacing: -0.02em; }
.w-brand i { width: 1.4em; height: 1.4em; border-radius: .4em; background: linear-gradient(135deg, #10b981, #86e9a8); }
.w-links { display: flex; gap: 1.4em; color: #6b7a72; margin-right: auto; }
.w-links b { color: #064e3b; }
.w-navcta { padding: .45em 1.1em; border-radius: 2em; background: #064e3b; color: #fff; font-weight: 600; font-size: .9em; }
.w-body { padding: 1.4em 1.8em; flex: 1; }
.w-head { margin-bottom: 1.2em; }
.w-head small { color: #059669; font-weight: 700; font-size: .8em; letter-spacing: .08em; text-transform: uppercase; }
.w-head strong { display: block; font-size: 2em; letter-spacing: -0.03em; line-height: 1.1; margin: .15em 0 .5em; }
.w-filters { display: flex; gap: .5em; }
.w-filters i { font-style: normal; font-size: .78em; padding: .35em .9em; border-radius: 2em; border: 1px solid #dfe8e2; color: #45554c; }
.w-filters i.on { background: #064e3b; border-color: #064e3b; color: #c9f7d9; }
.w-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1em; }
.w-card { position: relative; background: #fff; border: 1px solid #e4ece6; border-radius: 1em; overflow: visible; box-shadow: 0 .4em 1.2em -.6em rgba(6,20,12,.15); }
.w-house { width: 100%; height: auto; border-radius: 1em 1em 0 0; }
.w-info { padding: .8em 1em 1em; display: grid; gap: .1em; }
.w-info b { font-size: 1.05em; }
.w-info span { font-size: .8em; color: #6b7a72; }
.w-info em { font-style: normal; font-weight: 800; color: #059669; font-size: .95em; margin-top: .2em; }
.w-btn { position: absolute; right: 1em; bottom: 1em; padding: .45em .9em; border-radius: 2em; background: linear-gradient(135deg, #4ade80, #86e9a8); color: #052417; font-weight: 700; font-size: .78em; }
.w-cursor { position: absolute; right: 2.6em; bottom: -.4em; width: 2em; height: 2em; opacity: 0; z-index: 3; }
.w-cursor svg { width: 100%; height: 100%; filter: drop-shadow(0 .2em .3em rgba(0,0,0,.3)); }
.w-ripple { position: absolute; left: -.6em; top: -.6em; width: 1.6em; height: 1.6em; border-radius: 50%; border: .15em solid #22c55e; opacity: 0; }
.w-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 22em; background: #fff; box-shadow: -1em 0 3em -1em rgba(6,20,12,.25); padding: 2em 1.8em; display: flex; flex-direction: column; gap: .9em; transform: translateX(105%); z-index: 4; }
.w-panel small { color: #059669; font-weight: 700; font-size: .8em; text-transform: uppercase; letter-spacing: .08em; }
.w-panel strong { font-size: 1.5em; letter-spacing: -0.02em; margin-bottom: .3em; }
.w-panel label { display: grid; gap: .35em; font-size: .78em; color: #6b7a72; font-weight: 600; }
.w-panel label span { display: block; padding: .7em .9em; border: 1.5px solid #dfe8e2; border-radius: .7em; color: #06140c; font-size: 1.2em; font-weight: 500; min-height: 2.6em; }
.type { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: 0; font-weight: 500; border-right: .1em solid transparent; }
.w-send { margin-top: auto; text-align: center; padding: .8em; border-radius: 2em; background: #064e3b; color: #c9f7d9; font-weight: 700; }
.w-toast { position: absolute; left: 50%; bottom: 1.6em; transform: translate(-50%, 200%); display: flex; align-items: center; gap: .6em; padding: .8em 1.4em; border-radius: 2em; background: #052417; color: #c9f7d9; font-weight: 600; box-shadow: 0 1em 2em -.8em rgba(0,0,0,.5); z-index: 5; }
.w-toast .icon { width: 1.3em; height: 1.3em; background: #86e9a8; color: #052417; border-radius: 50%; padding: .15em; stroke-width: 3; }

.scene-web.is-active .w-card { animation: up-in .6s var(--ease) both; }
.scene-web.is-active .w-card:nth-child(2) { animation-delay: .12s; } .scene-web.is-active .w-card:nth-child(3) { animation-delay: .24s; }
.scene-web.is-active .w-target { animation: up-in .6s .12s var(--ease) both, w-focus .5s 1.5s var(--ease) forwards; }
.scene-web.is-active .w-cursor { animation: w-cursor 2.4s .5s var(--ease) both; }
.scene-web.is-active .w-ripple { animation: ripple .6s 2.05s ease-out both; }
.scene-web.is-active .w-btn { animation: press .3s 2.05s both; }
.scene-web.is-active .w-panel { animation: slide-in .6s 2.4s var(--ease) forwards; }
.scene-web.is-active .type { animation: type .8s 3.0s steps(var(--n)) forwards, caret .5s 3.0s step-end 2; }
.scene-web.is-active .type.t2 { animation: type .9s 3.9s steps(var(--n)) forwards, caret .5s 3.9s step-end 2; }
.scene-web.is-active .type.t3 { animation: type .6s 4.9s steps(var(--n)) forwards, caret .5s 4.9s step-end 2; }
.scene-web.is-active .w-send { animation: press .35s 5.6s both; }
.scene-web.is-active .w-toast { animation: toast-up .6s 5.85s var(--ease) forwards; }
@keyframes up-in { from { opacity: 0; transform: translateY(1.5em); } }
@keyframes up-show { from { opacity: 0; transform: translateY(1.5em); } to { opacity: 1; transform: none; } }
@keyframes w-focus { to { transform: translateY(-.4em); box-shadow: 0 0 0 .2em #4ade80, 0 1.4em 2.4em -1em rgba(6,78,59,.45); } }
@keyframes w-cursor { 0% { opacity: 0; transform: translate(-14em, 9em); } 15% { opacity: 1; } 65% { transform: translate(0, 0); } 70% { transform: translate(0,0) scale(.85); } 76% { transform: translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(0,0); opacity: 0; } }
@keyframes ripple { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(2.2); } }
@keyframes press { 50% { transform: scale(.9); filter: brightness(1.15); } }
@keyframes slide-in { to { transform: none; } }
@keyframes type { to { width: calc(var(--n) * 0.62em); } }
@keyframes caret { 50% { border-right-color: #22c55e; } }
@keyframes toast-up { to { transform: translate(-50%, 0); } }
@media (max-width: 700px) {
    .w-links { display: none; }
    .w-cards { grid-template-columns: 1fr 1fr; }
    .w-c3 { display: none; }
    .w-head strong { font-size: 1.6em; }
    .w-panel { top: auto; left: 0; width: auto; height: 62%; border-radius: 1.4em 1.4em 0 0; transform: translateY(105%); box-shadow: 0 -1em 3em -1em rgba(6,20,12,.3); }
}

/* ---------- 2. jelenet: CRM kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9em; flex: 1; }
.k-col { background: #e9f1ec; border-radius: 1em; padding: .8em; display: flex; flex-direction: column; gap: .7em; }
.k-col .k-h { margin: 0 0 .1em; font-size: .85em; display: flex; justify-content: space-between; color: #45554c; letter-spacing: 0; }
.k-col .k-h i { font-style: normal; background: #fff; border-radius: 2em; padding: 0 .6em; font-size: .9em; }
.k-card { background: #fff; border-radius: .8em; padding: .75em .85em; display: grid; gap: .25em; box-shadow: 0 .15em .4em rgba(6,20,12,.06); }
.k-card b { font-size: .9em; }
.k-card > span { font-size: .75em; color: #6b7a72; }
.tag { font-style: normal; justify-self: start; font-size: .66em; font-weight: 700; padding: .2em .65em; border-radius: 2em; background: #eef2ef; color: #45554c; }
.tag-web { background: #dcfce7; color: #065f46; }
.tag-won { background: #064e3b; color: #c9f7d9; }
.k-won { box-shadow: 0 0 0 .12em #4ade80; }
/* Az átcsúszó kártya oszlopa a többi fölött: a beúszó animáció oszloponként külön réteget nyit. */
.k-col:first-child { position: relative; z-index: 2; }
.k-new { position: relative; z-index: 2; box-shadow: 0 0 0 .15em #4ade80, 0 1em 2em -1em rgba(6,78,59,.6); }
.k-task { display: flex; align-items: center; gap: .4em; font-size: .7em !important; color: #065f46 !important; background: #f0fdf4; border-radius: .5em; padding: 0 .6em; max-height: 0; overflow: hidden; opacity: 0; }
.k-task .icon { width: 1.2em; height: 1.2em; }
.k-slot { border: .12em dashed #9fd4b2; border-radius: .8em; height: 0; opacity: 0; }
.e-toast { position: absolute; top: 1.2em; right: 1.4em; display: flex; gap: .8em; align-items: center; padding: .8em 1.2em; background: #052417; color: #eafff2; border-radius: 1em; box-shadow: 0 1em 2.4em -.8em rgba(0,0,0,.5); transform: translateY(-160%); z-index: 3; font-size: .9em; }
.e-toast b { display: block; font-size: .95em; } .e-toast small { color: rgba(234,255,242,.6); font-size: .8em; }
.e-ping { position: relative; width: .7em; height: .7em; border-radius: 50%; background: #86e9a8; flex: none; }
.e-ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #86e9a8; animation: ping 1.4s ease-out infinite; }

.scene-crm.is-active .k-col { animation: up-in .5s var(--ease) both; }
.scene-crm.is-active .k-col:nth-child(2) { animation-delay: .07s; } .scene-crm.is-active .k-col:nth-child(3) { animation-delay: .14s; } .scene-crm.is-active .k-col:nth-child(4) { animation-delay: .21s; }
.scene-crm.is-active .e-toast { animation: toast-down 4s .4s var(--ease) both; }
.scene-crm.is-active .k-new { animation: drop-card .7s .7s var(--ease) both, move-col 1s 3.6s var(--ease) forwards; }
.scene-crm.is-active .k-task { animation: task-in .5s 2.2s var(--ease) forwards; }
.scene-crm.is-active .k-slot { animation: slot-in .5s 3.1s var(--ease) forwards; }
@keyframes toast-down { 0% { transform: translateY(-160%); } 12%, 85% { transform: none; } 100% { transform: translateY(-160%); } }
@keyframes drop-card { from { opacity: 0; transform: translateY(-3em) scale(.9); } }
@keyframes move-col { to { transform: translateX(calc(100% + 2.5em)) rotate(0deg); } }
@keyframes task-in { to { max-height: 3em; opacity: 1; padding: .35em .6em; margin-top: .2em; } }
@keyframes slot-in { to { height: 7.9em; opacity: 1; } }
@media (max-width: 700px) {
    .kanban { grid-template-columns: 1fr 1fr; }
    .k-col:nth-child(n+3) { display: none; }
    .e-toast { left: 4.5em; right: .8em; }
}

/* ---------- 3. jelenet: árajánlat ---------- */
.q-wrap { flex-direction: row; gap: 1.4em; align-items: stretch; }
.q-doc { position: relative; flex: 1.6; background: #fff; border-radius: 1em; padding: 1.4em 1.6em; box-shadow: 0 1em 2.4em -1.2em rgba(6,20,12,.25); display: flex; flex-direction: column; overflow: hidden; }
.q-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1em; padding-bottom: .9em; border-bottom: 1px solid #e4ece6; }
.q-head small { color: #059669; font-weight: 700; font-size: .75em; text-transform: uppercase; letter-spacing: .08em; }
.q-head strong { display: block; font-size: 1.3em; letter-spacing: -0.02em; }
.q-tpl { font-size: .72em; padding: .3em .8em; border-radius: 2em; background: #f0fdf4; color: #065f46; font-weight: 700; }
.q-rows { display: grid; gap: .1em; flex: 1; }
.q-row { display: flex; justify-content: space-between; padding: .5em .2em; border-bottom: 1px dashed #e4ece6; font-size: .9em; opacity: 0; }
.q-row b { font-variant-numeric: tabular-nums; }
.q-total { display: flex; justify-content: space-between; align-items: center; margin-top: .9em; padding: .9em 1em; border-radius: .8em; background: #052417; color: #eafff2; }
.q-total b { font-size: 1.5em; letter-spacing: -0.02em; color: #a6f0c2; font-variant-numeric: tabular-nums; }
.q-stamp { position: absolute; right: 1.6em; top: 38%; padding: .3em .8em; border: .22em solid #16a34a; color: #16a34a; border-radius: .4em; font-weight: 900; font-size: 1.6em; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-14deg) scale(2.4); opacity: 0; background: rgba(255,255,255,.85); }
.q-side { flex: 1; display: flex; flex-direction: column; gap: .9em; }
.q-kpi { background: #fff; border-radius: 1em; padding: 1em 1.2em; box-shadow: 0 .4em 1.2em -.8em rgba(6,20,12,.25); opacity: 0; }
.q-kpi small { display: block; color: #6b7a72; font-size: .78em; }
.q-kpi b { font-size: 1.6em; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.q-meter { display: block; height: .5em; border-radius: 1em; background: #e9f1ec; margin-top: .5em; overflow: hidden; }
.q-meter i { display: block; height: 100%; width: 0; border-radius: 1em; background: linear-gradient(90deg, #10b981, #86e9a8); }
.q-mail { margin-top: auto; display: flex; align-items: center; gap: .6em; padding: .8em 1em; border-radius: 1em; background: #dcfce7; color: #065f46; font-weight: 700; font-size: .85em; opacity: 0; }
.q-mail .icon { width: 1.3em; height: 1.3em; }
.scene-quote.is-active .q-doc { animation: up-in .6s var(--ease) both; }
.scene-quote.is-active .q-row { animation: row-in .45s var(--ease) forwards; animation-delay: calc(.4s + var(--i) * .32s); }
.scene-quote.is-active .q-kpi { animation: up-show .5s var(--ease) forwards; animation-delay: .9s; }
.scene-quote.is-active .q-kpi:nth-child(2) { animation-delay: 1.05s; } .scene-quote.is-active .q-kpi:nth-child(3) { animation-delay: 1.2s; }
.scene-quote.is-active .q-meter i { animation: meter 2.4s 1.4s var(--ease) forwards; }
.scene-quote.is-active .q-mail { animation: up-show .5s 4.3s var(--ease) forwards; }
.scene-quote.is-active .q-stamp { animation: stamp .45s 5.1s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes row-in { from { opacity: 0; transform: translateX(-1em); } to { opacity: 1; transform: none; } }
@keyframes meter { to { width: 64%; } }
@keyframes stamp { to { opacity: 1; transform: rotate(-14deg) scale(1); } }
@media (max-width: 700px) {
    .q-wrap { flex-direction: column; }
    .q-side { flex-direction: row; flex-wrap: wrap; }
    .q-kpi { flex: 1 1 40%; padding: .7em .8em; } .q-kpi:nth-child(3) { display: none; }
    .q-mail { flex-basis: 100%; }
    .q-row { font-size: .8em; }
}

/* ---------- 4. jelenet: kivitelezés ---------- */
.gantt-x { position: relative; flex: 1; background: #fff; border-radius: 1em; padding: 1em 1.2em; box-shadow: 0 1em 2.4em -1.2em rgba(6,20,12,.25); display: grid; align-content: start; gap: .65em; }
.gx-head, .gx-row { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: .8em; }
.gx-head { grid-template-columns: 7.5em repeat(6, 1fr); font-size: .72em; color: #7a8a81; padding-bottom: .4em; border-bottom: 1px solid #e4ece6; }
.gx-name { font-size: .85em; font-weight: 600; }
.gx-track { position: relative; height: 2.1em; border-radius: .5em; background: repeating-linear-gradient(90deg, #f3f7f4 0 calc(16.66% - 1px), #e4ece6 calc(16.66% - 1px) 16.66%); }
.gx-bar { position: absolute; top: .25em; bottom: .25em; border-radius: .45em; transform: scaleX(0); transform-origin: left; display: flex; align-items: center; padding: 0 .6em; overflow: hidden; }
.gx-bar em { font-style: normal; font-size: .68em; font-weight: 700; white-space: nowrap; opacity: 0; }
.gx-a { background: linear-gradient(90deg, #059669, #10b981); color: #fff; }
.gx-b { background: linear-gradient(90deg, #4ade80, #86e9a8); color: #052417; }
.gx-c { background: #c7f0d6; color: #065f46; }
.gx-row { opacity: 0; }
.gx-today { position: absolute; top: 2.4em; bottom: .6em; left: calc(1.2em + 7.5em + .8em); width: .14em; background: #ef4444; border-radius: 1em; transform-origin: top; opacity: 0; }
.gx-today i { position: absolute; top: -.2em; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .62em; font-weight: 800; background: #ef4444; color: #fff; padding: .1em .5em; border-radius: 1em; }
.b-photo { position: absolute; right: 1.6em; bottom: 1.4em; width: 15em; background: #fff; border-radius: 1em; padding: .6em; box-shadow: 0 1.4em 3em -1em rgba(6,20,12,.45); opacity: 0; transform: translateY(2em) rotate(3deg) scale(.9); z-index: 3; }
.b-img { position: relative; border-radius: .7em; overflow: hidden; }
.b-img svg { width: 100%; height: auto; }
.b-rec { position: absolute; top: .5em; right: .5em; width: .7em; height: .7em; border-radius: 50%; background: #ef4444; animation: blink 1s infinite; }
.b-meta { padding: .5em .3em .2em; }
.b-meta b { display: block; font-size: .9em; } .b-meta small { font-size: .72em; color: #6b7a72; }
.scene-build.is-active .gx-row { animation: up-show .4s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .08s); }
.scene-build.is-active .gx-bar { animation: bar-grow .7s var(--ease) forwards; animation-delay: calc(.6s + var(--i) * .32s); }
.scene-build.is-active .gx-bar em { animation: fade-in .3s forwards; animation-delay: calc(1.1s + var(--i) * .32s); }
.scene-build.is-active .gx-today { animation: today 2.2s 1.2s var(--ease) forwards; }
.scene-build.is-active .b-photo { animation: photo-in .7s 3.9s cubic-bezier(.3,1.4,.5,1) forwards; }
@keyframes bar-grow { to { transform: scaleX(1); } }
@keyframes today { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 1; transform: translateX(calc((100cqw - 9.5em - 3.6em - 2.4em - 8.3em) * .56)); } }
@keyframes photo-in { to { opacity: 1; transform: rotate(-2deg); } }
@media (max-width: 700px) {
    .gx-head, .gx-row { grid-template-columns: 5.2em 1fr; }
    .gx-head { grid-template-columns: 5.2em repeat(6, 1fr); }
    .gx-name { font-size: .75em; }
    .gx-bar em { display: none; }
    .gx-today { display: none; }
    .b-photo { width: 13em; right: .8em; bottom: .8em; }
    .e-progress { display: none; }
}

/* ---------- 5. jelenet: pénzügy ---------- */
.f-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9em; margin-bottom: 1em; }
.f-kpis div { background: #fff; border-radius: 1em; padding: .9em 1.1em; box-shadow: 0 .4em 1.2em -.8em rgba(6,20,12,.25); opacity: 0; }
.f-kpis small { display: block; color: #6b7a72; font-size: .76em; }
.f-kpis b { display: block; font-size: 1.55em; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.f-kpis em { font-style: normal; font-size: .72em; font-weight: 700; color: #059669; }
.f-chart { position: relative; flex: 1; background: #052417; border-radius: 1em; padding: 1.2em 1.2em 2.2em; overflow: hidden; }
.f-bars { position: absolute; left: 1.2em; right: 1.2em; top: 1.2em; bottom: 2.2em; display: flex; align-items: flex-end; gap: .6em; }
.f-bars i { flex: 1; height: var(--h); border-radius: .4em .4em .15em .15em; background: linear-gradient(180deg, rgba(134,233,168,.75), rgba(16,185,129,.25)); transform: scaleY(0); transform-origin: bottom; }
.f-line { position: absolute; left: 1.2em; right: 1.2em; top: 1.2em; bottom: 2.2em; width: calc(100% - 2.4em); height: calc(100% - 3.4em); }
.f-line polyline { fill: none; stroke: #86e9a8; vector-effect: non-scaling-stroke; stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3000; stroke-dashoffset: 3000; filter: drop-shadow(0 0 4px rgba(134,233,168,.6)); }
.f-months { position: absolute; left: 1.2em; right: 1.2em; bottom: .6em; display: flex; gap: .6em; }
.f-months span { flex: 1; text-align: center; font-size: .66em; color: rgba(234,255,242,.5); }
.scene-finance.is-active .f-kpis div { animation: up-show .5s var(--ease) forwards; animation-delay: .2s; }
.scene-finance.is-active .f-kpis div:nth-child(2) { animation-delay: .35s; } .scene-finance.is-active .f-kpis div:nth-child(3) { animation-delay: .5s; }
.scene-finance.is-active .f-bars i { animation: bar-up .6s var(--ease) forwards; animation-delay: calc(.6s + var(--i) * .11s); }
.scene-finance.is-active .f-line polyline { animation: draw 2s 1.6s var(--ease) forwards; }
@keyframes bar-up { to { transform: scaleY(1); } }
@media (max-width: 700px) {
    .f-kpis { grid-template-columns: 1fr 1fr; } .f-kpis div:nth-child(3) { grid-column: 1 / -1; }
    .f-bars, .f-months { gap: .3em; }
}

/* ---------- Folyamat-csővezeték ---------- */
.pipe { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.pipe::before { content: ""; position: absolute; left: 8%; right: 8%; top: 38px; height: 2px; background: var(--line); }
.pipe-flow { position: absolute; left: 8%; right: 8%; top: 37px; height: 4px; overflow: hidden; border-radius: 4px; pointer-events: none; }
.pipe-flow::before { content: ""; position: absolute; top: 0; bottom: 0; width: 22%; background: linear-gradient(90deg, transparent, #22c55e, var(--mint-hex), transparent); animation: flow 3.2s linear infinite; }
@keyframes flow { from { left: -22%; } to { left: 100%; } }
.pipe-step { position: relative; text-align: center; }
.pipe-node { position: relative; width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand-ink); box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.pipe-node .icon { width: 30px; height: 30px; }
.pipe-step:first-child .pipe-node { background: var(--d-bg); color: var(--lime); border-color: transparent; box-shadow: var(--glow); }
.pipe-node::after { content: ""; position: absolute; inset: -6px; border-radius: 28px; border: 2px solid var(--green); opacity: 0; animation: node-pulse 9.6s infinite; animation-delay: calc(var(--i) * 1.6s); }
@keyframes node-pulse { 0% { opacity: 0; transform: scale(.9); } 3% { opacity: 1; } 14% { opacity: 0; transform: scale(1.15); } 100% { opacity: 0; } }
.pipe-step:hover .pipe-node { transform: translateY(-6px) rotate(-3deg); }
.pipe-step h3 { margin-bottom: .3em; }
.pipe-step p { font-size: .9rem; color: var(--ink-2); margin: 0; }
@media (max-width: 960px) {
    .pipe { grid-template-columns: 1fr; gap: 0; }
    .pipe::before, .pipe-flow { left: 38px; right: auto; top: 40px; bottom: 40px; width: 2px; height: auto; }
    .pipe-flow { width: 4px; left: 37px; }
    .pipe-flow::before { left: 0; right: 0; width: auto; height: 22%; background: linear-gradient(180deg, transparent, #22c55e, var(--mint-hex), transparent); animation-name: flow-v; }
    @keyframes flow-v { from { top: -22%; } to { top: 100%; } }
    .pipe-step { display: grid; grid-template-columns: 78px 1fr; gap: 0 20px; text-align: left; padding: 10px 0; align-items: center; }
    .pipe-node { margin: 0; grid-row: span 2; }
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); gap: 18px; }
.bento > * { grid-column: span 2; }
.bento .b-wide { grid-column: span 4; }
.bento .b-tall { grid-row: span 2; }
.bx { position: relative; overflow: hidden; border-radius: 24px; padding: 28px; background: var(--d-bg-2); border: 1px solid var(--d-line); color: var(--d-ink); display: flex; flex-direction: column; isolation: isolate; transition: border-color .3s, transform .4s var(--ease); }
.bx:hover { border-color: rgba(var(--mi),.35); transform: translateY(-4px); }
.bx::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 220px at var(--mx, 80%) var(--my, 0%), rgba(16,185,129,.22), transparent 70%); transition: background .2s; }
.bx h3 { font-size: 1.25rem; margin-bottom: .35em; }
.bx p { color: var(--d-ink-2); font-size: .95rem; margin: 0; }
.bx-art { flex: 1; min-height: 140px; margin: 0 -8px 22px; position: relative; display: flex; align-items: center; justify-content: center; }
@media (max-width: 1024px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > *, .bento .b-wide { grid-column: span 1; } .bento .b-wide { grid-column: span 2; } .bento .b-tall { grid-row: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .b-wide { grid-column: span 1; } }

/* bento: katalógus-kártyák körforgása */
.art-cat { display: flex; gap: 14px; animation: cat-slide 9s var(--ease) infinite; }
.art-cat > div { width: 150px; flex: none; border-radius: 16px; background: rgba(var(--wh),.06); border: 1px solid var(--d-line); padding: 10px; }
.art-cat svg { width: 100%; border-radius: 10px; }
.art-cat b { display: block; font-size: .85rem; margin-top: 8px; } .art-cat small { color: var(--lime); font-size: .78rem; font-weight: 700; }
@keyframes cat-slide { 0%, 25% { transform: translateX(82px); } 33%, 58% { transform: translateX(-82px); } 66%, 92% { transform: translateX(-246px); } 100% { transform: translateX(82px); } }
.b-wide .bx-art { overflow: hidden; justify-content: flex-start; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }

/* bento: leadek egymásra */
.art-leads { width: 100%; display: grid; gap: 8px; }
.art-leads div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--wh),.06); border: 1px solid var(--d-line); font-size: .82rem; animation: lead-cycle 6s var(--ease) infinite; animation-delay: calc(var(--i) * -2s); }
.art-leads em { font-style: normal; margin-left: auto; font-size: .7rem; padding: 2px 8px; border-radius: 99px; background: rgba(var(--mi),.15); color: var(--lime); }
.art-leads .ping { width: 8px; height: 8px; }
@keyframes lead-cycle { 0% { opacity: 0; transform: translateY(-14px) scale(.96); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); } }

/* bento: gantt */
.art-gantt { width: 100%; display: grid; gap: 10px; }
.art-gantt span { position: relative; height: 14px; border-radius: 7px; background: rgba(var(--wh),.06); }
.art-gantt span::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 7px; background: var(--grad); transform-origin: left; animation: grow-x 4s var(--ease) infinite; animation-delay: var(--d); }

/* bento: diagram */
.art-chart { width: 100%; height: 140px; }
.art-chart path.l { fill: none; stroke: var(--mint-hex); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-loop 5s var(--ease) infinite; }
.art-chart path.a { fill: url(#artArea); opacity: .7; }
@keyframes draw-loop { 0% { stroke-dashoffset: 1; } 50%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* bento: hangjegyzet hullám */
.art-voice { display: flex; align-items: center; gap: 16px; }
.art-mic { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: var(--on-grad-2); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(var(--mi),.5); animation: mic 1.8s infinite; }
.art-mic .icon { width: 28px; height: 28px; }
@keyframes mic { 70% { box-shadow: 0 0 0 18px rgba(var(--mi),0); } }
.art-wave { display: flex; align-items: center; gap: 4px; height: 60px; }
.art-wave i { width: 5px; border-radius: 4px; background: var(--mint); height: 20%; animation: wave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -.13s); }
@keyframes wave { 50% { height: 100%; } }

/* bento: AI-csevegő */
.art-chat { width: 100%; display: grid; gap: 10px; font-size: .84rem; }
.art-chat p { margin: 0; padding: 10px 14px; border-radius: 16px; max-width: 85%; color: var(--d-ink) !important; }
.art-chat .q { justify-self: end; background: rgba(var(--wh),.08); border-bottom-right-radius: 4px; }
.art-chat .a { background: rgba(var(--mi),.14); border-bottom-left-radius: 4px; }
.art-chat .t { display: inline-flex; gap: 4px; padding: 12px 14px; background: rgba(var(--mi),.14); border-radius: 16px; justify-self: start; }
.art-chat .t i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: dot 1.2s infinite; }
.art-chat .t i:nth-child(2) { animation-delay: .15s; } .art-chat .t i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-5px); opacity: .5; } }

/* bento: portálok */
.art-portals { position: relative; width: 190px; height: 150px; }
.art-portals span { position: absolute; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(var(--wh),.07); border: 1px solid var(--d-line); color: var(--mint); }
.art-portals span .icon { width: 24px; height: 24px; }
.art-portals .c { left: 67px; top: 40px; background: var(--grad); color: var(--on-grad-2); border: 0; box-shadow: var(--glow); }
.art-portals .p1 { left: 0; top: 0; animation: float 5s ease-in-out infinite; } .art-portals .p2 { right: 0; top: 10px; animation: float 5s -1.6s ease-in-out infinite; } .art-portals .p3 { left: 67px; bottom: -16px; animation: float 5s -3.2s ease-in-out infinite; }
.art-portals svg.links { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-portals svg.links path { stroke: rgba(var(--mi),.4); stroke-width: 1.5; stroke-dasharray: 4 5; fill: none; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }

/* ---------- Böngésző-keret (weboldal oldal) ---------- */
.device { position: relative; }
.device-glow { position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(16,185,129,.45), transparent); filter: blur(40px); z-index: 0; }
.device .player { position: relative; z-index: 1; }
