/* ==========================================================================
   E-libris — site institucional
   Implementação fiel ao protótipo Figma "e-libris website" (frame 2:21)
   Base de referência: 1440px de conteúdo (container 1200px), fluido abaixo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fontes (self-hosted — Montserrat / Montserrat Alternates, SIL OFL)
   -------------------------------------------------------------------------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/montserrat-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/montserrat-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/montserrat-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/montserrat-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/montserrat-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/montserrat-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat Alternates"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/montserrat-alternates-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat Alternates"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/montserrat-alternates-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --c-bg: #001046;            /* fundo da página */
  --c-bg-stats: #000e3f;      /* faixa "Resultados" */
  --c-hero-grad: #152d7d;     /* início do gradiente do hero */
  --c-text: #ececec;          /* texto principal */
  --c-text-dim: rgba(236, 236, 236, 0.65);
  --c-white: #ffffff;
  --c-muted: #939393;         /* copyright */
  --c-green: #24d366;         /* acento */
  --c-ink: #0b081c;           /* texto dos botões claros */

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-alt: "Montserrat Alternates", "Montserrat", sans-serif;

  /* Sombras (valores idênticos aos efeitos do Figma) */
  --shadow-card: 0 -2px 10px rgba(203, 215, 255, 0.30), 0 -2px 40px rgba(69, 105, 224, 0.15);
  --shadow-hero: 0 -2px 10px rgba(233, 223, 255, 0.30), 0 -2px 40px rgba(187, 155, 255, 0.15);
  --shadow-inset-top: inset 0 0.5px 0 rgba(255, 255, 255, 0.50);

  --container: 1200px;
  --gutter: 24px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 60px;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn--primary { background: var(--c-text); border-color: var(--c-text); color: var(--c-ink); }
.btn--ghost   { background: transparent; border-color: var(--c-text); color: var(--c-text); }
.btn--primary:hover { background: #ffffff; border-color: #ffffff; }
.btn--ghost:hover   { background: rgba(236, 236, 236, 0.08); }
.btn:focus-visible { outline: 2px solid var(--c-green); outline-offset: 3px; }

/* navbar: 40px de altura, px 20 / py 8, raio 50 (stroke desenhado por dentro) */
.btn--nav { padding: 7px 19px; border-radius: 50px; font-weight: 400; }
/* demais: 48px de altura, px 24 / py 12, raio 60 */
.btn--lg  { padding: 11px 23px; }
.btn--bold     { font-weight: 700; }
.btn--semibold { font-weight: 600; }
.btn--medium   { font-weight: 500; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav__logo img { width: 108px; height: 34px; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  display: block;
  padding: 24px 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-text);
  white-space: nowrap;
  transition: color .2s ease;
}
.nav__link:hover { color: #ffffff; }

/* Hambúrguer (só aparece abaixo de 1024px) */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-right: -8px;
}
.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-text);
  transition: transform .25s ease, opacity .2s ease;
}
.nav--open .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 169px 0 165px;
  overflow: hidden;
  overflow: clip;
}

/* Figma "Rectangle 19": gradiente vertical #152d7d → rgba(38,82,227,0) */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1203px;
  max-height: 100%;
  background: linear-gradient(180deg, var(--c-hero-grad) -41.895%, rgba(38, 82, 227, 0) 76.351%);
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  left: -550px;
  top: 0;
  width: 1615px;
  height: 1060px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: min(960px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.hero__title-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 38px;
  width: 100%;
}

.hero__title {
  width: 1080px;                 /* o título é mais largo que o container de 960 */
  max-width: calc(100vw - 2 * var(--gutter));
  flex: none;
  font-weight: 700;
  font-size: clamp(2.25rem, 1rem + 4.5vw, 5rem); /* 80px no desktop */
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  background-image: linear-gradient(170.905deg, #ececec 20.345%, rgba(236, 236, 236, 0) 128.73%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* "transforma." + traço verde (Figma "Vector 1") */
.hl { position: relative; display: inline-block; }
.hl__underline {
  position: absolute;
  left: 0.19em;
  top: calc(100% + 0.024em);
  width: 5.425em;        /* 434px @ 80px */
  height: auto;
  max-width: none;
  pointer-events: none;
}

.hero__text {
  width: 650px;   /* 665 no Figma; 650 reproduz a mesma quebra de linha no browser */
  max-width: 100%;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  color: var(--c-text-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding-top: 16px;
}

.hero__image {
  position: relative;
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  isolation: isolate;
}
.hero__image img { width: 100%; height: auto; aspect-ratio: 960 / 460; object-fit: cover; }
.hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-inset-top);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Título de seção com glow (Figma "Section Title")
   -------------------------------------------------------------------------- */
.section-title {
  position: relative;
  width: 922px;            /* h2 de 902px + 10px de padding (transborda o bloco de 676px) */
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

/* Reprodução em CSS da imagem de fundo (glow radial azul-claro, 676×309, FIT) */
.section-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 676px;
  height: 309px;
  transform: translateX(-50%);
  background: radial-gradient(circle 160px at 50% 50%,
    rgba(102, 122, 214, 0.098) 0%,
    rgba(102, 122, 214, 0.098) 12%,
    rgba(102, 122, 214, 0.078) 31%,
    rgba(102, 122, 214, 0.059) 44%,
    rgba(102, 122, 214, 0.043) 56%,
    rgba(102, 122, 214, 0.024) 69%,
    rgba(102, 122, 214, 0.008) 81%,
    rgba(102, 122, 214, 0.004) 94%,
    rgba(102, 122, 214, 0) 100%);
  pointer-events: none;
  z-index: 0;
}
.section-title > * { position: relative; z-index: 1; }

.section-title__wrap { padding: 10px; width: 100%; }

.section-title__heading {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: var(--c-text);
}

.section-title__text {
  width: 790px;
  max-width: 100%;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-text);
}

/* --------------------------------------------------------------------------
   Cards (base compartilhada)
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  border-radius: 20px;
  padding: 60px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  box-shadow: var(--shadow-card), var(--shadow-inset-top);
}

.card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.card__icon { width: 50px; height: 50px; }

.card__title {
  font-weight: 500;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.16px;
  color: var(--c-text);
}

.card__text {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text);
}

.card__actions { height: 40px; width: 100%; }

/* Caixa de ícone 50×50 com borda verde (Figma "Rectangle 21" + ícone) */
.icon-box {
  position: relative;
  width: 50px;
  height: 50px;
  border: 1px solid var(--c-green);
  border-radius: 10px;
  flex: none;
}
.icon-box img { position: absolute; }
.icon-box--asset img   { left: 10px; top: 11px; width: 27px; height: 27px; }  /* 11,12 medidos a partir da borda externa */
.icon-box--monitor img { left: 9px;  top: 9px;  width: 29px; height: 30px; }  /* 10,10 */

/* --------------------------------------------------------------------------
   Plataforma / recursos
   -------------------------------------------------------------------------- */
.features {
  position: relative;
  padding-bottom: 47px;
}

.features__container {
  padding: 10px;
  margin-top: 99px;
}

.features__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 80px;
}

.card--02 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 68px;
}
.card__title--narrow { width: 399px; max-width: 100%; }

.card--wide {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.card__content--fixed { width: 460px; flex: none; }

.card__media {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.media-wrap { width: 467px; max-width: 100%; }

.card-img {
  position: relative;
  width: 403px;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 1.1668px rgba(255, 255, 255, 0.10),
    0 0 0 2.3335px rgba(0, 0, 0, 0.05),
    var(--shadow-card);
}
.card-img img { width: 100%; height: auto; aspect-ratio: 403 / 259; object-fit: cover; }
.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0.5834px 0 rgba(255, 255, 255, 0.5), var(--shadow-inset-top);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Resultados / números
   -------------------------------------------------------------------------- */
.stats {
  background: var(--c-bg-stats);
  padding: 107px 0 145px;
  text-align: center;
}

.stats__title {
  width: 808px;
  max-width: 100%;
  margin: 0 auto;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: var(--c-text);
}

.stats__text {
  width: 808px;
  max-width: 100%;
  margin: 28px auto 83px;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--c-text);
}

.stats__grid {
  width: 1170px;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  /* 304 / 310 / 313.5 / 242.5 px no Figma (fr mantém a proporção em larguras menores) */
  grid-template-columns: 304fr 310fr 313.5fr 242.5fr;
  text-align: left;
}

.stat {
  position: relative;
  padding-top: 73px;
  min-height: 167px;
}
.stat--2 { padding-left: 14px; }
.stat--3 { padding-left: 19px; }
.stat--4 { padding-left: 14.5px; }

.stat__icon { position: absolute; left: 0; top: 0; }
.stat--1 .stat__icon { top: 7px; }
.stat--2 .stat__icon { left: 10px;   top: 3px; }
.stat--3 .stat__icon { left: 14px;   top: 3px; }
.stat--4 .stat__icon { left: 12.5px; top: 0; }

.stat__line {
  position: absolute;
  left: -1px;
  top: 9.5px;
  width: 2px;
  height: 158px;
  max-width: none;
}

.stat__number {
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  color: var(--c-white);
}

.stat__label {
  font-weight: 600;
  font-size: 20px;
  line-height: 2.15;
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   Como funciona
   -------------------------------------------------------------------------- */
.how {
  position: relative;
  padding: 127px 0 119px;
  overflow: hidden;
  overflow: clip;
}

.how__blob {
  position: absolute;
  left: -360px;
  top: 0;
  width: 1615px;
  height: 925px;
  pointer-events: none;
}

.how__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.how__label {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-green);
}

.how__title {
  margin-top: 21px;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: var(--c-text);
}

.how__cta { margin-top: 30px; }

.how__grid {
  width: 1180px;
  max-width: 100%;
  margin: 109px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 24px;
  align-items: start;
  text-align: left;
}

.how-card--02,
.how-card--04 { padding-bottom: 68px; }

.num-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex: none;
  border: 1px solid var(--c-green);
  border-radius: 51px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
  font-family: var(--font-alt);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 20px;
  color: var(--c-green);
}

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.cta {
  background: rgba(0, 0, 0, 0.10);
  padding: 79px 0;
  text-align: center;
}

.cta__inner {
  width: 817px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 41px;
}

.cta__title {
  width: 808px;
  max-width: 100%;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: var(--c-text);
}
.accent { color: var(--c-green); }
.nowrap { white-space: nowrap; }

.cta__text {
  width: 730px;
  max-width: 100%;
  padding-bottom: 27px;   /* linha vazia que existe no texto do protótipo */
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--c-text);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 179px 0 20px;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  min-height: 95px;
}
.footer__col--contact { width: 438px; flex: none; }
.footer__col--social  { flex: 1 1 auto; min-width: 0; }   /* 760px no Figma */

.footer__heading {
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 24px;
  line-height: normal;
  letter-spacing: -0.24px;
  color: var(--c-white);
}

.footer__link {
  display: inline-block;
  font-weight: 300;
  font-size: 18px;
  line-height: normal;
  letter-spacing: -0.18px;
  color: var(--c-white);
  transition: color .2s ease;
}
.footer__link:hover { color: var(--c-green); }

.footer__social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer__bottom {
  position: relative;
  height: 95px;
  margin-top: 55px;
}

.footer__logo {
  position: absolute;
  left: -9px;        /* a imagem do logo tem margem transparente; o Figma compensa com -9px */
  top: 25.5px;
}
.footer__logo img { width: 106px; height: 33px; }

.footer__copy {
  position: absolute;
  right: 0;
  top: 37.5px;
  font-weight: 300;
  font-size: 16px;
  line-height: normal;
  letter-spacing: -0.16px;
  color: var(--c-muted);
  white-space: nowrap;
}

/* ==========================================================================
   Ajustes pixel-perfect somente no desktop (container cheio, 1200px)
   ========================================================================== */
@media (min-width: 1248px) {
  .features__row--1 { height: 366px; }  /* no Figma a linha mede 366 e o 2º card transborda 6px */
  .how-card--02 { height: 337px; }
  .how-card--04 { height: 334px; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

/* ----- Laptop / tablet landscape ------------------------------------------ */
@media (max-width: 1247px) {
  .card__title--narrow { width: auto; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1100px) {
  .card { padding: 48px; }
}

/* ----- Grids viram coluna única ------------------------------------------ */
@media (max-width: 900px) {
  .features__row { grid-template-columns: 1fr; }
  .how__grid { grid-template-columns: 1fr; }
}

/* ----- Tablet ------------------------------------------------------------- */
@media (max-width: 1023px) {
  /* navbar colapsa em menu hambúrguer */
  .nav__toggle { display: flex; }
  .nav__menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px var(--gutter) 24px;
    background: var(--c-bg);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav--open .nav__menu { display: flex; }
  .nav__link { padding: 14px 0; }
  .nav__menu .btn { margin-top: 8px; }
  .nav__menu .btn + .btn { margin-top: 0; }

  .hero { padding: 120px 0 120px; }
  .hero__inner { gap: 64px; }

  .section-title__heading { font-size: 42px; }

  .features__container { padding: 0; margin-top: 80px; }
  .features__row { margin-bottom: 24px; }

  .card { padding: 40px; }
  .card--02 { padding-bottom: 40px; }
  .card--wide { flex-direction: column; gap: 32px; }
  .card__content--fixed { width: 100%; }
  .card__media { align-items: flex-start; width: 100%; }
  .media-wrap { width: 100%; }

  .stats { padding: 96px 0 104px; }
  .stats__grid {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .stat { padding-left: 0; min-height: 0; }
  .stat--2, .stat--3, .stat--4 { padding-left: 24px; }
  .stat--3 { padding-left: 0; }
  .stat--3 .stat__line { display: none; }
  .stat .stat__icon { left: 0; }
  .stat--2 .stat__icon, .stat--4 .stat__icon { left: 24px; }

  .how { padding: 104px 0 96px; }
  .how__grid { margin-top: 72px; gap: 24px; }
  .how-card--02, .how-card--04 { padding-bottom: 40px; }

  .cta { padding: 72px 0; }

  .site-footer { padding-top: 120px; }
  .footer__top { flex-wrap: wrap; gap: 40px 64px; }
  .footer__col--contact, .footer__col--social { width: auto; }
}

/* ----- Mobile ------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero { padding: 88px 0 96px; }
  .hero__inner { gap: 48px; }
  .hero__title-section { gap: 16px; }
  .hero__content { gap: 24px; }
  .hero__text { font-size: 16px; }
  .hero__image { border-radius: 16px; }

  .section-title { padding: 16px 0; gap: 20px; }
  .section-title__wrap { padding: 0; }
  .section-title__heading { font-size: 34px; }
  .section-title__text { font-size: 16px; }

  .features { padding-bottom: 32px; }
  .features__container { margin-top: 56px; }
  .features__row { gap: 20px; margin-bottom: 20px; }

  .card { padding: 36px 28px; border-radius: 16px; }
  .card--02 { padding-bottom: 36px; }
  .card__title { font-size: 26px; }
  .card__actions { height: 0; }
  .card-img { border-radius: 16px; }

  .stats { padding: 80px 0 88px; }
  .stats__title { font-size: 34px; }
  .stats__text { font-size: 16px; margin: 20px auto 56px; }
  .stats__grid { gap: 36px 16px; }
  .stat { padding-top: 64px; }
  .stat--2, .stat--4 { padding-left: 20px; }
  .stat--2 .stat__icon, .stat--4 .stat__icon { left: 20px; }
  .stat__number { font-size: 32px; }
  .stat__label { font-size: 17px; line-height: 2; }
  .stat__line { height: 140px; }

  .how { padding: 88px 0 80px; }
  .how__label { font-size: 16px; }
  .how__title { font-size: 34px; margin-top: 12px; }
  .how__cta { margin-top: 24px; }
  .how__grid { gap: 20px; margin-top: 56px; }
  .how-card--02, .how-card--04 { padding-bottom: 36px; }

  .cta { padding: 64px 0; }
  .cta__inner { gap: 24px; }
  .cta__title { font-size: 32px; }
  .cta__br { display: none; }
  .cta__text { font-size: 16px; padding-bottom: 8px; }

  .site-footer { padding: 88px 0 32px; }
  .footer__top { min-height: 0; gap: 32px 48px; }
  .footer__heading { font-size: 22px; }
  .footer__bottom {
    height: auto;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer__logo, .footer__copy { position: static; }
  .footer__logo { margin-left: -9px; }
  .footer__copy { white-space: normal; font-size: 14px; }
}

/* ----- Mobile pequeno ----------------------------------------------------- */
@media (max-width: 479px) {
  :root { --gutter: 20px; }

  .hero { padding: 64px 0 80px; }
  .hero__br, .stats__br { display: none; }
  .hero__actions, .cta__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }

  .stats__grid { grid-template-columns: 1fr; gap: 28px; }
  .stat { padding-top: 56px; }
  .stat--2, .stat--3, .stat--4 { padding-left: 0; }
  .stat__line { display: none; }
  .stat--2 .stat__icon, .stat--4 .stat__icon { left: 0; }

  .card { padding: 32px 22px; }
  .card__title { font-size: 24px; }
}

/* ----- Preferências do usuário ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
