/* FlukeBase Dashboard — Precision Noir design system */

/* ─── Fonts ──────────────────────────────────────────────────── */
/* IBM Plex Mono loaded via base.html for technical data */

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ─── Nav link base ──────────────────────────────────────────── */
.nav-link {
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  border-left: 2px solid transparent;
}
.nav-link.nav-active {
  border-left-color: #6366f1;
}

/* ─── Live session pulse indicator ──────────────────────────── */
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.8); }
}
.live-dot { animation: live-pulse 2s ease-in-out infinite; }

@keyframes live-ring {
  0%   { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(2.4);  opacity: 0; }
}
.live-ring { animation: live-ring 2.2s ease-out infinite; }

/* ─── Stat cards — colored top accent line ───────────────────── */
.stat-card { position: relative; overflow: hidden; }
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
}
.stat-card-projects::after { background: linear-gradient(90deg, #6366f1, #818cf8); }
.stat-card-tasks::after    { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card-sessions::after { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-card-memories::after { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.stat-card-agents::after   { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* ─── Waitlist pipeline column accents ──────────────────────── */
[data-wl-column="pending"]  { border-top: 2px solid rgba(234, 179, 8, 0.4); }
[data-wl-column="approved"] { border-top: 2px solid rgba(16, 185, 129, 0.4); }
[data-wl-column="invited"]  { border-top: 2px solid rgba(59, 130, 246, 0.4); }
[data-wl-column="rejected"] { border-top: 2px solid rgba(239, 68, 68, 0.3); }

[data-wl-drop].drop-active {
  background-color: rgba(99, 102, 241, 0.05) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  border-radius: 8px;
}

/* ─── HTMX loading indicator ─────────────────────────────────── */
.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator { opacity: 1; }

/* ─── Drag & Drop ────────────────────────────────────────────── */
[draggable="true"] {
  transition: opacity 0.12s ease, transform 0.12s ease;
  cursor: grab;
}
[draggable="true"]:active { cursor: grabbing; }
.task-dragging { opacity: 0.35; transform: scale(0.97) rotate(0.8deg); }
.drop-active {
  border-color: #6366f1 !important;
  background-color: rgba(99, 102, 241, 0.05) !important;
}
.kanban-placeholder {
  border: 2px dashed rgba(99, 102, 241, 0.4);
  border-radius: 8px;
  height: 56px;
  margin: 4px 0;
  transition: all 0.12s ease;
}

/* ─── Memory type badges ─────────────────────────────────────── */
.badge-default {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.badge-factual {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.badge-procedural {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-episodic {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.badge-conversation {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.badge-context {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-shared {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* ─── Modal animations ───────────────────────────────────────── */
[data-modal-backdrop] { animation: fadeIn 0.15s ease-out; }
[data-modal-backdrop] > div { animation: slideUp 0.2s ease-out; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ─── Toast ──────────────────────────────────────────────────── */
#toast-container > div { pointer-events: auto; }

/* ─── Command palette ────────────────────────────────────────── */
#cmd-palette:not(.hidden) { animation: fadeIn 0.1s ease-out; }
#cmd-palette:not(.hidden) > div:last-child { animation: slideUp 0.15s ease-out; }

.cmd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.1s ease;
}
.cmd-item:hover, .cmd-item.active {
  background-color: rgba(99, 102, 241, 0.08);
}
.dark .cmd-item:hover, .dark .cmd-item.active {
  background-color: rgba(99, 102, 241, 0.15);
}
.cmd-item.active { color: #6366f1; }

/* ─── Auth animated background ───────────────────────────────── */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.auth-bg {
  background: linear-gradient(-45deg, #0f172a, #1e1b4b, #0f0f1a, #172554);
  background-size: 400% 400%;
  animation: gradient-shift 14s ease infinite;
}
.auth-grid {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ─── Monospace data class ───────────────────────────────────── */
.mono {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ─── Section dividers in sidebar ────────────────────────────── */
.nav-section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
  padding: 8px 12px 4px;
  user-select: none;
  display: flex;
  align-items: center;
}

.nav-section-sublabel {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3f3f46;
  padding: 4px 12px 2px;
  user-select: none;
}

/* ─── Conversation view ─────────────────────────────────────── */

/* Message reveal animation */
@keyframes conv-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.conv-msg {
  animation: conv-reveal 0.25s ease-out both;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}
.dark .conv-msg {
  border-bottom-color: rgba(63, 63, 70, 0.15);
}

/* Agent message left border glow on hover */
.conv-msg-agent:hover .border-l-2 {
  border-color: rgba(99, 102, 241, 0.35);
  transition: border-color 0.2s ease;
}
.dark .conv-msg-agent:hover .border-l-2 {
  border-color: rgba(99, 102, 241, 0.25);
}

/* Tool pills */
.conv-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.06);
  color: rgba(16, 185, 129, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.12);
  transition: all 0.15s ease;
}
.conv-tool-pill:hover {
  background: rgba(16, 185, 129, 0.1);
  color: rgba(16, 185, 129, 0.8);
}
.dark .conv-tool-pill {
  background: rgba(16, 185, 129, 0.08);
  color: rgba(52, 211, 153, 0.5);
  border-color: rgba(16, 185, 129, 0.1);
}
.dark .conv-tool-pill:hover {
  background: rgba(16, 185, 129, 0.12);
  color: rgba(52, 211, 153, 0.7);
}

/* Thinking block body reveal */
.conv-thinking-body {
  animation: conv-reveal 0.2s ease-out both;
}

/* Thinking scrollbar */
.conv-thinking-body pre::-webkit-scrollbar { width: 3px; }
.conv-thinking-body pre::-webkit-scrollbar-thumb { background: rgba(245, 158, 11, 0.2); border-radius: 2px; }

/* Scroll area */
.conv-scroll-area {
  scroll-behavior: smooth;
}
.conv-scroll-area::-webkit-scrollbar { width: 4px; }
.conv-scroll-area::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.15); border-radius: 2px; }
.conv-scroll-area::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.3); }

/* Live bar pulse */
.conv-live-bar {
  animation: conv-live-breathe 3s ease-in-out infinite;
}
@keyframes conv-live-breathe {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* Jump-to-bottom button */
#conv-jump-bottom {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#conv-jump-bottom:not(.hidden) {
  animation: conv-reveal 0.15s ease-out both;
}

/* ─── Deploy stage bars ──────────────────────────────────────── */
.deploy-bar {
  height: 22px;
  border-radius: 4px;
  transition: width 0.6s ease-out;
  min-width: 3%;
}
.deploy-bar-indigo  { background: linear-gradient(90deg, rgba(99,102,241,0.7), rgba(99,102,241,0.4)); }
.deploy-bar-blue    { background: linear-gradient(90deg, rgba(59,130,246,0.7), rgba(59,130,246,0.4)); }
.deploy-bar-cyan    { background: linear-gradient(90deg, rgba(6,182,212,0.7), rgba(6,182,212,0.4)); }
.deploy-bar-teal    { background: linear-gradient(90deg, rgba(20,184,166,0.7), rgba(20,184,166,0.4)); }
.deploy-bar-amber   { background: linear-gradient(90deg, rgba(245,158,11,0.7), rgba(245,158,11,0.4)); }
.deploy-bar-emerald { background: linear-gradient(90deg, rgba(16,185,129,0.7), rgba(16,185,129,0.4)); }
.deploy-bar-violet  { background: linear-gradient(90deg, rgba(139,92,246,0.7), rgba(139,92,246,0.4)); }
.deploy-bar-purple  { background: linear-gradient(90deg, rgba(168,85,247,0.7), rgba(168,85,247,0.4)); }
.deploy-bar-sky     { background: linear-gradient(90deg, rgba(14,165,233,0.7), rgba(14,165,233,0.4)); }
.deploy-bar-rose    { background: linear-gradient(90deg, rgba(244,63,94,0.7), rgba(244,63,94,0.4)); }
.deploy-bar-zinc    { background: linear-gradient(90deg, rgba(113,113,122,0.7), rgba(113,113,122,0.4)); }

/* Inline stacked bar for deployment breakdown */
.deploy-stage-stack {
  display: flex;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  gap: 1px;
  background: rgba(39, 39, 42, 0.4);
}
.deploy-stage-stack > div {
  transition: width 0.4s ease-out;
  min-width: 2px;
}

/* Success rate ring (conic-gradient) */
.success-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.success-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #18181b;
}
.success-ring > span {
  position: relative;
  z-index: 1;
}

/* Pipeline step log viewer */
.pipeline-log {
  max-height: 300px;
  overflow-y: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  color: #a1a1aa;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 12px;
}
.pipeline-log::-webkit-scrollbar { width: 4px; }
.pipeline-log::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.2); border-radius: 2px; }

/* Period pill group */
.period-pill {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.15s ease;
  text-decoration: none;
}
.period-pill-active {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.period-pill-inactive {
  background: transparent;
  color: #71717a;
  border: 1px solid transparent;
}
.period-pill-inactive:hover {
  color: #a1a1aa;
  background: rgba(63, 63, 70, 0.3);
}

/* ─── Infrastructure cards ──────────────────────────────────── */
.infra-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.infra-card:hover {
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.06), 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ─── Importance bar shimmer ─────────────────────────────────── */
@keyframes shimmer {
  0%   { opacity: 0.7; }
  50%  { opacity: 1; }
  100% { opacity: 0.7; }
}
.importance-bar-high { animation: shimmer 2s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════════════ */
/* Landing page                                                   */
/* ═══════════════════════════════════════════════════════════════ */

/* ─── Scan-line sweep ──────────────────────────────────────── */
@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
.landing-scanline::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.15), transparent);
  animation: scanline 8s linear infinite;
}

/* ─── Staggered reveal on load ─────────────────────────────── */
@keyframes landing-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.landing-reveal {
  opacity: 0;
  animation: landing-reveal 0.8s ease-out forwards;
}
.landing-delay-1 { animation-delay: 0.15s; }
.landing-delay-2 { animation-delay: 0.3s; }
.landing-delay-3 { animation-delay: 0.45s; }
.landing-delay-4 { animation-delay: 0.6s; }
.landing-delay-5 { animation-delay: 0.75s; }

/* ─── Blinking cursor after subtitle ───────────────────────── */
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
.landing-cursor {
  animation: cursor-blink 1s step-end infinite;
  color: #6366f1;
  font-weight: 100;
}

/* ─── Stat hover tooltips (landing page) ─────────────────── */
.stat-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 280px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 50;
  text-align: left;
}
.stat-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  border-left: 1px solid rgba(99, 102, 241, 0.2);
}
.group\/stat:hover .stat-tooltip {
  display: block;
  animation: tooltipFadeIn 0.15s ease-out;
}
@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── Waitlist modal overlay ───────────────────────────────── */
#waitlist-overlay:not(.hidden) {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}
#waitlist-overlay:not(.hidden) > .relative {
  animation: slideUp 0.25s ease-out;
}

/* ─── Waitlist modal entrance ──────────────────────────────── */
.wl-backdrop-enter {
  animation: wlBackdropIn 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.wl-modal-enter {
  animation: wlModalIn 0.4s cubic-bezier(0.16,1,0.3,1) 0.05s both;
}
@keyframes wlBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes wlModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97) rotateX(2deg); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotateX(0); }
}

/* ─── Waitlist step transitions ────────────────────────────── */
.wl-step {
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: wlStepIn 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.wl-step.hidden { display: none; }
@keyframes wlStepIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes wlShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(2px); }
}

/* ─── Terminal breadcrumb navigation ──────────────────────── */
.wl-crumb {
  color: rgba(255,255,255,0.2);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  transition: all 0.25s ease;
}
.wl-crumb.active { color: #818cf8; }
.wl-crumb.done { color: #34d399; }

/* ─── Shared input style ──────────────────────────────────── */
.wl-label {
  display: block;
  font-size: 10px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: rgba(148,163,184,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.wl-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 14px;
  outline: none;
  transition: all 0.15s ease;
}
.wl-input::placeholder { color: rgba(100,116,139,0.5); }
.wl-input:focus {
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08), inset 0 1px 2px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.04);
}

/* ─── Role selection cards ────────────────────────────────── */
.wl-role-card { cursor: pointer; display: block; }
.wl-role-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
}
.wl-role-inner:hover {
  border-color: rgba(99,102,241,0.2);
  background: rgba(99,102,241,0.04);
  transform: translateY(-1px);
}
.wl-role-card input:checked + .wl-role-inner {
  border-color: rgba(99,102,241,0.45);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 16px rgba(99,102,241,0.08), inset 0 1px 0 rgba(255,255,255,0.04);
}
.wl-role-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(148,163,184,0.6);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.wl-role-card input:checked + .wl-role-inner .wl-role-icon {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.3);
  color: #818cf8;
}

/* ─── Chip toggles ─────────────────────────────────────────── */
.wl-chip span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: rgba(148,163,184,0.7);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16,1,0.3,1);
  user-select: none;
}
.wl-chip span:hover {
  border-color: rgba(99,102,241,0.25);
  background: rgba(99,102,241,0.04);
  color: #c7d2fe;
  transform: translateY(-1px);
}
.wl-chip input:checked + span {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  box-shadow: 0 0 12px rgba(99,102,241,0.1);
}

/* ─── Wishlist ranking cards ───────────────────────────────── */
.wl-wish-card { cursor: pointer; display: block; }
.wl-wish-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  transition: all 0.15s cubic-bezier(0.16,1,0.3,1);
}
.wl-wish-inner:hover {
  border-color: rgba(99,102,241,0.2);
  background: rgba(99,102,241,0.03);
}
.wl-wish-num {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 10px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: rgba(255,255,255,0.2);
  transition: all 0.15s ease;
}
.wl-wish-card input:checked + .wl-wish-inner {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.07);
}
.wl-wish-card input:checked + .wl-wish-inner .wl-wish-num {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.5);
  color: #a5b4fc;
}

/* ─── AI spend cards ──────────────────────────────────────── */
.wl-spend-card { cursor: pointer; display: block; }
.wl-spend-inner {
  text-align: center;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  font-size: 12px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: rgba(148,163,184,0.6);
  transition: all 0.15s cubic-bezier(0.16,1,0.3,1);
}
.wl-spend-inner:hover {
  border-color: rgba(99,102,241,0.25);
  background: rgba(99,102,241,0.04);
  color: #c7d2fe;
}
.wl-spend-card input:checked + .wl-spend-inner {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  box-shadow: 0 0 12px rgba(99,102,241,0.1);
}

/* ─── Range slider ─────────────────────────────────────────── */
.wl-range {
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  outline: none;
}
.wl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  border: 2px solid #818cf8;
  box-shadow: 0 0 12px rgba(99,102,241,0.35), 0 0 0 4px rgba(99,102,241,0.08);
  transition: box-shadow 0.15s ease;
}
.wl-range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 16px rgba(99,102,241,0.5), 0 0 0 6px rgba(99,102,241,0.12);
}
.wl-range::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  border: 2px solid #818cf8;
  box-shadow: 0 0 12px rgba(99,102,241,0.35), 0 0 0 4px rgba(99,102,241,0.08);
}

/* ─── Hero terminal ───────────────────────────────────── */
.hero-terminal {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.05),
    0 25px 60px rgba(0, 0, 0, 0.4);
}
.hero-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.015);
}
.hero-terminal-body {
  padding: 16px 18px;
  overflow-x: auto;
}
.hero-terminal-line {
  white-space: nowrap;
  opacity: 0;
  animation: terminal-line-reveal 0.5s ease-out forwards;
}
@keyframes terminal-line-reveal {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Landing gradient text ────────────────────────────── */
.landing-gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 35%, #c084fc 65%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Onboard Scene (Three.js animated demo) ──────────── */
#onboard-scene {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
}
@media (min-width: 768px) {
  #onboard-scene { height: 480px; }
}
.onboard-terminal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 560px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(10,10,18,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(99,102,241,0.08);
  z-index: 2;
}
.onboard-term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.onboard-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0.7;
}
.onboard-term-title {
  margin-left: 10px;
  font-size: 10px;
  font-family: monospace;
  color: rgba(148,163,184,0.4);
  letter-spacing: 0.5px;
}
.onboard-term-body {
  padding: 16px 18px;
  min-height: 200px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.9;
  transition: opacity 0.2s ease;
}
.onboard-line {
  white-space: pre;
  overflow: hidden;
}
.onboard-caret {
  color: #818cf8;
  animation: caret-blink 0.6s step-end infinite;
}
@keyframes caret-blink {
  50% { opacity: 0; }
}
.onboard-stage-label {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(129,140,248,0.8);
  font-family: monospace;
  letter-spacing: 0.5px;
  z-index: 3;
  transition: opacity 0.3s ease;
}
.onboard-cursor {
  position: absolute;
  width: 14px;
  height: 20px;
  z-index: 4;
  pointer-events: none;
  transition: transform 0.15s ease-out;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='20' viewBox='0 0 14 20'%3E%3Cpath d='M0 0l12 9.5-5 1.5 4 7-3 1.5-4-7-4 3.5z' fill='white' stroke='rgba(0,0,0,0.3)' stroke-width='0.5'/%3E%3C/svg%3E") no-repeat;
}
.onboard-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.onboard-dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(148,163,184,0.2);
  transition: all 0.3s ease;
}
.onboard-dot-indicator.active {
  background: #818cf8;
  box-shadow: 0 0 8px rgba(129,140,248,0.5);
  transform: scale(1.3);
}
.onboard-dot-indicator.done {
  background: #34d399;
}
