/* Ucansee HQ — studio virtual 3D (lihat assets/js/hq3d.js). */
.hq-page main { overflow: hidden; }
.hq-hero { position: relative; padding: calc(var(--header-height-mobile, 96px) + 16px) 0 40px; }
.hq-grid { display: grid; grid-template-columns: minmax(250px, 330px) 1fr; gap: 28px; align-items: start; }
.hq-intro { position: relative; z-index: 2; padding-top: 64px; }
.hq-intro .eyebrow { color: #C4D982; }
.hq-title { margin: 10px 0 14px; font-size: clamp(3rem, 6.4vw, 5.4rem); line-height: .9; letter-spacing: -.03em; }
.hq-title span { color: #C4D982; }
.hq-lead { color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.hq-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.hq-tools .hint { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.hq-night-btn { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--text); font: 600 .8rem/1 inherit; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.hq-night-btn:hover { border-color: #C4D982; color: #C4D982; }

/* Tab ruangan */
.hq-world { position: relative; min-width: 0; }
.hq3d-rooms { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.hq3d-rooms button { display: grid; gap: 3px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 16, 15, .75); color: var(--text); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.hq3d-rooms button b { font-size: .84rem; }
.hq3d-rooms button span { color: var(--muted); font-size: .7rem; }
.hq3d-rooms button:hover { border-color: #C4D982; transform: translateY(-1px); }
.hq3d-rooms button.is-on { background: #f3f4f2; border-color: #f3f4f2; color: #111; }
.hq3d-rooms button.is-on span { color: #555; }

/* Panggung 3D */
.hq3d-stage { position: relative; width: 100%; aspect-ratio: 16 / 10.5; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 90% at 50% 35%, #26302a 0%, #121513 62%, #0c0e0d 100%); transition: background .8s; touch-action: pan-y; }
.hq3d-stage.is-night { background: radial-gradient(120% 90% at 50% 35%, #1f2347 0%, #0f1126 60%, #090a16 100%); }
.hq3d-canvas { display: block; width: 100% !important; height: 100% !important; }
.hq3d-labels { position: absolute; inset: 0; pointer-events: none; }
.hq3d-label { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border: 1px solid rgba(196, 217, 130, .35); border-radius: 999px; background: rgba(14, 16, 15, .86); color: #f3f4f2; font: 600 .72rem/1 inherit; white-space: nowrap; pointer-events: auto; cursor: pointer; transition: background .2s, color .2s, border-color .2s; will-change: transform; }
.hq3d-label i { width: 6px; height: 6px; border-radius: 50%; background: #C4D982; box-shadow: 0 0 6px #C4D982; }
.hq3d-label.is-host { border-color: rgba(255, 255, 255, .35); }
.hq3d-label.is-host i { background: #ffb36b; box-shadow: 0 0 6px #ffb36b; }
.hq3d-label:hover, .hq3d-label.is-on { background: #C4D982; border-color: #C4D982; color: #111; }
.hq3d-label:hover i, .hq3d-label.is-on i { background: #111; box-shadow: none; }
.hq3d-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-size: .85rem; background: inherit; transition: opacity .5s; }
.hq3d-loading span { width: 34px; height: 34px; border: 3px solid rgba(196, 217, 130, .25); border-top-color: #C4D982; border-radius: 50%; animation: hq3d-spin .8s linear infinite; }
.hq3d-loading.is-done { opacity: 0; pointer-events: none; }
@keyframes hq3d-spin { to { transform: rotate(360deg); } }
.hq3d-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }
.hq3d-credit { margin: 8px 4px 0; color: #5f655e; font-size: .68rem; text-align: right; }

/* Chip kru di bawah panggung */
.hq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto 0; max-width: 1040px; }
.hq-chips button { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(14, 16, 15, .7); color: var(--text); font: 600 .78rem/1 inherit; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.hq-chips button span { color: var(--muted); font-weight: 500; }
.hq-chips button:hover { border-color: #C4D982; transform: translateY(-1px); }
.hq-chips button.is-on { background: #C4D982; border-color: #C4D982; color: #111; }
.hq-chips button.is-on span { color: #2a2f20; }
.hq-chips button.is-host b::after { content: " ★"; color: #ffb36b; }

/* Panel kru */
.hq-panel { position: fixed; z-index: 60; top: 96px; right: 24px; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14, 16, 15, .96); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); backdrop-filter: blur(10px); opacity: 0; transform: translateX(16px); transition: opacity .25s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.hq-panel.is-open { opacity: 1; transform: none; }
.hq-panel[hidden] { display: none; }
.hq-panel-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.hq-panel-close:hover { border-color: #C4D982; color: #C4D982; }
.hq-panel-eyebrow { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; color: #C4D982; font: 600 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
.hq-panel-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #C4D982; box-shadow: 0 0 8px #C4D982; }
.hq-panel h2 { margin: 0 0 10px; font-size: 1.7rem; }
.hq-panel-text { margin: 0 0 16px; color: #c9cdc6; line-height: 1.6; font-size: .92rem; }
.hq-panel-sub { margin: 14px 0 8px; color: var(--muted); font: 600 .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
.hq-works, .hq-cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hq-works a { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; padding: 6px; border: 1px solid transparent; border-radius: 12px; color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
.hq-works a:hover { border-color: var(--line); background: var(--soft); }
.hq-thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #1b1e19; }
.hq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hq-thumb i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-style: normal; font-size: .8rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.hq-works b { display: block; font-size: .9rem; line-height: 1.3; }
.hq-works small { color: var(--muted); font-size: .75rem; }
.hq-cases li { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .88rem; }
.hq-panel-actions { display: grid; gap: 8px; margin-top: 18px; }
.hq-panel-actions .btn { justify-content: center; text-align: center; }
.hq-panel-actions .btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.hq-panel-actions .btn-ghost:hover { border-color: #C4D982; color: #C4D982; }

@media (max-width: 960px) {
  .hq-grid { grid-template-columns: 1fr; }
  .hq-intro { padding-top: 0; }
  .hq3d-rooms { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .hq3d-rooms::-webkit-scrollbar { display: none; }
  .hq3d-rooms button { flex: 0 0 auto; }
  .hq3d-stage { aspect-ratio: 1 / 1; border-radius: 18px; }
  .hq-panel { top: auto; bottom: 0; right: 0; left: 0; width: auto; max-height: 72vh; border-radius: 20px 20px 0 0; transform: translateY(24px); }
  .hq-chips button span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hq3d-loading span { animation-duration: 2s; }
}

/* ---- Mode game: label nama, ajakan ngobrol, dialog, petunjuk kontrol ---- */
.hq3d-stage { outline: none; }
.hq3d-stage:focus-visible { box-shadow: 0 0 0 2px #C4D982; }
.hq3d-canvas { cursor: crosshair; }
.hq3d-label b { font-weight: 700; }
.hq3d-label span { color: #aab1a6; font-weight: 500; }
.hq3d-label:hover span, .hq3d-label.is-on span { color: #2a2f20; }
.hq3d-talk { display: none; margin-left: 4px; padding: 2px 7px; border-radius: 999px; background: #C4D982; color: #111; font-style: normal; font-weight: 700; font-size: .66rem; animation: hq3d-bob 1.1s ease-in-out infinite; }
.hq3d-label.can-talk .hq3d-talk { display: inline-block; }
.hq3d-label.is-on .hq3d-talk { background: #111; color: #C4D982; }
@keyframes hq3d-bob { 50% { transform: translateY(-2px); } }
.hq3d-label.is-you { padding: 4px 9px 4px 7px; border-color: #C4D982; background: rgba(196, 217, 130, .16); pointer-events: none; }
.hq3d-label.is-you i { background: #fff; box-shadow: 0 0 6px #fff; }

.hq3d-dialog { position: absolute; left: 50%; bottom: 14px; z-index: 3; display: flex; gap: 14px; align-items: flex-start; width: min(560px, calc(100% - 24px)); padding: 14px 16px; border: 1px solid rgba(196, 217, 130, .45); border-radius: 18px; background: rgba(12, 14, 13, .94); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); backdrop-filter: blur(8px); transform: translate(-50%, 14px); opacity: 0; transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.hq3d-dialog.is-open { opacity: 1; transform: translate(-50%, 0); }
.hq3d-dialog[hidden] { display: none; }
.hq3d-dlg-avatar { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #C4D982; color: #111; font: 800 1.3rem/1 inherit; }
.hq3d-dlg-avatar.is-host { background: #ffb36b; }
.hq3d-dlg-body { flex: 1; min-width: 0; }
.hq3d-dlg-name { display: flex; gap: 8px; align-items: baseline; margin: 0 0 4px; }
.hq3d-dlg-name b { font-size: .98rem; }
.hq3d-dlg-name span { color: #C4D982; font: 600 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.hq3d-dlg-text { min-height: 2.9em; margin: 0 0 10px; color: #e9ece4; font-size: .95rem; line-height: 1.5; cursor: pointer; }
.hq3d-dlg-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.hq3d-dlg-actions button, .hq3d-dlg-actions a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 600 .76rem/1 inherit; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.hq3d-dlg-actions button:hover, .hq3d-dlg-actions a:hover { border-color: #C4D982; color: #C4D982; }
.hq3d-dlg-actions .is-main { background: #C4D982; border-color: #C4D982; color: #111; }
.hq3d-dlg-actions .is-main:hover { background: #d6e6a3; color: #111; }

.hq3d-hint { position: absolute; left: 12px; top: 12px; z-index: 2; max-width: calc(100% - 24px); padding: 7px 11px; border-radius: 12px; background: rgba(12, 14, 13, .72); color: #c9cdc6; font-size: .72rem; line-height: 1.5; pointer-events: none; }
.hq3d-hint b { color: #f3f4f2; }
.hq3d-hint kbd { display: inline-block; padding: 1px 5px; border: 1px solid #3a3f35; border-bottom-width: 2px; border-radius: 5px; background: #1b1e19; color: #C4D982; font: 700 .66rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hq3d-rooms button span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 960px) {
  .hq3d-dialog { gap: 10px; padding: 12px; bottom: 10px; }
  .hq3d-dlg-avatar { width: 38px; height: 38px; border-radius: 12px; font-size: 1.1rem; }
  .hq3d-dlg-text { font-size: .88rem; min-height: 4.2em; }
  .hq3d-hint { font-size: .66rem; }
  .hq-chips button span { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .hq3d-talk { animation: none; } }
/* HP: dialog jadi lembar bawah layar (studio tetap terlihat); petunjuk hilang setelah mulai main. */
.hq3d-hint { transition: opacity .4s; }
.hq3d-hint.is-gone { opacity: 0; }
@media (max-width: 960px) {
  .hq3d-dialog { position: fixed; left: 8px; right: 8px; bottom: 8px; width: auto; z-index: 55; transform: translateY(14px); }
  .hq3d-dialog.is-open { transform: none; }
  .hq3d-dlg-actions button, .hq3d-dlg-actions a { padding: 7px 10px; }
}

/* ---- Kantor agen AI: label dua baris (nama + tugas berjalan) dan panel operasi ---- */
.hq3d-label:not(.is-you) { flex-direction: column; align-items: stretch; gap: 5px; padding: 6px 10px 7px; border-radius: 12px; }
.hq3d-row { display: inline-flex; align-items: center; gap: 6px; }
.hq3d-label i { animation: hq3d-blink 1.6s ease-in-out infinite; }
@keyframes hq3d-blink { 50% { opacity: .35; } }
.hq3d-task { display: grid; gap: 4px; min-width: 128px; max-width: 168px; }
.hq3d-task small { overflow: hidden; color: #c9cdc6; font: 500 .62rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.hq3d-task small::before { content: "▸ "; color: #C4D982; }
.hq3d-task u { display: block; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; text-decoration: none; }
.hq3d-task s { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #C4D982, #e6f2b8); text-decoration: none; }
.hq3d-label.is-host .hq3d-task s { background: linear-gradient(90deg, #ffb36b, #ffd9a8); }
.hq3d-label:hover .hq3d-task small, .hq3d-label.is-on .hq3d-task small { color: #2a2f20; }
.hq3d-label:hover .hq3d-task small::before, .hq3d-label.is-on .hq3d-task small::before { color: #111; }
.hq3d-label:hover .hq3d-task u, .hq3d-label.is-on .hq3d-task u { background: rgba(0, 0, 0, .15); }
.hq3d-label:hover .hq3d-task s, .hq3d-label.is-on .hq3d-task s { background: #111; }
.hq3d-label .hq3d-talk { align-self: flex-start; margin-left: 0; }

.hq-ops { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14, 16, 15, .7); }
.hq-ops-head { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); font-size: .8rem; }
.hq-ops-head b { color: var(--text); font-variant-numeric: tabular-nums; }
.hq-ops-live { display: inline-flex; gap: 7px; align-items: center; padding: 4px 9px; border-radius: 999px; background: rgba(196, 217, 130, .14); color: #C4D982; font: 700 .64rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.hq-ops-live i { width: 7px; height: 7px; border-radius: 50%; background: #C4D982; box-shadow: 0 0 8px #C4D982; animation: hq3d-blink 1.2s ease-in-out infinite; }
.hq-ops-clock { margin-left: auto; font: 600 .78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.hq-ops-log { list-style: none; margin: 12px 0 0; padding: 12px 0 0; display: grid; gap: 6px; border-top: 1px dashed var(--line); min-height: 120px; }
.hq-ops-log li { display: grid; grid-template-columns: 44px 58px 1fr; gap: 8px; align-items: baseline; font: 500 .74rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: #aab1a6; animation: hq-log-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.hq-ops-log li:nth-child(n+4) { opacity: .55; }
.hq-ops-log time { color: #5f655e; }
.hq-ops-log b { color: #C4D982; font-weight: 700; }
.hq-ops-log li.is-done span::after { content: " ✓"; color: #C4D982; }
.hq-ops-note { margin: 10px 0 0; color: #6c7268; font-size: .7rem; }
@keyframes hq-log-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 960px) {
  .hq3d-task { min-width: 0; max-width: 118px; }
  .hq3d-task small { font-size: .56rem; }
  .hq-ops-log li { grid-template-columns: 40px 48px 1fr; font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { .hq3d-label i, .hq-ops-live i, .hq-ops-log li { animation: none; } }

/* Agen yang sedang mengerjakan rencana marketing pengunjung (hq-agent.js): label menyala. */
.hq3d-label.is-mission { border-color: #C4D982; background: rgba(28, 33, 18, .94); box-shadow: 0 0 0 3px rgba(196, 217, 130, .25), 0 0 18px rgba(196, 217, 130, .45); }
.hq3d-label.is-mission i { background: #C4D982; box-shadow: 0 0 8px #C4D982; animation: hq-mission 1s ease-in-out infinite; }
@keyframes hq-mission { 50% { opacity: .35; } }
