/* VM Software House — landing estatica
   Sem dependencias externas: fontes do sistema, nenhuma requisicao a terceiros.
   Compativel com CSP restritiva (nada inline). */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --bg-contact: #0f1720;
  --fg: #16202b;
  --fg-muted: #5b6673;
  --fg-on-dark: #eef2f6;
  --fg-on-dark-muted: #9fb0c0;
  --border: #e2e6ea;
  --accent: #1f6feb;
  --accent-hover: #1a5fd0;
  --accent-contrast: #ffffff;
  --focus: #ffb020;

  --radius: 10px;
  --measure: 68ch;
  --space: clamp(1rem, 0.6rem + 1.6vw, 1.75rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-alt: #131a22;
    --bg-contact: #05080c;
    --fg: #e6edf3;
    --fg-muted: #9aa7b4;
    --border: #232c36;
    --accent: #4d8ff5;
    --accent-hover: #6ba3ff;
    --accent-contrast: #08101a;
  }
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  margin: 0 0 2rem;
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2 * var(--space), 1100px);
  margin-inline: auto;
}

/* O cabecalho e fixo: sem esta folga os links de ancora param com o titulo
   escondido atras dele. */
[id] {
  scroll-margin-top: calc(64px + 1.5rem);
}

.narrow {
  max-width: var(--measure);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.75rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

/* Cabecalho */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-name {
  font-size: 0.98rem;
}

.nav {
  display: flex;
  gap: clamp(0.85rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
}

.nav a {
  color: var(--fg-muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--fg);
  text-decoration: underline;
}

/* Hero */

.hero {
  padding: clamp(3rem, 2rem + 6vw, 6.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem);
}

.hero h1 {
  max-width: 20ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 58ch;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-top: 1.25rem;
  margin-bottom: 0;
}

/* Botoes */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Secoes */

.section {
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.card p {
  color: var(--fg-muted);
  margin-bottom: 0;
  font-size: 0.97rem;
}

/* Passos */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.75rem;
}

.steps li {
  counter-increment: step;
  padding-top: 2.75rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 0.92rem;
}

.steps p {
  color: var(--fg-muted);
  margin-bottom: 0;
  font-size: 0.97rem;
}

/* Contato */

.section-contact {
  background: var(--bg-contact);
  color: var(--fg-on-dark);
}

.section-contact .lead {
  color: var(--fg-on-dark-muted);
}

.section-contact .btn-ghost {
  border-color: #2b3947;
  color: var(--fg-on-dark);
}

.section-contact .btn-ghost:hover {
  border-color: var(--fg-on-dark);
  color: var(--fg-on-dark);
}

/* Rodape */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.muted {
  color: var(--fg-muted);
}
