/* Ecranul mare — hemiciclu. Scena e fixă 1920×1080 și se scalează la fereastră. */
:root {
  --bg: #020202;
  --fg: #FFFFFF;
  --green: #00FF75;
  --display: 'Rajdhani', 'Arial Narrow', sans-serif;
  --body: 'Albert Sans', 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); overflow: hidden; }
body { font-family: var(--body); }

.stage {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(1); transform-origin: center;
  overflow: hidden; background: var(--bg);
}

/* fundal */
.bg { position: absolute; inset: 0;
  background: radial-gradient(900px 620px at 960px 320px, rgba(0,255,117,.20), transparent 70%),
              radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.6px) 0 0 / 32px 32px; }
.sweep { position: absolute; left: -440px; top: -1100px; width: 2800px; height: 2800px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0,255,117,.16), rgba(0,255,117,0) 50deg, rgba(0,255,117,0) 360deg);
  animation: spin 16s linear infinite; }
.arc { position: absolute; border: 1px solid rgba(0,255,117,.34); border-radius: 50%; }
.arc-outer { left: 110px; top: -320px; width: 1700px; height: 1240px; clip-path: inset(56% 0 0 0); }
.arc-inner { left: 300px; top: -195px; width: 1320px; height: 900px; clip-path: inset(60% 0 0 0); }
.floor-glow { position: absolute; left: 660px; top: 600px; width: 600px; height: 90px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,255,117,.5), rgba(0,255,117,0)); }

/* titlu */
.title { position: absolute; left: 72px; top: 56px; display: flex; flex-direction: column; gap: 14px; }
.kicker { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--green); display: flex; align-items: center; gap: 12px; }
.conn { width: 10px; height: 10px; border-radius: 50%; background: #FF4D4D; display: inline-block; }
.conn.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.title h1 { margin: 0; font-family: var(--display); font-size: 94px; font-weight: 700; line-height: .9; letter-spacing: .01em; text-transform: uppercase; }
.title .ai { color: var(--green); }
.count { display: flex; align-items: baseline; gap: 14px; margin-top: 6px; font-family: var(--display); }
.count b { font-size: 76px; font-weight: 700; line-height: .8; color: var(--green); text-shadow: 0 0 28px rgba(0,255,117,.6); }
.count span { font-size: 26px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.count em { font-style: normal; }

/* document holografic */
.doc { position: absolute; left: 750px; top: 52px; width: 420px; height: 560px; padding: 28px; display: flex; flex-direction: column; gap: 14px;
  border: 1px solid rgba(0,255,117,.6); background: linear-gradient(180deg, rgba(0,255,117,.13), rgba(0,255,117,.03));
  box-shadow: 0 0 60px rgba(0,255,117,.22), inset 0 0 40px rgba(0,255,117,.08); overflow: hidden;
  transform-origin: 50% 100%; animation: float 7s ease-in-out infinite; }
.doc-kicker { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--green); }
.doc-title { font-family: var(--display); font-size: 29px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.doc-text p { margin: 0 0 7px; }
.doc-text p:first-child { margin-bottom: 9px; }
.doc-text { margin: 0; font-size: 16px; line-height: 1.45; color: rgba(255,255,255,.88); }
.doc-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.doc-lines i { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.16); transition: background .6s, box-shadow .6s; }
.doc-lines i.on { background: var(--green); box-shadow: 0 0 10px rgba(0,255,117,.8); }
.doc-scan { position: absolute; left: 0; right: 0; height: 90px; background: linear-gradient(180deg, rgba(0,255,117,0), rgba(0,255,117,.28)); border-bottom: 1px solid var(--green); animation: scan 4.5s linear infinite; }

/* panou recunoaștere */
.recog { position: absolute; left: 1220px; top: 60px; width: 346px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.recog-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--green); }
.recog-kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: blink 1.2s ease-in-out infinite; }
.recog-title { font-family: var(--display); font-size: 42px; font-weight: 700; line-height: 1; min-height: 84px; text-transform: uppercase; }
.recog-sub { font-size: 18px; line-height: 1.4; min-height: 50px; color: rgba(255,255,255,.84); }

/* cadrul foto (dreapta sus) */
.frame { position: absolute; left: 1590px; top: 64px; width: 260px; height: 260px; border-radius: 24px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.frame .c { position: absolute; width: 40px; height: 40px; border: 0 solid var(--green); }
.frame .tl { left: -8px; top: -8px; border-left-width: 3px; border-top-width: 3px; border-radius: 12px 0 0 0; }
.frame .tr { right: -8px; top: -8px; border-right-width: 3px; border-top-width: 3px; border-radius: 0 12px 0 0; }
.frame .bl { left: -8px; bottom: -8px; border-left-width: 3px; border-bottom-width: 3px; border-radius: 0 0 0 12px; }
.frame .br { right: -8px; bottom: -8px; border-right-width: 3px; border-bottom-width: 3px; border-radius: 0 0 12px 0; }
.frame-inner { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; }
.frame-inner img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: 0; transition: opacity .3s; }
.frame.has-photo .frame-inner img { opacity: 1; }
.scanline { position: absolute; left: 0; right: 0; height: 4px; background: var(--green); box-shadow: 0 0 24px 10px rgba(0,255,117,.6); opacity: 0; }
.frame.scanning .scanline { opacity: 1; animation: scan 1.1s linear infinite; }

.beam { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; }
.beam line { stroke: var(--green); stroke-width: 2; stroke-dasharray: 4 12; stroke-linecap: round; opacity: 0; transition: opacity .3s; }
.beam.on line { opacity: 1; animation: dash 1s linear infinite; }

/* scaune */
.seat { position: absolute; width: 150px; height: 190px; }
.seat .disc { position: absolute; left: 27px; top: 0; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(255,255,255,.28); background: #0A0D0B; display: flex; align-items: center; justify-content: center; }
.seat .disc img { display: none; }
.seat .disc .logo { width: 68px; height: 40px; box-sizing: border-box; object-fit: contain; filter: brightness(0) invert(1); opacity: .3; display: block; }
.seat .disc .logo-ph { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .12em; color: rgba(255,255,255,.42); }
.seat .ring { position: absolute; left: 27px; top: 0; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; pointer-events: none; }
.seat.active .ring { opacity: 1; box-shadow: 0 0 24px rgba(0,255,117,.8); }
.seat.active .ring2 { opacity: 1; animation: pulse 1s ease-out infinite; }
.seat .name { position: absolute; left: -10px; right: -10px; top: 98px; display: flex; flex-direction: column; align-items: center; font-family: var(--hand); font-weight: 700; line-height: 30px; text-shadow: 0 0 14px rgba(0,255,117,.9); }
.seat .name span { white-space: nowrap; opacity: 0; }
.seat .org { z-index: 3; position: absolute; left: 0; right: 0; top: 164px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: rgba(255,255,255,.78); opacity: 0; }
/* logourile sunt siluete: albe pe fundalul negru al ecranului */
.seat .org img { display: block; margin: -2px auto 0; width: auto; height: auto; max-width: 104px; max-height: 34px; box-sizing: content-box; padding: 2px 0; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }

.seat.pending .disc { border-color: rgba(0,255,117,.7); background: #2B302D; }
.seat.pending .disc .logo, .seat.pending .disc .logo-ph { display: none; }
.seat.pending .disc .photo { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.seat.pending .ring2 { opacity: 1; animation: pulse 1.6s ease-out infinite; }

/* conversia la scaun: linia de scanare coboară peste poză și dezvăluie desenul */
.seat .disc .scan { position: absolute; left: 0; right: 0; top: -6px; height: 4px; background: var(--green); box-shadow: 0 0 18px 6px rgba(0,255,117,.7); opacity: 0; }
.seat.converting .disc { border-color: var(--green); box-shadow: 0 0 30px rgba(0,255,117,.9); }
.seat.converting .disc .photo { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); animation: fadeout 1.7s linear both; }
.seat.converting .disc .portrait { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: reveal 1.5s linear both; }
.seat.converting .disc .scan { animation: discscan 1.5s linear both; }
.seat.converting .ring2 { opacity: 1; animation: pulse .7s ease-out infinite; }

.seat.signed .disc { border-color: var(--green); background: radial-gradient(circle at 50% 35%, #0B4A2B, #020202 75%); box-shadow: 0 0 22px rgba(0,255,117,.55); }
.seat.signed .disc .logo, .seat.signed .disc .logo-ph, .seat.signed .disc .photo { display: none; }
.seat.signed .disc .portrait { display: block; width: 100%; height: 100%; object-fit: cover; }
.seat.signed .disc { animation: glow .9s ease-out both; }
.seat.signed .name span { opacity: 1; animation: write 1s cubic-bezier(.4,0,.2,1) both; }
.seat.signed .name span:nth-child(2) { animation-delay: .7s; }
.seat.signed .org { opacity: 1; animation: fade .8s 1.5s both; }
.seat.signed.instant .disc, .seat.signed.instant .name span, .seat.signed.instant .org { animation: none; }

/* fotografia care zboară din cadru la scaun */
.fly { position: absolute; left: 1590px; top: 64px; width: 260px; height: 260px; border-radius: 24px; overflow: hidden; opacity: 0;
  background: #2B302D; box-shadow: 0 0 0 1px rgba(255,255,255,.3); pointer-events: none; }
.fly img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.fly.show { opacity: 1; }
.fly.move { transition: left .85s cubic-bezier(.65,0,.2,1), top .85s cubic-bezier(.65,0,.2,1), width .85s cubic-bezier(.65,0,.2,1), height .85s cubic-bezier(.65,0,.2,1), border-radius .85s cubic-bezier(.65,0,.2,1); }

/* ștampila */
.stamp { position: absolute; left: 740px; top: 90px; width: 440px; height: 440px; color: var(--green); }
.stamp[hidden] { display: none; }
.stamp-wave { position: absolute; left: 20px; top: 20px; width: 400px; height: 400px; border-radius: 50%; border: 3px solid var(--green); animation: wave 2.4s ease-out infinite; }
.stamp-wave.w2 { border-width: 2px; animation-delay: 1.2s; }
.stamp-body { position: absolute; inset: 0; animation: stamp .9s cubic-bezier(.2,.9,.3,1) both; }
.stamp-ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(2,2,2,.82); border: 5px solid currentColor; box-shadow: 0 0 60px rgba(0,255,117,.7), inset 0 0 40px rgba(0,255,117,.25); }
.stamp-bits { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.stamp-bits span { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; text-align: center; font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 24px; }
.stamp-core { position: absolute; inset: 56px; border-radius: 50%; border: 2px solid currentColor; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-family: var(--display); text-shadow: 0 0 22px rgba(0,255,117,.8); }
.stamp-small { font-size: 16px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; }
.stamp-small.light { color: #fff; }
.stamp-big { font-size: 70px; font-weight: 700; line-height: .88; letter-spacing: .02em; text-transform: uppercase; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: perspective(1600px) rotateX(11deg) translateY(0); } 50% { transform: perspective(1600px) rotateX(7deg) translateY(-12px); } }
@keyframes scan { 0% { top: -2%; } 100% { top: 100%; } }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes write { from { clip-path: inset(-30% 100% -30% -6%); } to { clip-path: inset(-30% -6% -30% -6%); } }
@keyframes glow { 0% { box-shadow: 0 0 50px rgba(0,255,117,1); filter: brightness(1.8); } 100% { box-shadow: 0 0 22px rgba(0,255,117,.55); filter: none; } }
@keyframes reveal { 0% { clip-path: inset(0 0 100% 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes discscan { 0% { opacity: 1; top: -6px; } 100% { opacity: 1; top: 100%; } }
@keyframes fadeout { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-10deg) scale(3); } 55% { opacity: 1; transform: rotate(-10deg) scale(.92); } 75% { transform: rotate(-10deg) scale(1.05); } 100% { opacity: 1; transform: rotate(-10deg) scale(1); } }
@keyframes wave { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(5); } }
@keyframes dash { to { stroke-dashoffset: -40; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
