/* ===========================================================
   Diógenes Paulo — Automação e Estratégia
   Sistema visual próprio (sem tema padrão de biblioteca)
   =========================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/fraunces-500.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/inter-800.woff2") format("woff2");
}

:root {
  /* Paleta própria — dark mode com acento em gradiente esmeralda -> ciano. Nada de azul-padrão de template. */
  --bg: #0a0b0e;
  --bg-dim: #0e1013;
  --bg-elevated-2: #1c1f26;
  --ink: #f3f4f6;
  --ink-soft: #9ba1ac;
  --paper: #0a0b0e;
  --paper-dim: #0e1013;
  --paper-line: rgba(255,255,255,0.09);
  --card: #14161b;
  --accent-a: #34e0a1;
  --accent-b: #38bdf8;
  --accent: #34d1af;
  --accent-dark: #22c99e;
  --accent-soft: rgba(52, 209, 175, 0.14);
  --accent-warm: #f0b429;
  --green: #34e0a1;
  --green-soft: rgba(52, 224, 161, 0.14);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, 0.14);
  --gradient: linear-gradient(90deg, var(--accent-a), var(--accent-b));

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0; }
button { font-family: inherit; }
::selection { background: var(--accent-a); color: #06110d; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-paper-dim { background: var(--bg-dim); }
.bg-ink {
  background: radial-gradient(120% 160% at 20% 0%, rgba(52,224,161,0.10), transparent 55%), var(--bg-elevated-2);
  color: var(--ink);
}
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-a);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient);
}

h1.display { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.1; }
h2.display { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.18; }
.lede { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.6; }
.accent-word {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow + h1, .eyebrow + h2 { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--gradient);
  color: #06120e;
  box-shadow: 0 10px 28px -8px rgba(52, 209, 175, 0.45);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-dark {
  background: var(--bg-elevated-2);
  color: var(--ink);
  border-color: var(--paper-line);
}
.btn-dark:hover { border-color: var(--accent-a); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--paper-line);
}
.btn-ghost:hover { border-color: var(--accent-a); color: var(--accent-a); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1360px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--ink);
  white-space: nowrap;
}
.brand small {
  /* Assinatura completa fica no hero/footer; no header repetiria e apertaria o espaço da navegação. */
  display: none;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  background: var(--bg-elevated-2);
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  padding: 6px;
}
.nav-links a { padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: #06120e; background: var(--gradient); }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
/* Em telas de celular, marca + botão + menu não cabem lado a lado — o CTA some daqui e continua acessível pelo menu e pelos botões que já existem em cada seção. */
@media (max-width: 560px) {
  .header-actions .btn-sm { display: none; }
}
.header-email {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--paper-line);
  background: transparent;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (min-width: 1030px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
@media (min-width: 1280px) {
  .header-email { display: flex; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 10px 24px 24px;
  border-top: 1px solid var(--paper-line);
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--paper-line);
}
@media (min-width: 1030px) { .mobile-nav { display: none !important; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dim); color: #9096a1; padding: 64px 0 32px; border-top: 1px solid var(--paper-line); }
.site-footer .brand { color: var(--ink); }
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.footer-grid h4 { color: var(--ink); font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid a, .footer-grid li { color: #868c98; font-size: 0.95rem; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a:hover { color: var(--accent-a); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--paper-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666c78;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.card {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-hover { transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: rgba(52,209,175,0.35); }

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.icon-tile svg { width: 22px; height: 22px; }

/* ---------- Avatar (assinatura/foto com anel de destaque) ---------- */
.avatar-ring {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--card), var(--card)), var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--ink);
  flex-shrink: 0;
}

/* ---------- Project card (Portfólio) ---------- */
.project-card {
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--paper-line);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-3px); border-color: rgba(52,209,175,0.4); box-shadow: var(--shadow); }
.project-card .thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-elevated-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-card .thumb svg, .project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .tag-new {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-warm);
  color: #241a00;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 6px;
  text-transform: uppercase;
}
.project-card .body { padding: 22px 24px 26px; }
.project-card .cat { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-a); }
.project-card .title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.project-card h3 { font-size: 1.25rem; }
.project-card .arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.project-card:hover .arrow { background: var(--gradient); color: #06120e; transform: rotate(45deg); }

.check-item { display: flex; align-items: flex-start; gap: 12px; }
.check-dot {
  margin-top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-dot.good { background: var(--green-soft); color: var(--green); }
.check-dot svg { width: 13px; height: 13px; }

/* ---------- Hero visual (CSS-only, sem imagem de IA) ---------- */
.hero-panel {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #14161b 0%, #191c22 55%, #12151a 100%);
  border: 1px solid var(--paper-line);
  padding: 36px;
  color: var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(52,224,161,0.28), transparent 70%);
}
.hero-stat-row { display: flex; gap: 16px; position: relative; z-index: 1; }
.hero-stat {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 20px;
}
.hero-stat .num {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat .label { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Timeline (trajetória) ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--paper-line); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid var(--bg-dim);
  box-shadow: 0 0 0 2px var(--accent-a);
}
.timeline-date { font-family: "Fraunces", serif; font-style: italic; color: var(--accent-a); font-size: 0.95rem; }

/* ---------- Before/After ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare-col { border-radius: var(--radius); padding: 24px; }
.compare-col.before { background: var(--red-soft); }
.compare-col.after { background: var(--green-soft); }
.compare-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.compare-col.before .compare-label { color: var(--red); }
.compare-col.after .compare-label { color: var(--green); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-item:first-child { border-top: 1px solid var(--paper-line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: "Fraunces", serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq-q .plus { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--paper-line); display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.faq-item[open] .faq-q .plus { transform: rotate(45deg); background: var(--gradient); border-color: transparent; color: #06120e; }
.faq-a { padding: 0 4px 22px; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--paper-line);
  background: var(--bg-elevated-2);
  color: var(--ink);
}
.field select option { background: var(--bg-elevated-2); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--ink-soft); text-align: center; margin-top: 14px; }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; font-size: 0.92rem; margin-bottom: 18px; }
.form-status.show { display: block; }
.form-status.ok { background: var(--green-soft); color: var(--green); }
.form-status.err { background: var(--red-soft); color: var(--red); }

/* ---------- Misc ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-a);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pulse-dot { position: relative; width: 8px; height: 8px; }
.pulse-dot span { position: absolute; inset: 0; border-radius: 50%; background: var(--accent-a); }
.pulse-dot span:first-child { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }

.tool-chip {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--paper-line);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-content { max-width: 680px; }
.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
