/* Fontes do manual (OFL), hospedadas no próprio site */
@font-face {
  font-family: 'Syne';
  src: url('../assets/fonts/syne-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  background: var(--noite);
  color: var(--nevoa);
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

[tabindex="-1"]:focus { outline: none; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--aurora);
  color: var(--noite);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Símbolo e logotipo */
.symbol__sun { fill: var(--aurora); }
.symbol__line { fill: var(--nevoa); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: lowercase;
}
.descriptor {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: var(--texto-suave);
  line-height: 1;
}
.logotype { display: flex; flex-direction: column; gap: 6px; }

/* Botões */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--aurora);
  color: var(--noite);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 0 0 6px rgba(215, 255, 62, 0.14); }
.btn:active { transform: scale(0.97); }
.btn--small { height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn--large { height: 60px; padding: 0 36px; font-size: 1.125rem; }

/* Menu fixo */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(15, 17, 21, 0.85);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(243, 241, 236, 0.06);
  transition: transform 0.45s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav__brand .symbol { width: 30px; height: 30px; }
.nav__brand .wordmark { font-size: 1.375rem; color: var(--nevoa); }
.nav__menu { display: flex; gap: 28px; }
.nav__menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--texto-suave);
  transition: color 0.2s;
}
.nav__menu a:hover { color: var(--nevoa); }
.nav__toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav__toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--nevoa);
  transition: transform 0.3s var(--ease-out);
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 759px) {
  .nav__inner { gap: 8px; }
  .nav__menu { display: none; }
  .has-js .nav__toggle { display: block; }
  .has-js .nav.is-open .nav__menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(15, 17, 21, 0.96);
    border-bottom: 1px solid var(--linha-escura);
  }
  .nav.is-open .nav__menu a {
    padding: 14px 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--nevoa);
  }
}

/* Rodapé */
.footer { border-top: 1px solid rgba(243, 241, 236, 0.08); }
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand .symbol { width: 44px; height: 44px; }
.footer__brand .wordmark { font-size: 1.75rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 0.9375rem; color: var(--texto-suave); }
.footer__links a span { color: var(--nevoa); margin-left: 6px; }
.footer__links a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { font-size: 0.875rem; color: var(--texto-suave); }
