/* =====================================================================
   Compuletra — Site institucional
   Camada de estilos derivada do Compuletra Design System.
   Tokens originais importados via :root abaixo; aqui aplicamos a
   linguagem de marketing institucional (escala maior, seções escuras).
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Nunito:wght@600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Marca (fonte da verdade: The Brand.png) */
  --brand-green: #00A651;
  --brand-green-deep: #00582D;   /* verde-escuro do briefing */
  --brand-charcoal: #414042;

  --green-50:  #E6F6EE;
  --green-100: #C7EBD7;
  --green-200: #8FD7AF;
  --green-300: #5BC388;
  --green-400: #2BB069;
  --green-500: #00A651;
  --green-600: #008A43;
  --green-700: #006F36;
  --green-800: #00582D;
  --green-900: #003F1F;

  --neutral-0:   #FFFFFF;
  --neutral-25:  #FCFCFD;
  --neutral-50:  #F8F9FB;
  --neutral-100: #F1F3F6;
  --neutral-150: #E7EAEF;
  --neutral-200: #DCE0E6;
  --neutral-300: #C2C8D1;
  --neutral-400: #9CA3AF;
  --neutral-500: #6B7280;
  --neutral-600: #4B5563;
  --neutral-700: #374151;
  --neutral-800: #1F2937;
  --neutral-900: #111827;
  --neutral-950: #0A0F1A;

  /* Tons escuros institucionais (seções de contraste) */
  --ink-900: #0B130F;   /* quase-preto esverdeado */
  --ink-850: #0F1A14;
  --ink-800: #14241B;

  --fg-1: var(--brand-charcoal);
  --fg-2: #55565A;
  --fg-3: var(--neutral-500);
  --fg-4: var(--neutral-400);

  --bg-app:     var(--neutral-0);
  --bg-soft:    var(--neutral-50);
  --bg-muted:   var(--neutral-100);
  --border-1:   var(--neutral-200);
  --border-2:   var(--neutral-150);

  --accent: var(--brand-green);
  --accent-hover: var(--green-600);
  --accent-press: var(--green-700);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-lg: 0 24px 60px rgba(11,19,15,0.14), 0 6px 16px rgba(11,19,15,0.06);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Nunito', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --container: 1200px;
  --container-wide: 1320px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* --- Reset enxuto -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--fg-1); font-family: var(--font-display); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--green-200); color: var(--ink-900); }

/* --- Layout helpers ----------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 32px; }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  font-family: var(--font-sans);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px;
}
.eyebrow.on-dark { color: var(--green-300); }
.eyebrow.on-dark::before { background: var(--green-300); }
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::before { display: none; }

.h1 { font-weight: 800; font-size: clamp(2.4rem, 4.8vw, 4.1rem); line-height: 1.04; letter-spacing: -0.025em; color: var(--fg-1); }
.h2 { font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em; }
.h3 { font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--fg-2); }

.section-head { max-width: 720px; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 18px; }
.section-head p { margin-top: 18px; }

/* --- Botões -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: var(--radius-md);
  border: 1px solid transparent; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--fg-1); border-color: var(--border-1); }
.btn-outline:hover { border-color: var(--fg-3); background: var(--bg-soft); }
.btn-ghost { background: transparent; color: var(--accent); padding-inline: 4px; }
.btn-ghost:hover { color: var(--accent-hover); }
.btn-ghost .arr { transition: transform .18s var(--ease); }
.btn-ghost:hover .arr { transform: translateX(3px); }

.btn.on-dark.btn-outline { color: #fff; border-color: rgba(255,255,255,0.24); }
.btn.on-dark.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }

/* --- Header -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 15.5px; font-weight: 500; color: var(--fg-2);
  transition: color .15s var(--ease); position: relative; padding-block: 6px;
}
.nav__links a:hover { color: var(--fg-1); }
.nav__links a.active { color: var(--fg-1); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: none; color: var(--fg-1); padding: 8px; }
.nav__toggle svg { width: 26px; height: 26px; }

/* --- Hero ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(0,166,81,0.22), transparent 60%),
    linear-gradient(160deg, var(--ink-850) 0%, var(--ink-900) 55%, #070d0a 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 500px at 75% 8%, #000, transparent 75%);
          mask-image: radial-gradient(900px 500px at 75% 8%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(76px, 11vw, 150px); max-width: 860px; }
.hero h1 { color: #fff; margin-top: 26px; }
.hero h1 .accent { color: var(--green-300); }
.hero__sub { margin-top: 26px; font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.62; color: rgba(255,255,255,0.78); max-width: 680px; }
.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__seals { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero__seal { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: rgba(255,255,255,0.62); font-weight: 500; }
.hero__seal svg { width: 18px; height: 18px; color: var(--green-300); }
.hero__seal + .hero__seal { padding-left: 26px; border-left: 1px solid rgba(255,255,255,0.12); }

/* --- Barra de prova (números) ------------------------------------- */
.proof { background: var(--ink-900); border-top: 1px solid rgba(255,255,255,0.06); }
.proof__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-block: 0;
}
.proof__item { padding: 38px 28px; border-left: 1px solid rgba(255,255,255,0.08); }
.proof__item:first-child { border-left: none; }
.proof__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.8rem); color: #fff; line-height: 1; letter-spacing: -0.02em; }
.proof__num .u { color: var(--green-300); }
.proof__label { margin-top: 12px; font-size: 14.5px; color: rgba(255,255,255,0.62); line-height: 1.4; }

/* --- Sobre (resumo) ----------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__media {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-muted); border: 1px solid var(--border-1);
}
.about__media image-slot { width: 100%; height: 100%; }
.about__chip {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  background: rgba(11,19,15,0.86); backdrop-filter: blur(6px); color: #fff;
  border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-md);
}
.about__chip strong { font-family: var(--font-display); font-weight: 800; font-size: 30px; display: block; line-height: 1; }
.about__chip span { font-size: 13.5px; color: rgba(255,255,255,0.7); }
.about__body .h2 { margin-top: 18px; }
.about__body p { margin-top: 20px; color: var(--fg-2); font-size: 1.08rem; }
.about__body .btn-ghost { margin-top: 26px; }

/* --- Cards de soluções -------------------------------------------- */
.solutions { background: var(--bg-soft); }
.solutions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.sol-card {
  display: flex; flex-direction: column;
  background: var(--bg-app); border: 1px solid var(--border-1);
  border-radius: var(--radius-lg); padding: 32px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.sol-card:hover { border-color: var(--green-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.sol-card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--green-50); color: var(--accent); border: 1px solid var(--green-100);
}
.sol-card__icon svg { width: 26px; height: 26px; }
.sol-card__name { margin-top: 22px; font-size: 1.4rem; font-weight: 800; font-family: var(--font-display); color: var(--fg-1); }
.sol-card__tag { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.sol-card__desc { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--fg-2); flex: 1; }
.sol-card__link { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--fg-1); }
.sol-card__link svg { width: 17px; height: 17px; transition: transform .18s var(--ease); }
.sol-card:hover .sol-card__link { color: var(--accent); }
.sol-card:hover .sol-card__link svg { transform: translateX(3px); }

/* --- Depoimentos --------------------------------------------------- */
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.quote {
  display: flex; flex-direction: column; background: var(--bg-app);
  border: 1px solid var(--border-1); border-radius: var(--radius-lg); padding: 32px;
}
.quote__mark { color: var(--green-300); width: 34px; height: 34px; }
.quote__text { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--fg-1); flex: 1; }
.quote__foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border-2); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quote__client { display: flex; flex-direction: column; }
.quote__client .name { font-weight: 700; font-size: 15px; color: var(--fg-1); }
.quote__client .proj { font-size: 13px; color: var(--fg-3); }
.quote__logo { height: 30px; width: 92px; }

/* logo placeholder (cliente) */
.client-logo {
  display: grid; place-items: center; height: 32px; padding: 0 12px;
  border-radius: var(--radius-sm); background: var(--bg-muted);
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  color: var(--fg-3); letter-spacing: 0.01em; white-space: nowrap;
}

/* --- Notícias ------------------------------------------------------ */
.news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.news-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-app); border: 1px solid var(--border-1);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.news-card:hover { border-color: var(--green-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card__media { aspect-ratio: 16/10; background: var(--bg-muted); position: relative; }
.news-card__media image-slot { width: 100%; height: 100%; }
.news-card__cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(11,19,15,0.84); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: var(--radius-pill); letter-spacing: 0.02em;
}
.news-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: 13px; color: var(--fg-3); font-weight: 500; }
.news-card__title { margin-top: 10px; font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--fg-1); font-family: var(--font-display); flex: 1; }
.news-card__more { margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }

/* --- Certificações ------------------------------------------------- */
.certs { background: var(--ink-900); color: #fff; }
.certs__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.certs h2 { color: #fff; margin-top: 18px; }
.certs p { margin-top: 20px; color: rgba(255,255,255,0.72); font-size: 1.05rem; }
.certs__link { margin-top: 26px; }
.seals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.seal {
  display: flex; align-items: center; gap: 16px; padding: 22px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
}
.seal__badge {
  flex: none; width: 54px; height: 54px; border-radius: var(--radius-pill);
  display: grid; place-items: center; background: rgba(0,166,81,0.16);
  border: 1px solid rgba(43,176,105,0.4); color: var(--green-300);
}
.seal__badge svg { width: 24px; height: 24px; }
.seal__code { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; }
.seal__desc { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.seal.is-finep .seal__badge { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #fff; }

/* --- CTA faixa ----------------------------------------------------- */
.cta-band { background: var(--brand-green-deep); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 380px at 85% 120%, rgba(0,166,81,0.5), transparent 70%);
}
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-block: clamp(48px, 6vw, 72px); }
.cta-band h2 { color: #fff; max-width: 640px; }
.cta-band p { margin-top: 14px; color: rgba(255,255,255,0.8); max-width: 560px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--brand-green-deep); }
.cta-band .btn-primary:hover { background: var(--green-50); }

/* --- Footer -------------------------------------------------------- */
.footer { background: var(--ink-900); color: rgba(255,255,255,0.7); padding-block: 72px 36px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; }
.footer__logo img { height: 30px; }
.footer__about { margin-top: 22px; font-size: 15px; line-height: 1.6; max-width: 320px; color: rgba(255,255,255,0.62); }
.footer__social { margin-top: 24px; display: flex; gap: 12px; }
.footer__social a { width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); transition: background .18s var(--ease), color .18s var(--ease); }
.footer__social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer__social svg { width: 19px; height: 19px; }
.footer__col h4 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-sans); }
.footer__col ul { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 15px; color: rgba(255,255,255,0.66); transition: color .15s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__contact { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; line-height: 1.5; }
.footer__contact div { display: flex; gap: 12px; }
.footer__contact svg { width: 18px; height: 18px; flex: none; color: var(--green-300); margin-top: 2px; }
.footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,0.5); }
.footer__bottom a { color: rgba(255,255,255,0.6); }
.footer__bottom a:hover { color: #fff; }

/* --- Reveal animação ---------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* --- Mobile nav ---------------------------------------------------- */
.mobile-menu { display: none; }

/* --- Responsivo ---------------------------------------------------- */
@media (max-width: 1024px) {
  .proof__grid { grid-template-columns: repeat(3, 1fr); }
  .proof__item:nth-child(4) { border-left: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .solutions__grid, .quotes__grid, .news__grid { grid-template-columns: 1fr; }
  .about__grid, .certs__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .certs__grid .seals { order: 2; }
  .mobile-menu.open { display: block; }
  .mobile-menu {
    position: fixed; inset: 76px 0 0; z-index: 49; background: var(--bg-app);
    padding: 24px 32px; overflow-y: auto; border-top: 1px solid var(--border-2);
  }
  .mobile-menu a { display: block; padding: 16px 0; font-size: 19px; font-weight: 600; color: var(--fg-1); border-bottom: 1px solid var(--border-2); }
  .mobile-menu .btn { margin-top: 24px; width: 100%; }
}
@media (max-width: 600px) {
  .container { padding-inline: 20px; }
  .nav__logo img { height: 34px; }
  .proof__grid { grid-template-columns: 1fr 1fr; }
  .proof__item { border-left: none !important; border-top: 1px solid rgba(255,255,255,0.08); padding: 28px 20px; }
  .proof__item:nth-child(-n+2) { border-top: none; }
  .seals { grid-template-columns: 1fr; }
  .hero__seal + .hero__seal { padding-left: 0; border-left: none; }
  .footer__top { grid-template-columns: 1fr; }
}

/* Selos oficiais BSI */
