:root {
  --bg: #0c0a09;
  --bg-2: #141110;
  --card: #1a1614;
  --line: rgba(232, 206, 150, .14);
  --text: #f5efe6;
  --muted: #a8a29e;
  --gold: #d6b26a;
  --gold-2: #f1d99b;
  --gold-deep: #a16207;
  --serif: "Cormorant", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
em { font-style: italic; color: var(--gold-2); }
p { margin: 0 0 1rem; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 1rem; background: var(--gold); color: var(--bg); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
  display: inline-flex; align-items: center; gap: .9rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .6; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #d6d0c8; font-weight: 300; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.8rem; border-radius: 999px;
  font: 500 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: transform .25s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
  cursor: pointer;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #b98d3e); color: #17120a; box-shadow: 0 10px 40px -12px rgba(214, 178, 106, .55); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 1.25rem; font-size: .72rem; }
@media (hover: hover) {
  .btn-gold:hover { box-shadow: 0 14px 50px -10px rgba(214, 178, 106, .8); transform: translateY(-2px); }
  .btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
}

/* Persona: você, fixo no fundo, animado pela rolagem */
main, .footer { position: relative; z-index: 1; }
.persona {
  position: fixed; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  width: min(54vw, 1000px); height: 100svh;
  transition: opacity .9s var(--ease-out);
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 10%);
  mask-image: linear-gradient(to top, transparent 0, #000 10%);
}
.persona::before {
  content: ""; position: absolute; inset: 15% 5% 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(214, 178, 106, .22), transparent);
}
.persona .frames { position: absolute; inset: 0; width: 100%; height: 100%; }
/* logo 3D atrás de você, no alto à direita da cabeça */
.persona .logo3d {
  position: absolute; top: 13svh; right: 3%; width: min(40%, 400px); aspect-ratio: 1;
  opacity: 0; transition: opacity 1.2s var(--ease-out);
}
.persona .logo3d.ready { opacity: 1; }
.persona[data-mode="dim"] { opacity: .1; }
.persona[data-mode="hero"] { opacity: 1; }
.cta-alt { margin-top: 1.5rem; font-size: .85rem; color: var(--muted); }
.cta-alt a { color: var(--gold-2); border-bottom: 1px solid var(--line); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  transition: background-color .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(12, 10, 9, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: .75rem; min-height: 44px; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font: 500 1.25rem/1 var(--serif); letter-spacing: .02em; }
.menu { display: flex; align-items: center; gap: 2rem; }
.menu a:not(.btn) { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .2s; padding: .75rem 0; }
.menu a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 7px; width: 48px; height: 48px;
    background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; z-index: 2;
  }
  .nav-toggle span { width: 20px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease-out); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.5rem;
    background: rgba(12, 10, 9, .97); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .menu.open { opacity: 1; visibility: visible; }
  /* backdrop-filter na nav prenderia o menu fixo dentro dela */
  .nav:has(.menu.open) { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu a:not(.btn) { font: 500 2rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--text); }
}

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 8rem 0 6rem; overflow: hidden; isolation: isolate;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vmax; height: 70vmax; z-index: -1;
  background: radial-gradient(circle, rgba(214, 178, 106, .18), transparent 60%);
  filter: blur(20px);
}
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; }
.hero-lines path { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-lines path:nth-child(2) { opacity: .5; }
.hero-lines path:nth-child(3) { opacity: .3; }
.hero-title { font-size: clamp(2.9rem, 7.5vw, 6.4rem); font-weight: 400; margin-bottom: 2rem; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { max-width: 38rem; color: #cfc8bf; font-weight: 300; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero-facts {
  list-style: none; padding: 2rem 0 0; margin: 3.5rem 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; max-width: 46rem;
}
.hero-facts strong { display: block; font: 500 clamp(2rem, 4vw, 2.75rem)/1 var(--serif); color: var(--gold-2); }
.hero-facts span { font-size: .8rem; color: var(--muted); }
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 20px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--gold); border-radius: 2px; animation: cue 2s var(--ease-out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Manifesto */
.manifesto { padding: clamp(6rem, 14vw, 12rem) 0; border-block: 1px solid var(--line); background: rgba(20, 17, 16, .72); }
.manifesto-text { font: 400 clamp(1.8rem, 4.4vw, 3.6rem)/1.2 var(--serif); max-width: 22em; margin: 0; }

/* Sections */
.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 48rem; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.pillar {
  position: relative; padding: clamp(1.75rem, 3.5vw, 2.75rem); border-radius: 20px;
  background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .4s, transform .4s var(--ease-out);
}
.pillar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(214, 178, 106, .12), transparent 60%);
}
@media (hover: hover) {
  .pillar:hover { border-color: rgba(214, 178, 106, .4); }
  .pillar:hover::after { opacity: 1; }
}
.pillar-feature { border-color: rgba(214, 178, 106, .35); }
.pillar-num { position: absolute; top: 1.5rem; right: 1.75rem; font: italic 400 1.1rem/1 var(--serif); color: var(--gold); opacity: .7; }
.pillar-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line); margin-bottom: 1.75rem; }
.pillar-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin-bottom: 1rem; }
.pillar h3 span { font: 600 .7rem/1 var(--sans); letter-spacing: .18em; color: var(--gold); vertical-align: middle; margin-left: .35rem; border: 1px solid var(--line); padding: .3rem .5rem; border-radius: 6px; }
.pillar > p { color: var(--muted); }
.benefits { list-style: none; padding: 1.25rem 0 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .8rem; }
.benefits li { font-size: .92rem; color: #cfc8bf; padding-left: 1.4rem; position: relative; }
.benefits li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.benefits strong { color: var(--text); font-weight: 600; }

/* CRM */
.crm { background: rgba(20, 17, 16, .72); border-block: 1px solid var(--line); }
.crm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.crm-copy h2 { margin-bottom: 1.5rem; }
.checks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.checks li { padding-left: 2rem; position: relative; color: #cfc8bf; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(214, 178, 106, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1d99b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat;
}
.dash {
  margin: 0; background: #0f0d0c; border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem;
  box-shadow: 0 40px 120px -40px rgba(214, 178, 106, .25), 0 0 0 1px rgba(255,255,255,.02) inset;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem;
}
.dash-top { grid-column: 1 / -1; display: flex; align-items: center; gap: .4rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3a332e; }
.dash-title { margin-left: .75rem; font-size: .75rem; color: var(--muted); letter-spacing: .08em; }
.dash-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.dash-kpis div, .dash-chart, .dash-chat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; }
.dash small { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .04em; }
.dash-kpis b { font: 500 clamp(1.6rem, 3vw, 2.2rem)/1.2 var(--serif); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: .75rem; height: 150px; margin-top: 1rem; }
.bar-pair { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 100%; position: relative; padding-bottom: 1.2rem; }
.bar-pair i { flex: 1; height: var(--h); border-radius: 4px 4px 1px 1px; background: rgba(214, 178, 106, .3); transform-origin: bottom; }
.bar-pair i + i { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.bar-pair span { position: absolute; bottom: 0; left: 50%; translate: -50% 0; font-size: .58rem; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 1rem; margin-top: .75rem; font-size: .66rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: .35rem; }
.lg-a::before { background: rgba(214, 178, 106, .3); }
.lg-b::before { background: var(--gold); }
.dash-chat { display: flex; flex-direction: column; gap: .5rem; justify-content: flex-end; }
.msg { margin: 0; font-size: .74rem; line-height: 1.45; padding: .55rem .75rem; border-radius: 12px; max-width: 92%; }
.msg.in { background: #2a2420; align-self: flex-start; border-bottom-left-radius: 3px; }
.msg.out { background: rgba(214, 178, 106, .16); color: #f3e6c8; align-self: flex-end; border-bottom-right-radius: 3px; }
.dash figcaption { grid-column: 1 / -1; font-size: .66rem; color: #78716c; text-align: right; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { padding: 2.25rem 1.75rem 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.steps span { font: italic 400 1rem/1 var(--serif); color: var(--gold); }
.steps h3 { margin: .75rem 0; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Works */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.work { padding: 2rem; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); transition: border-color .3s, transform .4s var(--ease-out); }
.work-lg {
  grid-column: span 3; padding: clamp(2rem, 5vw, 3.5rem);
  background: radial-gradient(600px circle at 90% 0%, rgba(214, 178, 106, .14), transparent 60%), var(--card);
  border-color: rgba(214, 178, 106, .3);
}
.work-lg h3 { font-size: clamp(2rem, 4vw, 3rem); }
.work-lg p:last-child { max-width: 46rem; }
.work-tag { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.work h3 { margin-bottom: .9rem; }
.work p:last-child { color: var(--muted); margin: 0; font-size: .95rem; }
@media (hover: hover) { .work:hover { border-color: rgba(214, 178, 106, .45); transform: translateY(-4px); } }

/* About */
.about-grid { min-height: 90svh; display: flex; align-items: center; }
.about-copy h2 { margin-bottom: 1.5rem; }
.about-copy > p:not(.lead):not(.eyebrow) { color: var(--muted); }
.quotes { display: grid; gap: 1rem; margin-top: 2.5rem; }
blockquote { margin: 0; padding: 1.5rem 1.75rem; border-left: 2px solid var(--gold); background: var(--bg-2); border-radius: 0 14px 14px 0; }
blockquote p { font: italic 400 1.3rem/1.4 var(--serif); margin-bottom: .75rem; }
cite { font-style: normal; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* CTA */
.cta { padding: clamp(6rem, 14vw, 11rem) 0; min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta::before { content: ""; position: absolute; left: 20%; top: 50%; width: 80vmax; height: 80vmax; translate: -50% -50%; background: radial-gradient(circle, rgba(214, 178, 106, .14), transparent 55%); z-index: -1; }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; }
.cta h2 { max-width: 16em; margin-bottom: 1.5rem; }
.cta .lead { max-width: 34rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .8rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.social { display: flex; gap: 1.5rem; }
.social a { padding: .5rem 0; transition: color .2s; }
.social a:hover { color: var(--gold-2); }

/* Texto à esquerda, você à direita (telas largas) */
@media (min-width: 1025px) {
  .hero-inner > *, .about-copy, .cta .cta-inner > * { max-width: min(56%, 44rem); }
  .hero-facts { max-width: min(56%, 40rem); }
}

/* Responsive */
@media (max-width: 1024px) {
  .persona { width: 100%; height: 88svh; opacity: .3; }
  .persona[data-mode="dim"] { opacity: .06; }
  .persona[data-mode="hero"] { opacity: .3; } /* tablet: texto largo sobre a foto */
  .crm-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; border-top: 0; }
  .steps li { border-top: 1px solid var(--line); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-lg { grid-column: span 2; }
}
@media (max-width: 720px) {
  /* primeira tela: título no alto, você e a logo nítidos embaixo; o resto do topo vem ao rolar */
  .hero { align-items: flex-start; }
  .hero-top { min-height: calc(100svh - 8rem); }
  .persona[data-mode="hero"] { opacity: 1; }
  .persona .logo3d { top: auto; bottom: 62vw; right: 1vw; width: 30vw; }
  .pillars, .works, .steps { grid-template-columns: minmax(0, 1fr); }
  .work-lg { grid-column: auto; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .hero-facts li { display: flex; align-items: baseline; gap: 1rem; }
  .hero-facts strong { min-width: 4.5rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; }
  .brand-name { font-size: 1.1rem; }
}
@media (max-width: 380px) {
  .dash-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dash-kpis div:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
}
