/* =========================================================
   CLINVI — Landing Page
   Design tokens & global styles
   ========================================================= */

:root {
  /* Brand — Identidade Visual Clinvi */
  --forest:   #375943;   /* Verde Floresta — primary */
  --forest-deep: #2a4534;
  --forest-darker: #1f3527;
  --leaf:     #A0C29E;   /* Verde Folha */
  --leaf-soft:#b2c49c;
  --olive:    #829963;
  --olive-deep:#47522e;
  --cream:    #F8F9EF;   /* Creme Sereno — surface */
  --cream-warm:#F2F1E4;
  --sand:     #d4cfba;
  --mist:     #deded4;
  --sky-soft: #baccdb;
  --sky:      #6191ad;
  --fog:      #768081;   /* Cinza Neblina */
  --graphite: #313B3C;   /* Grafite Profundo */

  --ink:        #1b2521;
  --ink-soft:   #44504b;
  --ink-mute:   #707b76;
  --line:       rgba(55, 89, 67, 0.12);
  --line-soft:  rgba(55, 89, 67, 0.07);
  --bg:         #FBFBF5;
  --white:      #ffffff;

  /* Type */
  --serif: "Instrument Serif", "Newsreader", Georgia, serif;
  --sans:  "Poppins", ui-sans-serif, system-ui, sans-serif;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-2xl: 48px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(31,53,39,.06), 0 2px 6px rgba(31,53,39,.04);
  --shadow-md: 0 4px 14px rgba(31,53,39,.06), 0 10px 28px rgba(31,53,39,.06);
  --shadow-lg: 0 10px 30px rgba(31,53,39,.08), 0 30px 60px rgba(31,53,39,.10);
  --shadow-glow: 0 20px 60px -20px rgba(55,89,67,.35);

  /* Layout */
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--forest); color: var(--cream); }

/* -------- Type -------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: .5;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-family: var(--serif); font-size: clamp(44px, 6.4vw, 88px); }
h2 { font-family: var(--serif); font-size: clamp(36px, 4.8vw, 64px); line-height: 1.04; }
h3 { font-family: var(--sans); font-weight: 500; font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.015em; }
h4 { font-family: var(--sans); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }

p { margin: 0; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-soft); font-weight: 300; }

/* -------- Layout -------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-tight { padding: clamp(60px, 8vw, 100px) 0; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 10px 28px -14px rgba(55,89,67,.7);
}
.btn-primary:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 18px 38px -16px rgba(55,89,67,.8);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(55,89,67,.05); border-color: rgba(55,89,67,.25); }

.btn-arrow { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-lg { padding: 19px 30px; font-size: 16px; }

/* -------- Nav -------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: backdrop-filter .3s, background .3s, border-color .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(251, 251, 245, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 0;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 28px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 30px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 400;
  transition: color .2s;
}
.nav-links a:hover { color: var(--forest); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 18px; font-size: 14px; }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* -------- Cards & surfaces -------- */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(55,89,67,.18);
}

/* -------- Reveal animation -------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Footer -------- */
.footer {
  background: var(--forest-darker);
  color: rgba(248,249,239,.78);
  padding: 80px 0 40px;
}
.footer h4 { color: var(--cream); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; opacity: .7; margin-bottom: 18px; }
.footer a { color: rgba(248,249,239,.72); transition: color .2s; }
.footer a:hover { color: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(248,249,239,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: rgba(248,249,239,.5);
  flex-wrap: wrap; gap: 16px;
}

/* utility */
.mono-num { font-feature-settings: "tnum" 1, "ss01" 1; }
.text-mute { color: var(--ink-mute); }

/* horizontal rule */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
  margin: 0;
}
