/* KRYVORA MANGÁ — Base: reset, tipografia, botões, formulários */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {               /* atmosfera: brilho vermelho suave no topo */
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(229, 32, 46, 0.14), transparent 60%),
    radial-gradient(700px 400px at -5% 110%, rgba(229, 32, 46, 0.07), transparent 60%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--red); color: #fff; }

[hidden] { display: none !important; }
.rating .ico { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.display { font-family: var(--font-display); letter-spacing: 0.02em; font-weight: 400; text-transform: uppercase; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.red { color: var(--red-hot); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

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

/* scrollbar discreta */
* { scrollbar-width: thin; scrollbar-color: #2a2a35 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2a2a35; border-radius: 8px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-weight: 600; font-size: 14px;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: rgba(255,255,255,.25); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, var(--red-hot), var(--red));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 28px -8px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { background: linear-gradient(180deg, #ff4555, var(--red-hot)); box-shadow: 0 12px 34px -8px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: transparent; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  transition: .2s var(--ease);
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Formulários ---------- */
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px;
  background: var(--bg-1); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  font: inherit; transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; padding: 12px 14px; min-height: 110px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,32,46,.15); }

/* ---------- Animações ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 var(--red-glow); } 50% { box-shadow: 0 0 0 10px transparent; } }
.reveal { animation: rise .7s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .06s; } .reveal:nth-child(3) { animation-delay: .12s; }
.reveal:nth-child(4) { animation-delay: .18s; } .reveal:nth-child(5) { animation-delay: .24s; }
.reveal:nth-child(6) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
