/* =========================================================================
   Lab-iMetrics — Home (estilo Figma "Relume")
   Branco sobre quase-preto · Spectral protagonista · botões navy em relevo
   ========================================================================= */

:root {
  /* Base = faixa NAVY (azul-marinho), texto claro */
  --ink: #0F1535;
  --surface: #1B2256;
  --surface-2: #161D46;
  --line: rgba(255,255,255,0.18);
  --line-soft: rgba(255,255,255,0.10);

  --white: #FFFFFF;
  --body: rgba(255,255,255,0.74);
  --body-dim: rgba(255,255,255,0.54);

  --navy: #0F1535;
  --navy-hover: #161D45;
  --navy-edge: #090D24;
  --amber: #F39C12;
  --teal: #16A085;

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --num: 'Roboto', 'DM Sans', sans-serif;

  --maxw: 1280px;
  --pad-x: 64px;
  --sec-y: clamp(72px, 11vw, 112px);
}

/* Faixa BRANCA — texto navy. Aplique .band-light a uma <section>. */
.band-light {
  background: #FFFFFF;
  color: #0F1535;
  --ink: #FFFFFF;
  --surface: #F3F5F9;
  --surface-2: #EBEEF5;
  --line: rgba(15,21,53,0.14);
  --line-soft: rgba(15,21,53,0.09);
  --white: #0F1535;
  --body: rgba(15,21,53,0.70);
  --body-dim: rgba(15,21,53,0.50);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--amber); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--sec-y); }

/* ===== Typography ===== */
.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
.h-hero { font-family: var(--serif); font-weight: 700; font-size: clamp(2.5rem, 5vw, 62px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: pretty; }
.h-sec  { font-family: var(--serif); font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 60px); line-height: 1.16; letter-spacing: -0.01em; text-wrap: pretty; }
.h-card { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 2.7vw, 40px); line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.h-lbl  { font-family: var(--serif); font-weight: 700; font-size: clamp(1.25rem, 1.7vw, 26px); line-height: 1.35; letter-spacing: -0.01em; }
.lead   { font-size: clamp(1rem, 1.35vw, 20px); line-height: 1.55; color: var(--body); text-wrap: pretty; }
.tagline { font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--white); }

/* ===== Logo (onda senoidal + ponto âmbar + wordmark) ===== */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo svg { display: block; overflow: visible; }
.logo img { display: block; height: 40px; width: auto; }
.logo .wave path { stroke: var(--white); stroke-width: 2; fill: none; stroke-linecap: round; }
.logo .wave circle { fill: var(--amber); }
.logo-word { font-family: var(--sans); font-weight: 500; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--white); }
.logo-word .i { color: var(--amber); }
.foot-credits .logo img { height: 36px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 18px; line-height: 1.5;
  padding: 10px 24px; border-radius: 6px; white-space: nowrap;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary {
  background: #FFFFFF; color: var(--navy);
  border: 1.5px solid rgba(255,255,255,0.65); border-bottom: 4px solid #C3C8DC;
}
.btn-primary:hover { background: #EAEDF5; }
.btn-primary:active { transform: translateY(2px); border-bottom-width: 1.5px; }
.band-light .btn-primary {
  background: var(--navy); color: #FFFFFF;
  border: 1.5px solid var(--navy-edge); border-bottom-width: 4px;
}
.band-light .btn-primary:hover { background: var(--navy-hover); }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 1.5px solid var(--line); border-bottom-width: 4px;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.45); }
.btn-secondary:active { transform: translateY(2px); border-bottom-width: 1.5px; }
.btn-sm { padding: 8px 18px; font-size: 16px; border-bottom-width: 3px; }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--white);
  font-family: var(--sans); font-weight: 500; font-size: 18px;
}
.btn-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn-link:hover { color: var(--amber); }
.btn-link:hover svg { transform: translateX(3px); }
.actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 80; background: var(--ink);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-left { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a, .nav-more {
  font-family: var(--sans); font-size: 18px; color: var(--white); opacity: 0.86;
  display: inline-flex; align-items: center; gap: 4px; transition: opacity .2s ease;
}
.nav-links a:hover, .nav-more:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after { content: ""; display: block; height: 2px; background: var(--amber); margin-top: 3px; }
.nav-more svg { width: 18px; height: 18px; transition: transform .25s ease; }
.site-header.menu-open .nav-more svg { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 16px; color: var(--white);
  padding: 8px 18px; border: 1.5px solid var(--line); border-bottom-width: 3px; border-radius: 6px;
  transition: border-color .2s ease;
}
.menu-toggle:hover { border-color: rgba(255,255,255,0.45); }
.menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle .lbl-close { display: none; }
.site-header.menu-open .menu-toggle .lbl-open { display: none; }
.site-header.menu-open .menu-toggle .lbl-close { display: inline; }

/* ===== Mega menu ===== */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink); border-bottom: 1px solid var(--line);
  overflow: hidden; max-height: 0; opacity: 0; visibility: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s ease, visibility .4s;
}
.site-header.menu-open .mega { max-height: 620px; opacity: 1; visibility: visible; }
.mega-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 36px var(--pad-x);
}
.mega-col h4 {
  font-family: var(--sans); font-weight: 700; font-size: 18px; color: var(--white);
  padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line-soft);
}
.mega-item { display: block; padding: 11px 0; transition: opacity .2s ease; }
.mega-item:hover { opacity: 1; }
.mega-top { display: flex; align-items: center; gap: 10px; }
.mega-item .ic { flex: 0 0 22px; width: 22px; height: 22px; color: var(--teal); overflow: hidden; }
.mega-item .ic svg { width: 22px; height: 22px; display: block; }
.mega-item .tt { font-family: var(--sans); font-weight: 500; font-size: 16px; color: var(--white); }
.mega-bottom {
  background: var(--surface); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px var(--pad-x); font-size: 18px;
}
.mega-bottom .ask { color: var(--white); }
.mega-bottom .ask a { text-decoration: underline; text-underline-offset: 3px; }
.mega-bottom .ask a:hover { color: var(--amber); }
.mega-bottom .mb-actions { display: flex; gap: 18px; align-items: center; }
.mega-bottom .mb-actions a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-size: 16px; }
.mega-bottom .mb-actions svg { width: 20px; height: 20px; color: var(--teal); }

/* ===== Hero ===== */
.hero { background: var(--ink); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 720px; }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 96px clamp(40px, 5vw, 80px) 96px var(--pad-x); }
.hero-left .inner { max-width: 560px; margin-left: auto; width: 100%; }
.hero-left .lead { margin-top: 24px; max-width: 36rem; }
.hero-left .actions { margin-top: 36px; }

/* Carousel */
.hero-slider { position: relative; background: var(--surface); overflow: hidden; }
.slider-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.slide { position: relative; flex: 0 0 100%; display: flex; flex-direction: column; }
.slide-img { flex: 1 1 auto; min-height: 420px; background: var(--surface-2); position: relative; overflow: hidden; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.slide-img--full img { object-fit: contain; }
.slide-caption { padding: 32px 32px 96px; }
.slide-caption .h-lbl { color: var(--white); }
.slide-caption p { margin-top: 4px; font-size: 18px; color: var(--body); }
.slider-controls {
  position: absolute; left: 32px; right: 32px; bottom: 32px;
  display: flex; justify-content: space-between; align-items: center; z-index: 3;
}
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); transition: background .2s ease, width .2s ease; }
.slider-dots button.active { background: var(--white); width: 22px; border-radius: 4px; }
.slider-arrows { display: flex; gap: 12px; }
.slider-arrows button {
  width: 48px; height: 48px; border-radius: 6px; border: 1.5px solid var(--line); border-bottom-width: 3px;
  display: flex; align-items: center; justify-content: center; color: var(--white); transition: border-color .2s ease, background .2s ease;
}
.slider-arrows button:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.slider-arrows svg { width: 22px; height: 22px; }

/* Placeholder image look */
.ph-img {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; color: var(--body-dim);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,0.05), transparent 60%),
    var(--surface-2);
}
.ph-img svg { width: 40px; height: 40px; opacity: 0.5; }
.ph-img span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ===== Section title (split) ===== */
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: flex-start; }
.split-head .tagline { margin-bottom: 14px; display: block; }
.split-head .lead { margin-top: 6px; }
.title-block .lead { margin-top: 24px; }

/* ===== Stats ===== */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 0; }
.stats-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.stat-card {
  border: 1px solid var(--line); border-radius: 2px; padding: 36px 32px;
  display: flex; flex-direction: column; gap: 12px; min-height: 200px;
}
.stat-num { font-family: var(--num); font-weight: 700; font-size: clamp(3.4rem, 5.6vw, 80px); line-height: 1.05; color: var(--white); font-variant-numeric: tabular-nums; }
.stat-card .h-lbl { color: var(--white); font-size: clamp(1.15rem, 1.5vw, 26px); }
.stats-actions { margin-top: 40px; }

/* ===== Centered statement ===== */
.statement { text-align: center; }
.statement .inner { max-width: 900px; margin-inline: auto; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.statement .lead { max-width: 720px; }

/* ===== Destaques ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.dcard { display: flex; flex-direction: column; gap: 28px; }
.dcard .media { width: 100%; aspect-ratio: 395 / 240; border-radius: 8px; overflow: hidden; position: relative; background: var(--surface); }
.dcard .h-card { color: var(--white); }
.dcard p { font-size: 18px; color: var(--body); margin-top: -8px; }
.destaque-actions { margin-top: 64px; }

/* ===== Manifesto ===== */
.manifesto { text-align: center; }
.manifesto .inner { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.manifesto .tagline { display: block; }
.manifesto .quote { font-size: clamp(1.05rem, 1.4vw, 20px); line-height: 1.6; color: var(--body); max-width: 760px; margin-top: 8px; }
.manifesto .logos { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: center; align-items: center; margin-top: 24px; }
.manifesto .plogo { display: inline-flex; align-items: center; gap: 9px; color: var(--body-dim); font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; }
.manifesto .plogo svg { width: 20px; height: 20px; color: var(--teal); }
.manifesto .actions { margin-top: 16px; justify-content: center; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-soft); padding-block: clamp(56px, 8vw, 80px); }
.foot-news { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.foot-news h3 { font-family: var(--sans); font-weight: 700; font-size: 20px; color: var(--white); }
.foot-news p.sub { font-size: 18px; color: var(--body); margin-top: 2px; }
.foot-form { display: flex; flex-direction: column; gap: 12px; max-width: 400px; margin-left: auto; width: 100%; }
.foot-form .row { display: flex; gap: 16px; }
.foot-form input {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 16px; color: var(--white);
  background: transparent; border: 1.5px solid var(--line); border-radius: 6px; padding: 11px 16px;
}
.foot-form input::placeholder { color: var(--body-dim); }
.foot-form input:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.foot-form .fine { font-size: 12px; color: var(--body-dim); }
.foot-form .fine a { text-decoration: underline; }
.foot-divider { height: 1px; background: var(--line); margin-block: clamp(40px, 6vw, 80px); border: 0; }
.foot-links { display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px; }
.foot-col h4 { font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--white); margin-bottom: 16px; }
.foot-col ul { display: flex; flex-direction: column; gap: 12px; }
.foot-col a { font-size: 15px; color: var(--body); transition: color .2s ease; }
.foot-col a:hover { color: var(--white); }
.foot-credits { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-credits .cp { font-size: 15px; color: var(--body); }

/* ===== Reveal ===== */
.reveal.pre { opacity: 0; transform: translateY(22px); }
.reveal.pre.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.pre[data-d="1"].in { transition-delay: .08s; }
.reveal.pre[data-d="2"].in { transition-delay: .16s; }
.reveal.pre[data-d="3"].in { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.pre { opacity: 1; transform: none; } }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1040px) {
  :root { --pad-x: 40px; }
  .foot-links { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-left { padding: 64px var(--pad-x); }
  .hero-left .inner { max-width: 640px; margin-left: 0; }
  .hero-slider { min-height: 520px; }
  .stats-grid, .split-head { grid-template-columns: 1fr; gap: 40px; }
  .cards-3 { grid-template-columns: 1fr; gap: 48px; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .foot-news { grid-template-columns: 1fr; gap: 24px; }
  .foot-form { margin-left: 0; }
}
@media (max-width: 720px) {
  :root { --pad-x: 24px; }
  .nav-links { display: none; }
  .nav-left { gap: 0; }
  .logo img { height: 32px; }
  .stats-cards { grid-template-columns: 1fr; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .mega-grid { grid-template-columns: 1fr; gap: 8px; padding-block: 24px; }
  .mega-col { border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
  .site-header.menu-open .mega { max-height: calc(100vh - 64px); overflow-y: auto; }
}
@media (max-width: 420px) {
  .menu-toggle .lbl-open, .menu-toggle .lbl-close { display: none; }
  .logo img { height: 28px; }
}
@media (max-width: 480px) {
  .foot-form .row { flex-direction: column; }
  .slide-caption { padding: 24px 24px 88px; }
}
