:root {
  color-scheme: dark;
  background: #060a13;
  color: #eefbff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { min-width: 320px; min-height: 100svh; overflow: hidden; }

.scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  background: #060a13;
}
.scene-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
  animation: arrive 1.5s ease-out both;
}
.scene-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 46%, rgba(5,11,20,.18), rgba(4,8,17,.36) 55%, rgba(4,8,17,.72) 100%);
  pointer-events: none;
}
.scene-scanlines {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .08;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(130,235,255,.14) 4px, transparent 5px);
  mix-blend-mode: screen;
}
.centerpiece {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: clamp(32px, 7vh, 76px) 18px 20px;
}
.scan-panel {
  position: relative;
  display: flex;
  width: min(280px, calc(100vw - 40px));
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  clip-path: polygon(0 14px, 14px 14px, 14px 0, calc(100% - 14px) 0, calc(100% - 14px) 14px, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 14px calc(100% - 14px), 0 calc(100% - 14px));
  transition: width .36s ease, gap .3s ease, padding .36s ease, border-color .3s ease, background .32s ease, box-shadow .32s ease, backdrop-filter .32s ease;
}
.scan-panel:hover,
.scan-panel:focus-within {
  width: min(390px, calc(100vw - 40px));
  gap: 12px;
  padding: 22px 28px 26px;
  border-color: transparent;
  background: linear-gradient(145deg, rgba(8,18,32,.9), rgba(5,12,24,.86)) padding-box,
              linear-gradient(135deg, #74fff0 0%, #64bfff 48%, #e75ee7 100%) border-box;
  box-shadow: 0 0 34px rgba(65,226,231,.22), 0 18px 70px rgba(0,0,0,.52), inset 0 0 26px rgba(89,204,244,.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.brand-emblem {
  display: block;
  width: min(212px, 65vw);
  height: auto;
  filter: drop-shadow(0 4px 25px rgba(54,229,229,.24));
}
.scan-button {
  width: min(250px, 100%);
  height: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0 solid transparent;
  clip-path: polygon(0 9px, 9px 9px, 9px 0, calc(100% - 9px) 0, calc(100% - 9px) 9px, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 9px calc(100% - 9px), 0 calc(100% - 9px));
  background: linear-gradient(105deg, rgba(24,118,139,.78), rgba(24,87,135,.8) 55%, rgba(111,38,123,.82));
  box-shadow: inset 0 0 18px rgba(111,255,246,.13), 0 0 22px rgba(72,225,237,.24);
  color: #f2fffe;
  font: 700 16px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .16em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(113,255,244,.55);
  transform: translateY(-8px);
  transition: height .3s ease, min-height .3s ease, padding .3s ease, border-width .3s ease, opacity .24s ease, transform .3s ease;
}
.scan-panel:hover .scan-button,
.scan-panel:focus-within .scan-button {
  height: 52px;
  min-height: 52px;
  padding: 12px 24px;
  border-width: 1px;
  border-color: rgba(116,255,240,.9);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (hover: none) {
  .scan-panel {
    width: min(350px, calc(100vw - 36px));
    gap: 10px;
    padding: 18px 20px 22px;
    background: linear-gradient(145deg, rgba(8,18,32,.9), rgba(5,12,24,.86)) padding-box,
                linear-gradient(135deg, #74fff0 0%, #64bfff 48%, #e75ee7 100%) border-box;
    box-shadow: 0 0 28px rgba(65,226,231,.2), 0 18px 60px rgba(0,0,0,.48);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .scan-button {
    height: 48px;
    min-height: 48px;
    padding: 11px 20px;
    border-width: 1px;
    border-color: rgba(116,255,240,.9);
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scan-panel, .scan-button { transition: none; }
}
@keyframes arrive {
  from { opacity: .4; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .scene { min-height: 100svh; }
  .scene-art { object-position: 52% center; }
  .centerpiece { padding: clamp(32px, 7vh, 76px) 18px 18px; }
  .scan-panel:hover, .scan-panel:focus-within { width: min(350px, calc(100vw - 36px)); padding: 18px 20px 22px; }
  .brand-emblem { width: min(212px, 65vw); }
}
