/* ==========================================================================
   TOKENS — paleta e tipografia (extraídas do projeto original)
   ========================================================================== */
:root {
  --color-bg: oklch(17.764% 0 0);
  --color-bg-elevated: oklch(20.5% 0 0);
  --color-bg-elevated-2: oklch(24% 0 0);
  --color-fg: oklch(95.502% 0.00826 91.484);
  --color-fg-muted: oklch(68% 0 0);
  --color-border: oklch(54.517% 0 0 / 0.28);
  --color-border-strong: oklch(54.517% 0 0 / 0.45);

  --color-primary: oklch(56.545% 0.23852 263.871);
  --color-primary-foreground: oklch(95.502% 0.00826 91.484);
  --color-accent: oklch(92.812% 0.23036 123.978);
  --color-accent-foreground: oklch(17.764% 0 0);

  --shadow-action: 0 16px 42px -18px oklch(56.545% 0.23852 263.871 / 0.72);
  --shadow-card: 0 12px 32px -20px oklch(0% 0 0 / 0.6);

  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;

  --font-heading: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --content-width: 640px;
  --space-block: clamp(2.5rem, 6vw, 4rem);
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-heading); }

/* Focus visível para navegação por teclado */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@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;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-accent-foreground);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   LAYOUT / BLOCOS
   ========================================================================== */
main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.block {
  padding-block: var(--space-block);
  border-bottom: 1px solid var(--color-border);
}
.block:last-of-type { border-bottom: none; }

.block-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding-top: clamp(2.5rem, 8vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-bg-elevated);
  box-shadow: 0 0 0 1px var(--color-border);
  margin-bottom: 1.25rem;
}

.hero-name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-role {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--color-accent);
}

.hero-bio {
  margin-top: 1rem;
  max-width: 42ch;
  color: var(--color-fg-muted);
  font-size: 0.9375rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}
.badge-live { color: var(--color-fg); }
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(92.812% 0.23036 123.978 / 0.2);
}

.social-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  width: 100%;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  min-height: 44px;
  border-radius: var(--radius);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.social-btn:hover {
  border-color: var(--color-border-strong);
  background: var(--color-bg-elevated-2);
  transform: translateY(-1px);
}
.social-btn svg { color: var(--color-fg-muted); flex-shrink: 0; }

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.service-grid {
  display: grid;
  gap: 0.9rem;
}

.service-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  margin-bottom: 0.9rem;
}

.service-title {
  font-size: 1.0625rem;
  font-weight: 600;
}

.service-summary {
  margin-top: 0.35rem;
  color: var(--color-fg-muted);
  font-size: 0.875rem;
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.chip {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--color-bg-elevated-2);
  color: var(--color-fg-muted);
  border: 1px solid var(--color-border);
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
}
.service-cta svg { transition: transform 0.15s ease; }
.service-card:hover .service-cta svg { transform: translateX(3px); }

/* ==========================================================================
   DESTAQUES
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-accent);
}

.stat-label {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  line-height: 1.3;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-cloud li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px dashed var(--color-border-strong);
  color: var(--color-fg-muted);
}

/* ==========================================================================
   FAQ (accordion nativo via <details>)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 500;
  font-size: 0.9375rem;
  min-height: 44px;
}
.faq-item > summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-fg-muted);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--color-accent); }

.faq-answer {
  padding: 0 1.1rem 1.1rem;
  color: var(--color-fg-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final { text-align: center; }
.cta-final-text {
  color: var(--color-fg-muted);
  margin-top: 0.4rem;
}
.cta-final-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  box-shadow: var(--shadow-action);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--color-border-strong);
  color: var(--color-fg-muted);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-fg); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 2rem 1.25rem 6.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-fg-muted);
}

/* ==========================================================================
   BOTÃO FLUTUANTE (mobile-first, sticky)
   ========================================================================== */
.float-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-action);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.float-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 640px) {
  .float-cta { left: auto; width: auto; padding: 0 1.5rem; }
}

/* ==========================================================================
   MODAL DE SERVIÇO
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: oklch(0% 0 0 / 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-backdrop.is-open { opacity: 1; }
.modal-backdrop[hidden] { display: none; }

.modal {
  width: 100%;
  max-width: var(--content-width);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.75rem 1.25rem 2rem;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.25s ease;
}
.modal-backdrop.is-open .modal { transform: translateY(0); }

@media (min-width: 640px) {
  .modal-backdrop { align-items: center; padding: 1rem; }
  .modal { border-radius: var(--radius-lg); border-bottom: 1px solid var(--color-border); max-height: 85vh; }
}

.modal::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--color-border-strong);
}
@media (min-width: 640px) { .modal::before { display: none; } }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-elevated-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-fg-muted);
}
.modal-close:hover { color: var(--color-fg); }

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  margin-bottom: 1rem;
}

.modal-title { font-size: 1.375rem; font-weight: 700; }
.modal-summary { margin-top: 0.4rem; color: var(--color-fg-muted); font-size: 0.9375rem; }

.modal-section-title {
  margin-top: 1.75rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.step {
  display: flex;
  gap: 0.75rem;
}
.step-number {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
}
.step-title { font-weight: 600; font-size: 0.9375rem; }
.step-text { margin-top: 0.15rem; font-size: 0.875rem; color: var(--color-fg-muted); }

.includes-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.includes-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--color-fg);
}
.includes-list li svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--color-accent);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.75rem;
}

.modal-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (min-width: 560px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-final-actions { flex-direction: row; justify-content: center; }
  .btn { min-width: 220px; }
}
