/* ═══════════════════════════════════════════════════════════════
   PRESENÇA DIGITAL INTELIGENTE — Design System
   Paleta: Monad-inspired warm off-white + azul royal
   Tipografia: Instrument Serif (headings) + Inter (body)
═══════════════════════════════════════════════════════════════ */

:root {
  --color-bg:            #f8f3f1;
  --color-text:          #242424;
  --color-text-muted:    #737071;
  --color-text-soft:     #5a5758;
  --color-accent:        #8f6736;
  --color-accent-dark:   #171513;
  --color-accent-light:  rgba(143, 103, 54, 0.10);
  --color-gold-soft:     #b09060;
  --color-gold-light:    #d0b080;
  --color-white:         #ffffff;
  --color-surface:       rgba(255, 255, 255, 0.78);
  --color-surface-hover: rgba(255, 255, 255, 0.95);

  /* Tokens usados no SaaS panel — definidos aqui para evitar herança inesperada */
  --color-lilac-white:   #242424;
  --color-ash:           #5a5758;
  --color-fog:           #737071;
  --gradient-cosmic:     linear-gradient(90deg, #171513, #b09060);

  --border-soft:   1px solid rgba(36, 36, 36, 0.10);
  --border-medium: 1px solid rgba(36, 36, 36, 0.18);
  --border-accent: 1px solid rgba(143, 103, 54, 0.30);

  --shadow-sm:     0 2px 8px  rgba(36, 36, 36, 0.05);
  --shadow-md:     0 8px 28px rgba(36, 36, 36, 0.08);
  --shadow-lg:     0 20px 60px rgba(36, 36, 36, 0.09);
  --shadow-accent: 0 4px 18px rgba(143, 103, 54, 0.24);

  --font-heading: "Instrument Serif", "Georgia", serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --radius-btn:  100px;
  --radius-card: 16px;
  --radius-pill: 100px;
  --radius-cta:  40px;

  --container:   1280px;
  --section-gap: 84px;
}

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' stitchTiles='stitch'/></filter><rect width='300' height='300' filter='url(%23n)' opacity='1'/></svg>");
  opacity: 0.028;
  content: "";
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

h1 em {
  font-style: italic;
  color: var(--color-accent);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

p { margin-bottom: 0; }

/* ── CONTAINER ─────────────────────────────────────────────────── */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ── EYEBROW ─────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── ANNOUNCEMENT BAR ──────────────────────────────────────────── */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 40px;
  padding: 0 48px;
  background: var(--color-text);
  color: var(--color-white);
  font-size: 0.84rem;
  font-weight: 400;
  text-align: center;
  transition: transform 300ms ease, opacity 300ms ease;
}

.announcement-bar a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
  transition: opacity 180ms ease;
}

.announcement-bar a:hover { opacity: 1; }

.announcement-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: color 180ms ease;
}

.announcement-close:hover { color: var(--color-white); }

.announcement-bar.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ── HEADER ─────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: calc(40px + 16px);
  left: 50%;
  z-index: 50;
  display: flex;
  width: min(var(--container), calc(100% - 40px));
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 18px;
  border: var(--border-soft);
  border-radius: var(--radius-pill);
  background: rgba(248, 243, 241, 0.88);
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: top 300ms ease;
}

body.bar-hidden .site-header { top: 16px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

.brand-logo--official {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(13, 23, 38, 0.18);
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a { transition: color 180ms ease; }
.nav-links a:hover { color: var(--color-text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: var(--border-soft);
  border-radius: var(--radius-btn);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: var(--border-soft);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease,
              color 200ms ease, transform 180ms ease, box-shadow 200ms ease;
}

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

.btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: 0 6px 24px rgba(23, 21, 19, 0.28);
}

.btn-secondary {
  color: var(--color-text-muted);
  background: transparent;
  border-color: rgba(36, 36, 36, 0.18);
}

.btn-secondary:hover {
  color: var(--color-text);
  background: rgba(36, 36, 36, 0.04);
}

.btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.38);
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 164px 0 88px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 103, 54, 0.30), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 55vh;
}

.hero-copy { max-width: 560px; }

.hero-subtitle {
  max-width: 500px;
  margin: 0 0 32px;
  color: var(--color-text-soft);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── AI RECOMMENDATION FLOW ──────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-flow {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(148deg, #f5efe6 0%, #f7f4ef 48%, #eef3ef 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 24px 64px rgba(143, 103, 54, 0.07),
    0 4px 16px rgba(143, 103, 54, 0.04);
}

/* Organic color blobs */
.ai-flow__aura {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aura-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(54px);
  will-change: transform;
}

.aura-blob--lavender {
  width: 290px; height: 290px;
  background: radial-gradient(circle, hsla(262, 58%, 82%, 0.72) 0%, transparent 68%);
  top: 6%; left: 8%;
  animation: adrift-1 11s ease-in-out infinite alternate;
}

.aura-blob--blue {
  width: 240px; height: 240px;
  background: radial-gradient(circle, hsla(38, 45%, 72%, 0.62) 0%, transparent 68%);
  top: 36%; left: 54%;
  animation: adrift-2 14s ease-in-out infinite alternate;
}

.aura-blob--coral {
  width: 200px; height: 200px;
  background: radial-gradient(circle, hsla(12, 60%, 83%, 0.56) 0%, transparent 68%);
  top: 62%; left: 4%;
  animation: adrift-3 12s ease-in-out infinite alternate;
}

.aura-blob--mint {
  width: 220px; height: 220px;
  background: radial-gradient(circle, hsla(158, 50%, 80%, 0.55) 0%, transparent 68%);
  top: 4%; left: 62%;
  animation: adrift-4 9s ease-in-out infinite alternate;
}

@keyframes adrift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(22px, 16px) scale(1.06); }
}
@keyframes adrift-2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-18px, -20px) scale(0.94); }
}
@keyframes adrift-3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(18px, -12px) scale(1.04); }
}
@keyframes adrift-4 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-14px, 18px) scale(0.97); }
}

/* Canvas layer — lines + dots */
.ai-flow__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Zone labels */
.ai-flow__label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(36, 36, 36, 0.32);
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}

.ai-flow__label--top    { top: 14px; }
.ai-flow__label--bottom { bottom: 14px; }

/* Engine hub */
.ai-flow__engine {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.engine-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  pointer-events: none;
}

.engine-ring--1 {
  width: 62px; height: 62px;
  border-width: 1px;
  border-color: rgba(143, 103, 54, 0.24);
  animation: ering-pulse 3.6s ease-in-out infinite;
}

.engine-ring--2 {
  width: 88px; height: 88px;
  border-width: 1px;
  border-color: rgba(143, 103, 54, 0.13);
  animation: ering-pulse 3.6s ease-in-out infinite;
  animation-delay: 0.7s;
}

.engine-ring--3 {
  width: 116px; height: 116px;
  border-width: 1px;
  border-color: rgba(143, 103, 54, 0.06);
  animation: ering-pulse 3.6s ease-in-out infinite;
  animation-delay: 1.4s;
}

@keyframes ering-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%       { opacity: 1.00; transform: scale(1.04); }
}

.engine-core {
  position: relative;
  z-index: 2;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: linear-gradient(145deg, #171513 0%, #6f4b25 52%, #b09060 100%);
  box-shadow:
    0 0 0 1.5px rgba(143, 103, 54, 0.30),
    0 0 28px rgba(143, 103, 54, 0.42),
    0 0 64px rgba(143, 103, 54, 0.14);
  animation: core-breathe 4s ease-in-out infinite;
}

@keyframes core-breathe {
  0%, 100% {
    box-shadow:
      0 0 0 1.5px rgba(143,103,54,0.30),
      0 0 28px rgba(143,103,54,0.42),
      0 0 64px rgba(143,103,54,0.14);
  }
  50% {
    box-shadow:
      0 0 0 1.5px rgba(143,103,54,0.40),
      0 0 38px rgba(143,103,54,0.56),
      0 0 88px rgba(143,103,54,0.20);
  }
}

.engine-name {
  font-family: var(--font-body);
  font-size: 0.47rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
}

.engine-sub {
  font-family: var(--font-body);
  font-size: 0.45rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
}

/* Flow text items — created by flow.js */
.flow-item {
  position: absolute;
  z-index: 4;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}

.flow-item--query {
  color: rgba(36, 36, 36, 0.70);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(36, 36, 36, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: flow-rise-query 7s ease-in-out forwards;
}

.flow-item--rec {
  color: var(--color-accent);
  background: rgba(143, 103, 54, 0.07);
  border: 1px solid rgba(143, 103, 54, 0.18);
  font-weight: 600;
  animation: flow-rise-rec 7s ease-in-out forwards;
}

@keyframes flow-rise-query {
  0%   { opacity: 0; transform: translateX(-50%) translateY(0px); }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-188px); }
}

@keyframes flow-rise-rec {
  0%   { opacity: 0; transform: translateX(-50%) translateY(0px); }
  12%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-158px); }
}

@media (prefers-reduced-motion: reduce) {
  .aura-blob, .engine-ring, .engine-core { animation: none !important; }
  .flow-item { display: none; }
}

/* ── SOCIAL PROOF TICKER ─────────────────────────────────────────── */
.social-proof {
  padding: 28px 0;
  border-top: var(--border-soft);
  border-bottom: var(--border-soft);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.40);
}

.social-proof__label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ticker-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  border-right: var(--border-soft);
}

.ticker-logo {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
}

.ticker-logo--google  { background: #4285f4; opacity: 0.7; }
.ticker-logo--chatgpt { background: #10a37f; opacity: 0.7; }
.ticker-logo--gemini  { background: #8e44f0; opacity: 0.7; }
.ticker-logo--claude  { background: #d97706; opacity: 0.7; }
.ticker-logo--bing    { background: #0078d4; opacity: 0.7; }
.ticker-logo--meta    { background: #0866ff; opacity: 0.7; }

/* ── SECTIONS ────────────────────────────────────────────────────── */
.section {
  position: relative;
  padding: var(--section-gap) 0;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 48px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(36, 36, 36, 0.15), transparent);
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ── NETWORK (seção 2) ───────────────────────────────────────────── */
.audit-section { isolation: isolate; }

.network-wrapper {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: var(--border-soft);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #f0f4ff 0%, #e8eeff 100%);
  box-shadow: var(--shadow-lg);
}

.network-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
}

@media (hover: none) { .network-canvas { cursor: auto; } }

.network-tooltip {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 14px;
  border: var(--border-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
  white-space: nowrap;
}

.network-tooltip.visible { opacity: 1; }

.tt-label {
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 500;
}

.tt-status {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* ── DIAGNOSTIC GRID ─────────────────────────────────────────────── */
.diagnostic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-copy { max-width: 560px; }

.section-copy p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.lead {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.6;
}

.section-copy .btn { margin-top: 8px; }

/* ── SAAS ANIMATION PANEL ────────────────────────────────────────── */
.saas-panel {
  padding: 28px;
  border: 1px solid rgba(23, 25, 28, 0.10);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 40px rgba(23, 25, 28, 0.06);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.saas-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(23, 25, 28, 0.08);
}

.saas-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-fog);
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #f59e0b; /* amber for processing */
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.pulse-dot.done {
  background-color: #10b981; /* emerald for done */
  animation: none;
}

.saas-company {
  font-size: 1.25rem;
  color: var(--color-lilac-white);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.saas-body {
  display: grid;
  gap: 24px;
}

.saas-checks {
  display: grid;
  gap: 12px;
}

.saas-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-ash);
  opacity: 0.4;
  transform: translateX(-10px);
  transition: all 400ms ease;
}

.saas-check-item.active {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-lilac-white);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  font-size: 0.65rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.saas-check-item.active .check-icon {
  opacity: 1;
  transform: scale(1);
}

.saas-scores {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: rgba(247, 247, 248, 0.68);
  border: 1px solid rgba(23, 25, 28, 0.05);
  border-radius: 12px;
}

.score-row {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
}

.score-label {
  color: var(--color-ash);
  font-weight: 500;
}

.score-bar-bg {
  height: 6px;
  background: rgba(23, 25, 28, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-cosmic);
  border-radius: 99px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-value {
  text-align: right;
  color: var(--color-fog);
  font-variant-numeric: tabular-nums;
}

.score-value span {
  color: var(--color-lilac-white);
  font-weight: 600;
}

.saas-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 25, 28, 0.08);
  font-size: 0.9rem;
  color: var(--color-ash);
  opacity: 0;
  transform: translateY(10px);
  transition: all 500ms ease;
}

.saas-footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.saas-footer .footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  font-size: 0.75rem;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.4;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.15em;
  left: 0;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(143, 103, 54, 0.30);
  border-radius: var(--radius-btn);
  background: rgba(143, 103, 54, 0.08);
}

.check-list li::after {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 4px;
  width: 7px;
  height: 4px;
  border-bottom: 1.5px solid var(--color-accent);
  border-left: 1.5px solid var(--color-accent);
  transform: rotate(-45deg);
}

.check-list.compact {
  grid-template-columns: 1fr;
  margin-top: 20px;
}

/* ── SERVICES GRID ───────────────────────────────────────────────── */
.two-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.large-service {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 300ms ease, box-shadow 300ms ease;
}

.large-service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 103, 54, 0.4), transparent);
}

.large-service:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 103, 54, 0.20);
  box-shadow: var(--shadow-lg), 0 8px 32px rgba(143, 103, 54, 0.08);
}

.large-service.dark { background: rgba(36, 36, 36, 0.03); }

.service-tag {
  display: inline-block;
  padding: 3px 10px;
  border: var(--border-soft);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.large-service h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.large-service > p {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── PROCESS / HOW IT WORKS ──────────────────────────────────────── */
.process-compact {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 2.25fr);
  align-items: center;
  gap: 28px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(36, 36, 36, 0.12);
  scroll-margin-top: 110px;
}

.process-compact__intro h3 {
  margin: 8px 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.05;
}

.process-compact__intro > p:last-child {
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-step {
  position: relative;
  padding: 20px 18px;
  border: var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 300ms ease, box-shadow 300ms ease;
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 103, 54, 0.20);
  box-shadow: var(--shadow-md), 0 8px 28px rgba(143, 103, 54, 0.08);
}

/* Número watermark em Instrument Serif */
.process-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 400;
  color: rgba(143, 103, 54, 0.08);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.process-step h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-step p {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── PORTFOLIO (SITES DE CONVERSÃO) ────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 36px;
}

@media (max-width: 720px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.browser-mockup {
  border: var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.browser-mockup:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.browser-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #f7f7f8;
  border-bottom: var(--border-soft);
  position: relative;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }

.browser-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 4px 20px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  border: 1px solid rgba(23, 25, 28, 0.05);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.browser-body {
  /* Mantém a proporção de uma tela de desktop */
  aspect-ratio: 16 / 7;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #fdfdfd;
}

.portfolio-caption {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-top: var(--border-soft);
}

.portfolio-caption span {
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-caption h3,
.portfolio-caption p { margin: 0; }

.portfolio-caption p {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-investment {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(36, 36, 36, 0.12);
}

.service-investment span,
.service-investment small {
  color: var(--color-text-soft);
  font-size: 0.78rem;
}

.service-investment strong {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
}

.about-inline {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  max-width: 880px;
  margin: 48px auto 0;
  padding: 28px 32px;
  border: 1px solid rgba(143, 103, 54, 0.14);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(143, 103, 54, 0.06), rgba(255, 255, 255, 0.52));
  scroll-margin-top: 110px;
}

.about-inline__copy h2 {
  margin: 4px 0 8px;
}

.about-inline__copy > p:last-child {
  color: var(--color-text-soft);
  line-height: 1.6;
}

.about-logo-shell {
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(203, 161, 89, 0.3);
  border-radius: 32%;
  background: #111;
  box-shadow: var(--shadow-lg);
}

.about-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-privacy {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.field-optional {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.form-honey {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-privacy a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.iframe-scaler {
  /* Truque mágico do CSS: 300% de largura * 0.33333 de escala = 100% perfeito sem espaços em branco.
     Isso força o iframe a renderizar 3x maior (layout de PC) e encolhe exatamente para o tamanho do card. */
  width: 300%;
  height: 300%;
  transform-origin: top left;
  transform: scale(0.333333);
}

.iframe-scaler iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto; 
}

/* ── CTA FINAL ───────────────────────────────────────────────────── */
.final-cta-section { padding-bottom: 88px; }

/* Card warm gradient — estilo Monad */
.final-cta-card {
  padding: 56px 48px;
  border: var(--border-soft);
  border-radius: var(--radius-cta);
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 200, 170, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(236, 218, 152, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 80%, rgba(143, 103, 54, 0.06)  0%, transparent 60%),
    rgba(255, 255, 255, 0.60);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.final-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.final-copy h2 { max-width: 440px; }

.final-copy p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Lead form */
.lead-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 32px;
  border: var(--border-soft);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.80);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.lead-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.50;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--color-text);
  font-size: 0.84rem;
  font-weight: 500;
}

.lead-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: var(--border-soft);
  border-radius: var(--radius-btn);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.lead-form input::placeholder {
  color: rgba(36, 36, 36, 0.35);
}

.lead-form input:focus {
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(143, 103, 54, 0.10);
}

.lead-form button,
.form-message { grid-column: 1 / -1; }

.lead-form button { width: 100%; }

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.88rem;
  text-align: center;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer {
  padding: 56px 0 28px;
  border-top: var(--border-soft);
  background: rgba(255, 255, 255, 0.55);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-col { max-width: 360px; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-brand-col > p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-clock {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  align-items: flex-end;
}

.footer-links a { transition: color 180ms ease; }
.footer-links a:hover { color: var(--color-text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: var(--border-soft);
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--color-text-muted);
  transition: color 180ms ease;
}

.footer-bottom a:hover { color: var(--color-text); }

/* ── WHATSAPP NOTE + FORM ALT LABEL ────────────────────────────── */
.whatsapp-note {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.form-alt-label {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: var(--border-soft);
  padding-top: 0;
}

/* ── CURSOR GLOW ─────────────────────────────────────────────────── */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(143, 103, 54, 0.05) 0%,
    rgba(143, 103, 54, 0.02) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  opacity: 0;
  transition: opacity 600ms ease;
}

/* ── DATA FLOW ───────────────────────────────────────────────────── */
.data-flow {
  position: fixed;
  right: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(143, 103, 54, 0.08) 18%,
    rgba(143, 103, 54, 0.05) 82%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.data-flow-dot {
  position: absolute;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 6px 1px rgba(143, 103, 54, 0.50);
  animation: flow-travel var(--spd, 4s) linear var(--dly, 0s) infinite;
  opacity: 0;
}

.data-flow.scrolling .data-flow-dot {
  animation-duration: calc(var(--spd) * 0.38);
}

/* ── SCROLL REVEAL ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }

/* ── AMBIENT GLOW POR SEÇÃO ──────────────────────────────────────── */
#diagnostico {
  background-image: radial-gradient(
    ellipse 55% 45% at 85% 35%,
    rgba(143, 103, 54, 0.04) 0%,
    transparent 70%
  );
}

#servicos {
  background-image: radial-gradient(
    ellipse 50% 50% at 15% 60%,
    rgba(143, 103, 54, 0.03) 0%,
    transparent 70%
  );
}

#como-funciona {
  background-image: radial-gradient(
    ellipse 60% 50% at 75% 65%,
    rgba(143, 103, 54, 0.04) 0%,
    transparent 70%
  );
}

#faq {
  background-image: radial-gradient(
    ellipse 55% 50% at 22% 45%,
    rgba(143, 103, 54, 0.03) 0%,
    transparent 70%
  );
}

/* ── KEYFRAMES ───────────────────────────────────────────────────── */
@keyframes flow-travel {
  0%   { top: -4px;  opacity: 0; }
  6%   { opacity: 0.9; }
  88%  { opacity: 0.5; }
  100% { top: 100%;  opacity: 0; }
}

/* ── REDUCED MOTION ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── RESPONSIVO — TABLET (≤ 1020px) ─────────────────────────────── */
@media (max-width: 1020px) {

  .site-header {
    top: calc(40px + 10px);
  }

  body.bar-hidden .site-header {
    top: 10px;
  }

  .nav-links {
    position: fixed;
    top: calc(40px + 70px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: var(--border-soft);
    border-radius: var(--radius-card);
    background: rgba(248, 243, 241, 0.97);
    box-shadow: var(--shadow-lg);
    gap: 4px;
    z-index: 49;
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    transition: background 180ms ease, color 180ms ease;
  }

  .nav-links a:hover { background: rgba(36, 36, 36, 0.05); }

  .menu-toggle { display: flex; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    min-height: auto;
    text-align: left;
  }

  .hero-copy { max-width: 100%; }

  .ai-flow {
    height: 330px;
    max-width: 420px;
    margin: 0 auto;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-grid,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-flow { display: none; }

  .final-cta-card { padding: 56px 40px; }
}

/* ── RESPONSIVO — MOBILE (≤ 720px) ──────────────────────────────── */
@media (max-width: 720px) {

  :root { --section-gap: 58px; }

  .container { width: min(100%, calc(100% - 32px)); }

  .site-header {
    width: calc(100% - 20px);
    padding: 8px 8px 8px 12px;
  }

  .brand-name { font-size: 0.88rem; }

  .header-actions .btn:not(.menu-toggle) { display: none; }

  .hero { padding: 108px 0 58px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }

  .hero-copy h1,
  .hero-copy .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions { justify-content: center; }

  .hero-visual { order: -1; }

  .diagnostic-grid,
  .final-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual { order: 0; }

  h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    line-height: 1.12;
  }

  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  .announcement-bar {
    font-size: 0.78rem;
    padding: 10px 40px;
  }

  .ai-flow { height: 340px; }

  .flow-item { font-size: 0.68rem; padding: 5px 11px; }

  .ticker-item {
    padding: 0 20px;
    font-size: 0.82rem;
  }

  .two-grid,
  .process-list,
  .check-list,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .check-panel { padding: 20px; }

  .large-service { padding: 24px; }

  .process-compact {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 36px;
    padding-top: 30px;
  }

  .network-wrapper { aspect-ratio: 4 / 3; }

  .section-heading { margin-bottom: 36px; }

  .final-cta-card {
    padding: 40px 24px;
    border-radius: 24px;
  }

  .lead-form { padding: 24px 20px; }

  .about-inline {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
    margin-top: 36px;
    padding: 20px;
  }

  .about-logo-shell { max-width: 144px; }

  .footer-grid {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ── RESPONSIVO — SMALL MOBILE (≤ 400px) ────────────────────────── */
@media (max-width: 400px) {

  .btn {
    padding: 0 16px;
    font-size: 0.84rem;
  }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .ai-flow { height: 300px; }

  .ticker-item { padding: 0 14px; }
}
