:root {
  --bg: #07111f;
  --bg-soft: #101f35;
  --panel: rgba(10, 19, 34, 0.78);
  --line: rgba(154, 180, 255, 0.16);
  --text: #edf4ff;
  --muted: #9fb0ca;
  --accent: #65d9ff;
  --accent-2: #8c7dff;
  --accent-3: #69f0ae;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(88, 132, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #07111f 0%, #050b14 100%);
}

button {
  font: inherit;
}

.app-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar,
.panel,
.scene {
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(9, 16, 29, 0.72);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 3vw, 42px);
}

h2 {
  font-size: 24px;
}

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

.topbar-badges span,
.mini-card,
.list-card > div,
.task-list li {
  border: 1px solid var(--line);
}

.topbar-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(101, 217, 255, 0.1);
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.scene-wrap {
  min-width: 0;
}

.scene {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18, 34, 58, 0.98) 0%, rgba(8, 16, 29, 0.98) 68%),
    linear-gradient(135deg, rgba(101, 217, 255, 0.12), transparent 40%);
  box-shadow: var(--shadow);
}

.scene-backdrop,
.city-glow,
.floor-grid,
.decor,
.hotspot {
  position: absolute;
}

.scene-backdrop {
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(102, 182, 255, 0.18), transparent 28%),
    linear-gradient(to bottom, transparent 0 55%, rgba(0, 0, 0, 0.2) 100%);
}

.city-glow {
  top: 12%;
  left: 10%;
  width: 80%;
  height: 18%;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 0 2%, transparent 2% 4%, rgba(255,255,255,0.04) 4% 6%, transparent 6% 100%),
    linear-gradient(180deg, rgba(124, 169, 255, 0.18), rgba(124, 169, 255, 0.02));
  box-shadow: 0 0 80px rgba(90, 160, 255, 0.15);
  opacity: 0.9;
}

.floor-grid {
  bottom: -8%;
  left: -8%;
  width: 116%;
  height: 44%;
  background:
    linear-gradient(rgba(101, 217, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 217, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(620px) rotateX(78deg);
  transform-origin: center top;
  opacity: 0.45;
}

.wall-screen {
  top: 18%;
  left: 34%;
  width: 32%;
  height: 16%;
  border: 1px solid rgba(111, 218, 255, 0.34);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(44, 92, 135, 0.45), rgba(6, 15, 30, 0.8));
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 24px rgba(102, 183, 255, 0.15), 0 12px 30px rgba(0,0,0,0.2);
}

.wall-screen span {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #b5eaff;
}

.wall-screen small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.shelf {
  top: 24%;
  left: 12%;
  width: 16%;
  height: 7%;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(36, 50, 74, 0.85), rgba(21, 27, 40, 0.85));
}

.shelf .plant,
.shelf .book {
  position: absolute;
  bottom: 100%;
  background: linear-gradient(180deg, #8bd0ff, #416eb0);
}

.shelf .plant {
  left: 14%;
  width: 18px;
  height: 42px;
  border-radius: 14px 14px 6px 6px;
  box-shadow: 18px -8px 0 -4px #5cffaa, -16px -10px 0 -6px #5cffaa;
}

.shelf .book {
  left: 54%;
  width: 16px;
  height: 30px;
  border-radius: 5px;
}

.shelf .book.short {
  left: 68%;
  height: 22px;
  background: linear-gradient(180deg, #9f8dff, #6458df);
}

.desk,
.table {
  bottom: 18%;
  width: 24%;
  height: 16%;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(48, 66, 92, 0.95), rgba(19, 28, 43, 0.95));
  box-shadow: 0 20px 40px rgba(0,0,0,0.28);
}

.desk::after,
.table::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -10%;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  filter: blur(8px);
}

.desk-left { left: 10%; }
.desk-right { right: 10%; }
.table {
  left: 39%;
  bottom: 12%;
  width: 22%;
  height: 13%;
}

.monitor,
.laptop,
.tablet,
.chair {
  position: absolute;
}

.monitor {
  top: -28%;
  left: 18%;
  width: 30%;
  height: 28%;
  border-radius: 10px;
  background: linear-gradient(180deg, #89d6ff, #345f9f);
}

.laptop,
.tablet {
  top: 14%;
  right: 18%;
  width: 24%;
  height: 16%;
  border-radius: 10px;
  background: linear-gradient(180deg, #a591ff, #5449c6);
}

.tablet {
  background: linear-gradient(180deg, #6cf0ba, #228d6e);
}

.chair {
  bottom: -22%;
  left: 54%;
  width: 20%;
  height: 28%;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(46, 65, 96, 0.95), rgba(20, 30, 44, 0.95));
}

.glass {
  top: 9%;
  width: 16%;
  height: 48%;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(147, 222, 255, 0.14), rgba(147, 222, 255, 0.04));
  border: 1px solid rgba(147, 222, 255, 0.16);
}

.glass-left { left: -4%; }
.glass-right { right: -4%; }

.hotspot {
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  color: white;
  cursor: pointer;
  background: rgba(11, 20, 33, 0.78);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 12px 24px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hotspot::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px solid rgba(101, 217, 255, 0.2);
  animation: pulse 2.2s infinite;
}

.hotspot:hover,
.hotspot.active {
  transform: translate(-50%, -50%) scale(1.04);
  background: rgba(101, 217, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(101, 217, 255, 0.45), 0 16px 30px rgba(0,0,0,0.25);
}

.hotspot span {
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.panel-stack {
  display: grid;
  gap: 16px;
}

.panel {
  display: none;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel.active {
  display: block;
}

.panel-head {
  margin-bottom: 14px;
}

.panel p {
  color: var(--muted);
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-card,
.list-card > div,
.task-list li {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-card,
.list-card > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-card strong,
.list-card strong {
  font-size: 15px;
}

.mini-card span,
.list-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.list-card {
  display: grid;
  gap: 12px;
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.task-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d9e8ff;
}

.task-list li span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), #3279dd);
  box-shadow: 0 0 18px rgba(101, 217, 255, 0.8);
}

.accent-blue { background: rgba(101, 217, 255, 0.1); }
.accent-violet { background: rgba(140, 125, 255, 0.12); }
.accent-green { background: rgba(105, 240, 174, 0.1); }

@keyframes pulse {
  0% { opacity: 0.8; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.18); }
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .scene {
    min-height: 620px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 1400px);
    padding-top: 12px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .scene {
    min-height: 540px;
    border-radius: 24px;
  }

  .hotspot {
    padding: 10px 12px;
    font-size: 13px;
  }
}
