/* ═══════════════════════════════════════
   per_formar — stylesheet global
   v1.0 · 2026
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Jost:ital,wght@0,200;0,300;0,400;0,500;1,200;1,300&family=JetBrains+Mono:wght@300;400;500&display=swap');

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

:root {
  --ink:        #0F1117;
  --ink-soft:   #363840;
  --ink-muted:  #888A94;
  --ink-faint:  #C2C4CC;
  --paper:      #F6F5F0;
  --paper-2:    #ECEAE4;
  --paper-3:    #DEDAD3;
  --white:      #FFFFFF;
  --science:    #1A5C40;
  --science-md: #2A7A56;
  --science-lt: #E5F0EA;
  --amber:      #B07C20;
  --amber-lt:   #F4EAD4;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', sans-serif;
  --mono:  'JetBrains Mono', monospace;

  --max: 1200px;
  --pad: 64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--science-md); border-radius: 2px; }

/* ── SELECTION ── */
::selection { background: var(--science-lt); color: var(--science); }

/* ── LINKS ── */
a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════
   NAVEGAÇÃO
══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--pad);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15,17,23,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.3s;
}

.nav--light {
  background: rgba(246,245,240,0.94);
  border-bottom-color: var(--paper-3);
}

.nav-logo {
  display: flex;
  align-items: baseline;
  line-height: 1;
  gap: 0;
}

.nav-logo .per {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav--light .nav-logo .per { color: var(--ink); }

.nav-logo .sep {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 300;
  color: var(--science-md);
  animation: blink 1.4s step-end infinite;
}

.nav-logo .formar {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 26px;
  color: var(--white);
  letter-spacing: -0.03em;
}

.nav--light .nav-logo .formar { color: var(--ink); }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.1} }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.nav--light .nav-links a { color: var(--ink-muted); }

.nav-links a:hover,
.nav-links a.active { color: var(--science-md); }

.nav--light .nav-links a:hover,
.nav--light .nav-links a.active { color: var(--science); }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white) !important;
  padding: 10px 22px;
  background: var(--science);
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--science-md); color: var(--white) !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: rgba(255,255,255,0.7);
  transition: 0.3s;
}

.nav--light .nav-burger span { background: var(--ink-soft); }

/* ── Mobile menu ── */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--ink);
  padding: 32px var(--pad);
  z-index: 99;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.nav-mobile a:hover { color: var(--science-md); }

/* ══════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════ */
.sh {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 64px;
}

.sh-n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--science-md);
}

.sh-t {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.sh-l {
  flex: 1;
  height: 1px;
  background: var(--paper-3);
  max-width: 180px;
}

/* ══════════════════════════════════════
   BOTÕES
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn--primary {
  background: var(--science);
  color: var(--white);
}

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

.btn--outline {
  background: transparent;
  color: var(--science);
  border: 1px solid rgba(26,92,64,0.4);
}

.btn--outline:hover {
  background: var(--science-lt);
  border-color: var(--science);
}

.btn--outline-white {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn--outline-white:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-arrow { font-size: 14px; transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--ink);
  padding: 72px var(--pad) 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 36px;
}

.footer-logo {
  display: flex;
  align-items: baseline;
}

.footer-logo .per {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 36px;
  color: var(--white);
}

.footer-logo .sep {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 300;
  color: var(--science-md);
}

.footer-logo .formar {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 36px;
  color: var(--white);
  letter-spacing: -0.03em;
}

.footer-tagline {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  margin-top: 12px;
  line-height: 1.5;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 20px;
  font-weight: 400;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--science-md); }

.footer-col .markets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col .market {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.15);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--science-md); }

/* ══════════════════════════════════════
   UTILITÁRIOS
══════════════════════════════════════ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: 100px var(--pad); }

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --pad: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --pad: 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 72px var(--pad); }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .sh { margin-bottom: 40px; }
}
