/* ==========================================================================
   Shoks Solutions — portfólio one-page
   Tokens copiados do design system (shoks-solutions-design-system/project/)
   ========================================================================== */

:root {
  /* Brand ramp */
  --red-400: #ea5a3c;
  --red-500: #e8412c;
  --red-600: #c9301e;
  --orange-400: #ff7a45;

  /* Neutrals */
  --gray-0: #0a0a0a;
  --gray-50: #121212;
  --gray-100: #1a1a1a;
  --gray-150: #212121;
  --gray-200: #2a2a2a;
  --gray-300: #3a3a3a;
  --gray-400: #5c5c5c;
  --gray-500: #808080;
  --gray-600: #a3a3a3;
  --gray-900: #f5f5f5;

  /* Semantic */
  --surface-app: var(--gray-0);
  --surface-raised: var(--gray-50);
  --surface-card: var(--gray-100);
  --surface-card-hover: var(--gray-150);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-500);
  --border-subtle: var(--gray-200);
  --border-focus: var(--red-400);
  --brand-primary: var(--red-500);
  --brand-primary-hover: var(--red-400);
  --brand-primary-active: var(--red-600);
  --brand-gradient: linear-gradient(155deg, var(--red-500) 0%, var(--orange-400) 55%, var(--red-600) 100%);

  /* Type */
  --font-display: 'Space Grotesk', 'Arial', sans-serif;
  --font-body: 'Inter', 'Space Grotesk', 'Arial', sans-serif;

  /* Radii / shadows / motion */
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-glow-brand: 0 0 0 1px rgba(232, 65, 44, 0.4), 0 8px 24px rgba(232, 65, 44, 0.25);
  --shadow-focus-ring: 0 0 0 3px rgba(232, 65, 44, 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 360ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--surface-app);
  color: var(--text-primary);
  font: 400 15px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
}

h2 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.25; }

p { color: var(--text-secondary); }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

.container--narrow { width: min(760px, 100% - 48px); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--red-400);
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(120deg, var(--red-500), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 500 15px/1 var(--font-body);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.btn--primary {
  background: var(--brand-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--brand-primary-hover); box-shadow: var(--shadow-glow-brand); }
.btn--primary:active { background: var(--brand-primary-active); transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gray-400); background: rgba(255, 255, 255, 0.04); }

.btn--whatsapp {
  background: transparent;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  margin-top: 28px;
}
.btn--whatsapp:hover { box-shadow: inset 0 0 0 1px #2fae6a, 0 8px 24px rgba(47, 174, 106, 0.15); color: #2fae6a; }

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus-ring); }

/* ============ Nav ============ */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background var(--duration-slow) var(--ease-out),
              border-color var(--duration-slow) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.nav__logo-img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav__links a {
  transition: color var(--duration-base) var(--ease-out);
}
.nav__links a:hover { color: var(--text-primary); }

.nav__actions { display: flex; align-items: center; gap: 16px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 100px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  animation: hero-bg-in 1.8s var(--ease-out) both;
}

@keyframes hero-bg-in {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

/* Sobre a imagem, o eyebrow cruza o aro de luz do planeta —
   o pill escuro garante leitura em qualquer ponto. */
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--orange-400);
}

.hero__smoke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Escurece levemente o centro (legibilidade do texto) e funde a base
   da imagem com o fundo da próxima seção. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 55%, rgba(10, 10, 10, 0.5) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.35) 0%, transparent 18%, transparent 72%, var(--gray-0) 100%);
}

@media (max-width: 720px) {
  /* Em telas estreitas o cover cortaria a luz; puxa o enquadramento
     para a direita, onde está o aro iluminado do planeta. */
  .hero__bg { object-position: 72% center; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.05;
  max-width: 900px;
}

.hero__sub {
  font-size: 17px;
  max-width: 620px;
  margin-top: 24px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  background: rgba(18, 18, 18, 0.6);
}

.hero__proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 12px rgba(232, 65, 44, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ============ Demo: conversa → agendamento ============ */
.demo { padding-top: 0; }

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.demo__window {
  max-width: 1020px;
  margin-inline: auto;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 80px rgba(232, 65, 44, 0.07);
  overflow: hidden;
}

/* Barra da janela (chrome do navegador) */
.demo__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-subtle);
}

.demo__dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.demo__dot--r { background: #f4655a; }
.demo__dot--y { background: #f9bd4e; }
.demo__dot--g { background: #53c460; }

.demo__tab {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 6px 14px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-bottom-color: transparent;
  border-radius: 8px 8px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  transform: translateY(5px);
}

.demo__tab-icon { height: 14px; width: auto; }

.demo__urlbar {
  flex: 1;
  margin-left: 12px;
  padding: 6px 14px;
  background: var(--gray-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo__body {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
}

/* --- Chat (WhatsApp) --- */
.demo__chat {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  background: var(--gray-0);
}

.demo__chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-raised);
}

.demo__chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.demo__chat-avatar img { height: 20px; width: auto; }

.demo__chat-header strong {
  display: block;
  font: 600 14px/1.3 var(--font-display);
  color: var(--text-primary);
}

.demo__chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.demo__chat-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fae6a;
  box-shadow: 0 0 8px rgba(47, 174, 106, 0.7);
}

.demo__messages {
  flex: 1;
  min-height: 380px;
  max-height: 420px;
  overflow: hidden;
  overflow-anchor: none; /* balões entrando não podem "puxar" o scroll da página */
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.msg.is-in { opacity: 1; transform: none; }

.msg--patient {
  align-self: flex-start;
  background: var(--gray-150);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}

.msg--ai {
  align-self: flex-end;
  background: rgba(232, 65, 44, 0.10);
  border: 1px solid rgba(232, 65, 44, 0.22);
  border-bottom-right-radius: 4px;
}

.msg__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--text-tertiary);
}

.msg--ai .msg__meta { color: rgba(234, 90, 60, 0.85); }

.msg__tag {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red-400);
  margin-bottom: 4px;
}

/* Indicador "digitando" */
.msg--typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 13px 16px;
}

.msg--typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-500);
  animation: typing-dot 1.1s ease-in-out infinite;
}

.msg--typing i:nth-child(2) { animation-delay: 0.18s; }
.msg--typing i:nth-child(3) { animation-delay: 0.36s; }

@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.demo__inputbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 14px 14px;
  padding: 10px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* --- Painel do sistema --- */
.demo__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
  padding: 18px;
  gap: 14px;
}

.demo__panel-header strong {
  display: block;
  font: 600 14px/1.3 var(--font-display);
  color: var(--text-primary);
}

.demo__panel-header span {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

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

.demo__chip {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.demo__chip em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.demo__chip b {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.demo__chip.is-filled {
  border-color: rgba(232, 65, 44, 0.45);
  box-shadow: 0 0 16px rgba(232, 65, 44, 0.12);
}

.demo__chip.is-filled b { color: var(--text-primary); }

/* Agenda */
.demo__agenda {
  flex: 1;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo__agenda-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font: 600 13px/1.3 var(--font-display);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.demo__agenda-unit {
  font: 400 11px/1.3 var(--font-body);
  color: var(--text-tertiary);
}

.demo__slot {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
}

.demo__slot > span {
  font-size: 12px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.demo__slot-track { min-height: 34px; display: flex; }

.demo__busy,
.demo__free {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
}

.demo__busy {
  background: var(--gray-150);
  color: var(--text-tertiary);
}

.demo__free {
  border: 1px dashed var(--gray-300);
  color: var(--gray-400);
}

/* Evento criado pela IA */
.demo__event {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  min-height: 34px;
  border-radius: var(--radius-xs);
  background: linear-gradient(120deg, rgba(232, 65, 44, 0.22), rgba(255, 122, 69, 0.14));
  border: 1px solid rgba(232, 65, 44, 0.55);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  animation: event-pop 0.5s var(--ease-out), event-glow 2.4s ease-in-out 0.5s 2;
}

.demo__event small {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
}

@keyframes event-pop {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes event-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(232, 65, 44, 0); }
  50% { box-shadow: 0 0 24px rgba(232, 65, 44, 0.35); }
}

/* Toast de confirmação */
.demo__toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--gray-0);
  border: 1px solid rgba(47, 174, 106, 0.5);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 500;
  color: #2fae6a;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
}

.demo__toast.is-shown { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .demo__body { grid-template-columns: 1fr; }
  .demo__chat { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .demo__messages { min-height: 320px; max-height: 340px; }
  .demo__urlbar { display: none; }
}

/* ============ Métricas ============ */
.metrics {
  border-block: 1px solid var(--border-subtle);
  background: var(--surface-raised);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 56px 0;
}

.metric { text-align: center; }

.metric__value {
  display: block;
  font: 700 clamp(32px, 4vw, 48px)/1.1 var(--font-display);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--red-500), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric__label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============ Sections ============ */
.section { padding: 112px 0; }
.section--alt { background: var(--surface-raised); }

.section__head {
  max-width: 680px;
  margin-bottom: 64px;
}

.section__sub { margin-top: 16px; font-size: 16px; }

/* ============ Cards ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: background var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

/* Spotlight: brilho radial que segue o cursor dentro do card
   (--mx/--my são atualizados via JS no mousemove) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(232, 65, 44, 0.13),
    transparent 65%
  );
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.card:hover::before { opacity: 1; }

.card:hover {
  background: var(--surface-card-hover);
  border-color: rgba(232, 65, 44, 0.4);
  box-shadow: 0 0 28px rgba(232, 65, 44, 0.14), var(--shadow-md);
  transform: translateY(-4px);
}

/* Conteúdo acima do spotlight */
.card > * { position: relative; }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(232, 65, 44, 0.1);
  color: var(--red-400);
}

.card__icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 10px; font-size: 17px; }
.card p { font-size: 14px; }

/* ============ Processo (cards com cenas, ref. Xtract) ============ */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.process-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition-delay: calc(var(--process-order, 0) * 90ms);
}

.process-card--wide { grid-column: 1 / -1; }

.process-card__step {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin-bottom: 18px;
  background: var(--surface-raised);
}

.process-card h3 { font-size: 21px; margin-bottom: 10px; }
.process-card > p { font-size: 14.5px; max-width: 560px; }

.process-card__scene {
  margin-top: 24px;
  background: var(--gray-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  flex: 1;
}

/* --- Cena 01: radar de análise --- */
.process-radar {
  display: grid;
  grid-template-columns: minmax(120px, 150px) 1fr;
  gap: 18px;
  align-items: center;
}

.process-radar__scope {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  background:
    radial-gradient(circle, transparent 39%, rgba(58, 58, 58, 0.6) 40%, transparent 41%),
    radial-gradient(circle, transparent 69%, rgba(58, 58, 58, 0.6) 70%, transparent 71%),
    linear-gradient(rgba(58, 58, 58, 0.5), rgba(58, 58, 58, 0.5)) 50% 0/1px 100% no-repeat,
    linear-gradient(rgba(58, 58, 58, 0.5), rgba(58, 58, 58, 0.5)) 0 50%/100% 1px no-repeat;
}

.process-radar__beam {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(232, 65, 44, 0.4), transparent 18%);
  animation: radar-spin 4.5s linear infinite;
}

@keyframes radar-spin { to { transform: rotate(360deg); } }

.process-radar__point {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-400);
  box-shadow: 0 0 8px rgba(255, 122, 69, 0.8);
  animation: radar-blink 4.5s ease-in-out infinite;
}

.process-radar__point--1 { left: 62%; top: 28%; }
.process-radar__point--2 { left: 30%; top: 58%; animation-delay: 1.4s; }
.process-radar__point--3 { left: 70%; top: 68%; animation-delay: 2.8s; }

@keyframes radar-blink {
  0%, 20%, 100% { opacity: 0.15; }
  8% { opacity: 1; }
}

.process-checks {
  list-style: none;
  display: grid;
  gap: 8px;
}

.process-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.process-checks svg { width: 14px; height: 14px; color: var(--red-400); flex: none; }

.process-checks b {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-400);
}

/* --- Cena 02: blueprint da solução --- */
.process-blueprint { padding: 0; overflow: hidden; }

.process-blueprint__toolbar,
.process-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-raised);
}

.process-blueprint__toolbar i,
.process-window__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray-300);
}

.process-blueprint__toolbar span,
.process-window__bar span {
  margin-left: 8px;
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.process-blueprint__canvas {
  position: relative;
  height: 190px;
  background:
    linear-gradient(rgba(42, 42, 42, 0.35) 1px, transparent 1px) 0 0/100% 28px,
    linear-gradient(90deg, rgba(42, 42, 42, 0.35) 1px, transparent 1px) 0 0/28px 100%;
}

.process-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.process-node svg { width: 14px; height: 14px; color: var(--red-400); }

.process-node--input { left: 8%; top: 16%; }
.process-node--ai { left: 42%; top: 42%; border-color: rgba(232, 65, 44, 0.5); box-shadow: 0 0 14px rgba(232, 65, 44, 0.15); }
.process-node--flow { right: 8%; top: 16%; }
.process-node--data { right: 12%; top: 68%; }

.process-blueprint__line {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(232, 65, 44, 0.1), rgba(232, 65, 44, 0.65), rgba(232, 65, 44, 0.1));
  background-size: 200% 100%;
  animation: line-flow 2.6s linear infinite;
}

@keyframes line-flow { to { background-position: -200% 0; } }

.process-blueprint__line--1 { left: 24%; top: 34%; width: 22%; transform: rotate(24deg); }
.process-blueprint__line--2 { left: 58%; top: 34%; width: 22%; transform: rotate(-24deg); animation-delay: 0.4s; }
.process-blueprint__line--3 { left: 60%; top: 62%; width: 18%; transform: rotate(38deg); animation-delay: 0.8s; }

.process-blueprint__approved {
  position: absolute;
  left: 8%;
  bottom: 12%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(47, 174, 106, 0.1);
  border: 1px solid rgba(47, 174, 106, 0.4);
  color: #2fae6a;
  font-size: 11.5px;
  font-weight: 500;
}

.process-blueprint__approved svg { width: 13px; height: 13px; }

/* --- Cena 03: terminal --- */
.process-terminal { padding: 0; overflow: hidden; }

.process-terminal pre {
  margin: 0;
  padding: 16px;
  min-height: 158px;
  font: 400 12px/1.7 var(--font-mono, 'SFMono-Regular', Menlo, monospace);
  color: var(--gray-700);
  white-space: pre-wrap;
  overflow: hidden;
}

.process-terminal__cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--red-400);
  animation: cursor-blink 1s steps(1) infinite;
}

@keyframes cursor-blink { 50% { opacity: 0; } }

.process-terminal__status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  font-size: 12px;
  color: var(--text-secondary);
}

.process-terminal__status svg { width: 14px; height: 14px; color: var(--gray-400); }

.process-terminal__status.is-done { color: #2fae6a; }
.process-terminal__status.is-done svg { color: #2fae6a; }

/* --- Cena 04: integrações --- */
.process-integrations {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 16px;
}

.process-integrations__hub {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  background: var(--surface-card);
  border: 1px solid rgba(232, 65, 44, 0.45);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 20px rgba(232, 65, 44, 0.15);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.process-integrations__hub img { height: 18px; width: auto; }

.process-integrations__rail {
  position: relative;
  width: 2px;
  height: 26px;
  background: linear-gradient(rgba(232, 65, 44, 0.5), rgba(232, 65, 44, 0.08));
  overflow: visible;
}

.process-integrations__pulse {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-400);
  box-shadow: 0 0 10px rgba(255, 122, 69, 0.9);
  transform: translateX(-50%);
  animation: rail-pulse 1.6s ease-in infinite;
}

@keyframes rail-pulse {
  from { top: -4px; opacity: 1; }
  to { top: 100%; opacity: 0.2; }
}

.process-integrations__tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.process-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-secondary);
  transition: border-color var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out),
              color var(--duration-slow) var(--ease-out);
}

.process-tool img { height: 15px; width: 15px; object-fit: contain; }

.process-tool.is-active {
  border-color: rgba(232, 65, 44, 0.55);
  box-shadow: 0 0 14px rgba(232, 65, 44, 0.18);
  color: var(--text-primary);
}

.process-integrations__caption {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* --- Cena 05: otimização contínua --- */
.process-optimization {
  display: grid;
  grid-template-columns: 170px 1.4fr 1fr;
  gap: 22px;
  align-items: center;
}

.process-cycle {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.process-cycle strong {
  font: 600 13px/1.3 var(--font-display);
  color: var(--text-primary);
}

.process-cycle__ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red-500), var(--orange-400), rgba(232, 65, 44, 0.06));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: radar-spin 6s linear infinite;
}

.process-cycle i {
  position: absolute;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.process-cycle i:nth-of-type(1) { top: -4px; left: 50%; transform: translateX(-50%); }
.process-cycle i:nth-of-type(2) { right: -14px; top: 50%; transform: translateY(-50%); }
.process-cycle i:nth-of-type(3) { bottom: -4px; left: 50%; transform: translateX(-50%); }
.process-cycle i:nth-of-type(4) { left: -14px; top: 50%; transform: translateY(-50%); }

.process-chart {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.process-chart__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.process-chart__head span { font-size: 11px; color: var(--text-tertiary); }

.process-chart__head strong {
  font: 700 18px/1 var(--font-display);
  background: linear-gradient(120deg, var(--red-500), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.process-chart__plot {
  position: relative;
  height: 92px;
  overflow: hidden;
  border-radius: var(--radius-xs, 4px);
}

.process-chart__area,
.process-chart__line {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.process-chart__area {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 92' preserveAspectRatio='none'%3E%3Cpath d='M0 78 C30 74 42 62 66 58 C92 54 104 40 130 32 C154 25 174 16 200 10 L200 92 L0 92 Z' fill='rgba(232,65,44,0.16)'/%3E%3C/svg%3E");
}

.process-chart__line {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 92' preserveAspectRatio='none'%3E%3Cpath d='M0 78 C30 74 42 62 66 58 C92 54 104 40 130 32 C154 25 174 16 200 10' fill='none' stroke='%23ff7a45' stroke-width='2'/%3E%3C/svg%3E");
}

.process-improvements {
  list-style: none;
  display: grid;
  gap: 9px;
}

.process-improvements li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

.process-improvements svg { width: 14px; height: 14px; color: #2fae6a; flex: none; }

/* ============ Cases ============ */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.case {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.case:hover { background: var(--surface-card-hover); box-shadow: var(--shadow-md); }

.case__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--red-400);
  border: 1px solid rgba(232, 65, 44, 0.35);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 20px;
}

.case h3 { font-size: 24px; margin-bottom: 14px; }
.case > p { font-size: 15px; }

.case__stats {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.case__stats li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.case__stats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

.case__stats strong { color: var(--text-primary); font-weight: 600; }

/* Case clicável (leva à página do case) */
.case--link { display: block; color: inherit; }

.case--link:hover {
  border-color: rgba(232, 65, 44, 0.4);
  box-shadow: 0 0 28px rgba(232, 65, 44, 0.14), var(--shadow-md);
}

.case__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red-400);
}

.case__more svg { transition: transform var(--duration-base) var(--ease-out); }
.case--link:hover .case__more svg { transform: translateX(4px); }

/* ============ Saúde ============ */
.health { position: relative; }

.health__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.health__inner::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -160px;
  top: -160px;
  background: radial-gradient(circle, rgba(232, 65, 44, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.health__text p { margin-top: 8px; }
.health__text h2 { margin-bottom: 12px; }

.health__note { color: var(--text-primary); font-weight: 500; margin-top: 16px; }

.health__list {
  list-style: none;
  display: grid;
  gap: 14px;
  position: relative;
}

.health__list li {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: 30px;
  position: relative;
}

.health__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(232, 65, 44, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea5a3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============ FAQ ============ */
.faq { display: grid; gap: 12px; }

.faq__item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background var(--duration-base) var(--ease-out);
}

.faq__item[open] { background: var(--surface-card-hover); }

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 56px 22px 24px;
  font: 600 16px/1.4 var(--font-display);
  letter-spacing: -0.01em;
  position: relative;
  user-select: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 12px;
  height: 12px;
  translate: 0 -50%;
  background:
    linear-gradient(var(--red-400), var(--red-400)) center/12px 2px no-repeat,
    linear-gradient(var(--red-400), var(--red-400)) center/2px 12px no-repeat;
  transition: transform var(--duration-base) var(--ease-out);
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  padding: 0 24px 24px;
  font-size: 14.5px;
}

/* ============ Contato ============ */
.contact { position: relative; overflow: hidden; }

.contact__glow {
  position: absolute;
  width: 1000px;
  height: 700px;
  left: 50%;
  bottom: -350px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(232, 65, 44, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__text h2 { margin-bottom: 16px; max-width: 480px; }
.contact__text p { max-width: 440px; font-size: 16px; }

.contact__form {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.field { display: grid; gap: 8px; }

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.field input,
.field textarea {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font: 400 15px/1.5 var(--font-body);
  padding: 13px 16px;
  width: 100%;
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--gray-400); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus-ring);
}

.contact__feedback {
  font-size: 14px;
  min-height: 20px;
  text-align: center;
}

.contact__feedback.is-success { color: #2fae6a; }
.contact__feedback.is-error { color: var(--red-400); }

.contact__booking {
  position: relative;
  margin-top: 80px;
  scroll-margin-top: 96px;
}

.contact__booking-head {
  margin-bottom: 32px;
  text-align: center;
}

.contact__booking-head h3 { margin-bottom: 12px; }

.contact__booking-head p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
}

.booking-embed {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  /* Alto o bastante para a lista completa de horários e o formulário de
     confirmação do Google caberem sem scroll interno no iframe. */
  height: 1150px;
}

.booking-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* O embed do Google não tem tema escuro; a inversão + hue-rotate
     escurece o fundo mantendo os matizes originais dos botões/logo. */
  filter: invert(0.915) hue-rotate(180deg);
}

.booking-embed__fallback {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  padding: 64px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}

.footer__logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.footer__brand p { max-width: 360px; font-size: 14px; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  align-items: flex-start;
}

.footer__links a { transition: color var(--duration-base) var(--ease-out); }
.footer__links a:hover { color: var(--text-primary); }

.footer__social {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-secondary);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  transition: color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.footer__social-link--instagram:hover { color: #e1306c; box-shadow: inset 0 0 0 1px #e1306c; }
.footer__social-link--whatsapp:hover { color: #2fae6a; box-shadow: inset 0 0 0 1px #2fae6a; }

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.footer__bottom p { font-size: 13px; color: var(--text-tertiary); }

/* ============ Reveal (scroll) ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsivo ============ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .process-optimization { grid-template-columns: 150px 1fr; }
  .process-improvements { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .health__inner { grid-template-columns: 1fr; gap: 40px; padding: 48px; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    top: 76px;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 24px 16px;
    display: none;
  }

  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
  .nav__links a:last-child { border-bottom: none; }

  .nav__toggle { display: flex; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .section { padding: 72px 0; }
  .metrics__grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
  .cards-grid, .cards-grid--3 { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .case { padding: 28px; }
  .process-card { padding: 22px; }
  .process-radar { grid-template-columns: 1fr; }
  .process-radar__scope { max-width: 170px; margin-inline: auto; }
  .process-optimization { grid-template-columns: 1fr; }
  .process-cycle { max-width: 170px; margin-inline: auto; }
  .process-improvements { grid-template-columns: 1fr; }
  .health__inner { padding: 32px 24px; }
  .contact__form { padding: 28px 20px; }
  .contact__booking { margin-top: 56px; }
  .booking-embed { height: 980px; }
  .footer__inner { flex-direction: column; }
}

/* Animações sempre ativas: sem bloco prefers-reduced-motion.
   No Windows, "Efeitos de animação" desligado ativa esse media query
   e apagava o hover dos cards e as cenas do processo. */
