/* ============================================================
   PERFOSTER GROUP — style.css
   ============================================================
   1.  RESET & BASE
   2.  TYPOGRAPHY SYSTEM
   3.  LAYOUT UTILITIES & BUTTONS
   4.  NAVIGATION
   5.  HERO
   6.  MANIFESTO
   7.  ECOSSISTEMA
   8.  SOBRE (MISSÃO / VISÃO)
   9.  VALORES
   10. CTA
   11. FOOTER
   12. ANIMATIONS
   13. RESPONSIVE
   ============================================================ */


/* ============================================================
   1. RESET & BASE
   ============================================================ */

:root {
  --bg:              #0a0a0a;
  --bg-alt:          #0f0f0f;
  --card:            #1c1c1c;
  --gold:            #c9a84c;
  --gold-light:      #e2c47a;
  --gold-dark:       #9a7a32;
  --gold-a10:        rgba(201,168,76,.10);
  --gold-a15:        rgba(201,168,76,.15);
  --gold-a25:        rgba(201,168,76,.25);
  --text:            #f2f0eb;
  --text-muted:      #a09d96;
  --text-faint:      #4e4c49;
  --border:          rgba(201,168,76,.14);
  --border-strong:   rgba(201,168,76,.32);

  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'Poppins', system-ui, sans-serif;

  --max-w:  1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --ease:   cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px; /* offset para nav fixa */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* subtle noise grain */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .38;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a        { color: inherit; text-decoration: none; }
ul       { list-style: none; }
em       { font-style: italic; }
strong   { font-weight: 600; }

/* Focus visível para navegação por teclado */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ============================================================
   2. TYPOGRAPHY SYSTEM
   ============================================================ */

.section-label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.section-label span {
  font-size: 10.5px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); font-weight: 500; white-space: nowrap;
}
.section-label::after {
  content: ''; height: 1px; width: 80px; background: var(--border);
}
/* Label centralizada: linha dos dois lados */
.section-label--center {
  justify-content: center;
}
.section-label--center::before {
  content: ''; height: 1px; width: 40px; background: var(--border);
}
.section-label--center::after {
  width: 40px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px,4.2vw,52px);
  font-weight: 700; line-height: 1.12; color: var(--text);
  margin-bottom: 18px;
}
.section-title em { color: var(--gold); }

.section-desc {
  font-size: clamp(14px,1.5vw,16px); color: var(--text-muted);
  max-width: 540px; line-height: 1.82;
}
.section-header { margin-bottom: 64px; }


/* ============================================================
   3. LAYOUT UTILITIES & BUTTONS
   ============================================================ */

.container {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--gutter); position: relative; z-index: 1;
}
section { position: relative; }

/* Ghost button (gold border, fills on hover) */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px;
  font-family: var(--sans); font-size: 11.5px;
  font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: all .28s var(--ease);
}
.btn--ghost {
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
}
.btn--ghost:hover { background: var(--gold); color: var(--bg); }

.btn--gold {
  background: var(--gold); color: var(--bg); border: 1px solid var(--gold);
}
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn--text {
  color: var(--text-muted); border: none; background: transparent;
  padding-left: 0; padding-right: 0; letter-spacing: 1.5px;
}
.btn--text:hover { color: var(--gold); }


/* ============================================================
   4. NAVIGATION
   ============================================================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0;
  border-bottom: 1px solid transparent;
  transition: padding .38s var(--ease), background .38s var(--ease), border-color .38s;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(10,10,10,.94);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
  /* PNG has transparent bg — renders perfectly on dark nav */
}

/* Desktop links */
.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-link {
  font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--text-muted); font-weight: 400;
  position: relative; transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-link--cta {
  color: var(--gold); border: 1px solid var(--border-strong);
  padding: 7px 18px;
}
.nav-link--cta:hover { background: var(--gold-a10); color: var(--gold); }
.nav-link--cta::after { display: none; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  position: relative; z-index: 1001;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px; background: var(--text);
  transition: all .3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ============================================================
   5. HERO
   ============================================================ */

.hero {
  min-height: 100vh;       /* fallback Safari antigo */
  min-height: 100svh;      /* exclui barra de endereço mobile */
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px; overflow: hidden;
}

/* Background grid + glow */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(201,168,76,.07) 0%, transparent 68%);
}

.hero-content {
  text-align: center; max-width: 880px; margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative; z-index: 1;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
}
.hero-eyebrow span {
  font-size: 10px; letter-spacing: 4.5px; text-transform: uppercase;
  color: var(--text-faint); font-weight: 400;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 36px; height: 1px; background: var(--border-strong);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(44px, 7.5vw, 96px);
  font-weight: 700; line-height: 1.06; letter-spacing: -.5px;
  color: var(--text); margin-bottom: 30px;
}
.hero-title em { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(14.5px, 1.7vw, 17.5px); color: var(--text-muted);
  max-width: 600px; margin: 0 auto 48px; line-height: 1.85;
}
.hero-subtitle strong { color: var(--text); font-weight: 400; }

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap; margin-bottom: 72px;
}

.hero-stats {
  display: inline-flex; align-items: center; gap: 44px; flex-wrap: wrap;
  padding: 28px 44px;
  border: 1px solid var(--border);
  background: rgba(28,28,28,.45);
  backdrop-filter: blur(8px);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.stat-value {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-faint); font-weight: 400;
}
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-faint); font-size: 9px; letter-spacing: 3.5px;
  text-transform: uppercase; animation: scrollPulse 2.2s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--gold); }
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
@keyframes scrollPulse {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(9px); }
}


/* ============================================================
   6. MANIFESTO
   ============================================================ */

.manifesto {
  padding: 128px 0;
  background: var(--bg-alt);
}
.manifesto::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 15%, var(--gold) 40%,
                               var(--gold-light) 60%, var(--gold) 80%, transparent 100%);
}
.manifesto::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--border);
}

.manifesto > .container { max-width: 820px; }

.manifesto-label { margin-bottom: 0; }

.manifesto-kicker {
  font-family: var(--serif); font-size: clamp(40px,6vw,72px);
  font-weight: 700; font-style: italic; line-height: 1;
  color: var(--text); opacity: .08; margin-bottom: 60px;
  display: block;
}

.manifesto-text {
  display: flex; flex-direction: column; gap: 26px;
}
.manifesto-text p {
  font-family: var(--serif);
  font-size: clamp(15.5px,1.9vw,19.5px);
  line-height: 1.92; color: var(--text);
}
.manifesto-text strong { color: var(--gold); font-weight: 700; }

.manifesto-closing {
  margin-top: 56px; padding-top: 36px;
  border-top: 1px solid var(--border);
  text-align: right;
}
.manifesto-sign {
  font-family: var(--serif); font-size: 19px;
  color: var(--gold); font-style: italic;
}
.manifesto-sign-sub {
  font-size: 10px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--text-muted); margin-top: 8px;
}


/* ============================================================
   7. ECOSSISTEMA
   ============================================================ */

.ecosystem { padding: 128px 0; }

.ecosystem-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}

.eco-card {
  background: var(--bg);
  padding: 48px 40px;
  display: flex; flex-direction: column; gap: 18px;
  transition: background .35s var(--ease);
  position: relative; overflow: hidden;
}
.eco-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease);
}
.eco-card:hover, .eco-card--featured { background: var(--card); }
.eco-card:hover::before, .eco-card--featured::before { transform: scaleX(1); }

.eco-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
}
.eco-icon { width: 44px; height: 44px; color: var(--gold); }
.eco-icon svg { width: 100%; height: 100%; }

.eco-tag {
  font-size: 9.5px; letter-spacing: 3px; font-weight: 600;
  color: var(--gold); border: 1px solid var(--border-strong); padding: 4px 9px;
  text-transform: uppercase;
}

.eco-title {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  color: var(--text); line-height: 1.2;
}
.eco-title em { color: var(--gold); }

.eco-desc {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.82; flex: 1;
}

.eco-features {
  display: flex; flex-direction: column; gap: 9px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.eco-features li {
  font-size: 12px; color: var(--text-muted);
  padding-left: 16px; position: relative; line-height: 1.5;
}
.eco-features li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--gold); font-size: 10px; line-height: 1.6;
}

.eco-link {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 8px;
  margin-top: auto; transition: gap .28s var(--ease);
}
.eco-link:hover { gap: 16px; }


/* ============================================================
   8. SOBRE (MISSÃO / VISÃO)
   ============================================================ */

.sobre {
  padding: 128px 0; background: var(--bg-alt);
}
.sobre::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--border);
}

.sobre-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}

.sobre-col .section-label { margin-bottom: 16px; }

.sobre-title {
  font-family: var(--serif);
  font-size: clamp(22px,3vw,34px);
  font-weight: 700; line-height: 1.18; margin-bottom: 28px;
}
.sobre-title em { color: var(--gold); }

.sobre-quote {
  font-family: var(--serif);
  font-size: clamp(14.5px,1.6vw,17.5px);
  line-height: 1.82; color: var(--text); font-style: italic;
  border-left: 3px solid var(--gold); padding-left: 22px; margin-bottom: 18px;
}
.sobre-text { font-size: 13.5px; color: var(--text-muted); line-height: 1.85; }
.sobre-text strong { color: var(--text); font-weight: 500; }


/* ============================================================
   9. FUNDADORES
   ============================================================ */

.fundadores {
  padding: 128px 0;
  background: var(--bg);
  /* border-top: a .sobre::after já provê a separação superior */
  border-bottom: 1px solid var(--border);
}

.fundadores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.fundadores-photo {
  position: relative;
}
.fundadores-photo::before {
  content: '';
  position: absolute;
  /* borda decorativa que fica 14px acima e à esquerda da foto,
     14px recuada à direita e abaixo — ouro visível no canto superior-esquerdo */
  inset: -14px 14px 14px -14px;
  border: 1px solid var(--border-strong);
  z-index: 0;
  pointer-events: none;
}
.fundadores-photo img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(8%) contrast(1.04);
}

.fundadores-content { }

.fundadores-intro {
  font-size: clamp(14px,1.5vw,15.5px);
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 48px;
}

.founders-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.founder-item { display: flex; flex-direction: column; }

.founder-card {
  /* button reset */
  -webkit-appearance: none; appearance: none;
  border: none; font-family: inherit; font-size: inherit; color: inherit;
  text-align: left; width: 100%;
  /* visual */
  background: var(--bg); padding: 28px 32px;
  display: flex; align-items: center; gap: 20px;
  cursor: pointer; transition: background .3s var(--ease);
}
.founder-card:hover,
.founder-card[aria-expanded="true"] { background: var(--card); }

/* Toggle icon (+  →  ×) */
.founder-toggle {
  margin-left: auto; flex-shrink: 0; line-height: 0;
  color: var(--gold); opacity: .45;
  transition: transform .38s var(--ease), opacity .25s;
}
.founder-card:hover .founder-toggle,
.founder-card[aria-expanded="true"] .founder-toggle { opacity: 1; }
.founder-card[aria-expanded="true"] .founder-toggle { transform: rotate(45deg); }

/* Bio accordion — grid trick for smooth height animation */
.founder-bio {
  display: grid; grid-template-rows: 0fr;
  background: var(--bg-alt);
  transition: grid-template-rows .46s cubic-bezier(.4,0,.2,1);
}
.founder-bio.is-open { grid-template-rows: 1fr; }

.founder-bio-inner { overflow: hidden; }

.founder-bio-body {
  padding: 24px 32px 32px;
  opacity: 0;
  transition: opacity .26s ease;
}
.founder-bio.is-open .founder-bio-body {
  opacity: 1;
  transition: opacity .32s ease .2s;
}

/* Credential tags */
.founder-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.founder-tag {
  font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--border-strong);
  padding: 4px 10px; font-weight: 500;
}

/* Bio text */
.founder-bio-body > p {
  font-size: 13px; color: var(--text-muted); line-height: 1.88; margin-bottom: 13px;
}
.founder-bio-body > p:last-child { margin-bottom: 0; }
.founder-bio-body strong { color: var(--text); font-weight: 500; }

/* Closing signature */
.founder-bio-sign {
  font-family: var(--serif); font-style: italic;
  color: var(--gold); font-size: 13.5px;
  padding-top: 16px; margin-top: 4px;
  border-top: 1px solid var(--border);
}

.founder-index {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  opacity: .35;
  line-height: 1;
  min-width: 28px;
}
.founder-info { display: flex; flex-direction: column; gap: 4px; }
.founder-name {
  font-family: var(--serif);
  font-size: clamp(17px,1.8vw,20px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.founder-role {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* .fundadores border-bottom já separa de Valores — sem borda extra aqui */

/* ============================================================
   10. VALORES (antigo 9)
   ============================================================ */

.valores { padding: 128px 0; }

.valores-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}

.valor-card {
  background: var(--bg); padding: 48px 44px;
  transition: background .3s var(--ease);
  position: relative; overflow: hidden;
}
.valor-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--gold-a15);
}
.valor-card:hover { background: var(--card); }

.valor-num {
  font-size: 10.5px; letter-spacing: 3.5px; color: var(--gold);
  font-weight: 500; margin-bottom: 14px;
}
.valor-title {
  font-family: var(--serif);
  font-size: clamp(17px,2vw,22px);
  font-weight: 700; color: var(--text); margin-bottom: 14px; line-height: 1.28;
}
.valor-desc {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.88;
}


/* ============================================================
   10. CTA
   ============================================================ */

.cta-section {
  padding: 128px 0; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(201,168,76,.06) 0%, transparent 68%);
}

.cta-inner {
  max-width: 680px; margin: 0 auto; text-align: center;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(30px,5.5vw,64px);
  font-weight: 700; line-height: 1.13; margin-bottom: 22px;
}
.cta-title em { color: var(--gold); }

.cta-desc {
  font-size: 15.5px; color: var(--text-muted); line-height: 1.82;
  margin-bottom: 48px; max-width: 480px; margin-left: auto; margin-right: auto;
}
.cta-actions {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.cta-email {
  font-size: 12px; color: var(--text-faint); letter-spacing: .5px;
}
.cta-email a { color: var(--gold); border-bottom: 1px solid var(--gold-a25); }
.cta-email a:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* Contact form */
.contact-form {
  width: 100%; text-align: left;
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 8px;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.form-group {
  display: flex; flex-direction: column; gap: 7px;
}

.form-label {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}

.form-input {
  background: rgba(28,28,28,.7);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans); font-size: 13.5px; font-weight: 300;
  padding: 13px 16px;
  outline: none; width: 100%;
  transition: border-color .22s var(--ease), background .22s var(--ease);
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus {
  border-color: var(--gold-dark);
  background: rgba(28,28,28,1);
}

.form-textarea { resize: vertical; min-height: 110px; }

.form-submit {
  align-self: flex-start; min-width: 210px;
  justify-content: center; cursor: pointer;
}
.form-submit:disabled { opacity: .5; cursor: not-allowed; }

.form-feedback {
  font-size: 13px; line-height: 1.6; min-height: 18px;
  color: var(--text-faint);
}
.form-feedback--success { color: #7fcf8e; }
.form-feedback--error   { color: #e07a7a; }

/* Divider entre formulário e WhatsApp */
.cta-divider {
  display: flex; align-items: center; gap: 18px;
  margin: 8px 0 4px;
}
.cta-divider::before, .cta-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.cta-divider span {
  font-size: 9.5px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-faint); white-space: nowrap;
}


/* ============================================================
   11. FOOTER
   ============================================================ */

.footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-top {
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px;
  padding-bottom: 60px; border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.footer-logo { margin-bottom: 14px; }
.footer-logo-img {
  height: 24px;
  width: auto;
  display: block;
  opacity: .88;
}

.footer-tagline {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.7;
}

.footer-nav {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 36px;
}
.footer-nav-col h4 {
  font-size: 10px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-weight: 500;
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a {
  font-size: 12.5px; color: var(--text-muted); transition: color .2s;
  line-height: 1.5;
}
.footer-nav-col a:hover { color: var(--text); }

.footer-legal {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.footer-legal-info p {
  font-size: 11.5px; color: var(--text-faint); line-height: 1.9;
}
.footer-legal-info strong { color: var(--text-muted); font-weight: 500; }

.footer-bottom {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-faint);
}
.footer-bottom a {
  color: var(--text-muted); transition: color .2s;
  border-bottom: 1px solid var(--border);
}
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom-sep { color: var(--border-strong); }


/* ============================================================
   12. ANIMATIONS
   ============================================================ */

/* Hero elements — auto-play on load */
.animate-up {
  opacity: 0; transform: translateY(28px);
  animation: fadeUp .88s var(--ease) both;
}
.anim-d1 { animation-delay: .12s; }
.anim-d2 { animation-delay: .26s; }
.anim-d3 { animation-delay: .40s; }
.anim-d4 { animation-delay: .56s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered */
.reveal {
  opacity: 0; transform: translateY(38px);
  transition: opacity .78s var(--ease), transform .78s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   13. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .ecosystem-grid { grid-template-columns: 1fr; }
  .sobre-grid { grid-template-columns: 1fr; gap: 64px; }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .fundadores-grid { grid-template-columns: 1fr; gap: 56px; }
  .fundadores-photo img { height: 420px; object-position: center 15%; }
  .fundadores-photo::before { display: none; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .hero    { padding: 96px 0 72px; }
  .manifesto,
  .ecosystem,
  .sobre,
  .valores,
  .cta-section { padding: 88px 0; }

  /* Mobile nav overlay */
  .nav-links {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(10,10,10,.97);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 28px;
  }
  .nav-links.is-open { display: flex; }
  .nav-link { font-size: 13.5px; }
  .nav-link--cta { padding: 10px 26px; }
  .nav-toggle { display: flex; }

  .hero-stats { gap: 24px; padding: 24px 28px; }
  .stat-divider { display: none; }

  .valores-grid  { grid-template-columns: 1fr; }
  .fundadores    { padding: 88px 0; }
  .footer-nav    { grid-template-columns: 1fr 1fr; }
  .footer-legal  { flex-direction: column; }
  .eco-card      { padding: 36px 28px; }
  .valor-card    { padding: 40px 32px; }
  .hero-scroll   { display: none; }

  .manifesto-kicker { display: none; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .form-submit { align-self: stretch; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-stats { flex-direction: column; gap: 20px; justify-content: center; }
  .footer-nav { grid-template-columns: 1fr; }
  .sobre-quote { font-size: 14px; }
}


/* ============================================================
   14. PETRA — WIDGET DE IA
   ============================================================ */

#petra-widget {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
}

/* Botão flutuante */
.petra-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 28px rgba(201,168,76,.38);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s;
  position: relative; margin-left: auto;
}
.petra-btn:hover {
  background: var(--gold-light);
  transform: scale(1.07);
  box-shadow: 0 6px 36px rgba(201,168,76,.5);
}
.petra-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* Ícones do botão */
.petra-icon { color: var(--bg); position: absolute; transition: opacity .22s, transform .22s; }
.petra-icon--chat  { opacity: 1; transform: scale(1) rotate(0); }
.petra-icon--close { opacity: 0; transform: scale(.5) rotate(-45deg); }
.petra-btn--open .petra-icon--chat  { opacity: 0; transform: scale(.5) rotate(45deg); }
.petra-btn--open .petra-icon--close { opacity: 1; transform: scale(1) rotate(0); }

/* Janela de chat */
.petra-window {
  position: absolute; bottom: calc(100% + 14px); right: 0;
  width: 360px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  display: flex; flex-direction: column;
  transform-origin: bottom right;
  transform: scale(.9) translateY(16px);
  opacity: 0; pointer-events: none;
  transition: transform .32s var(--ease), opacity .32s var(--ease);
  overflow: hidden;
}
.petra-window--open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

/* Cabeçalho */
.petra-header {
  padding: 14px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.petra-header-left { display: flex; align-items: center; gap: 12px; }

/* Avatar */
.petra-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: var(--bg);
  font-family: var(--serif); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.petra-av--sm { width: 26px; height: 26px; font-size: 11px; }

.petra-hname {
  font-family: var(--serif); font-size: 15px;
  font-weight: 700; color: var(--text); line-height: 1.2;
}
.petra-hstatus {
  font-size: 10.5px; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
}

/* Dot online */
.petra-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4caf7d;
  box-shadow: 0 0 6px rgba(76,175,125,.5);
  animation: petraPulse 2.4s ease-in-out infinite;
}
@keyframes petraPulse { 0%,100%{opacity:1} 50%{opacity:.45} }

/* Área de mensagens */
.petra-msgs {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 260px; max-height: 320px;
  scroll-behavior: smooth;
}
.petra-msgs::-webkit-scrollbar { width: 3px; }
.petra-msgs::-webkit-scrollbar-track { background: transparent; }
.petra-msgs::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

/* Linhas de mensagem */
.petra-row { display: flex; align-items: flex-end; gap: 8px; max-width: 90%; }
.petra-row--user      { align-self: flex-end; flex-direction: row-reverse; }
.petra-row--assistant { align-self: flex-start; }

/* Balões */
.petra-bubble {
  padding: 10px 13px;
  font-size: 13px; line-height: 1.68; color: var(--text);
}
.petra-row--assistant .petra-bubble {
  background: var(--card);
  border-left: 2px solid var(--gold-dark);
}
.petra-row--user .petra-bubble {
  background: var(--gold); color: var(--bg);
}

/* Indicador de digitação */
.petra-typing {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 12px 15px;
  background: var(--card);
  border-left: 2px solid var(--gold-dark);
}
.petra-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); opacity: .4;
  animation: petraDot 1.2s ease-in-out infinite;
}
.petra-typing span:nth-child(2) { animation-delay: .18s; }
.petra-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes petraDot { 0%,100%{transform:translateY(0);opacity:.4} 50%{transform:translateY(-5px);opacity:1} }

/* Input */
.petra-form {
  display: flex; align-items: center;
  border-top: 1px solid var(--border);
  padding: 11px 14px;
  flex-shrink: 0; background: var(--bg-alt);
}
.petra-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--sans); font-size: 13px; font-weight: 300;
  color: var(--text); padding: 5px 0;
  caret-color: var(--gold);
}
.petra-input::placeholder { color: var(--text-faint); }

.petra-send {
  background: none; border: none; cursor: pointer;
  color: var(--gold); padding: 4px 6px;
  display: flex; align-items: center;
  opacity: .65; transition: opacity .2s, transform .18s;
  flex-shrink: 0;
}
.petra-send:hover { opacity: 1; transform: translateX(2px); }

/* Mobile */
@media (max-width: 480px) {
  #petra-widget { bottom: 18px; right: 16px; }
  .petra-window { width: calc(100vw - 32px); }
  .petra-msgs   { max-height: 42vh; }
}
