:root {
  --bg: #0b0d11;
  --bg2: #101828;
  --card: #131c2e;
  --line: #22304a;
  --txt: #e8eef7;
  --muted: #9aa6b5;
  --blue: #07afec;
  --amber: #f59e0b;
  --green: #10b981;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--txt);
  background:
    radial-gradient(1200px 500px at 50% -80px, #16233a 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #0d1420 100%);
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 17, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 15px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0e2a4a, #123);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
  color: var(--blue);
}

.topbar-tag {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

h1 {
  text-align: center;
  margin: 6px 0 8px;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: 1px;
}

h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  border-radius: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 26px;
  font-size: 15px;
}

/* ---------- Layar depan kantor ---------- */
.screen-section {
  margin-bottom: 38px;
}

.screen {
  background: #070b14;
  border: 3px solid #1e293b;
  border-radius: 16px;
  box-shadow: 0 0 0 1px #000, 0 0 42px rgba(7, 175, 236, 0.18), inset 0 0 60px rgba(7, 175, 236, 0.04);
  overflow: hidden;
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0d1526;
  border-bottom: 1px solid var(--line);
}

.lights { display: flex; gap: 6px; }
.lights i {
  width: 11px; height: 11px; border-radius: 50%; display: block;
}
.lights i:nth-child(1) { background: #f87171; }
.lights i:nth-child(2) { background: #fbbf24; }
.lights i:nth-child(3) { background: #34d399; }

.screen-agent {
  font-weight: 800;
  font-size: 17px;
  color: var(--accent, var(--blue));
}

.screen-role {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}

.live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #f87171;
}
.live i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #f87171;
  animation: blink 1.4s infinite;
}

.screen-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.col { padding: 18px 20px 22px; }
.col + .col { border-left: 1px solid var(--line); }

.col h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--txt);
}
.col h2 b {
  margin-left: auto;
  font-size: 12px;
  background: #16213a;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 9px;
  color: var(--muted);
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.doing { background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blink 1.6s infinite; }
.dot.finished { background: var(--green); box-shadow: 0 0 10px var(--green); }

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

.col li {
  font-size: 14.5px;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 8px;
  padding: 9px 12px 9px 14px;
  position: relative;
}

#listDoing li { border-left-color: var(--amber); }
#listDoing li::before {
  content: "▸";
  color: var(--amber);
  margin-right: 8px;
  font-weight: 800;
}

#listDone li { border-left-color: var(--green); color: #c9d4e2; }
#listDone li::before {
  content: "✓";
  color: var(--green);
  margin-right: 8px;
  font-weight: 800;
}

.screen-empty { color: var(--muted); font-style: italic; }

.screen-stand {
  width: 120px;
  height: 26px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1e293b, #0d1526);
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}
.screen-stand::after {
  content: "";
  display: block;
  width: 220px;
  height: 8px;
  margin: 26px 0 0 -50px;
  background: #0d1526;
  border-radius: 4px;
}

/* ---------- Ruangan kantor ---------- */
.office {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 18px;
}

.desk {
  --accent: var(--blue);
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.desk:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
}

.desk.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 12px 30px rgba(0, 0, 0, 0.5);
}

.desk:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.avatar-wrap { width: 100%; max-width: 170px; }
.avatar-wrap svg { width: 100%; height: auto; display: block; }

.desk-meta { text-align: center; line-height: 1.3; }
.desk-meta strong { display: block; font-size: 16px; }
.desk-meta em { font-style: normal; font-size: 12px; color: var(--muted); }

.status {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: blink 1.8s infinite;
}

/* ---------- Animasi avatar ---------- */
.typer { animation: bob 1.7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.chat-dots circle { animation: chatbounce 1.2s ease-in-out infinite; }
.chat-dots circle:nth-child(2) { animation-delay: 0.15s; }
.chat-dots circle:nth-child(3) { animation-delay: 0.3s; }
.steam { animation: steamup 2.4s ease-in-out infinite; opacity: 0.7; }
.screen-flicker { animation: flicker 4s infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2.2px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes chatbounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes steamup {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(-2.5px); opacity: 0.8; }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.75; }
  94% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .typer, .chat-dots circle, .steam, .screen-flicker, .live i, .dot.doing, .status::before {
    animation: none !important;
  }
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 18px 12px 26px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .screen-body { grid-template-columns: 1fr; }
  .col + .col { border-left: none; border-top: 1px solid var(--line); }
  .office { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
