/* depthcode — design tokens (see README.md) */
:root {
  --bg: #0a0a0a;
  --bg-alt: #0d0d0e;
  --bg-card: #111113;
  --text: #f2f2f3;
  --text-muted: #a3a3a6;
  --text-faint: #7a7a7d;
  --text-faint-2: #5c5c60;
  --accent: #0077ff;
  --accent-light: #3b9dff;
  --accent-hover: #6cbaff;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --font-display: "Michroma", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

[id] {
  scroll-margin-top: 80px;
}

a {
  color: var(--accent-light);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
}

button {
  font-family: inherit;
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.blink-cursor {
  color: var(--accent);
  animation: blink 1.2s step-end infinite;
}

/* fade overlay for in-page navigation */
#page-fade-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* scroll-reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-reveal-delay="1"] {
  transition-delay: 0.1s;
}
[data-reveal][data-reveal-delay="2"] {
  transition-delay: 0.15s;
}

.container {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-link:hover {
  color: var(--accent-hover);
}

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 119, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn-pill {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: min(10vw, 90px) clamp(20px, 5vw, 64px);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
  font-weight: 400;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 0 36px;
  line-height: 1.6;
}

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

.terminal-card {
  background: #0f0f10;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 119, 255, 0.12);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-left: 8px;
}

.terminal-body {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #c7c7c9;
  padding: 20px 24px;
}

.terminal-line {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.terminal-line-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.terminal-prompt { color: var(--accent); }
.terminal-num { color: var(--text-faint-2); }
.terminal-title { color: var(--text); }

.terminal-desc {
  color: var(--text-faint);
  padding-left: 28px;
  margin-top: 4px;
}

.terminal-status {
  padding-top: 14px;
  color: var(--accent);
}

/* ---------- Section header ---------- */
.section-header {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  font-weight: 400;
  margin: 0 0 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

/* ---------- Serviços ---------- */
.section-servicos {
  padding: 100px clamp(20px, 5vw, 64px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
  text-align: left;
  color: inherit;
  width: 100%;
}
.service-card:hover {
  border-color: rgba(0, 119, 255, 0.5);
  transform: translateY(-3px);
}

.service-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
}

.service-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}

.service-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.service-price {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.service-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-light);
}

/* ---------- Processo ---------- */
.section-processo {
  padding: 100px clamp(20px, 5vw, 64px);
  background: linear-gradient(to bottom, var(--bg), var(--bg-alt) 160px, var(--bg-alt) 100%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.process-item {
  position: relative;
  padding: 24px 0 0;
  border-top: 2px solid rgba(0, 119, 255, 0.4);
}

.process-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 12px;
}

.process-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.process-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Contato / CTA ---------- */
/* ---------- FAQ ---------- */
.section-faq {
  padding: 100px clamp(20px, 5vw, 64px);
  background: var(--bg-alt);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.25s ease;
}

.faq-item[open],
.faq-item:hover {
  border-color: rgba(0, 119, 255, 0.5);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  list-style: none;
}

/* Remove o triângulo nativo do <summary> */
.faq-q::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.25s ease;
}

.faq-icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

.faq-item[open] .faq-icon::after {
  transform: scaleY(0);
}

.faq-a {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: justify;
  /* Hifenização evita os "rios" de espaço que o justificado abre em PT-BR;
     depende do lang="pt-BR" declarado no <html>. */
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}

/* Em telas estreitas a medida fica curta demais para justificar sem
   buracos — volta para alinhado à esquerda. */
@media (max-width: 600px) {
  .faq-a {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-icon::before,
  .faq-icon::after {
    transition: none;
  }
}

/* ---------- Depoimentos ---------- */
.section-depoimentos {
  padding: 0 clamp(20px, 5vw, 64px) 100px;
  background: var(--bg-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.testimonial-card:hover {
  border-color: rgba(0, 119, 255, 0.5);
  transform: translateY(-3px);
}

.testimonial-quote {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  /* Empurra o texto para baixo quando as citações têm alturas diferentes,
     mantendo a assinatura alinhada entre os cards. */
  flex-grow: 1;
}

.testimonial-quote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 119, 255, 0.12);
  border: 1px solid rgba(0, 119, 255, 0.35);
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
}

.testimonial-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.testimonial-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card {
    transition: none;
  }
}

.section-contato {
  padding: 100px clamp(20px, 5vw, 64px);
  background: linear-gradient(to bottom, var(--bg-alt), var(--bg) 160px, var(--bg) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contato-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50vw;
  max-width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.3), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.contato-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.contato-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  font-weight: 400;
  margin: 0 0 16px;
}

.contato-content > p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 36px;
}

.contato-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 44px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-size: 13px;
  min-height: 18px;
}
.form-status.success { color: #28c840; }
.form-status.error { color: #ff5f57; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-wordmark {
  font-family: var(--font-display);
  color: #fff;
  font-size: 14px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--accent);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 5, 6, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.hidden {
  display: none;
}

.modal-panel {
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 36px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  margin: 0 0 28px;
  line-height: 1.4;
}

.modal-steps {
  display: flex;
  flex-direction: column;
}

.modal-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}

.modal-step-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  min-width: 24px;
}

.modal-step-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.modal-step-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.modal-cta {
  display: block;
  text-align: center;
  margin-top: 28px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open {
    /* Folga para os 4 itens do menu; é o alvo da transição, não a altura real. */
    max-height: 320px;
  }
  .nav-links .nav-link {
    width: 100%;
    padding: 14px clamp(20px, 5vw, 64px);
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .contato-actions .btn,
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}
