/* ============================================================
   Base — reset + tipografia + canvas
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--text-1);
  background: var(--bg-0);
  background-image: var(--grad-bg-hero);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }
p, li, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: var(--step-6); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
small { font-size: var(--step--1); color: var(--text-2); }
::selection { background: var(--accent-electric); color: var(--mc-black); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-7));
}

.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Page layout */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page__main { flex: 1; padding-block: clamp(var(--space-7), 8vh, var(--space-9)) var(--space-9); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  height: var(--header-h);
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(8, 8, 11, 0.92) 0%, rgba(8, 8, 11, 0.6) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-1);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); width: 100%; }
.site-header__logo { height: 26px; width: auto; opacity: 0.96; }
.site-header__badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px var(--space-3);
  border-radius: var(--r-pill);
  background: rgba(168, 150, 106, 0.08);
  border: 1px solid rgba(168, 150, 106, 0.20);
  font-size: var(--step--2); color: var(--accent-electric);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.site-header__badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-electric); box-shadow: 0 0 8px var(--accent-electric);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-1);
  padding-block: var(--space-7);
  color: var(--text-3); font-size: var(--step--1);
}
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
