/* =========================================================
   PontoConsult - Landing Page
   Modern, performant, SEO-friendly stylesheet
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #0b1020;
  --bg-soft: #0f1530;
  --bg-elev: #131a3a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #e7ecff;
  --text-muted: #aab3d4;
  --text-dim: #7a85ad;

  --primary: #25d366;          /* WhatsApp green */
  --primary-600: #1ebe5a;
  --primary-700: #169e4a;

  --accent: #6366f1;           /* indigo */
  --accent-2: #22d3ee;          /* cyan */

  --gradient: linear-gradient(135deg, #6366f1 0%, #22d3ee 50%, #25d366 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.18));

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);

  --container: 1180px;
  --container-narrow: 820px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.18rem; }

p { color: var(--text-muted); }

/* ---------- Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: var(--container-narrow); }

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.eyebrow--light { color: rgba(255, 255, 255, 0.85); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #6effa1;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.badge__dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
  user-select: none;
  text-align: center;
}

.btn--lg { padding: 16px 28px; font-size: 1rem; border-radius: 16px; }
.btn--xl { padding: 20px 36px; font-size: 1.1rem; border-radius: 18px; }

.btn--primary {
  background: var(--primary);
  color: #062b14;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.btn--primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 32, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header.scrolled { background: rgba(11, 16, 32, 0.92); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__text strong { font-size: 0.98rem; font-weight: 700; }
.brand__text small { font-size: 0.72rem; color: var(--text-dim); }

.nav__list {
  display: flex;
  gap: 28px;
}
.nav__list a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}
.nav__list a:hover { color: var(--text); }
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
}
.nav__list a:hover::after { width: 100%; }

.header__cta { padding: 10px 18px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-mobile {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}
.nav-mobile ul { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile a {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-mobile a:hover { background: var(--bg-card); color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 15% 20%, rgba(99, 102, 241, 0.25), transparent 60%),
    radial-gradient(700px 380px at 85% 30%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(900px 600px at 50% 100%, rgba(37, 211, 102, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at center, #000 30%, transparent 80%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero__content h1 { margin-bottom: 22px; }

.hero__subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero__subtitle strong { color: var(--text); font-weight: 600; }

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero__trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero__trust li {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.hero__trust strong {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__trust span { color: var(--text-dim); font-size: 0.85rem; }

/* Hero card */
.hero__card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}
.hero__card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.hero__card-title { font-weight: 700; font-size: 1.05rem; }
.hero__card-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-2);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero__card ol { display: flex; flex-direction: column; gap: 18px; }
.hero__card li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hero__card li > span {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: white;
}
.hero__card li strong { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.hero__card li p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ---------- Stack strip (infinite marquee) ---------- */
.stack {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}

.stack__label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.stack__marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

.stack__track {
  display: flex;
  width: max-content;
  /* Velocidade calculada via JS: --stack-duration. Fallback: 40s */
  animation: stack-marquee var(--stack-duration, 40s) linear infinite;
  will-change: transform;
}

.stack__marquee:hover .stack__track {
  animation-play-state: paused;
}

/* Estado inicial: enquanto JS não calcula, mantém estático para evitar "flash" de duplicação */
.stack__marquee:not([data-marquee-ready]) .stack__track {
  animation: none;
}

.stack__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 12px;
  margin-right: 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--transition),
              border-color var(--transition),
              background var(--transition),
              color var(--transition);
}

.stack__item:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.stack__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 7px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

@keyframes stack-marquee {
  from { transform: translateX(0); }
  /* Distância em px calculada via JS: --stack-distance. Fallback seguro: -50% */
  to   { transform: translateX(var(--stack-distance, -50%)); }
}

/* Mobile: animação um pouco mais rápida e fade mais curto */
@media (max-width: 768px) {
  .stack { padding: 44px 0; }
  .stack__track { animation-duration: 28s; }
  .stack__item {
    padding: 8px 16px 8px 10px;
    margin-right: 12px;
    font-size: 0.85rem;
  }
  .stack__icon { width: 22px; height: 22px; }
  .stack__marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  }
}

/* Acessibilidade — pausa total para quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .stack__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .stack__marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
  position: relative;
}
.section--alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section__header h2 { margin-bottom: 16px; }
.section__header p { font-size: 1.08rem; }

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--text);
}
.card__icon svg { width: 22px; height: 22px; }

.card__icon--accent {
  background: var(--gradient);
  color: white;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.3);
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.card--service .card__list {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card--service .card__list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 22px;
}
.card--service .card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.card--service-highlight {
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(34, 211, 238, 0.04));
}
.card__tag {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gradient);
  color: white;
}

/* Tag "Novo" - destaque verde para serviço recém-adicionado */
.card__tag--new {
  background: linear-gradient(135deg, #25d366 0%, #1ebe5a 100%);
  color: #062b14;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Quando há 7 cards no grid de 3 colunas, centraliza o último (que sobra sozinho).
   Só aplica em desktop — em tablet/mobile o grid muda para 2 ou 1 coluna e o
   alinhamento natural já fica equilibrado. */
@media (min-width: 1025px) {
  .grid--3:has(> :nth-child(7):last-child) > :nth-child(7) {
    grid-column: 2 / 3;
  }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__content h2 { margin-bottom: 22px; }
.about__lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 18px;
}
.about__lead strong { color: var(--text); }
.about__content p strong { color: var(--text); font-weight: 600; }
.about__content p { margin-bottom: 18px; }

.about__points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0 32px;
}
.about__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text);
}
.about__points svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

.about__photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.about__photo-frame {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
}
.about__photo-glow {
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.3), transparent 60%);
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.about__photo-initials {
  position: relative;
  z-index: 1;
  font-size: 5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.05em;
  background: rgba(11, 16, 32, 0.6);
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border-radius: calc(var(--radius-xl) - 8px);
  display: grid;
  place-items: center;
  backdrop-filter: blur(2px);
}

.about__quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 340px;
}
.about__quote strong { color: var(--text); font-style: normal; }

/* ---------- Timeline (horizontal connected steps) ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding-top: 90px;
  margin-top: 16px;
}

/* Linha horizontal iluminada conectando os nós */
.timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.05) 6%,
    rgba(99, 102, 241, 1) 12%,
    rgba(34, 211, 238, 1) 50%,
    rgba(37, 211, 102, 1) 88%,
    rgba(37, 211, 102, 0.05) 94%,
    transparent 100%
  );
  border-radius: 2px;
  box-shadow:
    0 0 8px rgba(99, 102, 241, 0.5),
    0 0 22px rgba(34, 211, 238, 0.35),
    0 0 40px rgba(34, 211, 238, 0.15);
  animation: timeline-pulse 3.6s ease-in-out infinite;
  z-index: 0;
}

/* Pulso suave para sensação "viva" */
@keyframes timeline-pulse {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(99, 102, 241, 0.45),
      0 0 22px rgba(34, 211, 238, 0.30),
      0 0 40px rgba(34, 211, 238, 0.10);
    opacity: 0.9;
  }
  50% {
    box-shadow:
      0 0 12px rgba(99, 102, 241, 0.75),
      0 0 32px rgba(34, 211, 238, 0.55),
      0 0 60px rgba(99, 102, 241, 0.25);
    opacity: 1;
  }
}

.timeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Nó circular com gradiente em cima da linha */
.timeline__node {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 5px var(--bg-soft),
    0 8px 22px rgba(99, 102, 241, 0.45),
    0 0 30px rgba(34, 211, 238, 0.25);
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Inner ring effect */
.timeline__node::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg-soft);
  z-index: 1;
}

.timeline__num {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.04em;
}

/* Conector vertical do nó até o card */
.timeline__step::before {
  content: "";
  position: absolute;
  top: -29px;
  left: 50%;
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg,
    rgba(34, 211, 238, 0.7),
    rgba(34, 211, 238, 0)
  );
  transform: translateX(-50%);
  z-index: 0;
}

/* Card do passo */
.timeline__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  text-align: center;
  width: 100%;
  transition: transform var(--transition),
              border-color var(--transition),
              background var(--transition);
}

.timeline__step:hover .timeline__card {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.timeline__step:hover .timeline__node {
  transform: translateX(-50%) scale(1.08);
  box-shadow:
    0 0 0 5px var(--bg-soft),
    0 12px 28px rgba(99, 102, 241, 0.6),
    0 0 40px rgba(34, 211, 238, 0.45);
}

.timeline__card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.timeline__card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* === Mobile: timeline vertical com linha à esquerda === */
@media (max-width: 1024px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 0;
    padding-left: 72px;
    margin-top: 0;
  }

  .timeline::before {
    top: 30px;
    bottom: 30px;
    left: 30px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(99, 102, 241, 1) 6%,
      rgba(34, 211, 238, 1) 50%,
      rgba(37, 211, 102, 1) 94%,
      transparent 100%
    );
  }

  .timeline__step {
    flex-direction: row;
    align-items: flex-start;
  }

  .timeline__node {
    top: 50%;
    left: -50px;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
  }

  .timeline__step:hover .timeline__node {
    transform: translate(-50%, -50%) scale(1.08);
  }

  .timeline__num { font-size: 0.9rem; }

  .timeline__step::before {
    display: none;
  }

  .timeline__card {
    text-align: left;
  }
}

/* Acessibilidade — sem pulso pra reduced motion */
@media (prefers-reduced-motion: reduce) {
  .timeline::before {
    animation: none;
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq details[open] { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.05); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all var(--transition);
}
.faq details[open] summary span {
  transform: rotate(45deg);
  background: var(--gradient);
  color: white;
}
.faq details p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- CTA Final ---------- */
.cta-final {
  padding: 90px 0;
  background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.2), transparent 60%);
  pointer-events: none;
}
.cta-final__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}
.cta-final h2 {
  color: white;
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.cta-final h2 .gradient-text {
  background: linear-gradient(90deg, #ffffff, #fef9c3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-final p { color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; max-width: 580px; }
.cta-final .btn--primary {
  background: white;
  color: #062b14;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.cta-final .btn--primary:hover { background: #f0fdf4; }

/* ---------- Footer ---------- */
.footer {
  background: #060912;
  padding: 72px 0 24px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__about {
  margin-top: 18px;
  font-size: 0.92rem;
  max-width: 360px;
}
.footer h4 {
  font-size: 0.92rem;
  margin-bottom: 16px;
  color: var(--text);
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom small { font-size: 0.84rem; }

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  z-index: 50;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-wa 2.4s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.65);
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.6); }
  50%      { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .hero__card { max-width: 520px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 50px; }
  .about__photo { order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .cta-final__inner { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 768px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 60px 0 70px; }
  .section { padding: 70px 0; }
  .section__header { margin-bottom: 40px; }

  .grid--3 { grid-template-columns: 1fr; }
  .about__points { grid-template-columns: 1fr; }

  .hero__trust { gap: 22px; }
  .hero__ctas .btn { flex: 1; }

  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { justify-content: center; text-align: center; }

  .whatsapp-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .brand__text small { display: none; }
  .hero__card { padding: 24px; }
  .badge { font-size: 0.78rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Focus visible ---------- */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Nav highlight ---------- */
.nav__link--highlight {
  color: var(--accent-2) !important;
  font-weight: 600;
}

/* ---------- Ponto Agenda showcase ---------- */
.pa-showcase { overflow: hidden; }

.pa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 960px) {
  .pa-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

.pa-feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.pa-feature-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pa-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
}

.pa-feature-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.pa-feature-list p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pa-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pa-stack-pills span {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-2);
}

/* Demo card */
.pa-demo-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.12);
}

.pa-demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.pa-demo-dots {
  display: flex;
  gap: 6px;
}

.pa-demo-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.pa-demo-dots span:nth-child(1) { background: #ff5f57; }
.pa-demo-dots span:nth-child(2) { background: #febc2e; }
.pa-demo-dots span:nth-child(3) { background: #28c840; }

.pa-demo-url {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-demo-body {
  padding: 32px;
}

.pa-demo-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.pa-credentials {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.pa-credential-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pa-credential-key {
  font-size: 0.78rem;
  color: var(--text-dim);
  min-width: 60px;
  font-weight: 500;
}

.pa-credential-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.pa-demo-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.pa-demo-actions .btn { justify-content: center; text-align: center; }

.pa-demo-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}
