/* ==========================================================================
   Signature Code — estilos
   Paleta: fundo quase preto, texto claro e verde-menta (#00FFB8) como destaque.
   Para trocar a cor de destaque, altere --accent (e --accent-rgb).
   ========================================================================== */

:root {
  --bg: #0B0C0F;
  --bg-alt: #101217;
  --surface: #14161C;
  --surface-2: #1A1D24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --grid: rgba(255, 255, 255, 0.045);

  --text: #F2F3F5;
  --muted: #9BA1AD;
  --faint: #7D8391;

  --accent: #00FFB8;
  --accent-rgb: 0, 255, 184;
  --accent-hover: #5CFFD0;
  --accent-ink: #0B0C0F;
  --accent-soft: rgba(var(--accent-rgb), 0.12);

  --code-string: #9FE1FF;

  --radius: 16px;
  --container: 1160px;
  --header-h: 72px;

  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

section[id] { scroll-margin-top: var(--header-h); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

/* Botões ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.04); }

.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* Cabeçalho ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 15, 0.75);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { flex: none; }
.brand img { height: 26px; width: auto; }

.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.15s;
}
.nav a:hover { color: var(--text); }

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -260px;
  top: -60px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
h1 .hl { color: var(--accent); }

.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
}

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

.hero-points {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--muted);
}
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Janela de código */
.code-window {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: #2B2F38; }
.code-file {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
}
.code-window pre {
  margin: 0;
  padding: 24px 24px 28px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: #D6D9DF;
}
.c-com { color: var(--faint); }
.c-key { color: var(--accent); }
.c-str { color: var(--code-string); }
.c-fn  { color: #FFFFFF; font-weight: 500; }
.c-ok  { color: var(--accent); }

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.2em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Seções ---------------------------------------------------------------- */

.section { padding: 112px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-head p:not(.section-tag) { color: var(--muted); font-size: 18px; }

h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 10px; }

/* Serviços */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: rgba(var(--accent-rgb), 0.35); transform: translateY(-3px); }
.card p { color: var(--muted); font-size: 15.5px; }

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-icon svg,
.feature-check svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon svg { width: 24px; height: 24px; }

/* Processo */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--border-strong);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.step-num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.step p { color: var(--muted); font-size: 15.5px; }

/* Sobre */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.split-text p:not(.section-tag) { color: var(--muted); font-size: 18px; margin-bottom: 18px; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.feature {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature h3 { font-size: 18px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature-check {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-check svg { width: 16px; height: 16px; stroke-width: 2.25; }

/* Tecnologias */
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* Contato */
.cta {
  position: relative;
  overflow: hidden;
  padding: 88px 48px;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    var(--surface);
}
.cta h2 { margin-bottom: 16px; }
.cta > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 18px;
}
.cta-email {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}
.cta-email:hover { color: var(--text); }

/* Rodapé ---------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-top .brand img { height: 24px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-nav a { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  font-size: 13.5px;
  color: var(--faint);
}

/* Animação de entrada (só com JS ativo) ---------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
  .btn, .card { transition: none; }
}

/* Responsivo ------------------------------------------------------------ */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .brand img { height: 22px; }
  .eyebrow { font-size: 12px; letter-spacing: 0; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .code-window pre { padding: 20px 18px 22px; font-size: 12.5px; }
  .cta { padding: 56px 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
