/* Visuals CSS — product UI mockups, dashboards, copilot frames */

/* ==== Hero orchestrator ==== */
.orch-frame {
  background: linear-gradient(180deg, #0f0f11, #0a0a0c);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(217,127,74,0.04);
  position: relative;
}
.orch-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.01);
}
.orch-dots { display: flex; gap: 6px; }
.orch-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(246,243,236,0.18); }
.orch-dots span:first-child { background: #ed6a5a; }
.orch-dots span:nth-child(2) { background: #f4bf4f; }
.orch-dots span:nth-child(3) { background: #61c554; }
.orch-title { color: var(--ink-dim); font-size: 11px; }
.orch-status { color: var(--ink-dim); font-size: 11px; display: inline-flex; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7fb28a; box-shadow: 0 0 8px #7fb28a; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.orch-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
}
@media (max-width: 900px) { .orch-body { grid-template-columns: 1fr; } }
.orch-svg { width: 100%; height: auto; display: block; }
.orch-side {
  border-left: 1px solid var(--line);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(0,0,0,0.2);
}
.orch-event {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px; align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  opacity: 0;
  animation: fadein 450ms cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d);
}
@keyframes fadein { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
.orch-event .ev-time { color: var(--ink-mute); font-size: 10.5px; }
.orch-event .ev-type {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-dim);
  padding: 2px 6px; border-radius: 4px; background: rgba(246,243,236,0.06);
}
.orch-event .ev-type.ev-ai { color: var(--accent); background: rgba(217,127,74,0.1); }
.orch-event .ev-type.ev-ok { color: #7fb28a; background: rgba(127,178,138,0.1); }
.orch-event .ev-msg { color: var(--ink); font-size: 12px; }
.orch-event .ev-msg em { font-style: normal; color: var(--accent); }

/* ==== Framework stack ==== */
.fw-frame {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, #0f0f11, #0a0a0c);
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-lg);
}
.fw-layer {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.015);
}
.fw-l1 { background: rgba(217,127,74,0.04); border-color: rgba(217,127,74,0.18); }
.fw-head { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 11px; }
.fw-head .mono { font-size: 11px; color: var(--ink); letter-spacing: .08em; text-transform: uppercase;}
.fw-head .dim { color: var(--ink-mute); text-transform: none; letter-spacing: 0; }
.fw-ui { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ui-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.ui-row { display: flex; font-size: 11px; }
.ui-spaced { justify-content: space-between; align-items: center; }
.ui-row .dim { color: var(--ink-mute); }
.bars { display: flex; gap: 4px; align-items: flex-end; height: 56px; margin-top: 12px; }
.bar { flex: 1; background: rgba(246,243,236,0.2); border-radius: 2px; }
.ui-stack { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ui-line { font-size: 11.5px; color: var(--ink-dim); display: flex; align-items: center; gap: 8px; }
.dotg, .dota, .dotb { width: 6px; height: 6px; border-radius: 50%; }
.dotg { background: #7fb28a; box-shadow: 0 0 6px #7fb28a; }
.dota { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.dotb { background: #5b7cff; box-shadow: 0 0 6px #5b7cff; }
.fw-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 10px;
  border: 1px dashed rgba(246,243,236,0.18);
  border-radius: 999px;
  color: var(--ink-dim);
  background: rgba(255,255,255,0.01);
}
.chip:nth-child(2n) { border-style: solid; border-color: rgba(217,127,74,0.3); color: var(--accent); }

/* ==== Logistics dashboard ==== */
.dash-frame {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, #0f0f11, #0a0a0c);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dash-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.dash-tabs { display: flex; gap: 4px; }
.tabseg {
  font-family: var(--font-mono); font-size: 11px;
  padding: 6px 12px; border-radius: 6px;
  color: var(--ink-mute);
  letter-spacing: .04em;
}
.tabseg.active { background: rgba(246,243,236,0.08); color: var(--ink); }
.dash-search {
  font-size: 11px; color: var(--ink-mute);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0,0,0,0.25);
}
.dash-body { display: grid; grid-template-columns: 1.7fr 1fr; min-height: 380px; }
@media (max-width: 800px) { .dash-body { grid-template-columns: 1fr; } }
.dash-map {
  padding: 20px;
  background:
    radial-gradient(400px 300px at 40% 40%, rgba(217,127,74,0.08), transparent),
    rgba(0,0,0,0.2);
  border-right: 1px solid var(--line);
}
.dash-side { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dash-stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
}
.dash-stat .mono.dim { font-size: 10px; color: var(--ink-mute); letter-spacing: .1em; }
.dash-val {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  margin-top: 6px;
  letter-spacing: -0.02em;
}
.dash-val span { font-size: 18px; color: var(--ink-mute); }
.dash-trend { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute); margin-top: 4px; }
.dash-trend.up { color: #7fb28a; }
.dash-list { margin-top: 4px; }
.feed-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px;
  font-size: 11.5px; color: var(--ink-dim);
  border-top: 1px dashed var(--line);
}
.feed-item em { font-style: normal; color: var(--ink); }

/* ==== Copilot frame ==== */
.copilot-frame {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, #0f0f11, #0a0a0c);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 420px;
  box-shadow: var(--shadow-lg);
}
.copilot-head {
  display: flex; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.copilot-head .dim { color: var(--ink-mute); }
.copilot-msgs { padding: 20px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.msg { display: grid; grid-template-columns: 50px 1fr; gap: 12px; }
.msg-role { font-size: 10px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .12em; padding-top: 4px; }
.msg.ai .msg-role { color: var(--accent); }
.msg-body { font-size: 13.5px; color: var(--ink); line-height: 1.55; }
.msg.ai .msg-body { background: rgba(217,127,74,0.04); border: 1px solid rgba(217,127,74,0.12); border-radius: 10px; padding: 14px; }
.msg-body ul { margin: 8px 0 0; padding-left: 20px; font-size: 12.5px; color: var(--ink-dim); }
.msg-body ul li { margin: 4px 0; }
.msg-body strong { color: var(--ink); font-weight: 500; }
.tool-call {
  display: flex; gap: 10px; align-items: center;
  padding: 6px 10px; margin-bottom: 8px;
  border: 1px dashed rgba(246,243,236,0.12);
  border-radius: 6px;
  font-size: 11px;
  background: rgba(0,0,0,0.2);
}
.tool-call .dim { color: var(--ink-mute); }
.msg-actions { margin-top: 12px; display: flex; gap: 8px; }
.mini-btn {
  background: var(--paper); color: #1a1511;
  border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 500;
}
.mini-btn.ghost { background: transparent; color: var(--ink-dim); border: 1px solid var(--line-strong); }
.copilot-input {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-mute);
  background: rgba(0,0,0,0.2);
  display: flex; align-items: center; gap: 10px;
}
.copilot-input .ci-text {
  flex: 1;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}
.copilot-input .ci-text.placeholder { color: var(--ink-mute); }
.copilot-input .ci-send {
  padding: 5px 12px;
  background: var(--paper); color: #1a1511;
  border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .04em;
  transition: transform 120ms ease, filter 120ms ease, opacity 160ms ease;
  opacity: 0.45;
  pointer-events: none;
}
.copilot-input .ci-send.ready { opacity: 1; }
.copilot-input .ci-send.pressed { transform: scale(0.94); filter: brightness(0.85); }
.caret-blink { animation: blink 1.1s steps(1) infinite; color: var(--accent); margin-left: 2px; display: inline-block; }
@keyframes blink { 50% { opacity: 0; } }

/* Copilot message reveal */
.msg { opacity: 0; transform: translateY(6px); transition: opacity 260ms ease, transform 260ms ease; }
.msg.in { opacity: 1; transform: none; }

/* Typing dots in AI bubble while it's thinking */
.typing-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: 0.4;
  animation: td 1.1s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes td {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

/* Map: vessel label pills */
.dash-map .mono-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  fill: rgba(246,243,236,0.78);
  letter-spacing: 0.04em;
}
.dash-map .mono-lbl.dim { fill: rgba(246,243,236,0.4); }
.dash-map svg { display: block; }
