*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --border: #1e1e2e;
  --text: #e4e4ef;
  --text-dim: #8888a0;
  --accent: #7c5cfc;
  --accent-glow: rgba(124, 92, 252, 0.15);
  --accent2: #00d4aa;
  --accent3: #ff6b6b;
  --nerve: #7c5cfc;
  --brain: #00d4aa;
  --limb: #ff6b6b;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
code, .mono { font-family: 'JetBrains Mono', monospace; }

/* X-RAY PILL (inline next to title) */
.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.xray-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.xray-pill:hover {
  border-color: rgba(0, 212, 170, 0.3);
}
.xray-pill.active {
  border-color: rgba(0, 212, 170, 0.5);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.1);
}

/* X-RAY TOGGLE */
.xray-toggle {
  display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
}
.xray-toggle-track {
  width: 36px; height: 20px; border-radius: 10px;
  background: var(--border); position: relative; transition: background 0.3s;
  overflow: hidden;
}
.xray-toggle-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--text-dim);
  position: absolute; top: 2px; left: 2px; transition: all 0.3s;
}
.xray-pill.active .xray-toggle-track { background: var(--accent2); }
.xray-pill.active .xray-toggle-thumb { left: 18px; background: #fff; }
.xray-toggle-label {
  font-size: 0.78rem; font-family: "JetBrains Mono", monospace;
  color: var(--text-dim); transition: color 0.3s; letter-spacing: 0.5px;
}
.xray-pill.active .xray-toggle-label { color: var(--accent2); }

/* X-RAY MODE */
body.xray-mode .body-silhouette, body.xray-mode .body-silhouette-glow { opacity: 0 !important; transition: opacity 0.6s; }

body.xray-mode .body-part { display: none; }
body.xray-mode .xray-node { display: block; }
body.xray-mode .nerve-path { stroke: var(--accent2); opacity: 0.2; stroke-dasharray: 3 4; }
body.xray-mode .brain-glow circle { fill: rgba(0,212,170,0.05); }


.xray-node { cursor: pointer; }
.xray-node rect { transition: all 0.3s; }
.xray-node:hover rect { stroke-opacity: 1; filter: drop-shadow(0 0 8px rgba(0,212,170,0.3)); }
.xray-node:hover .xray-node-label { fill: var(--text); }

/* X-RAY INFO PANELS */
.xray-info { display: none; }
body.xray-mode .xray-info.active { display: block; animation: fadeIn 0.3s ease; }
body.xray-mode .agent-info { display: none !important; }
body.xray-mode .info-panel h2, body.xray-mode .info-panel .subtitle { display: none; }
.xray-info .tech-block {
  padding: 12px; background: rgba(0,212,170,0.04); border: 1px solid rgba(0,212,170,0.12);
  border-radius: 10px; margin-bottom: 12px; font-family: "JetBrains Mono", monospace; font-size: 0.78rem;
}
.xray-info .tech-block code { color: var(--accent2); }
.xray-info .tech-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); margin-bottom: 6px; }
.xray-info .tech-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.xray-info .tech-role { font-size: 0.8rem; color: var(--accent2); font-family: "JetBrains Mono", monospace; margin-bottom: 14px; }
.xray-info .tech-desc { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 16px; }

/* WAITING LIST */
.waitlist-section {
  width: 100%; padding: 48px 24px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.waitlist-section h2 {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px;
  background: linear-gradient(135deg, #7c5cfc, #00d4aa);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.waitlist-section p { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 20px; max-width: 420px; }
.waitlist-form { display: flex; gap: 10px; width: 100%; max-width: 420px; }
.waitlist-form input {
  flex: 1; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: "Inter", sans-serif; font-size: 0.88rem;
  outline: none; transition: border-color 0.2s;
}
.waitlist-form input:focus { border-color: var(--accent); }
.waitlist-form input::placeholder { color: var(--text-dim); }
.waitlist-form button {
  padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 600; font-family: "Inter", sans-serif; font-size: 0.88rem;
  transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.waitlist-form button:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,92,252,0.3); }
.waitlist-success { color: var(--accent2); font-size: 0.88rem; margin-top: 12px; display: none; }

/* X-RAY MODE */
body.xray-mode .body-silhouette,
body.xray-mode .body-silhouette-glow { opacity: 0 !important; transition: opacity 0.6s; }


body.xray-mode .body-part { display: none; }
body.xray-mode .xray-node { display: block; }
body:not(.xray-mode) .xray-node { display: none; }

/* X-Ray skeleton filters */
.xray-skeleton {
  opacity: 0;
  transition: opacity 0.6s;
}
body.xray-mode .xray-skeleton { opacity: 0.7; }

/* X-Ray node hover */
.xray-node { cursor: pointer; }
.xray-node:hover .xray-node-box {
  stroke: var(--accent2); stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(0, 212, 170, 0.3));
}
.xray-node:hover .xray-node-label { fill: var(--text); }

/* X-Ray connection lines */
.xray-connection {
  stroke: var(--accent2); stroke-width: 0.8; fill: none;
  opacity: 0.25; stroke-dasharray: 4 3;
}
body.xray-mode .xray-connection { animation: xrayFlow 2s linear infinite; }
@keyframes xrayFlow { to { stroke-dashoffset: -14; } }

/* X-Ray protocol labels */
.xray-proto {
  font-family: 'JetBrains Mono', monospace; font-size: 6px;
  fill: var(--accent2); opacity: 0.5;
}

/* X-Ray info panel swap */
body.xray-mode .info-body-mode { display: none !important; }
body.xray-mode .info-xray-mode { display: block !important; }
body:not(.xray-mode) .info-xray-mode { display: none !important; }
body:not(.xray-mode) .info-body-mode { display: block; }

/* X-Ray code blocks in info panel */
.xray-code {
  background: rgba(0, 212, 170, 0.05); border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 8px; padding: 12px; margin: 10px 0;
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  color: var(--accent2); line-height: 1.6; overflow-x: auto;
}
.xray-tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 500; margin: 2px;
  background: rgba(0, 212, 170, 0.08); color: var(--accent2);
  font-family: 'JetBrains Mono', monospace;
}

/* WAITING LIST */
.waitlist-section {
  width: 100%; padding: 60px 24px; text-align: center;
  border-top: 1px solid var(--border); background: var(--bg-card);
}
.waitlist-inner {
  max-width: 480px; margin: 0 auto;
}
.waitlist-section h2 {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #7c5cfc, #00d4aa);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.waitlist-section p {
  font-size: 0.9rem; color: var(--text-dim); margin-bottom: 24px; line-height: 1.6;
}
.waitlist-form {
  display: flex; gap: 10px; max-width: 420px; margin: 0 auto;
}
.waitlist-form input {
  flex: 1; padding: 12px 16px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.waitlist-form input:focus { border-color: var(--accent); }
.waitlist-form input::placeholder { color: var(--text-dim); }
.waitlist-form button {
  padding: 12px 24px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 0.9rem; font-weight: 600;
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.waitlist-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 92, 252, 0.3);
}
.waitlist-success {
  display: none; padding: 14px 20px; border-radius: 10px;
  background: rgba(0, 212, 170, 0.08); border: 1px solid rgba(0, 212, 170, 0.2);
  color: var(--accent2); font-size: 0.9rem; margin-top: 16px;
}
.waitlist-success.visible { display: block; animation: fadeIn 0.3s ease; }


/* LAYOUT */
.page {
  display: flex;
  min-height: 100vh;
  padding-top: 0;
}

.body-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  min-height: 100vh;
  padding: 40px 16px 24px;
}

.info-panel {
  width: 400px;
  border-left: 1px solid var(--border);
  background: var(--bg-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 100vh;
  position: sticky;
  top: 0;
}

/* HUMAN BODY SVG */
.human-container {
  position: relative;
  width: 460px;
  height: 620px;
  flex-shrink: 0;
}

.human-container svg {
  width: 100%;
  height: 100%;
}

/* Body parts */
.body-part {
  cursor: pointer;
  transition: filter 0.3s;
}
.body-part:hover {
  filter: drop-shadow(0 0 14px rgba(124, 92, 252, 0.5));
}
.body-part.active {
  filter: drop-shadow(0 0 20px rgba(124, 92, 252, 0.6));
}

/* Idle breathing on the whole body */
#bodySvg {
  animation: bodyBreathe 4s ease-in-out infinite;
}
@keyframes bodyBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Body thinking pulse (whole silhouette brightens) */
.human-container.thinking .body-silhouette {
  animation: thinkPulse 1.2s ease-in-out infinite;
}
.human-container.thinking .body-silhouette-glow {
  animation: thinkGlow 1.2s ease-in-out infinite;
}
@keyframes thinkPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes thinkGlow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.35; }
}

/* Floating label on SVG during simulation */
.float-label {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.float-label.visible {
  opacity: 1;
  animation: floatLabelIn 0.3s ease;
}
@keyframes floatLabelIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.float-label rect {
  rx: 6;
}
.float-label text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  fill: var(--text);
}

/* Idle ambient nerve pulse */
.idle-pulse {
  fill: var(--nerve);
  r: 3;
  opacity: 0;
  filter: drop-shadow(0 0 4px var(--nerve));
}

/* Scalpel incision line for surgeon install */
.scalpel-line {
  stroke: var(--accent3);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  filter: drop-shadow(0 0 6px var(--accent3));
}
.scalpel-line.cutting {
  animation: scalpelCut 0.6s ease-out forwards;
}
@keyframes scalpelCut {
  to { stroke-dashoffset: 0; }
}
.scalpel-sparks {
  opacity: 0;
}
.scalpel-sparks.active {
  animation: sparkFlash 0.4s ease-out 0.4s forwards;
}
@keyframes sparkFlash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Chain arc between agents (through brain) */
.chain-arc {
  stroke: rgba(124, 92, 252, 0.25);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 4 3;
  opacity: 0;
  transition: opacity 0.3s;
}
.chain-arc.visible {
  opacity: 1;
}

/* Brain glow */
.brain-glow {
  animation: brainPulse 2s ease-in-out infinite;
}
@keyframes brainPulse {
  0%, 100% { opacity: 0.3; r: 35; }
  50% { opacity: 0.6; r: 42; }
}

/* Nerve paths */
.nerve-path {
  stroke: var(--nerve);
  stroke-width: 2;
  fill: none;
  opacity: 0.35;
  stroke-dasharray: 8 4;
}
.nerve-path.active {
  opacity: 1;
  stroke-width: 3;
  animation: nerveFlow 1s linear infinite;
}
@keyframes nerveFlow {
  to { stroke-dashoffset: -24; }
}

/* Signal dot traveling along nerve */
.signal-dot {
  fill: var(--accent);
  r: 4;
  opacity: 0;
  filter: drop-shadow(0 0 6px var(--accent));
}
.signal-dot.active {
  opacity: 1;
}

/* Limb labels */
.limb-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  fill: var(--text-dim);
  text-anchor: middle;
  pointer-events: none;
  transition: fill 0.3s;
}
.limb-label.active {
  fill: var(--text);
}

/* INFO PANEL */
.info-panel h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.info-panel .subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.6;
}

.agent-info {
  display: none;
}
.agent-info.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.agent-info .agent-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.agent-info .agent-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.agent-info .agent-role {
  font-size: 0.82rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 16px;
}
.agent-info .agent-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Message log */
.message-log {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.message-log h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: rgba(124, 92, 252, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(124, 92, 252, 0.1);
  font-size: 0.82rem;
  animation: fadeIn 0.3s ease;
}
.log-entry .log-icon { flex-shrink: 0; font-size: 1rem; }
.log-entry .log-text { color: var(--text-dim); line-height: 1.5; }
.log-entry .log-text strong { color: var(--text); font-weight: 600; }

/* Simulate button */
.sim-btn {
  margin-top: 24px;
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
  width: 100%;
}
.sim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 92, 252, 0.3);
}
.sim-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* User input */
.user-input-area {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
body.xray-mode .user-input-area {
  display: none;
}
.user-input-area label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 10px;
}
.preset-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preset-msg {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
}
.preset-msg:hover {
  border-color: rgba(124, 92, 252, 0.4);
  color: var(--text);
  background: var(--bg-card-hover);
}
.preset-msg:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.preset-msg .preset-icon {
  margin-right: 6px;
}

/* Legend */
.legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Status bar at bottom of body panel */
.status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 8px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  animation: statusPulse 2s infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Title overlay */
.body-title {
  text-align: center;
  flex-shrink: 0;
  padding-bottom: 8px;
}
.body-title h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #7c5cfc, #00d4aa);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.body-title p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 4px;
}
.body-title .mobile-hint {
  display: none;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ---- SURGEON / MARKETPLACE ---- */
.surgeon-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ff9f43);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.surgeon-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(255, 107, 107, 0.45);
}
.surgeon-toggle .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

/* Surgeon overlay */
.surgeon-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.6);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.surgeon-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Surgeon drawer */
.surgeon-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  z-index: 301;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.surgeon-drawer.open {
  transform: translateX(0);
}

.surgeon-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.surgeon-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.surgeon-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.surgeon-header h2 span { font-size: 1.5rem; }
.surgeon-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}
.surgeon-close:hover {
  border-color: var(--accent3);
  color: var(--text);
}
.surgeon-header p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.surgeon-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Upgrade cards */
.upgrade-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
}
.upgrade-card:hover {
  border-color: rgba(255, 107, 107, 0.4);
  background: var(--bg-card-hover);
}
.upgrade-card.installed {
  border-color: rgba(0, 212, 170, 0.3);
  background: rgba(0, 212, 170, 0.03);
}
.upgrade-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.upgrade-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.upgrade-meta { flex: 1; }
.upgrade-meta h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.upgrade-meta .upgrade-type {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent3);
}
.upgrade-desc {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 14px;
}
.upgrade-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.upgrade-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.upgrade-tag {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--accent-glow);
  color: var(--accent);
}
.install-btn {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  background: linear-gradient(135deg, #ff6b6b, #ff9f43);
  color: #fff;
}
.install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}
.install-btn.installed {
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent2);
  cursor: default;
  transform: none;
  box-shadow: none;
}
.install-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Surgery animation overlay on the body */
.surgery-flash {
  position: absolute;
  inset: 0;
  background: rgba(255, 107, 107, 0.08);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
}
.surgery-flash.active {
  animation: surgeryPulse 1.5s ease-out;
}
@keyframes surgeryPulse {
  0% { opacity: 0.8; }
  50% { opacity: 0.3; }
  100% { opacity: 0; }
}

/* Installed limb glow on body */
.body-part.newly-installed {
  animation: installGlow 2s ease-out;
}
@keyframes installGlow {
  0% { filter: drop-shadow(0 0 30px #ff6b6b); }
  50% { filter: drop-shadow(0 0 15px var(--accent2)); }
  100% { filter: none; }
}

/* New SVG elements for upgrades */
.upgrade-limb {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.upgrade-limb.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Invisible touch targets (hidden on desktop, shown on mobile) */
.touch-target {
  fill: transparent;
  stroke: none;
  display: none;
  pointer-events: all;
}

/* Mobile agent info popup (bottom sheet) */
.mobile-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 250;
  flex-direction: column;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 20px 24px 28px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
  max-height: 55vh;
  overflow-y: auto;
}
.mobile-popup.visible {
  transform: translateY(0);
}
.mobile-popup-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 0 auto 16px;
  flex-shrink: 0;
}
.mobile-popup .agent-icon { font-size: 2rem; margin-bottom: 8px; }
.mobile-popup .agent-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.mobile-popup .agent-role {
  font-size: 0.78rem; color: var(--accent);
  font-family: 'JetBrains Mono', monospace; margin-bottom: 12px;
}
.mobile-popup .agent-desc {
  font-size: 0.88rem; color: var(--text-dim); line-height: 1.6;
}
.mobile-popup .surgeon-tag {
  padding: 8px 12px; border-radius: 8px; font-size: 0.78rem; margin-top: 10px;
  display: inline-block;
}
.mobile-popup-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.5);
  z-index: 249;
}
.mobile-popup-scrim.visible {
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .page { flex-direction: column; }
  .info-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: none;
    position: relative;
    top: 0;
  }
  .body-panel { min-height: 70vh; }
  .human-container { width: 95vw; height: 580px; }

  /* Bigger touch targets for body parts */
  .body-part circle,
  .body-part ellipse {
    stroke-width: 2.5;
  }
  .touch-target { display: block !important; }

  /* Mobile popup for agent info */
  .mobile-popup {
    display: flex !important;
  }

  /* Hide desktop info panel agent-info sections (popup handles it) */
  .info-panel .agent-info,
  .info-panel h2,
  .info-panel .subtitle,
  .info-panel .legend {
    display: none !important;
  }

  /* Surgeon drawer full width on mobile */
  .surgeon-drawer { width: 100%; max-width: 100vw; }

  /* Preset buttons need good tap size */
  .preset-msg { padding: 14px 16px; font-size: 0.88rem; }

  /* Status bar wrap */
  .status-bar { white-space: normal; text-align: center; margin-bottom: 16px; }

  /* Swap subtitle text */
  .body-title p:not(.mobile-hint) { display: none; }
  .body-title .mobile-hint { display: block; }

  /* Bigger SVG text on mobile */
  .limb-label { font-size: 14px !important; }
  .body-part text[font-size] { font-size: 16px !important; }
  .body-part text[font-size="7"] { font-size: 11px !important; }
  #speechBubbleText { font-size: 11px !important; }
  #floatLabelText { font-size: 11px !important; }
}

/* ---- X-RAY MODE ---- */
.xray-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
body.xray-mode .xray-layer {
  opacity: 1;
  
}
body.xray-mode .body-silhouette,
body.xray-mode .body-silhouette-glow {
  transition: opacity 0.6s ease;
  opacity: 0 !important;
}
body.xray-mode #bodySvg .body-part:not(.xray-node) {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
body.xray-mode .nerve-path,
body.xray-mode .signal-dot,
body.xray-mode .brain-glow,
body.xray-mode #brainPulseRing {
  opacity: 0 !important;
  transition: opacity 0.5s ease;
}
body.xray-mode .idle-pulse {
  opacity: 0 !important;
}

/* Skeleton image in X-Ray */
.xray-skeleton {
  opacity: 0;
  transition: opacity 0.8s ease 0.1s;
  filter: brightness(0.6) sepia(1) hue-rotate(120deg) saturate(0.4);
}
body.xray-mode .xray-skeleton {
  opacity: 0.35;
}

/* X-Ray grid background */
.xray-grid {
  opacity: 0;
  transition: opacity 0.6s ease;
}
body.xray-mode .xray-grid {
  opacity: 0.03;
}

/* X-Ray nodes (tech cards on the SVG) */
.xray-node {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
  cursor: pointer;
}
body.xray-mode .xray-node {
  opacity: 1;
  pointer-events: auto;
}
.xray-node:hover rect {
  filter: drop-shadow(0 0 8px rgba(0, 212, 170, 0.4));
}
.xray-node:hover .xray-node-border {
  stroke: var(--accent2);
  stroke-opacity: 0.8;
}

/* X-Ray connection lines */
.xray-connection {
  stroke: var(--accent2);
  stroke-width: 1;
  stroke-dasharray: 4 3;
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}
body.xray-mode .xray-connection {
  opacity: 0.1;
}

/* X-Ray protocol labels on connections */
.xray-protocol {
  font-family: 'JetBrains Mono', monospace;
  font-size: 6px;
  fill: var(--accent2);
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}
body.xray-mode .xray-protocol {
  opacity: 0;
}

/* X-Ray info panel overrides */
body.xray-mode .info-panel h2,
body.xray-mode .info-panel .subtitle,
body.xray-mode .info-panel .legend {
  display: none;
}
body.xray-mode .message-log,
body.xray-mode .status-bar {
  display: none;
}
.xray-panel-header {
  display: none;
}
body.xray-mode .xray-panel-header {
  display: block;
  animation: fadeIn 0.3s ease;
}
.xray-panel-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  font-family: 'JetBrains Mono', monospace;
}
.xray-panel-header .subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* X-Ray agent info cards */
.xray-info {
  display: none;
}
body.xray-mode .xray-info.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
.xray-info .tech-stack {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.xray-info .tech-tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  background: rgba(0, 212, 170, 0.08);
  color: var(--accent2);
  border: 1px solid rgba(0, 212, 170, 0.15);
}
.xray-info .code-block {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent2);
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

/* ---- WAITING LIST ---- */
.waitlist-section {
  width: 100%;
  padding: 60px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(124, 92, 252, 0.03) 100%);
}
.waitlist-inner {
  max-width: 520px;
  margin: 0 auto;
}
.waitlist-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #7c5cfc, #00d4aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.waitlist-section p {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.7;
}
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.waitlist-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form input::placeholder {
  color: var(--text-dim);
}
.waitlist-form input:focus {
  border-color: var(--accent);
}
.waitlist-form button {
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.waitlist-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 92, 252, 0.3);
}
.waitlist-success {
  display: none;
  color: var(--accent2);
  font-size: 0.9rem;
  margin-top: 16px;
}
.waitlist-success.visible {
  display: block;
  animation: fadeIn 0.4s ease;
}

@media (max-width: 900px) {
  .waitlist-form {
    flex-direction: column;
  }
  .waitlist-form button {
    width: 100%;
  }
}

/* X-Ray node readability improvements */
.xray-node rect.xray-node-border {
  fill: rgba(10, 10, 15, 0.85);
}
body.xray-mode .xray-skeleton {
  opacity: 0.2;
}

/* X-Ray pointer events */
.xray-layer {
  pointer-events: none;
}
body.xray-mode .xray-layer {
  pointer-events: auto;
}
body.xray-mode .xray-layer line,
body.xray-mode .xray-layer text.xray-protocol {
  pointer-events: none;
}
.xray-node {
  pointer-events: none;
}
body.xray-mode .xray-node {
  pointer-events: auto;
  cursor: pointer;
}

/* X-Ray locked node */
.xray-node.locked rect.xray-node-border {
  stroke-width: 1.6;
  filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.4));
}

/* ---- FLOATING QUESTION BUBBLES ---- */
.floating-questions {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}
.human-container {
  overflow: visible;
}
.body-panel {
  overflow: visible;
}
body.xray-mode .floating-questions { display: none; }

.float-q {
  position: absolute;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(18, 18, 26, 0.75);
  border: 1px solid rgba(124, 92, 252, 0.2);
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s, background 0.3s;
  animation: floatBubbleIn 1.2s ease forwards, floatDrift var(--drift-duration, 6s) ease-in-out infinite var(--drift-delay, 0s);
  transform: translateY(var(--start-y, 0px));
}
.float-q .float-q-icon {
  margin-right: 6px;
}
.float-q:hover {
  border-color: rgba(124, 92, 252, 0.5);
  color: var(--text);
  background: rgba(30, 30, 46, 0.9);
  box-shadow: 0 0 20px rgba(124, 92, 252, 0.15);
}
.float-q.simulating {
  border-color: var(--accent2);
  color: var(--accent2);
  box-shadow: 0 0 24px rgba(0, 212, 170, 0.2);
  animation: floatPulse 1s ease-in-out infinite;
}
.float-q.fading-out {
  animation: floatBubbleOut 0.5s ease forwards;
}

@keyframes floatBubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floatBubbleOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}
@keyframes floatDrift {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(var(--dy1, -6px)) translateX(var(--dx1, 4px)); }
  50% { transform: translateY(var(--dy2, 3px)) translateX(var(--dx2, -3px)); }
  75% { transform: translateY(var(--dy3, -4px)) translateX(var(--dx3, 5px)); }
}
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 212, 170, 0.15); }
  50% { box-shadow: 0 0 24px rgba(0, 212, 170, 0.3); }
}

/* Hide floating bubbles during simulation */
.floating-questions.hidden .float-q {
  animation: floatBubbleOut 0.8s ease forwards;
  pointer-events: none;
}

@media (max-width: 900px) {
  .floating-questions {
    inset: 0;
  }
  .float-q {
    font-size: 0.72rem;
    padding: 7px 12px;
    white-space: normal;
    max-width: 55vw;
  }
}


/* ---- PARTICLE CANVAS ---- */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ---- XRAY PILL SHIMMER ---- */
.xray-pill {
  position: relative;
  overflow: hidden;
}
.xray-pill::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(0, 212, 170, 0.25) 45%,
    rgba(0, 212, 170, 0.4) 50%,
    rgba(0, 212, 170, 0.25) 55%,
    transparent 70%
  );
  animation: xrayShimmer 4s ease-in-out infinite;
  pointer-events: none;
}
.xray-pill.active::after {
  display: none;
}
@keyframes xrayShimmer {
  0%, 65% { left: -75%; opacity: 0; }
  70% { opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

/* ---- DYNAMIC FRED SIZING ---- */
.human-container {
  width: clamp(320px, calc(100vh - 140px) * 0.72, 800px);
  height: clamp(460px, calc(100vh - 140px), 1060px);
}

/* ---- MESSAGE LOG HIDDEN ---- */
.message-log {
  display: none !important;
}

/* ---- PRODUCT STORY (right panel default) ---- */
.info-story {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: fadeIn 0.3s ease;
  transition: opacity 0.35s ease;
}
.story-header {
  margin-bottom: 24px;
}
.story-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(0, 212, 170, 0.08);
  color: var(--accent2);
  border: 1px solid rgba(0, 212, 170, 0.15);
  margin-bottom: 14px;
}
.story-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #7c5cfc, #00d4aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.story-tagline {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.story-section {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(30, 30, 46, 0.6);
}
.story-section:last-of-type {
  border-bottom: none;
}
.story-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  padding-top: 2px;
}
.story-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.story-text {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.story-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}
.story-principles {
  padding: 4px 0;
}
.principle-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.principle-icon {
  flex-shrink: 0;
  font-size: 1rem;
}
.story-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  opacity: 0.6;
  line-height: 1.6;
  padding-top: 4px;
}

/* ---- AGENT OVERLAY (slides over story on hover) ---- */
.agent-overlay {
  display: none;
  animation: fadeIn 0.3s ease;
}
.agent-overlay.visible {
  display: block;
}
.agent-overlay.visible ~ .info-story,
.info-story.story-hidden {
  display: none;
}

/* X-Ray mode hides both story and overlay */
body.xray-mode .info-story,
body.xray-mode .agent-overlay {
  display: none !important;
}

/* X-Ray mode: hide simulation UI */
body.xray-mode .floating-questions { display: none; }

/* Mobile overrides for story/overlay */
@media (max-width: 900px) {
  .human-container { width: min(95vw, 500px); height: clamp(460px, 70vh, 620px); }
  .info-story {
    display: flex !important;
    padding: 0 0 24px;
  }
  .agent-overlay {
    display: none !important;
  }
  body.xray-mode .info-story {
    display: none !important;
  }
}


/* ---- PRICING TBD BANNER ---- */
.pricing-tbd-banner {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 8px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

/* ---- MOBILE HERO TAGLINE ---- */
.mobile-hero-tagline {
  display: none;
}
@media (max-width: 900px) {
  .title-row {
    flex-direction: column;
    gap: 10px;
  }
  .mobile-hero-tagline {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 4px 0 8px;
    text-align: center;
  }
}

/* ---- SITE FOOTER ---- */
.site-footer {
  width: 100%;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
}
.footer-logo {
  font-size: 1.1rem;
}
.footer-company a {
  color: var(--accent);
  text-decoration: none;
}
.footer-company a:hover {
  text-decoration: underline;
}
.footer-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.footer-meta a {
  color: var(--accent2);
  text-decoration: none;
}
.footer-meta a:hover {
  text-decoration: underline;
}
.footer-sep {
  opacity: 0.4;
}
.footer-legal {
  font-size: 0.68rem;
  color: var(--text-dim);
  opacity: 0.5;
}

/* ---- WAITLIST CONSENT ---- */
.waitlist-consent {
  font-size: 0.72rem;
  color: var(--text-dim);
  opacity: 0.7;
  margin-top: 12px;
}
.waitlist-consent a {
  color: var(--accent2);
  text-decoration: none;
}
.waitlist-consent a:hover {
  text-decoration: underline;
}

/* ---- LANGUAGE PICKER (compact inline) ---- */
.lang-picker {
  position: relative;
  display: inline-flex;
}
.lang-picker-btn {
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-dim);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
}
.lang-picker-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.lang-picker-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  flex-direction: column;
  gap: 2px;
  min-width: 90px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 100;
}
.lang-picker.open .lang-picker-dropdown {
  display: flex;
}
.lang-opt {
  padding: 5px 10px;
  border: none;
  background: none;
  color: var(--text-dim);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 5px;
  text-align: left;
  transition: all 0.15s;
  white-space: nowrap;
}
.lang-opt:hover {
  background: rgba(124,92,252,0.12);
  color: var(--text);
}
.lang-opt.active {
  background: var(--accent);
  color: #fff;
}

/* Mobile footer cleanup */
@media (max-width: 900px) {
  .footer-meta {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-hide-mobile {
    display: none !important;
  }
  .footer-sep-lang {
    display: inline !important;
  }
  .site-footer {
    padding-bottom: 80px;
  }
}

/* Surgeon button scroll-hide */
.surgeon-toggle.hidden-scroll {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}


/* USE CASE SECTION */
.usecase-section {
  width: 100%; padding: 48px 24px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.usecase-inner { max-width: 520px; width: 100%; }
.usecase-section h2 {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px;
  background: linear-gradient(135deg, #7c5cfc, #00d4aa);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.usecase-section p { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 20px; max-width: 420px; margin-left: auto; margin-right: auto; }
.usecase-form { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; margin: 0 auto; align-items: center; }
.usecase-form textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: "Inter", sans-serif; font-size: 0.88rem;
  outline: none; transition: border-color 0.2s; resize: vertical;
}
.usecase-form textarea:focus { border-color: var(--accent); }
.usecase-form textarea::placeholder { color: var(--text-dim); }
.usecase-form button {
  padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 600; font-family: "Inter", sans-serif; font-size: 0.88rem;
  transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap; margin-left: 0;
}
.usecase-form button:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,92,252,0.3); }
.usecase-success { color: var(--accent2); font-size: 0.88rem; margin-top: 12px; display: none; }
.usecase-success.visible { display: block; }
.usecase-success.hidden { display: none; }
