/* base.css — reset e fundamentos globais */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

section[id], [id]:target { scroll-margin-top: calc(var(--header-h) + var(--promo-h) + 18px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  min-width: 320px;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.soft-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 9999;
  width: 100%;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}
.soft-progress span {
  display: block;
  width: var(--soft-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--brand-green), #9cffb8);
  box-shadow: 0 0 18px rgba(0, 237, 100, .42);
  transition: width .42s cubic-bezier(.2, .8, .2, 1);
}
html.is-soft-loading .soft-progress { opacity: 1; }
html.is-soft-loading { cursor: progress; }
html.is-soft-swapping body {
  opacity: .72;
  transform: translateY(2px);
}
body {
  transition: opacity .16s ease, transform .16s ease;
}
.app-content,
body > main {
  animation: page-enter .28s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
::view-transition-old(root) {
  animation: soft-page-out .16s cubic-bezier(.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: soft-page-in .24s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes soft-page-out {
  to { opacity: 0; transform: translateY(-4px); filter: blur(1px); }
}
@keyframes soft-page-in {
  from { opacity: 0; transform: translateY(8px); filter: blur(1px); }
}

img, svg, video { display: block; max-width: 100%; }
img { object-fit: cover; }

a { color: inherit; text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--brand-green-dark); }

a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
  border-radius: var(--rounded-sm);
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: inherit; }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
}

h1 { font-size: 48px; line-height: 1.2; }
h2 { font-size: 36px; line-height: 1.25; }
h3 { font-size: 28px; line-height: 1.3; }
h4 { font-size: 22px; line-height: 1.35; }
h5 { font-size: 18px; line-height: 1.4; font-weight: 600; }

p { color: var(--slate); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--slate); }
.soft { color: var(--stone); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.hidden { display: none !important; }

::selection { background: var(--brand-green-soft); color: var(--ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: var(--rounded-full); }

.section { padding-block: var(--space-section-lg); }
.section-tight { padding-block: var(--space-section); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.grid { display: grid; gap: 24px; }

@media (max-width: 880px) {
  :root { --gutter: 20px; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
  .section { padding-block: var(--space-section); }
}

@media (max-width: 520px) {
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .container { padding-inline: 18px; }
}
