/* ════════════════════════════════════════════════════════════════════════════
   UpviewCRM · Landing page — fiel ao design real do sistema
   Tokens portados de apps/web/src/app/globals.css (dark) + paleta SITE original
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Paleta do iceberg: preto profundo + cyan glacial */
  --bg-deep:        #000000;
  --bg:             #06080C;
  --bg-2:           #0A0D14;
  --bg-3:           #10131C;
  --surface:        #14171F;
  --surface-2:      #181C25;
  --surface-3:      #1F242E;

  --titlebar:       rgba(36,36,38,0.86);
  --sidebar-bg:     #242426;

  --ink:            #F5F5F7;
  --ink-2:          rgba(245,245,247,0.72);
  --ink-3:          rgba(245,245,247,0.50);
  --ink-4:          rgba(245,245,247,0.32);

  --rule:           rgba(255,255,255,0.08);
  --rule-2:         rgba(255,255,255,0.14);
  --rule-strong:    rgba(255,255,255,0.20);

  /* Glacial cyan — extraído do gelo iluminado do iceberg */
  --accent:         #38BDF8;
  --accent-2:       #7DD3FC;
  --accent-ink:     #BAE6FD;
  --accent-soft:    rgba(56,189,248,0.16);
  --accent-deep:    #1D4ED8;
  --bubble-out:     #0E7490;

  --amber:          #FBBF24;
  --gold:           #B89968;
  --gold-deep:      #9C7B3F;

  --success:        #4ADE80;
  --warn:           #FBBF24;
  --danger:         #F87171;

  /* Paleta semântica por IA (mesma do globals.css dark) */
  --ai-orion:    #A5B4FC;
  --ai-raven:    #C4B5FD;
  --ai-hawk:     #FDBA74;
  --ai-sentinel: #7DD3FC;
  --ai-phoenix:  #FB7185;
  --ai-atlas:    #6EE7B7;
  --ai-mirror:   #F9A8D4;
  --ai-vega:     #FCD34D;
  --ai-rapida:   #BEF264;
  --ai-worker:   #5EEAD4;

  --shadow-card: 0 1px 0 rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-pop:  0 1px 1px rgba(0,0,0,0.4), 0 30px 80px rgba(0,0,0,0.55);
  --shadow-mockup: 0 0 0 0.5px rgba(255,255,255,0.08), 0 40px 80px -20px rgba(6,182,212,0.25), 0 80px 160px -40px rgba(0,0,0,0.85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: #000;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Inter, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

.mono   { font-family: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace; }
.tabular { font-variant-numeric: tabular-nums; }

::selection { background: rgba(6,182,212,0.30); color: #fff; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex; align-items: center; gap: 32px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(5,6,20,0.65);
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  transition: padding 0.3s, background 0.3s;
}
.nav.scrolled { padding: 10px 40px; background: rgba(5,6,20,0.92); }
.nav-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; letter-spacing: -0.025em;
  font-size: 19px; color: var(--ink); text-decoration: none;
  line-height: 1;
}
.nav-brand svg { color: var(--ink); flex-shrink: 0; display: block; }
.nav-logo { height: 30px; width: auto; display: block; flex-shrink: 0; }
.nav.scrolled .nav-logo { height: 26px; }
.nav-brand .brand-gold {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none;
  font-size: 13.5px; font-weight: 400;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-spacer { flex: 1; }
.nav-cta {
  padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg-deep);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.nav-cta:hover { transform: scale(1.02); background: var(--accent-2); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 40px 60px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  background: #000;
}
.hero-iceberg-bg {
  position: absolute;
  top: 50%; right: -2%;
  transform: translateY(-50%);
  height: 105%;
  width: auto;
  max-width: none;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 30px 80px rgba(56,189,248,0.18));
  animation: heroBreath 22s ease-in-out infinite;
}
@keyframes heroBreath {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%      { transform: translateY(-50%) scale(1.025); }
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.92) 0%,
      rgba(0,0,0,0.72) 25%,
      rgba(0,0,0,0.18) 50%,
      rgba(0,0,0,0) 70%),
    linear-gradient(180deg,
      rgba(0,0,0,0.40) 0%,
      rgba(0,0,0,0) 18%,
      rgba(0,0,0,0) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-content > * { max-width: min(720px, 50%); }
.hero-content h1 { max-width: min(760px, 52%); }

/* Preview section — mockup + stats fora do hero */
.preview-section {
  position: relative;
  padding: 100px 40px 60px;
  background: #000;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(6,182,212,0.10);
  border: 0.5px solid rgba(6,182,212,0.30);
  color: var(--accent-2);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}
.hero-eyebrow .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(34,211,238,0.8);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(34,211,238,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.hero h1 .rot-wrap {
  display: inline-block; position: relative;
  vertical-align: -0.1em;
  overflow: hidden; height: 1em;
}
.hero h1 .rot {
  display: block;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rotIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes rotIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.hero p.hero-sub {
  margin: 24px 0 0;
  max-width: min(720px, 50%);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.hero-cta-row {
  margin-top: 36px;
  display: flex; gap: 12px;
  justify-content: flex-start; align-items: center;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg-deep);
  font-size: 15px; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.18s, background 0.18s;
  letter-spacing: -0.005em;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  border: 0.5px solid rgba(255,255,255,0.18);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.30); }

/* ── Mountain backdrop (UpviewCRM logo silhouette) ──────────────── */
.mountain-stage {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.mountain-stage svg {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 62%;
  display: block;
}
.hero-glow {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 800px 500px at 72% 45%, rgba(34,211,238,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 700px 700px at 75% 60%, rgba(30,64,175,0.20) 0%, transparent 70%),
    radial-gradient(ellipse 900px 400px at 30% 30%, rgba(6,182,212,0.08) 0%, transparent 70%);
}
.stars {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
}
.stars span {
  position: absolute;
  background: #fff; border-radius: 50%;
  opacity: 0.45;
  animation: twinkle 4s infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.20; }
  50%      { opacity: 0.85; }
}

/* ── Mockup (real Apple-grade window) ───────────────────────────── */
.mockup-wrap {
  position: relative; z-index: 2;
  margin: 0 auto;
  max-width: 1180px;
  perspective: 1400px;
}
.mockup {
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow-mockup);
  overflow: hidden;
  transform: rotateX(7deg);
  transform-style: preserve-3d;
  animation: float 6.4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotateX(7deg) translateY(0); }
  50%      { transform: rotateX(7deg) translateY(-14px); }
}
.mockup-titlebar {
  height: 36px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  background: var(--titlebar);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--rule-2);
  flex-shrink: 0;
}
.tl { display: flex; gap: 8px; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; }
.tl-r { background: #FF5F57; }
.tl-y { background: #FEBC2E; }
.tl-g { background: #28C840; }
.tl-title {
  font-size: 12.5px; color: var(--ink-3);
  margin-left: 8px; font-weight: 500;
  letter-spacing: -0.005em;
}

/* ── Hero stats ──────────────────────────────────────────────────── */
.hero-stats {
  position: relative; z-index: 2;
  margin: 88px auto 0;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 28px 0;
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
}
.hero-stat {
  text-align: center;
  border-right: 0.5px solid var(--rule);
  padding: 0 16px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat .num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--ink-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stat .lab {
  margin-top: 10px;
  font-size: 13px; color: var(--ink-3);
  letter-spacing: -0.005em;
}

/* ── Sections ────────────────────────────────────────────────────── */
.section {
  position: relative;
  padding: 140px 40px 100px;
  max-width: 1280px; margin: 0 auto;
}
.section-wide {
  max-width: 1640px;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.section-title {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 880px;
}
.section-sub {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 680px;
  font-weight: 400;
}

/* ── Depth tiers (iceberg) ──────────────────────────────────────── */
.depth-section {
  position: relative;
  padding: 0 40px 80px;
  max-width: 1280px; margin: 0 auto;
}
.depth-tier {
  position: relative;
  padding: 80px 0;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
  border-top: 0.5px solid var(--rule);
}
.depth-tier:first-child { border-top: none; }
.depth-tier.reverse { grid-template-columns: 1fr 380px; }
/* A Camada 3 inverte a proporção do tier: a foto do time é panorâmica (1.89:1)
   e não precisa da coluna larga — o texto fica com o espaço e ela ocupa 520px
   ao lado. Abaixo disso os dez rostos começam a virar pontos. */
/* Coluna proporcional, e não 520px fixos: a seção é fluida (janela − 80px), e
   com largura fixa a foto ia ficando do tamanho do texto conforme a janela
   encolhe. Em 42% ela é sempre a menor das duas. */
.depth-tier.photo-sm { grid-template-columns: minmax(0, 1fr) minmax(300px, 42%); }
/* O .team-hero global nasce com margin-top de 40px (uso como banner solto); no
   tier ele é uma coluna do grid e o espaçamento quem dá é o gap. */
.depth-tier.photo-sm .team-hero { margin: 0; }
/* Teto de altura: a panorâmica em 42% de largura ainda gerava ~270px de altura
   e era ela quem definia a altura da linha inteira. Com altura fixa e cover, a
   imagem é recortada em cima e embaixo em vez de esticar o tier. */
.depth-tier.photo-sm .team-hero { height: 290px; }
.depth-tier.photo-sm .team-hero img { height: 100%; object-fit: cover; object-position: 50% 45%; }
.depth-marker {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.depth-title {
  margin: 0 0 14px;
  font-size: 32px; font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.1;
}
.depth-desc {
  margin: 0;
  font-size: 15px; line-height: 1.6;
  color: var(--ink-2);
}

/* ── Real Dashboard Mockup (espelha apps/web dashboard) ─────────── */
.app-window {
  height: 560px;
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 12px;
}
.app-window-full {
  grid-template-columns: 220px 1fr 280px;
}

/* Sidebar */
.sidebar-real {
  background: var(--sidebar-bg);
  border-right: 0.5px solid var(--rule-2);
  display: flex; flex-direction: column;
  padding: 12px 8px;
  overflow: hidden;
}
.sidebar-brand-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 12px;
}
.sidebar-brand-row svg { color: var(--ink); }
.sidebar-brand-row .b-name {
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.sidebar-brand-row .b-name span {
  display: block;
  font-size: 10px; font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}
.sb-section-label {
  font-size: 9.5px; font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 8px 4px;
}
.sb-item {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  cursor: default;
  white-space: nowrap;
}
.sb-item svg { color: var(--ink-2); width: 14px; height: 14px; flex-shrink: 0; }
.sb-item.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.sb-item.active svg { color: var(--accent-ink); }
.sb-badge {
  margin-left: auto;
  font-size: 9px; font-weight: 600;
  padding: 1px 6px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  letter-spacing: 0.02em; text-transform: uppercase;
}
.sb-count {
  margin-left: auto;
  font-size: 10px; font-family: "SF Mono", ui-monospace, monospace;
  color: var(--ink-3);
  background: var(--surface-3);
  padding: 1px 6px; border-radius: 999px;
}

/* Page content (right of sidebar) */
.page-real {
  background: var(--surface-3);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--surface-3) 100%);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.page-real-head {
  padding: 18px 22px 12px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.greeting {
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.025em; color: var(--ink);
  margin: 0;
}
.subgreet {
  font-size: 11.5px; color: var(--ink-3);
  margin-top: 2px;
}
.period-pill-real {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 8px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 0.5px var(--rule-2);
  font-size: 11.5px; font-weight: 500;
  color: var(--ink);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 22px;
}
.kpi-real {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: inset 0 0 0 0.5px var(--rule-2), var(--shadow-card);
  padding: 12px 14px;
}
.kpi-real .lab {
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.kpi-real .val {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.025em; color: var(--ink);
  line-height: 1;
}
.kpi-real .meta {
  margin-top: 6px;
  font-size: 10.5px;
  display: inline-flex; align-items: center; gap: 4px;
}
.kpi-real .meta.up { color: var(--success); }
.kpi-real .meta.down { color: var(--danger); }

.dash-cards {
  margin-top: 12px;
  padding: 0 22px 18px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.card-real {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: inset 0 0 0 0.5px var(--rule-2), var(--shadow-card);
  padding: 12px 14px;
  display: flex; flex-direction: column;
}
.card-real .ch-title {
  font-size: 12px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: 10px;
}
.card-real .ch-sub {
  font-size: 10.5px; color: var(--ink-3);
  margin-top: -6px; margin-bottom: 10px;
}

/* Funnel rows in card */
.funnel-row-real {
  display: grid;
  grid-template-columns: 80px 1fr 36px;
  gap: 8px; align-items: center;
  margin-bottom: 8px;
}
.funnel-row-real .lab { font-size: 11px; color: var(--ink); font-weight: 500; }
.funnel-row-real .pct { font-size: 11px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.funnel-track-real {
  height: 18px;
  background: var(--surface-3);
  border-radius: 5px; overflow: hidden;
  position: relative;
}
.funnel-bar-real {
  height: 100%;
  border-radius: 5px;
  display: flex; align-items: center;
  padding-left: 8px;
  font-size: 10px; font-weight: 600; color: #fff;
}

/* Mini hot leads list */
.hot-list { display: flex; flex-direction: column; }
.hot-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  border-top: 0.5px solid var(--rule);
}
.hot-row:first-child { border-top: none; }
.hot-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4 0%, #1E40AF 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 500;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.hot-info { flex: 1; min-width: 0; }
.hot-name { font-size: 11.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-detail { font-size: 10px; color: var(--ink-3); }
.hot-temp {
  font-size: 9.5px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(248,113,113,0.18); color: var(--danger);
  letter-spacing: 0.01em;
}

/* ── 10 IAs — real character grid ───────────────────────────────── */
.ai-grid-real {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.ai-card {
  position: relative;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  border: 0.5px solid var(--rule);
  aspect-ratio: 4/5;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
  isolation: isolate;
}
.ai-card:hover {
  transform: translateY(-3px);
  border-color: var(--rule-strong);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.7);
}
.ai-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(105%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-card:hover .ai-card-img { transform: scale(1.04); }
.ai-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,6,20,0) 35%, rgba(5,6,20,0.78) 70%, rgba(5,6,20,0.94) 100%);
  z-index: 1;
}
.ai-card-body {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  z-index: 2;
  display: flex; flex-direction: column;
  gap: 4px;
}
.ai-card-name {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.ai-card-role {
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  line-height: 1.35;
}
.ai-card-tag {
  position: absolute; top: 14px; left: 14px;
  z-index: 2;
  font-size: 10px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
  letter-spacing: 0.05em; text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(5,6,20,0.55);
  border: 0.5px solid rgba(255,255,255,0.14);
}

/* Inbox mockup (real-grade) ─────────────────────────────────────── */
.inbox-real {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
}
.inbox-list {
  border-right: 0.5px solid var(--rule);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.inbox-search {
  padding: 12px 12px 8px;
}
.inbox-search-input {
  height: 28px; border-radius: 7px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 0.5px var(--rule-strong);
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px;
  font-size: 11.5px; color: var(--ink-3);
}
.inbox-rows { flex: 1; overflow: hidden; padding: 0 8px; }
.inbox-row {
  display: flex; gap: 10px; align-items: center;
  padding: 9px 10px; border-radius: 7px;
}
.inbox-row.active { background: var(--accent-soft); }
.inbox-row .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4 0%, #1E40AF 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.inbox-row .meta-row { flex: 1; min-width: 0; }
.inbox-row .name { font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row .preview { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row .time-col { text-align: right; flex-shrink: 0; }
.inbox-row .time { font-size: 9.5px; color: var(--ink-3); }
.inbox-row .pill {
  display: inline-block; margin-top: 3px;
  background: var(--accent-2); color: var(--bg-2);
  font-size: 9px; font-weight: 600;
  padding: 1px 6px; border-radius: 999px;
}

.inbox-thread {
  display: flex; flex-direction: column;
  overflow: hidden;
}
.thread-head {
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 0.5px solid var(--rule);
}
.thread-head .av {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4 0%, #1E40AF 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
}
.thread-head .who { flex: 1; }
.thread-head .who-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.thread-head .who-meta { font-size: 10px; color: var(--ink-3); }
.thread-pill {
  font-size: 9.5px; font-weight: 500;
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 3px 9px; border-radius: 999px;
}

.thread-msgs {
  flex: 1; padding: 14px 18px;
  display: flex; flex-direction: column; gap: 7px;
  overflow: hidden;
}
.bubble {
  max-width: 75%;
  font-size: 11.5px;
  padding: 8px 11px;
  border-radius: 14px;
  line-height: 1.4;
}
.bubble.in {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 14px 14px 14px 4px;
}
.bubble.out {
  align-self: flex-end;
  background: var(--bubble-out);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.bubble-label {
  align-self: flex-end;
  font-size: 9.5px; color: var(--accent-2);
  background: var(--accent-soft);
  padding: 2px 8px; border-radius: 999px;
  margin-top: -2px;
}
.bubble-typing {
  align-self: flex-start;
  background: var(--surface-2);
  padding: 9px 14px; border-radius: 14px;
  display: inline-flex; gap: 3px;
}
.bubble-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-3);
  animation: typing 1.4s infinite;
}
.bubble-typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Context panel (right side) */
.ctx-panel {
  border-left: 0.5px solid var(--rule);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
}
.ctx-card {
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 9px;
  box-shadow: inset 0 0 0 0.5px var(--rule-2);
}
.ctx-card .lab {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.ctx-card .val {
  font-size: 12.5px; color: var(--ink);
  line-height: 1.45;
}
.ctx-score {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 26px; font-weight: 600;
  color: var(--success);
  letter-spacing: -0.025em;
}
.ctx-score small { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.ctx-profile {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--rule);
}
.ctx-profile .av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4 0%, #1E40AF 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #fff;
}
.ctx-profile .pname { font-size: 13px; font-weight: 600; color: var(--ink); }
.ctx-profile .psub { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.ctx-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.ctx-tag {
  padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 500;
}
.ctx-tag.hot { background: rgba(248,113,113,0.18); color: var(--danger); }
.ctx-tag.qualified { background: rgba(124,58,237,0.18); color: #A78BFA; }
.ctx-tag.implant { background: var(--accent-soft); color: var(--accent-2); }

/* ── Kanban mockup ───────────────────────────────────────────────── */
.kanban-real {
  padding: 16px;
  background: var(--surface-3);
  display: flex; gap: 10px;
  overflow: hidden;
  height: 100%;
}
.kanban-col {
  flex: 1; min-width: 0;
  background: var(--bg-2);
  border-radius: 10px;
  padding: 10px;
  display: flex; flex-direction: column;
  border: 0.5px solid var(--rule);
}
.kanban-col-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.kanban-col-head .name {
  font-size: 11px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 6px;
}
.kanban-col-head .dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.kanban-col-head .count {
  font-size: 10px; color: var(--ink-3);
  background: var(--surface-3);
  padding: 1px 7px; border-radius: 999px;
  font-family: "SF Mono", ui-monospace, monospace;
}
.kanban-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 6px;
  box-shadow: inset 0 0 0 0.5px var(--rule-2), var(--shadow-card);
  font-size: 11px;
}
.kanban-card .kc-name { font-weight: 500; color: var(--ink); font-size: 11.5px; }
.kanban-card .kc-meta {
  display: flex; align-items: center; gap: 5px;
  margin-top: 4px;
  font-size: 10px; color: var(--ink-3);
}
.kanban-card .kc-temp {
  margin-left: auto;
  font-size: 9.5px; padding: 1px 6px; border-radius: 999px;
}
.kc-hot { background: rgba(248,113,113,0.18); color: var(--danger); }
.kc-warm { background: rgba(251,191,36,0.18); color: var(--warn); }
.kc-cold { background: rgba(148,163,184,0.18); color: #94A3B8; }
.kanban-card .ai-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-2);
  padding: 1px 5px; border-radius: 4px;
  margin-left: auto;
}

/* ── Feature cards ───────────────────────────────────────────────── */
.feature-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature-card {
  padding: 24px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border-radius: 16px;
  border: 0.5px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.feature-card .f-ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.feature-card .f-title {
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.015em; color: var(--ink);
  margin-bottom: 6px;
}
.feature-card .f-desc {
  font-size: 13.5px; color: var(--ink-2);
  line-height: 1.55;
}

/* ── Team Section ────────────────────────────────────────────────── */
.team-hero {
  margin: 40px auto 0;
  max-width: 1280px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  border: 0.5px solid var(--rule-2);
  background: var(--bg-2);
}
.team-hero img {
  width: 100%; display: block;
  filter: saturate(106%);
}
.team-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,6,20,0) 50%, rgba(5,6,20,0.55) 100%);
  pointer-events: none;
}

/* ── CTA bottom ──────────────────────────────────────────────────── */
.bottom-cta {
  position: relative;
  padding: 140px 40px;
  text-align: center;
  border-top: 0.5px solid var(--rule);
  overflow: hidden;
}
.bottom-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% 50%, rgba(6,182,212,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.bottom-cta h2 {
  position: relative; margin: 0;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.05;
}
.bottom-cta p {
  position: relative;
  margin: 22px auto 36px;
  max-width: 560px;
  font-size: 18px; color: var(--ink-2);
  line-height: 1.5;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  padding: 60px 40px 36px;
  border-top: 0.5px solid var(--rule);
  background: var(--bg-deep);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 60px; flex-wrap: wrap;
}
.footer-copy {
  font-size: 12px; color: var(--ink-4);
  margin: 40px auto 0;
  max-width: 1280px;
}
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ── Reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════════
   DEMO Inbox — 4 colunas, fiel ao apps/web/.../inbox/page.tsx
   ════════════════════════════════════════════════════════════════════ */
.demo-mockup {
  animation: none;
  transform: none;
  max-width: 1560px;
  margin: 0 auto;
}
.demo-inbox {
  display: grid;
  grid-template-columns: 240px 380px minmax(0, 1fr) 360px;
  height: 760px;
  background: var(--surface-3);
  color: var(--ink);
  font-size: 13.5px;
}
.demo-sidebar { background: var(--sidebar-bg); }

/* ── Rail filtros ────────────────────────────────────────────────── */
.inbox-rail {
  background: var(--surface-2);
  border-right: 0.5px solid var(--rule-2);
  padding: 14px 10px;
  overflow-y: auto;
  overflow-x: hidden;
}
.rail-head {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 8px 6px;
  margin-top: 4px;
}
.rail-list { display: flex; flex-direction: column; gap: 1px; }
.rail-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 12.5px;
}
.rail-item svg { width: 13px; height: 13px; color: var(--ink-3); flex-shrink: 0; }
.rail-item.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.rail-item.active svg { color: var(--accent-ink); }
.rail-item > span:not(.rail-count):not(.tag-dot) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-count {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--ink-3);
}
.rail-item.active .rail-count { color: var(--accent-ink); }
.rail-av {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.tag-dot {
  width: 8px; height: 8px; border-radius: 2px;
  margin: 0 5px; flex-shrink: 0;
}

/* ── List de conversas ───────────────────────────────────────────── */
.inbox-list-real {
  background: var(--surface);
  border-right: 0.5px solid var(--rule-2);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.list-head {
  padding: 14px 16px 10px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 0.5px solid var(--rule);
}
.list-title {
  margin: 0; font-size: 18px; font-weight: 600;
  letter-spacing: -0.025em;
  flex: 1; color: var(--ink);
}
.icon-btn {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  border-radius: 7px;
  color: var(--ink-2);
}
.icon-btn svg { width: 13px; height: 13px; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.list-search {
  margin: 10px 16px 6px;
  height: 30px; border-radius: 8px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 0.5px var(--rule-strong);
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px;
}
.list-search svg { width: 11px; height: 11px; color: var(--ink-3); }
.list-search input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 12px; color: var(--ink); font-family: inherit;
}
.list-search input::placeholder { color: var(--ink-3); }
.list-rows { flex: 1; overflow-y: auto; padding-top: 4px; }
.list-row {
  display: block; width: 100%; text-align: left;
  padding: 12px 16px;
  background: transparent; border: none; cursor: pointer;
  border-bottom: 0.5px solid var(--rule);
  border-left: 2px solid transparent;
  font-family: inherit;
  color: inherit;
}
.list-row:hover { background: var(--surface-2); }
.list-row.active {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}
.list-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: flex-start; }
.row-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11.5px; font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.row-av.tiny { width: 14px; height: 14px; font-size: 7px; }
.row-meta { min-width: 0; }
.row-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.row-name {
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-row.active .row-name { color: var(--ink); }
.row-time {
  font-size: 10.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.row-mid {
  display: flex; align-items: center; gap: 8px;
  margin-top: 2px;
}
.row-preview {
  flex: 1;
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 5px;
}
.row-preview .ai-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}
.row-unread {
  background: var(--accent-2);
  color: var(--bg-2);
  font-size: 9.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
  flex-shrink: 0;
}
.row-badges {
  display: flex; gap: 4px;
  margin-top: 6px; flex-wrap: wrap;
}

/* Stage badges (StageBadge real) */
.b-stage {
  font-size: 9.5px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.stage-novo         { background: rgba(148,163,184,0.18); color: #94A3B8; }
.stage-qualificado  { background: rgba(34,211,238,0.16);  color: #22D3EE; }
.stage-agendado     { background: rgba(14,165,233,0.18);  color: #38BDF8; }
.stage-compareceu   { background: rgba(15,118,110,0.22);  color: #5EEAD4; }
.stage-fechado      { background: rgba(74,222,128,0.18);  color: #4ADE80; }
.stage-perdido      { background: rgba(248,113,113,0.18); color: var(--danger); }

/* Temperature pill */
.b-temp {
  font-size: 9.5px; font-weight: 500;
  padding: 2px 7px; border-radius: 999px;
  white-space: nowrap;
}
.b-temp.hot  { background: rgba(248,113,113,0.18); color: var(--danger); }
.b-temp.warm { background: rgba(251,191,36,0.18);  color: var(--warn); }
.b-temp.cold { background: rgba(148,163,184,0.18); color: #94A3B8; }

/* Window status */
.b-win {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 500;
  padding: 2px 7px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-3);
}
.b-win i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.b-win.open i      { background: var(--success); }
.b-win.expiring i  { background: var(--warn); }
.b-win.expired i   { background: var(--danger); }

/* ── Thread / chat ──────────────────────────────────────────────── */
.thread-real {
  display: flex; flex-direction: column;
  background: var(--surface-3);
  overflow: hidden;
}
.thread-head-real {
  background: var(--surface);
  border-bottom: 0.5px solid var(--rule);
  padding: 11px 18px;
  flex-shrink: 0;
}
.thr-row1 { display: flex; align-items: center; gap: 10px; }
.thr-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12.5px; font-weight: 600;
  flex-shrink: 0;
}
.thr-who { flex: 1; min-width: 0; }
.thr-name {
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.thr-phone {
  font-size: 11px; color: var(--ink-3);
  margin-top: 2px;
  display: flex; align-items: center; gap: 5px;
}
.thr-phone svg { color: #25D366; }

.thr-row2 {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; flex-wrap: wrap;
}
.b-assign {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 500;
  padding: 3px 9px 3px 4px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: none; cursor: pointer; font-family: inherit;
}
.thr-spacer { flex: 1; }
.ai-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px; font-weight: 600;
  box-shadow: inset 0 0 0 0.5px rgba(34,211,238,0.32);
}
.ai-toggle .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(34,211,238,0.7);
  animation: pulseDot 2s infinite;
}

/* Body messages */
.thread-body {
  flex: 1;
  padding: 18px 24px;
  display: flex; flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.time-divider {
  display: flex; align-items: center; justify-content: center;
  margin: 10px 0 14px;
}
.time-divider span {
  font-size: 10.5px;
  color: var(--ink-3);
  padding: 3px 12px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: inset 0 0 0 0.5px var(--rule);
  font-weight: 500;
}
.msg-row { display: flex; margin: 2px 0; }
.msg-row.in  { justify-content: flex-start; }
.msg-row.out { justify-content: flex-end; }
.msg-bubble {
  max-width: 72%;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  position: relative;
}
.msg-row.in .msg-bubble {
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px 14px 14px 4px;
  box-shadow: inset 0 0 0 0.5px var(--rule);
}
.msg-row.out .msg-bubble {
  background: var(--bubble-out);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.msg-bubble strong { font-weight: 600; }
.msg-bubble em { font-style: italic; }
.msg-time {
  display: flex; align-items: center; gap: 4px;
  justify-content: flex-end;
  margin-top: 4px;
  font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,0.6);
}
.msg-row.in .msg-time { color: var(--ink-3); }
.msg-time .dlv { color: #5EEAD4; font-size: 11px; line-height: 1; }
.msg-tag {
  font-size: 9.5px; font-weight: 500;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 2px 8px; border-radius: 999px;
  margin: 2px 0 6px;
  display: inline-block;
}
.msg-tag.out { align-self: flex-end; }
.msg-typing {
  align-self: flex-start;
  background: var(--surface);
  border-radius: 14px;
  padding: 9px 14px;
  display: inline-flex; gap: 4px;
  box-shadow: inset 0 0 0 0.5px var(--rule);
  margin-top: 2px;
}
.msg-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-3);
  animation: typing 1.4s infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Composer */
.composer {
  padding: 12px 18px 14px;
  background: var(--surface);
  border-top: 0.5px solid var(--rule);
  flex-shrink: 0;
}
.ai-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px; font-weight: 500;
  margin-bottom: 10px;
}
.ai-banner svg { color: var(--accent-ink); flex-shrink: 0; }
.composer-box {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface-2);
  border-radius: 22px;
  padding: 4px 6px 4px 8px;
  box-shadow: inset 0 0 0 0.5px var(--rule-2);
}
.composer-ico {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  border-radius: 50%;
  color: var(--ink-3);
}
.composer-ico svg { width: 16px; height: 16px; }
.composer-ico:hover { background: var(--surface-3); color: var(--ink); }
.composer-input {
  flex: 1;
  font-size: 13px;
  color: var(--ink-3);
  padding: 6px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.composer-send {
  width: 32px; height: 32px;
  border: none; cursor: pointer;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-left: 2px;
}
.composer-send svg { width: 14px; height: 14px; }
.composer-send:hover { background: var(--accent-2); }

/* ── Drawer contexto ─────────────────────────────────────────────── */
.ctx-drawer {
  background: var(--surface);
  border-left: 0.5px solid var(--rule);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.ctx-tabs {
  display: flex;
  border-bottom: 0.5px solid var(--rule);
  flex-shrink: 0;
}
.ctx-tab {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  font-size: 11.5px; font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.ctx-tab.active {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
}
.ctx-content {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 16px;
}
.ctx-hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 6px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--rule);
}
.ctx-hero-av {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--rule-2);
}
.ctx-hero-name {
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.ctx-hero-sub {
  font-size: 11.5px; color: var(--ink-3);
}
.ctx-hero-row {
  display: flex; gap: 5px; margin-top: 4px;
}

.ctx-section {
  display: flex; flex-direction: column; gap: 8px;
}
.ctx-section-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-3);
}
.ctx-section-head svg { color: var(--accent-2); }
.ctx-add {
  margin-left: auto;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-weight: 400;
  cursor: pointer;
}
.ctx-suggestion {
  padding: 10px 12px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(34,211,238,0.10), rgba(34,211,238,0.04));
  box-shadow: inset 0 0 0 0.5px rgba(34,211,238,0.25);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.ctx-suggestion strong { color: var(--ink); }

.ctx-score-row {
  display: flex; align-items: center; gap: 10px;
}
.ctx-score-big {
  font-size: 28px; font-weight: 600;
  color: var(--success);
  letter-spacing: -0.03em;
  line-height: 1;
}
.ctx-score-big small {
  font-size: 12px; color: var(--ink-3);
  font-weight: 400;
}
.ctx-score-bar {
  flex: 1; height: 6px;
  background: var(--surface-2);
  border-radius: 3px; overflow: hidden;
  box-shadow: inset 0 0 0 0.5px var(--rule);
}
.ctx-score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), #22D3EE);
  border-radius: 3px;
}
.ctx-score-meta {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--ink-3);
}
.ctx-score-meta strong { color: var(--ink); font-weight: 600; }

.ctx-tags-row {
  display: flex; gap: 5px; flex-wrap: wrap;
}
.ctx-tag-real {
  font-size: 10.5px; font-weight: 500;
  padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
  box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--c) 32%, transparent);
}

.ctx-attr {
  display: flex; flex-direction: column; gap: 6px;
}
.ctx-attr-row {
  display: flex; justify-content: space-between;
  font-size: 11.5px;
}
.ctx-attr-row > span { color: var(--ink-3); }
.ctx-attr-row > strong { color: var(--ink); font-weight: 500; }

.ctx-note {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 11.5px; line-height: 1.5;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 0.5px var(--rule);
}
.ctx-note-author {
  font-size: 10px; font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

@media (max-width: 1400px) {
  .demo-inbox {
    grid-template-columns: 220px 340px minmax(0, 1fr) 320px;
    height: 720px;
  }
}
@media (max-width: 1180px) {
  .demo-inbox {
    grid-template-columns: 200px 300px minmax(0, 1fr) 290px;
    height: 660px;
  }
}
@media (max-width: 980px) {
  .demo-inbox {
    grid-template-columns: 280px minmax(0, 1fr);
    height: 620px;
  }
  .demo-sidebar { display: none; }
  .ctx-drawer { display: none; }
}
@media (max-width: 640px) {
  .demo-inbox {
    grid-template-columns: 1fr;
    height: 560px;
  }
  .inbox-list-real { display: none; }
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ai-grid-real { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .depth-tier, .depth-tier.reverse { grid-template-columns: 1fr; gap: 24px; padding: 50px 0; }
  /* photo-sm segue em duas colunas aqui de propósito — a foto ao lado do texto
     é o arranjo escolhido; ela só empilha no breakpoint de 860px. */
  .depth-tier.photo-sm { gap: 36px; padding: 50px 0; }
  .app-window, .app-window-full { grid-template-columns: 1fr; }
  .sidebar-real { display: none; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .dash-cards { grid-template-columns: 1fr; }
  .kanban-col:nth-child(n+4) { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE PREMIUM — ≤ 860px
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

  /* Nav compacta */
  .nav {
    padding: 14px 20px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
  .nav.scrolled { padding: 10px 20px; }
  .nav-links { display: none; }
  .nav-brand { font-size: 17px; }
  .nav-brand svg { width: 20px; height: 20px; }
  .nav-logo, .nav.scrolled .nav-logo { height: 24px; }
  .nav-cta {
    padding: 8px 14px;
    font-size: 12.5px;
    border-radius: 999px;
  }

  /* Hero — texto no topo + iceberg como elemento inline embaixo */
  .hero {
    min-height: auto;
    padding: 100px 22px 50px;
    text-align: center;
    align-items: center;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    gap: 36px;
  }
  .hero-iceberg-bg {
    position: relative;
    top: auto; bottom: auto;
    left: auto; right: auto;
    display: block;
    width: 160vw;
    max-width: 160vw;
    min-width: 160vw;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    opacity: 1;
    mix-blend-mode: screen;
    flex-shrink: 0;
    align-self: center;
    margin: 0 auto;
    filter: drop-shadow(0 30px 60px rgba(56,189,248,0.35));
    order: 2;
    animation: heroFloatMobile 7s ease-in-out infinite;
  }
  @keyframes heroFloatMobile {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
  }
  .hero-overlay { display: none; }
  .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 100%;
    flex-shrink: 0;
    order: 1;
  }
  .hero-content > *,
  .hero-content h1,
  .hero p.hero-sub {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-eyebrow {
    margin-bottom: 22px;
    font-size: 11.5px;
    padding: 5px 12px;
  }
  .hero h1 {
    font-size: clamp(34px, 9.5vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.035em;
  }
  .hero p.hero-sub {
    font-size: 15.5px;
    line-height: 1.55;
    margin-top: 18px;
    color: var(--ink-2);
  }
  .hero-cta-row {
    margin-top: 28px;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-ghost {
    justify-content: center;
    width: 100%;
    padding: 14px 22px;
    font-size: 15px;
    border-radius: 14px;
  }
  .hero-cta-row .btn-primary { box-shadow: 0 8px 30px rgba(56,189,248,0.30); }

  /* Section padding */
  .section,
  .section-wide,
  .preview-section,
  .depth-section {
    padding-left: 22px;
    padding-right: 22px;
  }
  .section,
  .section-wide { padding-top: 90px; padding-bottom: 70px; }
  .preview-section { padding-top: 70px; }
  .section-title { font-size: clamp(30px, 7vw, 42px); }
  .section-sub { font-size: 15.5px; }

  /* Stats 2x2, sem borders entre */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 0;
    padding: 20px 0;
    margin-top: 70px;
  }
  .hero-stat {
    padding: 16px 8px;
    border-right: none;
    border-bottom: 0.5px solid var(--rule);
  }
  .hero-stat:nth-child(odd) { border-right: 0.5px solid var(--rule); }
  .hero-stat:nth-child(n+3) { border-bottom: none; }
  .hero-stat .num { font-size: clamp(28px, 7.5vw, 40px); }
  .hero-stat .lab { font-size: 11px; margin-top: 6px; }

  /* Depth tiers */
  .depth-section { padding-top: 60px; padding-bottom: 50px; }
  .depth-tier,
  .depth-tier.reverse,
  .depth-tier.photo-sm {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 40px 0;
  }
  .depth-tier > div:first-child { order: 1; }
  .depth-tier > div:last-child { order: 2; }
  /* Empilhada, a foto do time pegaria a largura toda da tela e ficaria enorme —
     aqui ela fica com um teto e centralizada. */
  .depth-tier.photo-sm .team-hero { max-width: 460px; margin: 0 auto; }
  .depth-title { font-size: 26px; }
  .depth-desc { font-size: 14.5px; }

  /* IAs grid 2 col */
  .ai-grid-real {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 36px;
  }
  .ai-card { border-radius: 16px; }
  .ai-card-name { font-size: 16px; }
  .ai-card-role { font-size: 11px; }
  .ai-card-tag { font-size: 9px; padding: 3px 7px; top: 10px; left: 10px; }
  .ai-card-body { left: 12px; right: 12px; bottom: 12px; }

  /* Features 1 col */
  .feature-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 36px; }
  .feature-card { padding: 22px; border-radius: 16px; }
  .feature-card .f-title { font-size: 16px; }
  .feature-card .f-desc { font-size: 13px; }

  /* Mockups menores e sem tilt em mobile */
  .mockup-wrap { margin-top: 36px; }
  .mockup {
    transform: none !important;
    animation: none !important;
    border-radius: 12px;
  }
  .mockup-titlebar { height: 30px; padding: 0 12px; }
  .tl-dot { width: 9px; height: 9px; }
  .tl-title { font-size: 10.5px; }
  .app-window {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 420px;
  }
  .sidebar-real { display: none; }
  .page-real-head { padding: 14px 14px 8px; }
  .greeting { font-size: 17px; }
  .subgreet { font-size: 10.5px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); padding: 0 14px; gap: 8px; }
  .kpi-real { padding: 10px 12px; }
  .kpi-real .val { font-size: 18px; }
  .dash-cards { grid-template-columns: 1fr; padding: 0 14px 14px; }

  /* Kanban no depth-section: max 2 colunas */
  .kanban-real { padding: 12px; gap: 8px; height: 280px !important; }
  .kanban-col:nth-child(n+3) { display: none; }

  /* Demo do inbox: só thread */
  .demo-inbox {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 540px;
  }
  .demo-sidebar,
  .inbox-list-real,
  .ctx-drawer { display: none !important; }
  .thread-head-real { padding: 10px 14px; }
  .thr-name { font-size: 13px; }
  .thr-phone { font-size: 10px; }
  .thread-body { padding: 14px; gap: 3px; }
  .msg-bubble { max-width: 85%; font-size: 12.5px; padding: 8px 11px; }
  .composer { padding: 10px 14px 12px; }
  .ai-banner { font-size: 10.5px; padding: 5px 9px; }
  .composer-input { font-size: 12.5px; padding: 6px; }

  /* Inbox cards na camada 1 */
  .thread-pill { font-size: 9px; padding: 2px 7px; }
  .bubble { font-size: 12px; padding: 7px 10px; max-width: 80%; }

  /* Bottom CTA */
  .bottom-cta { padding: 90px 22px; }
  .bottom-cta h2 { font-size: clamp(34px, 8vw, 50px); }
  .bottom-cta p { font-size: 15.5px; }

  /* Footer */
  .footer { padding: 50px 22px 30px; }
  .footer-inner {
    flex-direction: column;
    gap: 36px;
  }
  .footer-copy { margin-top: 28px; font-size: 11.5px; }
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE EXTRA SMALL — ≤ 420px
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
  .nav { padding: 12px 16px; }
  .nav-cta { padding: 7px 12px; font-size: 11.5px; }
  .nav-brand { font-size: 16px; }

  .hero { padding: 100px 18px 50px; }
  .hero h1 { font-size: clamp(30px, 10vw, 44px); }
  .hero p.hero-sub { font-size: 14.5px; }
  .hero-eyebrow { font-size: 10.5px; }

  .ai-grid-real { gap: 8px; }
  .ai-card-name { font-size: 14px; }
  .ai-card-role { font-size: 10px; }

  .feature-card { padding: 18px; }
  .feature-card .f-title { font-size: 15px; }

  .section,
  .section-wide,
  .preview-section { padding-left: 18px; padding-right: 18px; }

  .hero-stat .num { font-size: 26px; }
  .hero-stat .lab { font-size: 10px; }

  .kpi-real .lab { font-size: 9.5px; }
  .kpi-real .val { font-size: 16px; }
}

/* O <picture> existe só para oferecer o WebP ao browser. display:contents
   faz ele não gerar caixa nenhuma, então o layout fica idêntico ao de antes,
   com o <img> se comportando como filho direto do container. */
picture { display: contents; }
