/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

/* ---------- tokens ---------- */
:root {
  --breu: #1A1815;
  --cru: #F6F1E9;
  --laca: #C41E1E;
  --laca-escura: #961717;
  --musgo: #4A5D3A;
  --mata: #39492C;
  --broto: #8FA37C;
  --barro: #8A8377;
  --argila: #E88888;
  --areia: #E5DCCB;

  --font: "Host Grotesk", "Inter", Arial, Helvetica, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --border: 1px solid var(--breu);
  --radius: 3px;
  --max: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cru);
  color: var(--breu);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(var(--max), 92%); margin-inline: auto; }

h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 20px; }
p { color: var(--breu); }

/* avoid single-word orphan lines at paragraph/heading ends where supported */
h1, h2, h3, p, li, blockquote p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--laca);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--laca);
  display: inline-block;
}

/* ---------- logo ---------- */
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 64px;
  width: auto;
  display: block;
}
footer .logo-img { height: 52px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--breu);
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--laca); color: var(--cru); border-color: var(--laca); }
.btn-primary:hover { background: var(--laca-escura); border-color: var(--laca-escura); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(196,30,30,.28); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--breu); }
.btn-ghost:hover { background: var(--breu); color: var(--cru); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(26,24,21,.18); }
.btn-ghost:active { transform: translateY(0); box-shadow: none; }
.btn-invert { background: var(--cru); color: var(--laca); border-color: var(--cru); }
.btn-invert:hover { background: var(--breu); color: var(--cru); border-color: var(--cru); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(26,24,21,.3); }
.btn-invert:active { transform: translateY(0); box-shadow: none; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ---------- ribbon ---------- */
.ribbon {
  background: var(--breu);
  color: var(--areia);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
}
.ribbon a { color: var(--argila); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cru);
  border-bottom: 1px solid rgba(26,24,21,.12);
}
.nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a:not(.btn) {
  font-weight: 600;
  font-size: 15px;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--laca);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

/* ---------- animated underline (reusable) ---------- */
.link-underline { position: relative; }
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.link-underline:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  width: 40px; height: 40px;
  border: 2px solid var(--breu);
  border-radius: var(--radius);
  background: transparent;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
}
.burger span {
  position: absolute;
  left: 9px; right: 9px; top: 19px;
  height: 2px;
  background: var(--breu);
  transition: background .2s ease;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--breu);
  transition: transform .2s ease;
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.open span { background: transparent; }
.burger.open span::before { transform: translateY(7px) rotate(45deg); }
.burger.open span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.dark { background: var(--breu); color: var(--cru); }
.dark p { color: var(--areia); }
.dark .eyebrow { color: var(--argila); }
.dark .eyebrow::before { background: var(--argila); }
.areia-bg { background: var(--areia); }

.title-row { max-width: 640px; margin-bottom: 48px; }
.title-row.center { max-width: 680px; margin-inline: auto; text-align: center; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--laca); }
.hero p.lead { font-size: 19px; color: var(--barro); max-width: 46ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-proof { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--breu); }
.avatars { display: flex; }
.avatars span {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--broto);
  border: 2px solid var(--cru);
  margin-left: -10px;
}
.avatars span:first-child { margin-left: 0; }

/* ---------- product photography ---------- */
.mockup-photo { max-width: 460px; margin-inline: auto; }
.mockup-photo img { width: 100%; height: auto; display: block; }
.mockup-photo-lg { max-width: 600px; }

/* ---------- full-bleed hero photo ---------- */
.hero-bleed {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero-bleed .container { position: relative; z-index: 2; }
.hero-copy { max-width: 540px; padding-block: 64px; }
.hero-photo-bleed { position: absolute; inset: 0 0 0 auto; width: 46%; z-index: 1; }
.hero-photo-bleed img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }
@media (max-width: 860px) {
  .hero-bleed { display: block; min-height: 0; }
  .hero-copy { max-width: none; padding-block: 40px 32px; }
  .hero-photo-bleed { position: static; width: 100%; height: 62vh; }
}

/* ---------- textured dark sections ---------- */
.tex-1, .tex-2 {
  background-color: var(--breu);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tex-1 { background-image: linear-gradient(180deg, rgba(26,24,21,.65), rgba(26,24,21,.8)), url("../img/degrade-1.webp"); }
.tex-2 { background-image: linear-gradient(180deg, rgba(26,24,21,.65), rgba(26,24,21,.8)), url("../img/degrade-2.webp"); }

/* ---------- manifesto ---------- */
.manifesto-quote {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  max-width: 820px;
  margin-bottom: 16px;
}
.manifesto-quote.cut { margin-bottom: 40px; }
.manifesto-quote.cut, .manifesto-quote .cut { color: var(--argila); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid rgba(246,241,233,.2); padding-top: 32px; }
.principles li { font-size: 15px; color: var(--areia); }
.principles li b { display: block; color: var(--cru); font-size: 17px; margin-bottom: 6px; }

/* ---------- cards / grids ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--cru);
  border: var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .5s ease, box-shadow .5s ease, border-color .5s ease, background .5s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(26,24,21,.12);
  border-color: var(--laca);
}
.card-dark { background: transparent; border-color: rgba(246,241,233,.25); }
.card-dark h3, .card-dark p { transition: color .5s ease; }
.card-dark h3 { color: var(--cru); }
.card-dark p { color: var(--areia); }
.card-dark:hover { background: var(--cru); border-color: var(--cru); box-shadow: 0 14px 28px rgba(0,0,0,.35); }
.card-dark:hover h3, .card-dark:hover p { color: var(--breu); }

/* ---------- values grid: 3 cards top row, 4 below ---------- */
.values-grid { grid-template-columns: repeat(12, 1fr); }
.values-grid > :nth-child(1),
.values-grid > :nth-child(2),
.values-grid > :nth-child(3) { grid-column: span 4; }
.values-grid > :nth-child(4),
.values-grid > :nth-child(5),
.values-grid > :nth-child(6),
.values-grid > :nth-child(7) { grid-column: span 3; }
.card .icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--breu);
  color: var(--cru);
  border-radius: var(--radius);
  font-size: 18px;
  margin-bottom: 16px;
}
.card .icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--barro); font-size: 15px; }

/* ---------- product / nivo ---------- */
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.product-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--breu); color: var(--cru);
  font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 20px;
}
.product-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.tagline-stack { margin: 20px 0 26px; display: flex; flex-direction: column; gap: 6px; }
.tagline-stack span { font-size: 15px; font-weight: 700; color: var(--musgo); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { border: var(--border); border-radius: var(--radius); padding: 22px 18px; text-align: center; background: var(--cru); }
.stat b { display: block; font-size: 30px; color: var(--laca); }
.stat span { font-size: 13px; color: var(--barro); font-weight: 600; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 22px; max-width: 620px; }
.step { display: flex; gap: 18px; }
.num {
  min-width: 44px; height: 44px; border-radius: 50%;
  background: var(--laca); color: var(--cru);
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--barro); font-size: 15px; }

/* ---------- roadmap / newsletter ---------- */
.roadmap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.roadmap p.lead { color: var(--barro); max-width: 52ch; }
.roadmap-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.roadmap-tags span {
  border: 1px dashed var(--barro);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--barro);
}

/* ---------- contact form ---------- */
.contact-form { display: grid; gap: 20px; margin-top: 40px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 14px; }
.contact-form input, .contact-form textarea {
  font: inherit;
  padding: 13px 16px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--cru);
  color: var(--breu);
  resize: vertical;
  transition: border-color .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--laca); }

/* ---------- final cta ---------- */
.final-cta { background: var(--laca); color: var(--cru); text-align: center; }
.final-cta h2 { margin-bottom: 12px; }
.final-cta p { color: var(--areia); margin-bottom: 30px; font-size: 18px; }
.final-cta .btn-invert:hover { background: var(--cru); color: var(--laca); }

/* ---------- footer ---------- */
footer { background: var(--breu); color: var(--areia); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid .logo { margin-bottom: 14px; }
.footer-grid p { color: var(--barro); font-size: 15px; max-width: 34ch; margin-bottom: 14px; }
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s ease;
}
.footer-brand-link:hover { opacity: .75; }
.footer-brand-link span { font-size: 13px; color: var(--barro); }
.footer-brand-link .logo-img { height: 22px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--broto); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 15px; }
.footer-col a:hover { color: var(--cru); }
.footer-bottom {
  border-top: 1px solid rgba(246,241,233,.15);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--barro);
}

/* ---------- reveal ---------- */
/* Hidden only once JS confirms it can reveal it again (see main.js). Never hidden by default. */
.reveal { transition: opacity .7s cubic-bezier(.16,.8,.4,1), transform .7s cubic-bezier(.16,.8,.4,1); }
html.js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(32px) scale(.98); }
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

/* stagger grouped reveals so they cascade in instead of popping together */
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2), .stats .reveal:nth-child(2), .principles .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3), .stats .reveal:nth-child(3), .principles .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .steps .reveal:nth-child(4), .stats .reveal:nth-child(4), .principles .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, html.js-reveal .reveal:not(.in) { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    display: flex;
    position: fixed;
    inset: 88px 0 0 0;
    background: var(--cru);
    flex-direction: column;
    padding: 32px 6%;
    gap: 24px;
    align-items: flex-start;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .32s cubic-bezier(.16,.8,.4,1), opacity .28s ease, visibility .32s;
  }
  .burger { display: block; }
  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .hero-grid, .product-grid, .roadmap { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid > :nth-child(1),
  .values-grid > :nth-child(2),
  .values-grid > :nth-child(3),
  .values-grid > :nth-child(4),
  .values-grid > :nth-child(5),
  .values-grid > :nth-child(6),
  .values-grid > :nth-child(7) { grid-column: span 1; }
  .principles { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- faq accordion ---------- */
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--laca);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 14px; color: var(--barro); font-size: 15px; }

/* ---------- nivo product theme (green accent) ---------- */
body.nivo-theme { --laca: var(--musgo); --laca-escura: var(--mata); --argila: var(--broto); }
body.nivo-theme .btn-primary:hover { box-shadow: 0 10px 22px rgba(74,93,58,.3); }
