/* =========================================================
   Lavínia Gonçalves | Portfolio
   Tema: escuro arroxeado, letras brancas e um acento lilás.
   ========================================================= */

:root {
  --bg: #0b0910;
  --bg-alt: #100c18;
  --card: #15101f;
  --card-hover: #1b1528;
  --line: #261e33;
  --line-strong: #3a2d4f;
  --text: #fff;
  --muted: #b3a9c6;
  --dim: #73688a;
  --accent: #b38cff;
  --accent-strong: #8f5cff;
  --on-accent: #170a2e;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 14px;
  --container: 1200px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--on-accent); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

em { font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--light { background: var(--accent); color: var(--on-accent); }
.btn--light:hover { background: #c7a9ff; }
.btn--ghost { border: 1px solid var(--line-strong); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 60px; padding: 0 30px; font-size: 17px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(11, 9, 16, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.nav__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--accent); border-radius: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: 0;
}
.nav__links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav__links a { transition: color .2s ease; }
.nav__links a:hover { color: #fff; }
.nav__right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.lang__btn {
  height: 30px;
  min-width: 40px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--dim);
  transition: background .2s ease, color .2s ease;
}
.lang__btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.lang__btn:not([aria-pressed="true"]):hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(179, 140, 255, .14); }
.hero__title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.2vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero__title em { color: var(--accent); }
.hero__cite {
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__cite::before { content: ""; width: 28px; height: 1px; background: var(--muted); }
.hero__sub {
  margin-top: 28px;
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__photo { position: relative; margin: 0; }
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - var(--nav-h) - 96px);
  min-height: 420px;
  object-fit: cover;
  object-position: 50% 75%;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.08) brightness(.92);
  transition: filter .6s ease;
}
.hero__photo:hover img { filter: grayscale(0) contrast(1) brightness(1); }
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(143, 92, 255, .55), rgba(179, 140, 255, .25));
  mix-blend-mode: color;
  pointer-events: none;
  transition: opacity .6s ease;
}
.hero__photo:hover::after { opacity: 0; }
.hero__badge {
  position: absolute;
  left: -24px; bottom: 28px;
  display: flex; flex-direction: column;
  padding: 16px 20px;
  background: rgba(11, 9, 16, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  z-index: 1;
}
.hero__badge-n { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; color: var(--accent); line-height: 1.1; }
.hero__badge-l { font-size: 13px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__n {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.9vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  white-space: nowrap;
}
.stat__l { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--muted); max-width: 24ch; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section__head--row > div { max-width: 760px; }
.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.section__title--sm { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.section__sub { margin-top: 18px; max-width: 54ch; color: var(--muted); font-size: 1.07rem; }
.subhead {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: clamp(64px, 8vw, 96px) 0 24px;
}

/* ---------- Proof grid ---------- */
.proof { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.proof__card {
  display: flex; flex-direction: column;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.proof__card:hover { border-color: var(--line-strong); background: var(--card-hover); transform: translateY(-2px); }
.proof__card--half { grid-column: span 3; }
.proof__card--full { grid-column: span 6; }
.proof__card--third { grid-column: span 2; }
.proof__img {
  display: grid; place-items: center;
  aspect-ratio: 16 / 8;
  background: #0f0b16;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.proof__card--full .proof__img { aspect-ratio: auto; }
.proof__img img { width: 100%; height: 100%; object-fit: contain; }
.proof__card--full .proof__img img { height: auto; }
.proof__img--pad { padding: 18px; background: #120e1b; }
.proof__img--light { background: #120e1b; padding: 16px; aspect-ratio: 16 / 9; }
.proof__img--light img { border-radius: 6px; }
.proof__cap { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.proof__t { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; }
.proof__d { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Ads carousel ---------- */
.carousel__arrows { display: flex; gap: 10px; flex: none; }
.arrow {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}
.arrow svg { width: 20px; height: 20px; }
.arrow:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.arrow:disabled { opacity: .3; pointer-events: none; }

.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2 + 24px)) 8px;
  scrollbar-width: none;
  outline: none;
}
.carousel::-webkit-scrollbar { display: none; }

.ad {
  position: relative;
  flex: 0 0 clamp(230px, 22vw, 280px);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #140f1d;
  border: 1px solid var(--line);
}
.ad video { width: 100%; height: 100%; object-fit: cover; background: #0b0910; }
.ad__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 52%, rgba(0,0,0,.88) 100%);
  cursor: pointer;
  transition: opacity .25s ease;
}
.ad__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ad__rank {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.ad__sound {
  margin-left: auto;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  transition: background .2s ease, color .2s ease;
}
.ad__sound svg { width: 18px; height: 18px; }
.ad__sound .ico-on { display: none; }
.ad.has-sound .ad__sound { background: var(--accent); color: var(--on-accent); }
.ad.has-sound .ad__sound .ico-off { display: none; }
.ad.has-sound .ad__sound .ico-on { display: block; }
.ad.has-sound { border-color: var(--accent); }
.ad__meta { display: flex; flex-direction: column; gap: 8px; }
.ad--top { border-color: rgba(179, 140, 255, .45); }
.ad__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ad__tag {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.35);
  font-size: 12px;
  line-height: 1.3;
}

/* ---------- Markets ---------- */
.markets { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.chip {
  display: inline-flex; align-items: baseline;
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.chip small { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.about__text .section__title { margin-bottom: 28px; }
.about__text p:not(.kicker) { font-size: 1.12rem; line-height: 1.65; color: #dcd5e8; max-width: 56ch; }
.about__text p:not(.kicker) + p { margin-top: 18px; }
.books { padding: 28px 28px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.books__list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.books__list li span { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.books__list li small { color: var(--dim); font-size: 13.5px; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 16ch;
}
.contact .section__sub { margin-left: auto; margin-right: auto; }
.contact__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13.5px; color: var(--dim); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Floating WhatsApp (mobile) ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: none; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.fab svg { width: 28px; height: 28px; }

/* ---------- Lightbox ---------- */
.lightbox {
  max-width: min(1400px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0f0b16;
  overflow: auto;
}
.lightbox::backdrop { background: rgba(11,9,16,.9); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 88vh; margin: 0 auto; }
.lightbox__close {
  position: sticky; top: 10px; float: right;
  margin: 10px 10px -50px 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff; color: #000;
  font-size: 24px; line-height: 1;
  z-index: 2;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .markets { grid-template-columns: 1fr; gap: 28px; }
  .chips { justify-content: flex-start; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { max-width: 460px; }
  .hero__photo img { height: auto; aspect-ratio: 4 / 4.4; min-height: 0; max-height: none; }
  .hero__badge { left: 14px; bottom: 14px; }
  .proof__card--half,
  .proof__card--third { grid-column: span 6; }
  .about { grid-template-columns: 1fr; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .carousel__arrows { display: none; }
  .fab { display: grid; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .nav__name { display: none; }
  .eyebrow { font-size: 11px; margin-bottom: 20px; }
  .nav .btn--sm { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .stat { padding: 28px 16px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-right: 0; }
  .contact__ctas { width: 100%; }
  .contact__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .ad { flex-basis: 72vw; }
  .chip { font-size: 1rem; padding: 12px 18px; }
}
