/* ============================================================
   Isac Miguel · Landing Page
   Paleta: papel #F6F7FA · tinta #10141F · cobalto #2340E0
           âmbar #FFB020 · whatsapp #1EBE5D
   Tipos:  Bricolage Grotesque (títulos) · Instrument Sans (texto)
           JetBrains Mono (código/labels)
   ============================================================ */

:root {
  --paper: #f6f7fa;
  --ink: #10141f;
  --ink-soft: #4c5468;
  --cobalt: #2340e0;
  --cobalt-deep: #16289b;
  --amber: #ffb020;
  --whats: #1ebe5d;
  --whats-deep: #149c4a;
  --white: #ffffff;
  --line: #dde1ec;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 20, 31, 0.1);
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}
.container-narrow { max-width: 780px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 0.6em; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

.lead { font-size: 1.12rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cobalt);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}
.eyebrow-light { color: var(--amber); }

.hl {
  background: linear-gradient(transparent 58%, rgba(255, 176, 32, 0.55) 58%);
  border-radius: 2px;
}

.on-dark { color: var(--white); }
.section-dark p.on-dark, .final p.on-dark { color: rgba(255, 255, 255, 0.82); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.btn-whats {
  background: var(--whats);
  color: #fff;
  box-shadow: 0 8px 22px rgba(30, 190, 93, 0.35);
}
.btn-whats:hover { background: var(--whats-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(255, 176, 32, 0.3);
  margin-top: 1.2rem;
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.15rem; }

.ico-whats { width: 1.25em; height: 1.25em; fill: currentColor; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--ink);
  color: #fff;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.brand-name em {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 0.66rem;
  color: var(--ink-soft);
}
.topnav { display: flex; gap: 1.4rem; }
.topnav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.topnav a:hover { color: var(--cobalt); }

.topbar-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Hambúrguer (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile (dropdown abaixo do topbar) */
.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-menu a {
  padding: 0.9rem 5%;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--cobalt); background: rgba(35, 64, 224, 0.06); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-sub { margin-top: 1.1rem; font-size: 1.13rem; color: var(--ink-soft); }
.hero-sub strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.hero-proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Terminal (assinatura visual) */
.hero-visual { position: relative; }
.terminal {
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  background: #1a2030;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.terminal-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8b93a7;
}
.terminal-body {
  padding: 1.1rem 1.2rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.7;
  color: #c9d2e8;
  min-height: 250px;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body .tk-kw { color: #7aa2ff; }
.terminal-body .tk-str { color: #ffd479; }
.terminal-body .tk-fn { color: #6ee7a0; }
.terminal-body .tk-cm { color: #5d677f; }
.cursor { animation: blink 0.9s steps(1) infinite; color: var(--amber); }
@keyframes blink { 50% { opacity: 0; } }

/* Selo carimbo */
.seal, .risk-seal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  border: 3px dashed rgba(16, 20, 31, 0.55);
  outline: 5px solid var(--amber);
  transform: rotate(-8deg);
  font-family: var(--font-display);
  line-height: 1.15;
  box-shadow: var(--shadow);
}
.seal {
  position: absolute;
  right: -18px;
  bottom: -28px;
}
.seal-top, .seal-bottom { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; }
.seal-big { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; }
.seal-bottom { font-family: var(--font-mono); font-weight: 400; font-size: 0.56rem; margin-top: 0.2rem; }

/* ---------- Faixa de garantias ---------- */
.strip { background: var(--ink); color: var(--paper); }
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 1.2rem;
}
.strip-item { display: flex; flex-direction: column; line-height: 1.35; }
.strip-item strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--amber); }
.strip-item span { font-size: 0.85rem; color: #aeb6c9; }

/* ---------- Seções ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-dark { background: var(--cobalt-deep); }
#orcamento { background: var(--ink); }

/* ---------- Cards de serviços ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 2.2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card p strong { color: var(--ink); }
.card ul {
  list-style: none;
  margin: 0.9rem 0 1.2rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.card ul li::before { content: "→ "; color: var(--cobalt); font-weight: 700; }
.card-cta {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cobalt);
  text-decoration: none;
}
.card-cta:hover { text-decoration: underline; }

.tag, .tag-alt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  vertical-align: middle;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tag { background: rgba(35, 64, 224, 0.12); color: var(--cobalt); }
.tag-alt { background: rgba(255, 176, 32, 0.2); color: #8a5b00; }

@media (min-width: 941px) {
  .card-wide { grid-column: 1 / -1; }
}

.card-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.card-featured h3 { color: var(--amber); }
.card-featured p { color: #b9c1d4; }
.card-featured p strong { color: var(--paper); }
.card-featured ul li::before { color: var(--amber); }
.card-featured .card-cta { color: var(--amber); }
.card-flag {
  font-family: var(--font-mono);
  font-size: 0.68rem !important;
  color: var(--amber) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ---------- Formulário de orçamento inline (fundo azul) ---------- */
.orcamento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.orcamento-grid > * { min-width: 0; }
.orcamento-grid .contact-form { margin-top: 0; max-width: none; }
.section-dark .hero-proof { color: rgba(255, 255, 255, 0.82); }
.section-dark .form-field label { color: var(--white); }
.section-dark .form-hint { color: rgba(255, 255, 255, 0.65); }

/* ---------- Seção SaaS ---------- */
.saas-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.saas-grid p { margin-bottom: 1rem; }
.saas-points { display: grid; gap: 1.1rem; }
.saas-point {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  color: var(--white);
}
.saas-point p { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; margin: 0.2rem 0 0; }
.saas-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--amber);
  min-width: 2.2rem;
}

/* ---------- Processo ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  margin-top: 2.2rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }
.step:last-child .step-num { background: var(--amber); color: var(--ink); }

/* ---------- Risco zero ---------- */
.risk { background: #fff; border-block: 1px solid var(--line); }
.risk-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.risk-seal { width: 180px; height: 180px; justify-self: center; }
.risk-seal .seal-big { font-size: 1.25rem; }
.risk-list { list-style: none; margin: 1.1rem 0 1.6rem; display: grid; gap: 0.5rem; }
.risk-list li::before { content: "✔ "; color: var(--whats); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2rem; display: grid; gap: 0.8rem; }
.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1.05rem 1.3rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  color: var(--cobalt);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* ---------- CTA final ---------- */
.final {
  background:
    radial-gradient(700px 340px at 85% -10%, rgba(255, 176, 32, 0.22), transparent 60%),
    var(--cobalt-deep);
  text-align: center;
}
.final-inner { display: grid; justify-items: center; gap: 1.1rem; }
.final .btn { margin-top: 0.4rem; }
.final-phone { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink); color: #aeb6c9; }
.footer-inner { padding-block: 2rem; display: grid; gap: 0.3rem; font-size: 0.92rem; }
.footer a { color: var(--amber); text-decoration: none; }
.footer strong { color: var(--paper); }
.footer-fine { font-size: 0.78rem; margin-top: 0.8rem; color: #6b7387; }

/* ---------- WhatsApp flutuante ---------- */
.float-whats {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whats);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(30, 190, 93, 0.45);
  transition: transform 0.15s ease;
}
.float-whats:hover { transform: scale(1.07); }
.float-whats svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Animações de scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Página obrigado.html ---------- */
.thanks { padding-block: clamp(4rem, 9vw, 7rem); }
.thanks-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.thanks-seal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--whats);
  color: #fff;
  border: 3px dashed rgba(255, 255, 255, 0.55);
  outline: 5px solid var(--whats);
  font-family: var(--font-display);
  line-height: 1.15;
  box-shadow: var(--shadow);
  margin-bottom: 1.6rem;
}
.thanks-seal .seal-top, .thanks-seal .seal-bottom { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; }
.thanks-seal .seal-big { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; }
.thanks-seal .seal-bottom { font-family: var(--font-mono); font-weight: 400; font-size: 0.56rem; margin-top: 0.2rem; }
.thanks h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.7rem; }
.thanks-ctas { justify-content: center; }
.thanks-proof { justify-content: center; }

/* ---------- Formulário de contato ---------- */
.contact-form { display: grid; gap: 1.1rem; margin-top: 2.2rem; max-width: 560px; min-width: 0; }
.form-field { display: grid; gap: 0.4rem; min-width: 0; }
.form-field label { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; }
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 3px solid var(--cobalt);
  outline-offset: 1px;
  border-color: var(--cobalt);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.82rem; color: var(--ink-soft); }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}
.form-status.is-success { display: block; background: rgba(30, 190, 93, 0.12); color: var(--whats-deep); border: 1px solid rgba(30, 190, 93, 0.35); }
.form-status.is-error { display: block; background: rgba(224, 35, 35, 0.1); color: #b02222; border: 1px solid rgba(224, 35, 35, 0.3); }
.form-submit { justify-self: start; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 940px) {
  .hero-grid, .saas-grid, .risk-inner, .orcamento-grid { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .topnav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.is-open { display: flex; }
  .topbar .btn-sm { display: none; }
  .hero-visual { max-width: 560px; }
  .seal { right: 6px; bottom: -24px; }
}

@media (min-width: 941px) {
  .hamburger, .mobile-menu { display: none !important; }
}

@media (max-width: 600px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .risk-seal { width: 150px; height: 150px; }
  .btn { width: 100%; justify-content: center; }
  .btn-sm { width: auto; }
  .hero-ctas .btn { width: 100%; }
}
