:root {
  --navy-dark:   #0c184a;
  --navy-deep:   #1a2451;
  --navy-mid:    #111c3e;
  --gold:        #ffbd41;
  --gold-dim:    rgba(255, 189, 65, 0.18);
  --gold-line:   rgba(255, 189, 65, 0.55);
  --gray-light:  #dadce3;
  --white:       #ffffff;
  --text-muted:  rgba(218, 220, 227, 0.65);
  --text-body:   rgba(218, 220, 227, 0.88);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--navy-dark);
  color: var(--gray-light);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

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

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, .logo-name {
  font-family: 'Forum', serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── GOLD LINE ─── */
.gold-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  margin: 0 auto;
}
.gold-rule-short {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 5vw;
  background: linear-gradient(to bottom, rgba(12,24,74,0.97) 0%, rgba(12,24,74,0) 100%);
  transition: background 0.4s ease, padding 0.4s ease;
}
nav.scrolled {
  background: rgba(10, 18, 58, 0.97);
  backdrop-filter: blur(12px);
  padding: 1rem 5vw;
  border-bottom: 1px solid rgba(255,189,65,0.12);
}

.nav-logo,
.footer-logo {
  /* Espaço real título↔faixa = faixa↔sub: flex gap mede caixas de linha (falsamente maior em cima). */
  --logo-space: 4px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-decoration: none;
  text-align: center;
  line-height: 1;
  color: inherit;
}

/* Título + faixa: largura = título */
.logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: max-content;
  max-width: 100%;
  line-height: 1;
}

/* Logo: Forum em ambas as linhas (identidade — não usar Inter no lockup) */
.nav-logo .logo-name,
.nav-logo .logo-sub,
.footer-logo .logo-name,
.footer-logo .logo-sub {
  font-family: 'Forum', serif;
  font-weight: 400;
  font-style: normal;
}

.nav-logo .logo-name,
.footer-logo .logo-name {
  display: block;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  /* espaço até à faixa (par igual ao de baixo, após compensação na .logo-rule) */
  margin-bottom: var(--logo-space);
}
.nav-logo .logo-sub,
.footer-logo .logo-sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  line-height: 1.15;
  margin: 0;
  padding: 0;
  margin-top: var(--logo-space);
}
/* span inline não respeita altura — sem isto a faixa some */
.nav-logo .logo-rule,
.footer-logo .logo-rule {
  display: block;
  height: 1px;
  min-height: 1px;
  background-color: var(--gold);
  width: 100%;
  flex-shrink: 0;
  /* Forum em caps deixa “ar” extra por baixo do texto; puxa a faixa para equilibrar com o vão de baixo */
  margin-top: -0.2em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
  line-height: 1.2;
}

.nav-links a:hover { opacity: 1; color: var(--gold); }

.nav-cta {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255,189,65,0.45);
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
  line-height: 1.2;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5vw;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--navy-dark);
  /* Foto 16:9 por baixo; gradientes navy por cima (semi-transparentes) */
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26, 36, 81, 0.55) 0%, transparent 70%),
    linear-gradient(135deg, rgba(12, 24, 74, 0.88) 0%, rgba(17, 28, 62, 0.82) 50%, rgba(10, 18, 48, 0.9) 100%),
    /* Teste A/B: Manhattan (ativo) | Shanghai: hero-shanghai-16x9.webp */
    url('../imgs/hero-manhattan-16x9.webp');
  background-size: auto, auto, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

/* Geometric accent */
.hero-geo {
  position: absolute;
  z-index: 1;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(480px, 45vw);
  height: min(480px, 45vw);
  border: 1px solid rgba(255,189,65,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.hero-geo::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,189,65,0.05);
  border-radius: 50%;
}
.hero-geo::after {
  content: '';
  position: absolute;
  inset: 48px;
  border: 1px solid rgba(255,189,65,0.04);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  animation: heroFadeIn 1.2s ease both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: heroFadeIn 1.2s ease 0.15s both;
}
.hero-eyebrow span { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: 'Forum', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--white);
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
  animation: heroFadeIn 1.2s ease 0.3s both;
}
.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 3rem;
  animation: heroFadeIn 1.2s ease 0.45s both;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  animation: heroFadeIn 1.2s ease 0.6s both;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(218,220,227,0.3);
  color: var(--gray-light);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 2.5rem;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0.45;
  animation: heroFadeIn 1.4s ease 1s both;
}
.hero-scroll span { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; }
.scroll-line {
  width: 40px; height: 1px; background: var(--gray-light);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scrollAnim 2s ease infinite;
}
@keyframes scrollAnim {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* ─── SECTIONS COMMON ─── */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* ─── VALUE DECLARATION ─── */
#value {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
  border-top: 1px solid rgba(255,189,65,0.1);
  border-bottom: 1px solid rgba(255,189,65,0.1);
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.value-left .label { margin-bottom: 1.5rem; display: block; }
.value-left h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  color: var(--white);
  line-height: 1.25;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.value-left p { color: var(--text-body); font-size: 0.95rem; }

.value-right p {
  color: var(--text-body);
  font-size: 0.95rem;
  padding-left: 2rem;
  border-left: 1px solid var(--gold-line);
  line-height: 1.9;
}
.value-right p + p { margin-top: 1.5rem; }

/* ─── SERVICES ─── */
#services {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-header .label { display: block; margin-bottom: 1rem; }
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 500px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,189,65,0.08);
}

.service-card {
  background: var(--navy-dark);
  padding: 3rem 2.5rem;
  transition: background 0.3s;
  cursor: default;
}
.service-card:hover { background: var(--navy-deep); }

.service-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  /* antes 0.12 — ilegível no #0c184a; manter dourado visível mas ainda secundário ao título */
  color: rgba(255, 189, 65, 0.52);
  line-height: 1;
  margin-bottom: 1rem;
  font-weight: 300;
}
.service-card:hover .service-number {
  color: rgba(255, 189, 65, 0.65);
}
.service-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.service-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.service-list li::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── DIFFERENTIALS ─── */
#differentials {
  padding: 7rem 0;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,189,65,0.08);
  border-bottom: 1px solid rgba(255,189,65,0.08);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.diff-item { text-align: center; }
.diff-icon {
  width: 52px; height: 52px;
  border: 1px solid rgba(255,189,65,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.diff-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.diff-item h4 {
  font-family: 'Forum', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.diff-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; }

/* ─── METHODOLOGY ─── */
#methodology {
  padding: 8rem 0;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  position: relative;
}
.method-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), var(--gold-line), transparent);
}

.method-step {
  text-align: center;
  padding: 0 1.5rem;
}
.step-circle {
  width: 52px; height: 52px;
  border: 1px solid rgba(255,189,65,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  background: var(--navy-dark);
  position: relative;
  z-index: 1;
}
.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 400;
}
.method-step h4 {
  font-family: 'Forum', serif;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.method-step p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.8; }

/* ─── FOUNDER ─── */
#founder {
  padding: 8rem 0;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,189,65,0.08);
}

.founder-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 6rem;
  align-items: start;
}

.founder-image-wrap {
  position: relative;
  --founder-radius: 8px;
}
.founder-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  border: 1px solid rgba(255,189,65,0.12);
  border-radius: var(--founder-radius);
}
.founder-image-wrap::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 80%;
  height: 80%;
  border: 1px solid rgba(255,189,65,0.12);
  border-radius: var(--founder-radius);
  pointer-events: none;
}

.founder-content .label { display: block; margin-bottom: 1.5rem; }
.founder-content h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}
.founder-title {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: block;
}
.founder-content p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.founder-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,189,65,0.12);
}
.stat-item {}
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.founder-langs {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.lang-tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(255,189,65,0.25);
  color: var(--gold);
}

/* ─── CONTACT ─── */
#contact {
  padding: 8rem 0;
  text-align: center;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}
.contact-inner .label { display: block; margin-bottom: 1.5rem; }
.contact-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}
.contact-inner p {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.9;
  margin-bottom: 3rem;
}

.contact-email {
  display: inline-block;
  font-family: 'Forum', serif;
  font-size: 1.15rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,189,65,0.35);
  transition: border-color 0.2s;
  margin-bottom: 3rem;
}
.contact-email:hover { border-color: var(--gold); }

.contact-langs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.contact-langs span { color: var(--gold); opacity: 0.5; }

/* ─── FOOTER ─── */
footer {
  padding: 2.5rem 5vw;
  border-top: 1px solid rgba(255,189,65,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* .footer-logo: mesmo lockup que .nav-logo (regras acima) */
.footer-logo {
  opacity: 0.85;
}
.footer-logo:hover {
  opacity: 1;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ─── FADE IN ON SCROLL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .value-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; gap: 2rem; }
  .method-steps { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .method-steps::before { display: none; }
  .founder-grid { grid-template-columns: 1fr; gap: 3rem; }
  .founder-image-wrap { max-width: 320px; }
  .founder-stats { grid-template-columns: repeat(3, 1fr); }

  footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    text-align: center;
  }
  .footer-copy {
    text-align: center;
    max-width: 22rem;
    line-height: 1.6;
  }
}

@media (max-width: 540px) {
  .founder-stats { grid-template-columns: 1fr 1fr; }
  .method-steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
}

/* ─── PÁGINA 404 ─── */
.error-404-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 5vw;
}
.error-404 {
  text-align: center;
  max-width: 420px;
}
.error-404-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.error-404-title {
  font-family: 'Forum', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 400;
}
.error-404-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.error-404-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}
.error-404-btn:hover {
  opacity: 0.9;
}
