/* ═══════════════════════════════════════════════════════════════════════════
   SOBERANA AI — Design System
   Dark / Futurista / Orgânico
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #070710;
  --bg-2:        #0d0d1a;
  --bg-3:        #12122a;
  --surface:     rgba(255,255,255,0.04);
  --surface-2:   rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(255,255,255,0.14);
  --text:        #e8eaf6;
  --text-muted:  #8892a4;
  --text-dim:    #555f72;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;
  --font:        'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 16px 64px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p  { color: var(--text-muted); }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ══════════════════════════════════════════════════════════════════════════
   LANDING PAGE — index.html
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(7,7,16,0.95), transparent);
  backdrop-filter: blur(8px);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #00d4e5, #7c3aed);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.header-nav { display: flex; gap: 1.5rem; align-items: center; }
.header-nav a {
  color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--text); }

/* ── Hero Section ────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  overflow: hidden;
}

/* Waveform canvas ocupa o fundo do hero */
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

/* Radial vignette sobre o canvas */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 50%,
    transparent 30%, var(--bg) 100%);
  pointer-events: none; z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 860px;
}

.hero-logo-large {
  display: block;
  margin: 0 auto 1.5rem;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 212, 229, 0.08);
  border: 1px solid rgba(0, 212, 229, 0.25);
  color: #00d4e5; font-size: 0.8rem; font-weight: 600;
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #00d4e5;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 {
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #fff 0%, #c8d6e5 60%, #8892a4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #00d4e5, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted); max-width: 580px; margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.7rem 1.5rem; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none; transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #00d4e5, #0066cc);
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 212, 229, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 229, 0.5);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

/* ── Section Shared ──────────────────────────────────────────────────────── */
section { padding: 6rem 2rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff, #8892a4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.section-sub {
  font-size: 1.1rem; color: var(--text-muted); max-width: 540px; margin: 0 auto 3rem;
}

/* ── Personas Section ────────────────────────────────────────────────────── */
.personas-section { text-align: center; }

.personas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1200px; margin: 0 auto;
}

.persona-card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.persona-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--card-gradient, linear-gradient(90deg, transparent, transparent));
  opacity: 0; transition: opacity var(--transition);
}

.persona-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-color, rgba(255,255,255,0.2));
  background: var(--surface-2);
  box-shadow: 0 20px 60px var(--card-glow, rgba(0,0,0,0.2));
}

.persona-card:hover::before { opacity: 1; }

.persona-icon {
  font-size: 2.5rem; margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 16px var(--card-color, transparent));
}

.persona-name {
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.1rem;
}

.persona-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--card-color, var(--text-muted));
  margin-bottom: 0.75rem; opacity: 0.8;
}

.persona-desc {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 1.25rem;
}

.persona-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--card-color, var(--text));
  text-decoration: none;
  transition: gap var(--transition);
}

.persona-cta:hover { gap: 10px; }

/* Glow de fundo ao hover */
.persona-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--card-glow, transparent) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.persona-card:hover::after { opacity: 1; }

/* ── Ecosystem Section ───────────────────────────────────────────────────── */
.ecosystem-section {
  background: var(--bg-2);
  position: relative; overflow: hidden;
  text-align: center;
}

/* Rede de conexões animada no fundo */
.ecosystem-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0,212,229,0.04), transparent),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(124,62,237,0.04), transparent),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(217,70,239,0.04), transparent);
  pointer-events: none;
}

.ecosystem-tagline {
  font-size: 0.95rem; color: var(--text-dim);
  font-style: italic; margin-bottom: 3rem;
  max-width: 600px; margin-left: auto; margin-right: auto;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1100px; margin: 0 auto 3rem;
}

.eco-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}

.eco-card:hover {
  transform: translateY(-4px);
  border-color: var(--eco-color, rgba(255,255,255,0.15));
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.eco-icon {
  font-size: 2rem; margin-bottom: 0.5rem; display: block;
}

.eco-name {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.2rem;
}

.eco-badge-pill {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px;
  background: rgba(255,255,255,0.06);
  color: var(--eco-color, var(--text-dim));
  margin-bottom: 0.5rem;
}

.eco-desc {
  font-size: 0.78rem; color: var(--text-dim); line-height: 1.5;
}

/* Linha de conexão animada */
.ecosystem-connector {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin: 2rem auto 0; max-width: 700px;
  font-size: 0.85rem; color: var(--text-dim);
}

.connector-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

/* ── Stats Section ───────────────────────────────────────────────────────── */
.stats-section {
  padding: 4rem 2rem;
  background: var(--bg-3);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  max-width: 900px; margin: 0 auto;
}

.stat-item { }

.stat-number {
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, #00d4e5, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.85rem; color: var(--text-dim); margin-top: 0.25rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  font-size: 1.3rem; font-weight: 800;
  background: linear-gradient(135deg, #00d4e5, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1.5rem;
}

.footer-links {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-links a {
  font-size: 0.83rem; color: var(--text-dim); text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-muted); }

.footer-copy {
  font-size: 0.78rem; color: var(--text-dim);
}

/* ── Fade-in animations ──────────────────────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }

/* ══════════════════════════════════════════════════════════════════════════
   CHAT PAGE — chat.html
   ══════════════════════════════════════════════════════════════════════════ */

.chat-page {
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
  background: var(--bg);
}

/* ── Chat Header ─────────────────────────────────────────────────────────── */
.chat-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 10;
  flex-shrink: 0;
}

.chat-back {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none; font-size: 1rem;
  transition: all var(--transition); flex-shrink: 0;
}
.chat-back:hover {
  background: var(--surface-2); color: var(--text);
  transform: translateX(-2px);
}

.chat-persona-info { flex: 1; }

.chat-persona-name {
  font-size: 1rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}

.chat-persona-name .persona-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--persona-color, #00d4e5);
  box-shadow: 0 0 8px var(--persona-color, #00d4e5);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.chat-persona-sub {
  font-size: 0.78rem; color: var(--text-dim); margin-top: 1px;
}

.chat-status {
  font-size: 0.75rem; color: var(--text-dim);
  display: flex; align-items: center; gap: 6px;
}

/* ── Waveform Bar ────────────────────────────────────────────────────────── */
.waveform-bar {
  height: 80px; flex-shrink: 0;
  position: relative; overflow: hidden;
  background: linear-gradient(to bottom, var(--bg), var(--bg-2));
}

#chat-canvas {
  width: 100%; height: 100%;
  display: block;
}

/* Status do waveform */
.wave-status {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.08em;
  text-transform: uppercase; pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.wave-status.visible { opacity: 1; }

/* ── Messages Area ───────────────────────────────────────────────────────── */
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}

/* Mensagem de boas-vindas */
.welcome-msg {
  text-align: center; padding: 2rem 1rem;
}

.welcome-icon {
  font-size: 3rem; margin-bottom: 0.75rem; display: block;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.welcome-name {
  font-size: 1.4rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.4rem;
}

.welcome-tagline {
  font-size: 0.9rem; color: var(--text-muted);
  max-width: 360px; margin: 0 auto;
}

/* Bolhas de sugestão */
.suggestion-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center; margin-top: 1.5rem;
}

.suggestion-pill {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem; color: var(--text-muted);
  cursor: pointer; transition: all var(--transition);
}
.suggestion-pill:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--persona-color, rgba(255,255,255,0.2));
  box-shadow: 0 0 12px var(--persona-glow, transparent);
}

/* Mensagens */
.message {
  display: flex; gap: 0.75rem; max-width: 860px;
  animation: msg-in 0.3s ease both;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message.user { flex-direction: row-reverse; align-self: flex-end; }

.msg-avatar {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border);
}

.message.ai .msg-avatar {
  background: rgba(255,255,255,0.05);
  border-color: var(--persona-color, rgba(255,255,255,0.1));
  box-shadow: 0 0 12px var(--persona-glow, transparent);
}

.msg-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem; line-height: 1.65;
  color: var(--text);
  max-width: calc(100% - 50px);
}

.message.user .msg-bubble {
  background: var(--surface-2);
  border-color: var(--border-2);
  border-bottom-right-radius: 4px;
}

.message.ai .msg-bubble { border-bottom-left-radius: 4px; }

/* Cursor piscante durante typewriter */
.typewriter-cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--persona-color, #00d4e5);
  vertical-align: middle; margin-left: 2px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Provider tag */
.msg-provider {
  font-size: 0.68rem; color: var(--text-dim);
  margin-top: 0.35rem; text-align: right;
}

/* Thinking indicator */
.thinking-dots {
  display: flex; gap: 5px; align-items: center; padding: 0.2rem 0;
}
.thinking-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--persona-color, #00d4e5);
  animation: bounce-dot 1.2s ease-in-out infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce-dot {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-5px); opacity: 1; }
}

/* ── Chat Input ──────────────────────────────────────────────────────────── */
.chat-input-area {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.input-row {
  display: flex; gap: 0.75rem; align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition);
}

.input-row:focus-within {
  border-color: var(--persona-color, rgba(255,255,255,0.25));
  box-shadow: 0 0 0 3px var(--persona-glow, rgba(255,255,255,0.04));
}

.chat-textarea {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--font); font-size: 0.93rem;
  line-height: 1.5; resize: none; min-height: 24px; max-height: 160px;
}
.chat-textarea::placeholder { color: var(--text-dim); }

.send-btn {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: var(--persona-color, #00d4e5);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #070710; font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 0 16px var(--persona-glow, rgba(0,212,229,0.2));
}
.send-btn:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 0 24px var(--persona-glow, rgba(0,212,229,0.4));
}
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* CTA no chat */
.chat-cta-bar {
  display: none; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: rgba(0, 212, 229, 0.05);
  border: 1px solid rgba(0, 212, 229, 0.15);
  margin-top: 0.75rem; gap: 1rem;
}
.chat-cta-bar.visible { display: flex; }
.cta-text { font-size: 0.82rem; color: var(--text-muted); }
.cta-link {
  font-size: 0.82rem; font-weight: 700;
  color: var(--persona-color, #00d4e5); text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.cta-link:hover { opacity: 0.8; }

/* Contador de mensagens */
.msg-counter {
  font-size: 0.72rem; color: var(--text-dim);
  text-align: center; margin-top: 0.5rem;
}

/* ── Mobile Navigation ───────────────────────────────────────────────────── */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text); padding: 0.25rem; line-height: 1;
  flex-shrink: 0;
}
.menu-toggle .material-symbols-outlined { font-size: 1.75rem; display: block; }

.mobile-nav-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 199;
  background: rgba(7,7,16,0.75);
  backdrop-filter: blur(4px);
}
.mobile-nav-backdrop.open {
  display: block;
  animation: mnav-fade 0.25s ease both;
}

.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(300px, 85vw);
  background: var(--bg-2);
  border-left: 1px solid var(--border-2);
  display: flex; flex-direction: column;
  padding: 1.5rem;
  transform: translateX(110%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem;
}
.mobile-nav-logo {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
}
.mobile-nav-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 0.25rem; line-height: 1;
  transition: color var(--transition);
}
.mobile-nav-close:hover { color: var(--text); }
.mobile-nav-close .material-symbols-outlined { font-size: 1.5rem; display: block; }

.mobile-nav-links {
  display: flex; flex-direction: column; gap: 0.15rem; flex: 1;
}
.mobile-nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 1.05rem; font-weight: 500;
  padding: 0.8rem 1rem; border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  display: flex; align-items: center; gap: 0.75rem;
}
.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  background: var(--surface-2);
  color: var(--text);
}
.mobile-nav-links a .material-symbols-outlined {
  font-size: 1.2rem; color: var(--text-dim);
}

.mobile-nav-cta {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-nav-cta .btn {
  width: 100%; text-align: center; display: block;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 5rem 1rem 2rem; }
  .personas-grid { grid-template-columns: 1fr; }
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .site-header { padding: 1rem; }
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
  section { padding: 4rem 1rem; }
  .chat-messages { padding: 1rem; }
  .chat-input-area { padding: 0.75rem 1rem 1rem; }
}

@keyframes mnav-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Utilities ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mb-2  { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* ── Disclaimer modal ───────────────────────────────────────────────────── */
.disclaimer-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(7,7,16,0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.disclaimer-overlay.show {
  display: flex;
  animation: disclaimer-in 0.35s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes disclaimer-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.disclaimer-modal {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 520px; width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modal-slide-in 0.35s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes modal-slide-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.disclaimer-icon {
  font-size: 2rem; margin-bottom: 1rem; display: block; text-align: center;
}

.disclaimer-title {
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  text-align: center; margin-bottom: 1rem;
}

.disclaimer-body {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.75;
  margin-bottom: 1.5rem;
}

.disclaimer-body strong { color: var(--text); font-weight: 600; }

.disclaimer-emergency {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(251,146,60,0.07);
  border: 1px solid rgba(251,146,60,0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.8rem; color: #fb923c;
  margin-bottom: 1.5rem; line-height: 1.55;
}

.disclaimer-actions {
  display: flex; flex-direction: column; gap: 0.6rem;
}

.btn-disclaimer-accept {
  width: 100%; padding: 0.8rem;
  background: linear-gradient(135deg, #00d4e5, #0066cc);
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 20px rgba(0,212,229,0.2);
}
.btn-disclaimer-accept:hover {
  box-shadow: 0 0 32px rgba(0,212,229,0.4);
  transform: translateY(-1px);
}

.disclaimer-age {
  font-size: 0.72rem; color: var(--text-dim);
  text-align: center; line-height: 1.5;
}

/* ── Disclaimer bar no chat ──────────────────────────────────────────────── */
.chat-disclaimer {
  font-size: 0.7rem; color: var(--text-dim);
  text-align: center; padding: 0.4rem 0 0;
  line-height: 1.4;
}
.chat-disclaimer a {
  color: var(--text-dim); text-decoration: underline;
  text-underline-offset: 2px;
}
.chat-disclaimer a:hover { color: var(--text-muted); }

/* ── App Download Strip ──────────────────────────────────────────────────── */
.app-download-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .45rem .75rem .3rem;
  flex-wrap: wrap;
}
.download-strip-label {
  font-size: .68rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.download-strip-btns { display: flex; gap: .35rem; }
.strip-btn {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .27rem .6rem;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: opacity .18s;
}
.strip-play { background: #01875f; color: #fff; }
.strip-play:hover { opacity: .82; }
.strip-appstore {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.38);
  cursor: default;
}

/* ── Footer disclaimer ───────────────────────────────────────────────────── */
.footer-disclaimer {
  font-size: 0.72rem; color: var(--text-dim);
  max-width: 580px; margin: 1rem auto 0;
  line-height: 1.6; border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(12px);
  color: var(--text); font-size: 0.88rem;
  padding: 0.7rem 1.5rem; border-radius: 100px;
  z-index: 9999; pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.toast.show { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════════════
   MATERIAL SYMBOLS — ícones em contexto
   ══════════════════════════════════════════════════════════════════════════ */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* Ícone grande em card de persona */
.persona-icon.material-symbols-outlined {
  font-size: 2.4rem;
  color: var(--card-color, #00d4e5);
}

/* Ícone em card do ecossistema */
.eco-icon.material-symbols-outlined {
  font-size: 2rem;
  color: var(--eco-color, #00d4e5);
}

/* Ícone no avatar da IA */
.msg-avatar .material-symbols-outlined {
  font-size: 1.2rem;
  color: var(--persona-color, #00d4e5);
}

/* Ícone de boas-vindas */
.welcome-icon .material-symbols-outlined,
#welcome-icon .material-symbols-outlined {
  font-size: 3rem;
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 48;
  color: var(--persona-color, #00d4e5);
  filter: drop-shadow(0 0 20px var(--persona-glow, rgba(0,212,229,0.4)));
}

/* Ícone no header do chat */
#chat-persona-icon .material-symbols-outlined {
  font-size: 1.4rem;
  color: var(--persona-color, #00d4e5);
}

/* ══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS — seção de depoimentos
   ══════════════════════════════════════════════════════════════════════════ */
.testimonials-section {
  padding: 6rem 2rem;
  background: var(--bg);
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* Luz de fundo sutil */
.testimonials-section::before {
  content: '';
  position: absolute;
  top: 30%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(124,62,237,0.06), transparent 70%);
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

/* Aspas decorativas */
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 0.75rem; right: 1.25rem;
  font-size: 4rem; line-height: 1;
  color: rgba(255,255,255,0.04);
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 0.9rem;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4e5, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.88rem; font-weight: 700; color: var(--text);
}

.testimonial-app {
  font-size: 0.72rem; color: var(--text-dim);
  margin-top: 1px;
}

/* ══════════════════════════════════════════════════════════════════════════
   ECO CARD — Demo animada (GIF/WebP slot)
   ══════════════════════════════════════════════════════════════════════════ */

/* Card com demo: reorganiza layout */
.eco-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.eco-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Slot da demo — inicialmente oculto até ter imagem */
.eco-demo-slot {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eco-demo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.eco-card:hover .eco-demo-img {
  transform: scale(1.04);
}

/* Link "Conversar" dentro do card */
.eco-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--eco-color, #00d4e5);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap 0.2s ease;
}
.eco-cta-link:hover { gap: 8px; }

/* ══════════════════════════════════════════════════════════════════════════
   LGPD BANNER — fixed bottom bar
   ══════════════════════════════════════════════════════════════════════════ */
.lgpd-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 5000;
  background: rgba(7, 7, 16, 0.96);
  border-top: 1px solid var(--border-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;

  /* Começa oculto e desliza para cima */
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.4s ease;
  pointer-events: none;
  /* Garante que não ultrapassa a largura da tela */
  box-sizing: border-box;
  width: 100%;
}

.lgpd-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.lgpd-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  min-width: 0;  /* permite o texto encolher corretamente */
  line-height: 1.55;
}

.lgpd-link {
  color: #00d4e5;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.3rem;
  white-space: nowrap;
}

.lgpd-accept {
  flex-shrink: 0;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, #00d4e5, #0066cc);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition);
}
.lgpd-accept:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Mobile: layout em coluna, tudo centralizado e legível */
@media (max-width: 640px) {
  .lgpd-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.85rem;
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  }

  .lgpd-text {
    font-size: 0.8rem;
  }

  .lgpd-accept {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    border-radius: 10px;
  }

  .lgpd-link {
    white-space: normal;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PRO MODE CARD — toggle antes do chat
   ══════════════════════════════════════════════════════════════════════════ */
.pro-mode-card {
  padding: 0.6rem 1.5rem;
  background: rgba(0, 212, 229, 0.04);
  border-bottom: 1px solid rgba(0, 212, 229, 0.12);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pro-mode-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

/* Esconde o checkbox nativo */
.pro-mode-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

/* Slider visual */
.pro-mode-slider {
  position: relative;
  width: 36px; height: 20px;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  transition: background 0.25s, border-color 0.25s;
}

.pro-mode-slider::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform 0.25s, background 0.25s;
}

.pro-mode-toggle input:checked + .pro-mode-slider {
  background: rgba(0, 212, 229, 0.15);
  border-color: #00d4e5;
}

.pro-mode-toggle input:checked + .pro-mode-slider::after {
  transform: translateX(16px);
  background: #00d4e5;
}

.pro-mode-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.pro-mode-toggle input:checked ~ .pro-mode-label {
  color: #00d4e5;
}

.pro-mode-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

/* Logo no header */
.logo-img {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

/* ============================================================
   NOVOS ESTILOS - 9 FEATURES
   ============================================================ */

/* --- Header actions (Quantum + Journey buttons) --- */
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all .2s;
  font-size: 20px;
}
.header-action-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.header-action-btn.quantum-active {
  background: rgba(139,92,246,0.3);
  border-color: #8b5cf6;
  color: #c4b5fd;
}

/* --- Salat bar --- */
.salat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(5,150,105,0.1));
  border-bottom: 1px solid rgba(16,185,129,0.3);
  font-size: 14px;
  color: #6ee7b7;
}
.salat-bar .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
}
.salat-bar span#salat-message { flex: 1; }
.salat-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
}

/* --- Cycle panel (LUNA) --- */
.cycle-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(244,114,182,0.08);
  border-bottom: 1px solid rgba(244,114,182,0.2);
  flex-wrap: wrap;
}
.cycle-panel-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
.cycle-phases { display: flex; gap: 6px; flex-wrap: wrap; }
.cycle-btn {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(244,114,182,0.3);
  background: rgba(244,114,182,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}
.cycle-btn:hover { background: rgba(244,114,182,0.2); }
.cycle-btn.active {
  background: rgba(244,114,182,0.35);
  border-color: #f472b6;
  color: #fff;
  font-weight: 600;
}

/* --- Feedback bar (por mensagem) --- */
.msg-feedback {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.fb-btn {
  padding: 3px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}
.fb-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.fb-btn.active { border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,0.1); }
.fb-btn.fb-bad.active { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.1); }
.fb-correct {
  padding: 3px 10px;
  border-radius: 14px;
  border: 1px solid rgba(234,179,8,0.4);
  background: rgba(234,179,8,0.08);
  color: #fbbf24;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}
.fb-correct:hover { background: rgba(234,179,8,0.15); }
.correction-input {
  display: none;
  margin-top: 8px;
  width: 100%;
}
.correction-input textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
}
.correction-input button {
  margin-top: 6px;
  padding: 5px 16px;
  border-radius: 10px;
  background: rgba(234,179,8,0.2);
  border: 1px solid rgba(234,179,8,0.4);
  color: #fbbf24;
  font-size: 12px;
  cursor: pointer;
}

/* --- Quantum perspectives --- */
.quantum-perspectives {
  margin-top: 12px;
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(139,92,246,0.05);
}
.qp-label {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(139,92,246,0.15);
  border-bottom: 1px solid rgba(139,92,246,0.2);
}
.qp-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(139,92,246,0.1);
}
.qp-item:last-child { border-bottom: none; }
.qp-brain { font-size: 12px; font-weight: 700; color: #a78bfa; flex-shrink: 0; min-width: 90px; }
.qp-text { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.5; }

/* --- Cross-brain handoff card --- */
.handoff-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
}
.handoff-info { flex: 1; }
.handoff-info strong { display: block; font-size: 14px; color: #fff; }
.handoff-info span { font-size: 12px; color: rgba(255,255,255,0.5); }
.handoff-btn {
  padding: 6px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.handoff-btn:hover { background: rgba(255,255,255,0.18); }
.handoff-close {
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: 18px; padding: 0;
}

/* --- GBAI Widget --- */
.gbai-widget {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}
.gbai-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
}
.gbai-score {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.gbai-label { font-size: 13px; color: rgba(255,255,255,0.6); }
.score-good { color: #22c55e; }
.score-warn { color: #f59e0b; }
.score-bad  { color: #ef4444; }

/* --- Journey Map Modal --- */
.journey-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.journey-modal {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.journey-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.journey-modal-header .material-symbols-outlined { color: #8b5cf6; font-size: 22px; }
.journey-modal-header h3 { flex: 1; margin: 0; font-size: 16px; font-weight: 700; }
.journey-close-btn {
  background: none; border: none; color: rgba(255,255,255,0.5);
  cursor: pointer; font-size: 22px; padding: 0; line-height: 1;
}
.journey-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.journey-loading, .journey-empty {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  padding: 40px 0;
}
.journey-item {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}
.journey-item::before {
  content: '';
  position: absolute;
  left: 11px; top: 22px;
  width: 2px;
  bottom: 0;
  background: rgba(139,92,246,0.2);
}
.journey-item:last-child::before { display: none; }
.journey-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(139,92,246,0.3);
  border: 2px solid #8b5cf6;
  flex-shrink: 0;
  margin-top: 1px;
}
.journey-content { flex: 1; }
.journey-persona {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a78bfa;
  margin-bottom: 4px;
}
.journey-summary { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.5; }
.journey-time { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 4px; }

/* --- Quantum toggle + Journey map header buttons --- */
.quantum-toggle-btn,
.journey-map-btn {
  padding: 5px 11px;
  border-radius: 14px;
  border: 1px solid rgba(139,92,246,0.45);
  background: rgba(139,92,246,0.1);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  margin-left: 6px;
}
.quantum-toggle-btn:hover,
.journey-map-btn:hover { background: rgba(139,92,246,0.25); border-color: #8b5cf6; color: #fff; }
.quantum-toggle-btn.active { background: rgba(139,92,246,0.35); border-color: #8b5cf6; color: #fff; }
.journey-map-btn { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.08); color: #a5b4fc; }
.journey-map-btn:hover { border-color: #6366f1; background: rgba(99,102,241,0.2); color: #fff; }

/* --- Feedback bar — 4 opções estruturadas --- */
.fb-options { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.fb-perfect.active  { border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,0.1); }
.fb-shallow.active  { border-color: #f59e0b; color: #f59e0b; background: rgba(245,158,11,0.1); }
.fb-technical.active{ border-color: #6366f1; color: #a5b4fc; background: rgba(99,102,241,0.1); }
.fb-incorrect.active{ border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.1); }

/* --- Journey modal (seletores novos usados em chat.html) --- */
.journey-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.journey-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}
.journey-modal-content {
  position: relative;
  width: min(500px, 95vw);
  max-height: 80vh;
  background: #1a1a2e;
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.journey-modal-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.journey-modal-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.journey-modal-close:hover { color: #fff; }
.journey-timeline {
  overflow-y: auto;
  padding: 16px 20px;
  flex: 1;
}

/* ── Teaser CTA styles ── */
.feature-app-cta {
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
  opacity: 0.9;
}
.feature-app-cta strong { color: #fff; }
.quantum-cta  { background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.12)); border: 1px solid rgba(139,92,246,0.3); }
.gbai-cta     { background: linear-gradient(135deg, rgba(0,229,115,0.12), rgba(0,180,90,0.08));  border: 1px solid rgba(0,229,115,0.25); }
.inline-cta-link {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
}
.inline-cta-link:hover { color: #c4b5fd; text-decoration: underline; }

/* Journey blur teaser */
.journey-teaser-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 6px 0 10px;
  letter-spacing: 0.02em;
}
.journey-blur-wrap {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
}
.journey-app-cta {
  text-align: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.journey-app-cta p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 10px;
}
.cta-app-btn-full {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cta-app-btn-full:hover { opacity: 0.85; }

/* Specialist locked badge */
.fb-specialist {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 16px;
  border: 1px solid rgba(251,191,36,0.35);
  background: rgba(251,191,36,0.08);
  color: rgba(251,191,36,0.8);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  transition: background 0.2s;
}
.fb-specialist:hover { background: rgba(251,191,36,0.16); }
.lock-badge { font-size: 11px; }

/* Cycle panel teaser */
.cycle-app-cta {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 14px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  color: #a78bfa;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.cycle-app-cta:hover { background: rgba(139,92,246,0.22); }
