/* ARworks autóipari portfólió — megosztott „működést mutató” komponensek (weboldal + prezentáció):
   a hős-autó színpada, a képernyőfelvétel-szerű lejátszó és az AI + 3D beszélgetés-demó.
   Az alapállapot mindig a végleges, olvasható kép; a mozgást a demos.js (és a nyitóanimáció CSS-e) adja. */

/* a hős-autó színpada */
.ap .ap-stage { position: relative; width: calc(100% + 80px); margin-right: -80px; aspect-ratio: 16 / 10.6; min-height: 380px; }
.ap .ap-stage__floor { position: absolute; left: -6%; right: -6%; bottom: 0; height: 42%; pointer-events: none; }
.ap .ap-stage__floor::before { /* a padlóra vetülő fény */
  content: ''; position: absolute; left: 6%; right: 6%; top: -10%; height: 70%;
  background: radial-gradient(ellipse 55% 50% at 50% 40%, color-mix(in srgb, var(--paint, #ef5422) 38%, transparent), transparent 70%); transition: background 0.8s;
}
.ap .ap-stage__floor::after { /* perspektivikus padlórács, amely a nézőhöz „halad” */
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 64px 40px; transform-origin: 50% 0; transform: perspective(380px) rotateX(64deg);
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 0, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 60% 100% at 50% 0, #000 25%, transparent 78%);
  animation: ap-floor 2.4s linear infinite;
}
@keyframes ap-floor { to { background-position: 0 40px; } }
.ap .ap-car { position: absolute; left: 3%; right: 0; bottom: 21%; }
.ap .ap-car__rig { position: relative; animation: ap-drive 2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; -webkit-box-reflect: below -6px linear-gradient(transparent 58%, rgba(255, 255, 255, 0.22)); }
@keyframes ap-drive { 0% { transform: translateX(-118%); filter: blur(5px); } 62% { filter: blur(0); } 100% { transform: none; } }
.ap .ap-car__img { display: block; width: 100%; height: auto; max-width: none; pointer-events: none; user-select: none; }
.ap .ap-car__img:not(.is-on) { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.3s; }
.ap .ap-car__img.is-ghost { opacity: 0.5; }
.ap .ap-car__img.is-top { z-index: 2; opacity: 1; }
.ap .ap-car__scan { position: absolute; top: -3%; bottom: -3%; left: 0; width: 3px; z-index: 4; opacity: 0; pointer-events: none; background: linear-gradient(transparent, rgba(255, 150, 100, 0.95), transparent); box-shadow: 0 0 24px 7px rgba(239, 84, 34, 0.55); }
/* a lámpa és a fénynyaláb: az autó megérkezése után kapcsol be */
.ap .ap-car__lamp { position: absolute; z-index: 3; left: 90%; top: 36%; width: 9%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%); mix-blend-mode: screen; animation: ap-lamp 1.6s ease 1.7s both; }
.ap .ap-car__beam { position: absolute; z-index: 1; left: 93%; top: 40%; width: 40%; height: 26%; background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)); clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 62%); mix-blend-mode: screen; transform-origin: 0 50%; animation: ap-beam 2.2s ease 1.7s both; }
@keyframes ap-lamp { 0% { opacity: 0; } 30% { opacity: 1; } 42% { opacity: 0.4; } 60%, 100% { opacity: 0.95; } }
@keyframes ap-beam { 0% { opacity: 0; transform: scaleX(0.3); } 40% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0.55; transform: scaleX(1); } }
.ap .ap-stage__hud { position: absolute; left: 4%; top: 6%; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.ap .ap-stage__hud span { font: 400 10.5px/1 var(--font-mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.58); }
.ap .ap-stage__hud b { font: 300 22px/1.1 var(--font-display, 'Jost', sans-serif); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.ap .ap-stage__tag { position: absolute; right: 0; top: 6%; z-index: 5; padding: 5px 9px; font: 400 10px/1 var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); background: rgba(8, 9, 10, 0.72); border: 1px solid rgba(255, 255, 255, 0.24); }
.ap .ap-stage .ap-brk { inset: 14px 80px 14px 0; opacity: 0.55; }
.ap .ap-swatches { position: absolute; left: 50%; bottom: 6%; z-index: 6; display: flex; gap: 14px; transform: translateX(-46%); padding: 9px 16px; background: rgba(8, 9, 10, 0.66); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); }
.ap .ap-sw { position: relative; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.ap .ap-sw i { position: absolute; inset: 4px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -5px 8px rgba(0, 0, 0, 0.35), inset 0 3px 5px rgba(255, 255, 255, 0.35); transition: transform 0.3s var(--ap-ease); }
.ap .ap-sw::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.28); transition: border-color 0.25s, transform 0.3s var(--ap-ease); }
.ap .ap-sw:hover i { transform: scale(1.14); }
.ap .ap-sw.is-on::after { border-color: #fff; transform: scale(1.06); }
.ap .ap-sw span { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; padding: 5px 9px; font: 400 10px/1 var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(8, 9, 10, 0.92); border: 1px solid var(--ap-line-2); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.25s var(--ap-ease); }
.ap .ap-sw:hover span, .ap .ap-sw:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.ap .ap-stage__hint { position: absolute; left: 4%; bottom: 7.5%; z-index: 6; display: inline-flex; align-items: center; gap: 8px; font: 400 10.5px/1 var(--font-mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-400, #f2703f); animation: ap-nudge 2.2s ease-in-out 3s infinite; }
.ap .ap-stage.is-used .ap-stage__hint { opacity: 0; animation: none; transition: opacity 0.4s; }
@keyframes ap-nudge { 50% { transform: translateX(6px); } }


/* „működés közben”: valódi képernyők, kurzorral és érintésekkel */
.ap .ap-capture { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 8px 0 80px; }
.ap .ap-cap { position: relative; padding-bottom: 34px; }
.ap .ap-cap__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 10px solid #1b1e21; outline: 1px solid rgba(255, 255, 255, 0.26); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9); }
.ap .ap-cap__frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; }
.ap .ap-cap__frames img.is-on { opacity: 1; }
.ap .ap-cap__cursor { position: absolute; left: 50%; top: 62%; z-index: 6; width: 0; height: 0; opacity: 0; transition: opacity 0.4s; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6)); }
.ap .ap-cap__cursor svg { position: absolute; left: -5px; top: -3px; }
.ap .ap-cap.is-live .ap-cap__cursor { opacity: 1; }
.ap .ap-cap__tap { position: absolute; left: 0; top: 0; z-index: 5; width: 0; height: 0; pointer-events: none; }
.ap .ap-cap__tap i { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ap-orange); background: rgba(239, 84, 34, 0.18); opacity: 0; transform: scale(0.2); }
.ap .ap-cap__tap.is-tap i { animation: ap-ripple 0.9s ease-out; }
.ap .ap-cap__tap.is-tap i:nth-child(2) { animation-delay: 0.14s; }
@keyframes ap-ripple { 0% { opacity: 0.95; transform: scale(0.2); } 70%, 100% { opacity: 0; transform: scale(2.1); } }
.ap .ap-cap__rec { position: absolute; left: 14px; top: 12px; z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px; font: 400 10.5px/1 var(--font-mono, monospace); letter-spacing: 0.12em; color: #fff; background: rgba(8, 9, 10, 0.72); border: 1px solid rgba(255, 255, 255, 0.26); }
.ap .ap-cap__rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: ap-blink 1.2s ease-in-out infinite; }
.ap .ap-cap__rec b { font-weight: 400; min-width: 3.4ch; }
.ap .ap-cap__tag { position: absolute; right: 14px; top: 12px; z-index: 6; max-width: 70%; padding: 6px 10px; font: 400 10.5px/1.2 var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--ap-orange); opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.4s var(--ap-ease); }
.ap .ap-cap__tag.is-on { opacity: 1; transform: none; }
.ap .ap-cap .ap-brk { inset: 8px; }
.ap .ap-cap__stand { position: absolute; left: 50%; bottom: 0; width: 190px; height: 34px; transform: translateX(-50%); background: linear-gradient(180deg, #1b1e21, #0f1113); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.ap .ap-capture__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ap .ap-capture__lead { font-size: 15.5px; line-height: 1.55; color: var(--ap-mute); }
.ap .ap-cap__steps { width: 100%; margin-top: 6px; border-top: 1px solid var(--ap-line); }
.ap .ap-cap__step { border-bottom: 1px solid var(--ap-line); }
.ap .ap-cap__step button { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px; width: 100%; padding: 15px 0 15px 14px; text-align: left; cursor: pointer; background: none; border: 0; border-left: 2px solid transparent; color: rgba(255, 255, 255, 0.55); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.ap .ap-cap__step[data-still] button { cursor: default; }
.ap .ap-cap__step button:hover { color: rgba(255, 255, 255, 0.85); }
.ap .ap-cap__step.is-on button { color: #fff; border-left-color: var(--ap-orange); background: linear-gradient(90deg, rgba(239, 84, 34, 0.12), transparent); }
.ap .ap-cap__n { font: 300 22px/1 var(--font-display, 'Jost', sans-serif); color: var(--ap-orange); }
.ap .ap-cap__step b { display: block; font: 400 17px/1.2 var(--font-display, 'Jost', sans-serif); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 400; }
.ap .ap-cap__step em { display: block; font-style: normal; font-size: 14px; line-height: 1.45; margin-top: 4px; color: rgba(255, 255, 255, 0.62); }
@media (max-width: 1000px) { .ap .ap-capture { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; } }


/* ------------------------------------------------------------ AI + 3D beszélgetés-demó */
.ap .ap-ai { display: flex; flex-direction: column; background: #0c0e10; border: 1px solid var(--ap-line-2); }
.ap .ap-ai__stage { position: relative; }
.ap .ap-ai__top { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--ap-line); background: rgba(255, 255, 255, 0.025); }
.ap .ap-ai__top b { font: 400 11px/1 var(--font-mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ap-mute); font-weight: 400; }
.ap .ap-ai__dots { display: inline-flex; gap: 6px; }
.ap .ap-ai__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.ap .ap-ai__dots i:first-child { background: var(--ap-orange); }
.ap .ap-ai__scene { position: relative; aspect-ratio: 16 / 9.6; overflow: hidden; background: radial-gradient(70% 70% at 50% 100%, rgba(239, 84, 34, 0.2), transparent 70%), linear-gradient(#0c0e10, #121518); }
.ap .ap-ai__scene::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 48px 30px; transform-origin: 50% 0; transform: perspective(300px) rotateX(62deg); -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); pointer-events: none; }
.ap .ap-ai__car { position: absolute; left: 9%; right: 9%; bottom: 17%; transition: opacity 0.5s, transform 0.7s var(--ap-ease); }
.ap .ap-ai__car img { display: block; width: 100%; height: auto; max-width: none; }
.ap .ap-ai__car img:not(.is-on) { position: absolute; left: 0; top: 0; opacity: 0; }
.ap .ap-ai__scan { position: absolute; top: -4%; bottom: -4%; left: 0; width: 3px; opacity: 0; pointer-events: none; background: linear-gradient(transparent, rgba(255, 150, 100, 0.95), transparent); box-shadow: 0 0 22px 6px rgba(239, 84, 34, 0.5); }
.ap .ap-ai__cmp { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 8% 6% 12%; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.ap .ap-ai__trim { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 12px 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--ap-line-2); transform: translateY(14px); opacity: 0; transition: transform 0.7s var(--ap-ease), opacity 0.6s; }
.ap .ap-ai__trim img { width: 100%; height: auto; }
.ap .ap-ai__trim b { font: 400 17px/1 var(--font-display, 'Jost', sans-serif); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; }
.ap .ap-ai__trim ul { display: grid; gap: 4px; }
.ap .ap-ai__trim li { font: 400 10.5px/1.3 var(--font-mono, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ap-mute); }
.ap .ap-ai__trim li::before { content: '✓ '; color: var(--ap-ok); }
.ap .ap-ai__trim--b { transition-delay: 0.18s; }
.ap .ap-ai.is-compare .ap-ai__car { opacity: 0; transform: scale(0.94); }
.ap .ap-ai.is-compare .ap-ai__cmp { opacity: 1; }
.ap .ap-ai.is-compare .ap-ai__trim { transform: none; opacity: 1; }
.ap .ap-ai__lead { position: absolute; right: 5%; bottom: 14%; display: flex; align-items: flex-end; gap: 14px; opacity: 0; pointer-events: none; }
.ap .ap-ai__card { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; background: rgba(8, 9, 10, 0.92); border: 1px solid var(--ap-orange); transform: translateX(-60px); transition: transform 0.9s var(--ap-ease); }
.ap .ap-ai__card b { font: 400 10.5px/1 var(--font-mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-400, #f2703f); font-weight: 400; margin-bottom: 3px; }
.ap .ap-ai__card span { font-size: 12.5px; color: rgba(255, 255, 255, 0.86); }
.ap .ap-ai__to { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ap-orange); }
.ap .ap-ai__to svg { width: 56px; height: 56px; }
.ap .ap-ai__to em { font: 400 10px/1 var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; color: var(--ap-mute); }
.ap .ap-ai.is-lead .ap-ai__lead { opacity: 1; transition: opacity 0.4s; }
.ap .ap-ai.is-lead .ap-ai__card { transform: none; }
.ap .ap-ai__chips { position: absolute; left: 16px; top: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 3; }
.ap .ap-ai__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font: 400 10.5px/1 var(--font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: rgba(8, 9, 10, 0.86); border: 1px solid rgba(61, 214, 140, 0.55); animation: ap-chip-in 0.5s var(--ap-ease) both; }
.ap .ap-ai__chips li i { color: var(--ap-ok); font-style: normal; }
.ap .ap-ai__chips li em { font-style: normal; color: var(--ap-ok); opacity: 0.85; }
@keyframes ap-chip-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.ap .ap-ai__tag { position: absolute; right: 14px; bottom: 12px; z-index: 4; max-width: 62%; padding: 5px 9px; text-align: right; font: 400 10px/1.25 var(--font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); background: rgba(8, 9, 10, 0.72); border: 1px solid rgba(255, 255, 255, 0.24); }
.ap .ap-ai__chat { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-top: 1px solid var(--ap-line); background: #0a0c0e; }
.ap .ap-ai__log { display: flex; flex-direction: column; gap: 8px; height: 168px; overflow: hidden; justify-content: flex-end; }
.ap .ap-msg { max-width: 82%; padding: 9px 13px; font-size: 14px; line-height: 1.4; animation: ap-msg 0.45s var(--ap-ease) both; }
.ap .ap-msg--u { align-self: flex-end; color: #fff; background: rgba(239, 84, 34, 0.22); border: 1px solid rgba(239, 84, 34, 0.55); }
.ap .ap-msg--a { align-self: flex-start; color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--ap-line-2); }
.ap .ap-msg--a.is-typing { display: inline-flex; gap: 5px; padding: 12px 14px; }
.ap .ap-msg--a.is-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); animation: ap-dot 1s ease-in-out infinite; }
.ap .ap-msg--a.is-typing i:nth-child(2) { animation-delay: 0.15s; }
.ap .ap-msg--a.is-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ap-msg { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ap-dot { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.ap .ap-ai__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.ap .ap-ai__quick button { padding: 9px 12px; cursor: pointer; font: 500 12.5px/1 var(--font-body, sans-serif); color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.34); border-radius: 2px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.ap .ap-ai__quick button:hover, .ap .ap-ai__quick button.is-on { background: #fff; color: #000; border-color: #fff; }
.ap .ap-ai__replay { display: inline-grid; place-items: center; width: 36px; padding: 0 !important; margin-left: auto; }
.ap .ap-ai__input { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ap-line-2); font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.ap .ap-ai__input.is-typing { color: #fff; }
.ap .ap-ai__typed { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap .ap-ai__caret { width: 1.5px; height: 17px; background: var(--ap-orange); animation: ap-blink-c 1s steps(2) infinite; opacity: 0; }
.ap .ap-ai__input.is-typing .ap-ai__caret { opacity: 1; }
.ap .ap-ai__send { margin-left: auto; color: var(--ap-orange); display: inline-flex; }
@keyframes ap-blink-c { 50% { opacity: 0; } }
@media (max-width: 1100px) { .ap .ap-aigrid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .ap .ap-ai__log { height: 150px; } .ap .ap-msg { font-size: 13px; } .ap .ap-ai__chips li { font-size: 9.5px; } }

