:root {
  --bg-0: #030303;
  --bg-1: #080808;
  --bg-2: #0e0e0e;

  --text-100: #ebebeb;
  --text-60:  rgba(235, 235, 235, 0.78);
  --text-35:  rgba(235, 235, 235, 0.55);
  --text-20:  rgba(235, 235, 235, 0.32);

  --accent:     #c4a45a;
  --accent-dim: rgba(196, 164, 90, 0.40);

  --border:       rgba(255, 255, 255, 0.10);
  --border-hover: rgba(255, 255, 255, 0.22);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius: 4px;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur:    0.4s;
  --dur-lg: 0.8s;

  --max-w:      1100px;
  --pad:        clamp(24px, 5vw, 64px);
  --section-py: clamp(80px, 12vw, 140px);
}

/* ─── Reset ──────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--text-100);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, canvas { display: block; max-width: 100%; }
a           { color: inherit; text-decoration: none; }
ul          { list-style: none; }

/* ─── Layout ─────────────────────────────────────── */

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.section   { padding: var(--section-py) 0; }

/* ─── Type scale ─────────────────────────────────── */

.label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.heading-xl {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.heading-xl em { font-style: italic; font-weight: 300; }

.heading-lg {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
}
.heading-lg em { font-style: italic; }

.body {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--text-60);
  line-height: 1.82;
  max-width: 520px;
  letter-spacing: 0.01em;
}
.body + .body  { margin-top: 16px; }
.body--wide    { max-width: 640px; }
.body--center  { margin: 0 auto; text-align: center; }

.divider {
  width: 32px;
  height: 1px;
  background: var(--accent-dim);
  margin: 28px 0;
}

/* ─── Buttons ────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease),
              color      var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform  var(--dur) var(--ease);
}

.btn--solid { background: var(--text-100); color: var(--bg-0); }
.btn--solid:hover {
  background: rgba(235, 235, 235, 0.85);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-60);
}
.btn--ghost:hover {
  border-color: var(--text-100);
  color: var(--text-100);
  transform: translateY(-1px);
}

.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Reveal ─────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity  var(--dur-lg) var(--ease),
              transform var(--dur-lg) var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ─── Navbar ─────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 24px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--dur) var(--ease),
              padding    var(--dur) var(--ease);
}

.nav.stuck {
  background: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px var(--pad);
  border-bottom: 1px solid var(--border);
}

.nav__logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity var(--dur);
}
.nav__logo:hover img { opacity: 1; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-35);
  transition: color var(--dur);
}
.nav__links a:hover { color: var(--text-100); }

.nav__cta {
  padding: 9px 20px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-60);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur), color var(--dur);
}
.nav__cta:hover { border-color: var(--border-hover); color: var(--text-100); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-60);
  transition: all var(--dur);
}

/* ─── Hero ───────────────────────────────────────── */

.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
}

.hero::after {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border) 30%,
    var(--border) 70%,
    transparent
  );
  pointer-events: none;
}

/* Inline SVG noise — evita request de textura externa */
.hero__noise {
  position: absolute;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero__grad {
  position: absolute;
  inset: 0 0 50%;
  background: radial-gradient(ellipse 70% 60% at 20% 0%, rgba(196, 164, 90, 0.04), transparent 70%);
  pointer-events: none;
}

.hero__left {
  padding: 140px var(--pad) 80px;
  position: relative;
  z-index: 1;
}

.hero__logo {
  margin-bottom: 52px;
  animation: fadeUp 1s 0.2s both;
}
.hero__logo img {
  height: 88px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.hero__eyebrow {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  animation: fadeUp 0.9s 0.35s both;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  animation: fadeUp 0.9s 0.5s both;
}
.hero__title em { font-style: italic; color: var(--text-60); display: block; }

.hero__sub {
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  color: var(--text-35);
  max-width: 400px;
  line-height: 1.75;
  margin-bottom: 44px;
  animation: fadeUp 0.9s 0.65s both;
}

.hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.8s both;
}

.hero__right {
  position: relative;
  height: 100dvh;
}

#model-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Funde o canvas no fundo escuro sem JS */
.hero__right::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right,  var(--bg-0) 0%, transparent 15%),
    linear-gradient(to left,   var(--bg-0) 0%, transparent 15%),
    linear-gradient(to bottom, var(--bg-0) 0%, transparent 12%),
    linear-gradient(to top,    var(--bg-0) 0%, transparent 12%);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: var(--pad);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp 1s 1.2s both;
}
.hero__scroll span {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-20);
  writing-mode: vertical-rl;
}
.hero__scroll__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-20), transparent);
  animation: linePulse 2s 1.6s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes linePulse {
  0%, 100% { transform: scaleY(1);   opacity: 0.5; }
  50%       { transform: scaleY(1.3); opacity: 1;   }
}

/* ─── Stats ──────────────────────────────────────── */

.stats {
  background: var(--bg-1);
  border-block: 1px solid var(--border);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 48px 36px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat:last-child { border-right: none; }

.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-35);
}

/* ─── Sobre ──────────────────────────────────────── */

.sobre { background: var(--bg-0); }
.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}

.sobre__img-wrap { position: relative; }
.sobre__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1) brightness(0.55);
  border: 1px solid var(--border);
  transition: filter 0.6s var(--ease);
}
.sobre__img-wrap:hover .sobre__img { filter: grayscale(1) brightness(0.65); }

.sobre__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(3, 3, 3, 0.9), transparent);
}
.sobre__caption p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-60);
}

/* ─── Pilares ────────────────────────────────────── */

.pilares { background: var(--bg-1); border-top: 1px solid var(--border); }
.pilares__header { margin-bottom: 64px; }

.pilares__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}
.pilar {
  padding: 44px 32px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background var(--dur) var(--ease);
}
.pilar:last-child { border-right: none; }

.pilar::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--accent-dim);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.pilar:hover               { background: var(--bg-2); }
.pilar:hover::after        { transform: scaleX(1); }
.pilar:hover .pilar__icon  { color: var(--text-60); }

.pilar__num {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  color: var(--text-20);
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}
.pilar__icon {
  width: 40px;
  height: 40px;
  color: var(--text-35);
  margin-bottom: 20px;
  transition: color var(--dur);
}
.pilar__icon svg { width: 100%; height: 100%; }

.pilar__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 10px;
}
.pilar__text { font-size: 0.87rem; color: var(--text-35); line-height: 1.65; }

/* ─── Manifesto ──────────────────────────────────── */

.manifesto {
  background: var(--bg-0);
  border-block: 1px solid var(--border);
  text-align: center;
  padding: clamp(100px, 16vw, 180px) 0;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 300px at 50% 50%, rgba(196, 164, 90, 0.05), transparent);
  pointer-events: none;
}
.manifesto__quote {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.15;
  max-width: 840px;
  margin: 0 auto 28px;
  position: relative;
}
.manifesto__quote em { font-style: italic; color: var(--text-60); }
.manifesto__attr {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-20);
}

/* ─── Método ─────────────────────────────────────── */

.metodo { background: var(--bg-0); }
.metodo__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}
.metodo__steps { border: 1px solid var(--border); }
.metodo__step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur);
}
.metodo__step:last-child { border-bottom: none; }
.metodo__step:hover      { background: var(--bg-2); }

.metodo__step-num {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-top: 2px;
  flex-shrink: 0;
  width: 28px;
}
.metodo__step-text h4 { font-size: 0.92rem; font-weight: 500; margin-bottom: 6px; }
.metodo__step-text p  { font-size: 0.84rem; color: rgba(235, 235, 235, 0.50); line-height: 1.65; }

/* ─── Para quem ──────────────────────────────────── */

.paraquem { background: var(--bg-1); border-top: 1px solid var(--border); }
.paraquem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}

.profile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: padding-left var(--dur) var(--ease);
}
.profile:first-child { border-top: 1px solid var(--border); }
.profile:hover       { padding-left: 8px; }

.profile__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-dim);
  flex-shrink: 0;
  transition: background var(--dur);
}
.profile:hover .profile__dot { background: var(--accent); }
.profile__text { font-size: 0.92rem; color: var(--text-60); }

/* ─── Diferenciais ───────────────────────────────── */

.diffs { background: var(--bg-0); }
.diffs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  margin-top: 64px;
}
.diff {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}
.diff:nth-child(3n)          { border-right: none; }
.diff:nth-last-child(-n + 3) { border-bottom: none; }
.diff:hover                  { background: var(--bg-2); }

.diff__label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.diff__title { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.3; margin-bottom: 10px; }
.diff__text  { font-size: 0.85rem; color: rgba(235, 235, 235, 0.50); line-height: 1.65; }

/* ─── CTA ────────────────────────────────────────── */

.cta {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: clamp(80px, 12vw, 140px) 0;
  text-align: center;
}
.cta__inner { max-width: 600px; margin: 0 auto; }
.cta__btns  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ─── Footer ─────────────────────────────────────── */

.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer__logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  margin-bottom: 16px;
  transition: opacity var(--dur);
}
.footer__logo:hover  { opacity: 0.7; }

.footer__tagline { font-family: var(--font-serif); font-size: 0.95rem; font-style: italic; color: var(--text-60); margin-bottom: 4px; }
.footer__sub     { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-35); }
.footer__heading { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-35); margin-bottom: 20px; }

.footer__links           { display: flex; flex-direction: column; gap: 12px; }
.footer__links a         { font-size: 0.86rem; color: rgba(235, 235, 235, 0.55); display: flex; align-items: center; gap: 8px; transition: color var(--dur); }
.footer__links a:hover   { color: var(--text-100); }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer__copy   { font-size: 0.74rem; color: var(--text-35); }

/* ─── Responsive ─────────────────────────────────── */

@media (max-width: 1024px) {
  .hero                   { grid-template-columns: 1fr; }
  .hero::after            { display: none; }
  .hero__right            { display: none; }
  .hero__left             { padding: 120px var(--pad) 80px; }

  .stats__grid            { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2)      { border-right: none; }
  .stat:nth-child(n + 3)  { border-top: 1px solid var(--border); }
  .stat:nth-child(3)      { border-right: 1px solid var(--border); }

  .pilares__grid          { grid-template-columns: repeat(2, 1fr); }
  .pilar:nth-child(2)     { border-right: none; }
  .pilar:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .pilar:nth-child(3)     { border-right: 1px solid var(--border); }
  .pilar:nth-child(4)     { border-right: none; }

  .metodo__grid           { grid-template-columns: 1fr; }
  .paraquem__grid         { grid-template-columns: 1fr; }

  .diffs__grid            { grid-template-columns: repeat(2, 1fr); }
  .diff:nth-child(2n)     { border-right: none; }
  .diff:nth-last-child(-n + 2) { border-bottom: none; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger        { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 64px 0 0;
    background: rgba(3, 3, 3, 0.98);
    padding: 48px var(--pad);
    gap: 28px;
    z-index: 99;
  }
  .nav__links.open a {
    font-size: 1.6rem;
    font-family: var(--font-serif);
    color: var(--text-60);
  }

  .sobre__grid    { grid-template-columns: 1fr; }
  .footer__grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .stats__grid             { grid-template-columns: repeat(2, 1fr); }
  .pilares__grid           { grid-template-columns: 1fr; }
  .pilar                   { border-right: none; border-bottom: 1px solid var(--border); }
  .diffs__grid             { grid-template-columns: 1fr; }
  .diff                    { border-right: none; border-bottom: 1px solid var(--border); }
  .diff:last-child         { border-bottom: none; }
  .hero__btns, .cta__btns  { flex-direction: column; align-items: flex-start; }
  .cta__btns               { align-items: center; }
  .manifesto__quote        { font-size: clamp(1.7rem, 8vw, 2.8rem); }
}
