@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --bg: #0c1017;
  --panel: rgba(18, 24, 36, 0.92);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f3f5f7;
  --muted: #98a2b3;
  --accent: #f6c453;
  --accent-2: #47c0ff;
  --glow: rgba(246, 196, 83, 0.45);
  --grid: rgba(255, 255, 255, 0.09);
  --success: #4ce59a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #1b2436 0%, #0c1017 45%, #090b10 100%);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  background: radial-gradient(circle, rgba(71, 192, 255, 0.6) 0%, rgba(71, 192, 255, 0) 70%);
  top: -120px;
  right: 8%;
}

.orb-b {
  background: radial-gradient(circle, rgba(246, 196, 83, 0.55) 0%, rgba(246, 196, 83, 0) 70%);
  bottom: -160px;
  left: 4%;
  animation-delay: -6s;
}

.app {
  position: relative;
  z-index: 1;
  padding: 32px clamp(18px, 4vw, 52px) 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 12px 30px rgba(71, 192, 255, 0.3);
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}

p {
  margin: 4px 0 0;
  color: var(--muted);
}

.status {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stage {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(240px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.camera-shell {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  min-height: 340px;
}

#video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0f14;
  border-radius: 18px;
  object-fit: cover;
  display: block;
}

#overlay {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  pointer-events: auto;
}

.hint {
  position: absolute;
  left: 28px;
  bottom: 28px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 12px;
  color: #d1d9e6;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hint.show {
  opacity: 1;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-block {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.panel-block h2 {
  margin: 0 0 12px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), #f08a4b);
  color: #161616;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(246, 196, 83, 0.25);
}

button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

select {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 10px;
  border-radius: 10px;
}

.note-readout {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-shadow: 0 0 14px var(--glow);
}

.subtle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(24px, -18px); }
  100% { transform: translate(0, 0); }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .stage {
    grid-template-columns: 1fr;
  }
}
