/* =========================================================
   Julio Rocha — luxury investment landing
   Palette + type tokens live in :root so the whole theme
   is tunable from one place.
   ========================================================= */

:root {
  /* --- palette --- */
  --bg:        #0A0E1A;   /* very deep navy, near-black (page)    */
  --bg-2:      #0D1321;   /* alternate band background            */
  --surface:   #141B2D;   /* cards                                */
  --surface-2: #1A2238;   /* lifted card                          */
  --text:      #E8EAED;   /* primary off-white                    */
  --muted:     #9CA3AF;   /* secondary silver-gray                */
  --silver-1:  #C0C5CE;   /* platinum gradient start              */
  --silver-2:  #E2E5EA;   /* platinum gradient end                */
  --hairline:  rgba(226, 229, 234, 0.12); /* low-opacity silver   */
  --hairline-2: rgba(226, 229, 234, 0.06);

  /* brushed-silver accent gradient (used sparingly) */
  --silver-grad: linear-gradient(135deg, #E2E5EA 0%, #C0C5CE 45%, #AAB0BA 70%, #D4D8DE 100%);

  /* --- type --- */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- rhythm --- */
  --maxw: 1180px;
  --maxw-narrow: 880px;
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --gutter: clamp(1.25rem, 5vw, 3rem);

  /* --- optional future hero image: drop a path here later --- */
  --hero-image: none;
}

/* --------------------------------------------------------- */
*, *::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-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(192, 197, 206, 0.22); color: #fff; }

/* =========================================================
   Shared typographic elements
   ========================================================= */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--silver-1), transparent);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { display: none; }

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 4.6vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.6rem;
  color: var(--text);
}
.section__title--center { text-align: center; }

.muted-em { color: var(--muted); font-style: italic; }

.accent-text {
  background: var(--silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.65;
  color: #C9CDD4;
  max-width: 60ch;
  margin: 0 0 1.4rem;
  font-weight: 300;
}
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead--wide { max-width: 72ch; }

p { margin: 0 0 1.15rem; color: var(--muted); }
.about__body p { color: #B9BEC7; }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 1rem 1.85rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease, background .35s ease, color .35s ease,
              border-color .35s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--silver-grad);
  color: #0A0E1A;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(192,197,206,.55), 0 1px 0 rgba(255,255,255,.5) inset;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}
.btn--ghost:hover {
  border-color: rgba(226,229,234,0.4);
  background: rgba(226,229,234,0.04);
  transform: translateY(-2px);
}

.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.85rem; }

/* =========================================================
   Sticky nav
   ========================================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 0.65rem var(--gutter);
  background: rgba(10, 14, 26, 0);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.2,.7,.2,1),
              background .5s ease, border-color .5s ease, backdrop-filter .5s ease;
}
.nav.is-visible {
  transform: translateY(0);
  background: rgba(10, 14, 26, 0.82);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(14px) saturate(120%);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand img { height: 30px; width: auto; opacity: .95; }

/* =========================================================
   Layout helpers
   ========================================================= */

.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.section--narrow { max-width: var(--maxw-narrow); }

.band {
  max-width: none;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(26,34,56,0.6) 0%, transparent 60%),
    var(--bg-2);
}
.band > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section--narrow.band > * { max-width: var(--maxw-narrow); }

.divider {
  height: 1px;
  max-width: var(--maxw);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--hairline) 18%, var(--hairline) 82%, transparent);
}

/* =========================================================
   1 · HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--gutter) 5rem;
  overflow: hidden;
  isolation: isolate;
}

/* image-ready: set --hero-image to url('images/...') later and it layers in */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(140% 120% at 78% 18%, rgba(36, 49, 84, 0.75) 0%, transparent 55%),
    radial-gradient(120% 120% at 12% 90%, rgba(20, 27, 45, 0.9) 0%, transparent 60%),
    linear-gradient(180deg, #0B1020 0%, #0A0E1A 55%, #080B14 100%),
    var(--hero-image);
  background-size: cover, cover, cover, cover;
  background-position: center;
}
.hero__bg::after {
  /* subtle brushed silver glance along the top edge */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(226,229,234,0.05), transparent 22%);
  pointer-events: none;
}

/* fine grain so flat gradients never look "plasticky" */
.hero__grain,
.closing__bg {
  pointer-events: none;
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__content { max-width: 880px; margin: 0 auto; width: 100%; }
.hero__logo {
  height: clamp(54px, 9vw, 84px);
  width: auto;
  margin: 0 0 2rem;
  opacity: 0.97;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1.6rem;
}
.hero__sub {
  font-size: clamp(1.08rem, 2.2vw, 1.4rem);
  line-height: 1.6;
  font-weight: 300;
  color: #C9CDD4;
  max-width: 56ch;
  margin: 0 0 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__actions--center { justify-content: center; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 3px; height: 8px; border-radius: 3px;
  background: var(--silver-1);
  animation: scrolldot 2.1s ease-in-out infinite;
}
@keyframes scrolldot {
  0%   { opacity: 0; transform: translateY(-4px); }
  35%  { opacity: 1; }
  70%  { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* =========================================================
   2 · A TENSÃO — risk grid
   ========================================================= */

.riskgrid {
  list-style: none;
  padding: 0;
  margin: 3.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.risk {
  background: var(--bg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  transition: background .4s ease;
}
.risk:hover { background: var(--surface); }
.risk__mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--silver-1);
  opacity: .55;
  letter-spacing: .04em;
}
.risk h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0.6rem 0 0.7rem;
  color: var(--text);
}
.risk p { margin: 0; font-size: 0.98rem; }

/* =========================================================
   3 · A VIRADA / 7 · CONVITE — centered quote bands
   ========================================================= */

.section--quote { text-align: center; }
.section--quote > .reveal { max-width: 820px; margin: 0 auto; }

.bigquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.6vw, 3.7rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 1.8rem;
  color: var(--text);
}

/* =========================================================
   4 · QUEM É JULIO
   ========================================================= */

.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__frame {
  position: relative;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  padding: 14px;
}
.about__frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--hairline-2);
  pointer-events: none;
  z-index: 2;
}
.about__frame img {
  width: 100%;
  filter: grayscale(8%) contrast(1.02);
}
.trust {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.85rem;
}
.trust li {
  position: relative;
  padding-left: 1.6rem;
  color: #C2C7CF;
  font-size: 0.98rem;
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 0.5rem; height: 0.5rem;
  transform: rotate(45deg);
  background: var(--silver-grad);
}
.trust strong { color: var(--text); font-weight: 600; }

/* =========================================================
   5 · COMO EU TRABALHO — step grid
   ========================================================= */

.stepgrid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s ease, background .4s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(226,229,234,0.28);
  background: var(--surface-2);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 0.7rem;
  color: var(--text);
}
.step p { margin: 0; font-size: 0.96rem; }

/* =========================================================
   6 · O PADRÃO — stats
   ========================================================= */

.stats {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.stat {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.7rem;
}
.stat__unit { font-size: 0.5em; margin-left: 0.08em; }
.stat__label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats__note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* =========================================================
   8 · CHAMADA FINAL
   ========================================================= */

.closing {
  position: relative;
  max-width: none;
  text-align: center;
  padding-top: clamp(5.5rem, 12vw, 10rem);
  padding-bottom: clamp(5.5rem, 12vw, 10rem);
  overflow: hidden;
  isolation: isolate;
}
.closing__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(40, 54, 92, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.closing__bg::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline) 20%, var(--hairline) 80%, transparent);
}
.closing__inner { max-width: 760px; margin: 0 auto; }
.closing__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.13;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2rem;
  background: var(--bg);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.footer__logo { height: 30px; width: auto; opacity: 0.9; margin-bottom: 0.9rem; }
.footer__line { margin: 0; font-size: 0.9rem; color: var(--muted); letter-spacing: 0.02em; }
.footer__social { display: flex; flex-direction: column; gap: 0.6rem; text-align: right; }
.footer__social a {
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color .3s ease;
}
.footer__social a:hover { color: var(--text); }
.footer__copy {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline-2);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

/* =========================================================
   Scroll-reveal (JS adds .in-view)
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1),
              transform 1.1s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 380px; }
  .stepgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .riskgrid { grid-template-columns: 1fr; }
  .stepgrid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__social { text-align: left; }
  .hero__actions .btn,
  .closing .btn,
  #simule .btn { width: 100%; }
  .nav__brand img { height: 26px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
  .btn, .step, .risk { transition: none; }
}
