/* ============================================================
   MODO SISTEMA — variáveis base restauradas
   ============================================================ */
:root {
  --bg: #0b0b0c;
  --text-1: #f4f1eb;
  --text-2: #b8b2a8;
  --text-3: #7d776e;
  --surface: rgba(255,255,255,0.055);
  --surface-2: rgba(255,255,255,0.085);
  --border: rgba(255,255,255,0.10);
  --border-2: rgba(255,255,255,0.18);
  --lime: #c8f135;
  --lime-dim: rgba(200,241,53,0.10);
  --lime-glow: rgba(200,241,53,0.22);
  --r-sm: 10px;
  --r-md: 18px;
  --r-full: 999px;
  --fast: .18s;
  --base: .28s;
  --slow: .55s;
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text-1); font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button, textarea, input { font: inherit; }
::selection { background: var(--lime); color: #0b0b0c; }

/* ============================================================
   MODO SISTEMA — Layout Global
   Ícaro Child v4 · 2026
   ============================================================ */

/* Tela fixa, sem rolagem principal */
.modo-body {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* ── NAV SUPERIOR ─────────────────────────────────────────── */
.modo-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  background: rgba(11,11,12,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.modo-nav__logo {
  font-size: 0.813rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modo-nav__logo-mark {
  color: var(--lime);
  font-size: 1rem;
  line-height: 1;
}

.modo-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.modo-nav__link {
  font-size: 0.75rem;
  color: var(--text-3);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
  letter-spacing: 0.01em;
}

.modo-nav__link:hover,
.modo-nav__link.active {
  color: var(--text-1);
  background: var(--surface);
}

.modo-nav__link--cta {
  color: var(--lime);
  border: 1px solid rgba(200,241,53,0.25);
  margin-left: 8px;
}

.modo-nav__link--cta:hover {
  background: var(--lime-dim);
  color: var(--lime);
}

/* ── ÁREA DE CONTEÚDO ─────────────────────────────────────── */
.modo-content {
  position: fixed;
  inset: 52px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── LABEL DE PÁGINA ──────────────────────────────────────── */
.modo-label {
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-size: 0.688rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
  pointer-events: none;
  user-select: none;
}

/* ── HINT DE INTERAÇÃO ────────────────────────────────────── */
.modo-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.688rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  pointer-events: none;
  animation: pulse-hint 3s ease-in-out infinite;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

/* ============================================================
   HOME
   ============================================================ */
.home-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 28px;
  width: 100%;
  max-width: 480px;
}

.home-eyebrow {
  font-size: 0.688rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono);
  margin-bottom: 20px;
  opacity: 0;
  animation: fade-up 0.6s var(--ease) 0.1s forwards;
}

.home-h1 {
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text-1);
  margin-bottom: 20px;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.2s forwards;
}

.home-h1 em {
  font-style: normal;
  color: var(--lime);
}

.home-sub {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 320px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.35s forwards;
}

.home-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.5s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  background: var(--lime);
  color: #0b0b0c;
  font-size: 0.813rem;
  font-weight: 600;
  border-radius: var(--r-full);
  letter-spacing: -0.01em;
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.813rem;
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.btn-secondary:hover {
  border-color: var(--text-3);
  color: var(--text-1);
}

.home-grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, black 0%, transparent 100%);
}

.home-glow {
  position: fixed;
  top: 30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--lime-glow) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  animation: glow-drift 8s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, 20px) scale(1.08); }
}

/* ============================================================
   MENU PRINCIPAL
   ============================================================ */
.menu-stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 28px;
  overflow: hidden;
}

.menu-header {
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.5s var(--ease) 0.1s forwards;
}

.menu-header h1 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.015em;
}

.menu-header p {
  font-size: 0.688rem;
  color: var(--text-3);
  margin-top: 4px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.menu-track {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition:
    background var(--base) var(--ease),
    border-color var(--base) var(--ease),
    transform var(--base) var(--ease);
  opacity: 0;
  transform: translateX(-12px);
  text-decoration: none;
  border: 1px solid transparent;
}

.menu-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.menu-item:hover { background: var(--surface); border-color: var(--border); }

.menu-item.active {
  background: var(--surface-2);
  border-color: var(--border-2);
}

.menu-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 60%;
  background: var(--lime);
  border-radius: 2px;
}

.menu-item.active .menu-item__arrow { transform: translateX(4px); color: var(--lime); }

.menu-item__num {
  font-size: 0.688rem;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  width: 24px;
  flex-shrink: 0;
}

.menu-item__body { flex: 1; }

.menu-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: color var(--fast) var(--ease);
}

.menu-item.active .menu-item__title { color: var(--lime); }

.menu-item__desc {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 2px;
  line-height: 1.4;
}

.menu-item__arrow {
  font-size: 0.9rem;
  color: var(--text-3);
  transition: transform var(--base) var(--ease), color var(--base) var(--ease);
  flex-shrink: 0;
}

.menu-bg-accent {
  position: fixed;
  right: -80px; bottom: -80px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--lime-glow) 0%, transparent 65%);
  pointer-events: none;
  border-radius: 50%;
  transition: opacity var(--slow) var(--ease);
  opacity: 0;
}

.menu-bg-accent.visible { opacity: 1; }

/* ============================================================
   TRAJETÓRIA — Cenas
   ============================================================ */
.traj-stage {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.traj-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity var(--slow) var(--ease),
    transform var(--slow) var(--ease);
  pointer-events: none;
}

.traj-scene.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.traj-scene.exit {
  opacity: 0;
  transform: translateX(-32px);
}

.traj-scene__period {
  font-size: 0.688rem;
  color: var(--lime);
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.traj-scene__num {
  font-size: 0.688rem;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.traj-scene__title {
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--text-1);
}

.traj-scene__title em { font-style: normal; color: var(--lime); }

.traj-scene__body {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 28px;
}

.traj-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.traj-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), background var(--fast) var(--ease);
  font-family: var(--font);
}

.traj-nav__btn:hover { border-color: var(--text-3); color: var(--text-1); background: var(--surface); }

.traj-nav__btn--next {
  border-color: var(--lime);
  color: var(--lime);
  background: var(--lime-dim);
}

.traj-nav__btn--next:hover { background: rgba(200,241,53,0.18); }

.traj-progress {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 6px;
}

.traj-progress__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-2);
  transition: background var(--base) var(--ease), transform var(--base) var(--ease);
}

.traj-progress__dot.active { background: var(--lime); transform: scale(1.3); }

/* ============================================================
   REPERTÓRIO
   ============================================================ */
.rep-stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
  overflow: hidden;
}

.rep-header {
  margin-bottom: 20px;
  opacity: 0;
  animation: fade-up 0.5s var(--ease) 0.1s forwards;
}

.rep-header h1 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }

.rep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  scrollbar-width: none;
}

.rep-grid::-webkit-scrollbar { display: none; }

.rep-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;
  transition:
    border-color var(--base) var(--ease),
    background var(--base) var(--ease),
    transform var(--base) var(--ease);
  opacity: 0;
  transform: translateY(12px);
  position: relative;
  overflow: hidden;
}

.rep-card.visible { opacity: 1; transform: translateY(0); }

.rep-card:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-2px); }

.rep-card.open {
  grid-column: 1 / -1;
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: none;
}

.rep-card__num {
  font-size: 0.625rem;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.rep-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.rep-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }

.rep-card__tag {
  font-size: 0.625rem;
  color: var(--text-3);
  background: var(--bg-3);
  border-radius: var(--r-full);
  padding: 3px 8px;
  letter-spacing: 0.04em;
  font-family: var(--mono);
}

.rep-card.open .rep-card__tag { color: var(--lime); background: var(--lime-dim); }

.rep-card__detail {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.6;
}

.rep-card.open .rep-card__detail { display: block; }

/* ============================================================
   HOJE
   ============================================================ */
.hoje-stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
  overflow: hidden;
}

.hoje-header {
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.5s var(--ease) 0.1s forwards;
}

.hoje-header h1 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }

.hoje-list { display: flex; flex-direction: column; gap: 8px; }

.hoje-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--base) var(--ease), background var(--base) var(--ease);
  opacity: 0;
  transform: translateX(-10px);
}

.hoje-item.visible { opacity: 1; transform: translateX(0); }
.hoje-item:hover { border-color: var(--border-2); background: var(--surface-2); }

.hoje-item__status {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hoje-item__status--live {
  background: var(--lime);
  box-shadow: 0 0 0 2px var(--lime-dim);
  animation: pulse-live 2s ease-in-out infinite;
}

.hoje-item__status--build { background: var(--text-3); }

@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 2px var(--lime-dim); }
  50%       { box-shadow: 0 0 0 5px var(--lime-glow); }
}

.hoje-item__body { flex: 1; }

.hoje-item__title { font-size: 0.875rem; font-weight: 600; color: var(--text-1); letter-spacing: -0.01em; }

.hoje-item__sub { font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }

.hoje-item__badge {
  font-size: 0.625rem;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: var(--r-full);
}

.hoje-item__badge--live {
  color: var(--lime);
  background: var(--lime-dim);
  border: 1px solid rgba(200,241,53,0.2);
}

.hoje-item__badge--build {
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border);
}

/* ============================================================
   RESULTADOS
   ============================================================ */
.res-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
}

.res-header {
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.5s var(--ease) 0.1s forwards;
}

.res-header h1 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }

.res-header p { font-size: 0.75rem; color: var(--text-3); margin-top: 4px; font-family: var(--mono); letter-spacing: 0.04em; }

.res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.res-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: border-color var(--base) var(--ease), opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}

.res-card.visible { opacity: 1; transform: translateY(0); }
.res-card:hover { border-color: var(--border-2); }

.res-card__num {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 6px;
}

.res-card__unit { font-size: 1rem; color: var(--lime); opacity: 0.6; }

.res-card__label { font-size: 0.75rem; color: var(--text-2); line-height: 1.4; margin-bottom: 4px; }

.res-card__context { font-size: 0.625rem; color: var(--text-3); font-family: var(--mono); letter-spacing: 0.04em; }

/* ============================================================
   DIAGNÓSTICO
   ============================================================ */
.diag-stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 24px;
  overflow: hidden;
}

.diag-step {
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
  pointer-events: none;
  display: none;
}

.diag-step.active { opacity: 1; transform: translateY(0); pointer-events: auto; display: block; }

.diag-progress-bar {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 28px;
  overflow: hidden;
}

.diag-progress-fill {
  height: 100%;
  background: var(--lime);
  border-radius: 2px;
  transition: width var(--slow) var(--ease);
  width: 0%;
}

.diag-step__label {
  font-size: 0.625rem;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.diag-step__question {
  font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 24px;
}

.diag-options { display: flex; flex-direction: column; gap: 8px; }

.diag-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--base) var(--ease), background var(--base) var(--ease), transform var(--fast) var(--ease);
  font-family: var(--font);
  text-align: left;
  width: 100%;
}

.diag-option:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateX(4px); }

.diag-option.selected { border-color: var(--lime); background: var(--lime-dim); }

.diag-option__check {
  width: 18px; height: 18px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
  display: flex; align-items: center; justify-content: center;
}

.diag-option.selected .diag-option__check { border-color: var(--lime); background: var(--lime); }

.diag-option.selected .diag-option__check::after {
  content: '';
  width: 6px; height: 6px;
  background: #0b0b0c;
  border-radius: 50%;
}

.diag-option__text { font-size: 0.875rem; color: var(--text-1); font-weight: 500; }

.diag-result {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.diag-result.active { display: flex; }

.diag-result__label {
  font-size: 0.625rem;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.diag-result__value {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--lime);
  line-height: 1;
}

.diag-result__obs {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 300px;
}

.diag-result__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.diag-reset {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  border-radius: var(--r-full);
  padding: 10px 18px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--fast) var(--ease);
}

.diag-reset:hover { border-color: var(--text-3); color: var(--text-1); }

.diag-back {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font);
  padding: 10px 0;
  transition: color var(--fast) var(--ease);
  display: block;
  margin-top: 4px;
}

.diag-back:hover { color: var(--text-2); }

/* ============================================================
   ASSISTENTE ÍCARO
   ============================================================ */
#icaro-assistant {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.icaro-bubble {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg) var(--r-lg) var(--r-sm) var(--r-lg);
  padding: 12px 16px;
  max-width: 220px;
  display: none;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
}

.icaro-bubble.visible { opacity: 1; transform: translateY(0) scale(1); }

.icaro-bubble__text { font-size: 0.813rem; color: var(--text-1); line-height: 1.5; }

.icaro-trigger {
  width: 44px; height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
  font-size: 1.1rem;
  position: relative;
  color: var(--text-1);
}

.icaro-trigger:hover { background: var(--surface); border-color: var(--border-2); transform: scale(1.05); }
.icaro-trigger.active { border-color: var(--lime); background: var(--lime-dim); }

.icaro-dot {
  position: absolute;
  top: -3px; right: -3px;
  width: 8px; height: 8px;
  background: var(--lime);
  border-radius: 50%;
  border: 2px solid var(--bg);
  animation: pulse-live 2s ease-in-out infinite;
}

.icaro-chat {
  position: fixed;
  bottom: 74px;
  right: 20px;
  width: min(320px, calc(100vw - 40px));
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg) var(--r-lg) var(--r-sm) var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 199;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
  pointer-events: none;
  max-height: 420px;
}

.icaro-chat.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.icaro-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.icaro-chat__name {
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.icaro-chat__name-mark { font-size: 0.688rem; color: var(--lime); font-family: var(--mono); letter-spacing: 0.06em; }

.icaro-chat__close {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px;
  transition: color var(--fast) var(--ease);
}

.icaro-chat__close:hover { color: var(--text-1); }

.icaro-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

.icaro-msg {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: var(--r-md);
  font-size: 0.813rem;
  line-height: 1.5;
}

.icaro-msg--icaro {
  background: var(--bg-3);
  color: var(--text-1);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-radius: var(--r-sm) var(--r-md) var(--r-md) var(--r-md);
}

.icaro-msg--user {
  background: var(--lime-dim);
  color: var(--text-1);
  border: 1px solid rgba(200,241,53,0.18);
  align-self: flex-end;
  border-radius: var(--r-md) var(--r-sm) var(--r-md) var(--r-md);
}

.icaro-chat__input-area {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.icaro-chat__input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  color: var(--text-1);
  font-size: 0.813rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--fast) var(--ease);
  resize: none;
  max-height: 80px;
  line-height: 1.4;
}

.icaro-chat__input:focus { border-color: var(--border-2); }
.icaro-chat__input::placeholder { color: var(--text-3); }

.icaro-chat__send {
  background: var(--lime);
  border: none;
  border-radius: var(--r-sm);
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--fast) var(--ease);
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 2px;
}

.icaro-chat__send:hover { opacity: 0.85; }
.icaro-chat__send svg { width: 14px; height: 14px; fill: #0b0b0c; }

.icaro-typing { display: flex; gap: 4px; padding: 10px 14px; align-self: flex-start; }

.icaro-typing span {
  width: 5px; height: 5px;
  background: var(--text-3);
  border-radius: 50%;
  animation: typing-dot 1.2s ease-in-out infinite;
}

.icaro-typing span:nth-child(2) { animation-delay: 0.2s; }
.icaro-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
  0%, 80%, 100% { transform: scale(1); opacity: 0.4; }
  40%           { transform: scale(1.3); opacity: 1; }
}

/* ============================================================
   ANIMAÇÕES BASE
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 768px) {
  .home-stage { max-width: 560px; padding: 0 48px; }
  .home-h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
  .menu-stage { padding: 0 48px; max-width: 640px; }
  .traj-scene { padding: 48px; max-width: 640px; }
  .rep-grid { grid-template-columns: repeat(3, 1fr); }
  .res-grid { grid-template-columns: repeat(4, 1fr); }
  .hoje-stage, .diag-stage, .rep-stage, .res-stage { padding: 48px; max-width: 560px; }
  .icaro-chat { width: 340px; max-height: 480px; }
}
