/* Home page. Requires common.css. */

/* Hero */
.hero {
  background: radial-gradient(130% 120% at 85% 6%, var(--navy-3) 0%, var(--navy) 48%, var(--navy-deep) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 10vw, 6.5rem) var(--pad-x) clamp(3rem, 8vw, 5.5rem);
}
.hero::after {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  right: -240px; bottom: -360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,138,4,0.24) 0%, transparent 62%);
  pointer-events: none;
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.1rem, 5.6vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  /* No max-width or balance: the grid column already sets the width.
     The ch limit comes back below, for the stacked layout. */
}
.hero h1 em { font-style: normal; color: var(--orange-soft); }
.hero__desc {
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  color: rgba(255,255,255,0.7);
  max-width: 50ch;
  line-height: 1.65;
  margin: 0 0 2.2rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Compliance panel */
.hero__panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 1.7rem 1.6rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__panel h2 {
  margin: 0 0 1.2rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}
/* .norm-list lives in common.css, shared with the /solicitar-laudo sidebar */

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
}
@media (max-width: 520px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
}

/* Audiences */
.who { padding: clamp(3.5rem, 8vw, 5.5rem) var(--pad-x); background: var(--paper); }
.who__inner { max-width: var(--maxw); margin: 0 auto; }
.who__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.who-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 1.7rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
}
.who-card:hover {
  border-color: rgba(245,138,4,0.45);
  box-shadow: 0 10px 34px rgba(10,32,68,0.10);
  transform: translateY(-3px);
}
html[data-theme="dark"] .who-card:hover { box-shadow: 0 10px 34px rgba(0,0,0,0.4); }
.who-card__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(245,138,4,0.11);
  color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.15rem;
}
html[data-theme="dark"] .who-card__icon { color: var(--orange-soft); }
.who-card--bank .who-card__icon { background: rgba(10,32,68,0.09); color: var(--navy); }
html[data-theme="dark"] .who-card--bank .who-card__icon { background: rgba(120,160,230,0.14); color: #8fb3e8; }
.who-card__icon svg { width: 21px; height: 21px; }
.who-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
}
.who-card p { margin: 0 0 1.3rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.who-card__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: auto;
  transition: color 0.2s, gap 0.2s;
}
.who-card:hover .who-card__link { color: var(--orange-deep); gap: 0.65rem; }
html[data-theme="dark"] .who-card:hover .who-card__link { color: var(--orange-soft); }
.who-card__link svg { width: 13px; height: 13px; }

@media (max-width: 880px) { .who__grid { grid-template-columns: 1fr; } }

/* Platform */
.plat {
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--pad-x);
  background: var(--paper-card);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.plat::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -180px; top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,138,4,0.07) 0%, transparent 65%);
  pointer-events: none;
}
html[data-theme="dark"] .plat::before { background: radial-gradient(circle, rgba(245,138,4,0.10) 0%, transparent 65%); }
.plat__inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.plat__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 2.5rem; margin-bottom: 2.4rem; }
.feat { display: flex; gap: 1rem; align-items: flex-start; padding: 0.4rem 0; }
.feat__icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(10,32,68,0.07);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
html[data-theme="dark"] .feat__icon { background: rgba(120,160,230,0.13); color: #8fb3e8; }
.feat__icon svg { width: 19px; height: 19px; }
.feat h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -0.012em; line-height: 1.3; }
.feat p { margin: 0; font-size: 0.89rem; color: var(--ink-soft); line-height: 1.58; }

@media (max-width: 780px) { .plat__grid { grid-template-columns: 1fr; } }

/* Differentiators and numbers */
.edge { padding: clamp(3.5rem, 8vw, 5.5rem) var(--pad-x); background: var(--paper); }
.edge__inner { max-width: var(--maxw); margin: 0 auto; }
.edge__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.edge-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.edge-card__k {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--orange-deep);
  line-height: 1;
  margin: 0 0 0.7rem;
}
html[data-theme="dark"] .edge-card__k { color: var(--orange-soft); }
.edge-card h3 { margin: 0 0 0.35rem; font-size: 0.98rem; font-weight: 700; color: var(--ink); letter-spacing: -0.012em; }
.edge-card p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; }
.edge-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--orange-deep);
  transition: gap 0.2s, color 0.2s;
}
html[data-theme="dark"] .edge-card__link { color: var(--orange-soft); }
.edge-card__link:hover { gap: 0.65rem; }
.edge-card__link svg { width: 13px; height: 13px; }

@media (max-width: 940px) { .edge__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .edge__grid { grid-template-columns: 1fr; } }

/* Clients */
.clients {
  background: var(--paper-card);
  border-bottom: 1px solid var(--rule);
  padding: clamp(2.5rem, 6vw, 3.5rem) var(--pad-x);
}
.clients__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

/* Centered on the middle, not the baseline: at 3x size difference the
   baseline aligns the text but throws the visual masses off. */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.stat { padding: 0 clamp(0.5rem, 2vw, 1.25rem); }
.stat + .stat { border-left: 1px solid var(--rule); }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 1.6rem; }
  .stat { padding: 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--rule); padding-top: 1.6rem; }
}
.stat__label {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.clients__figure {
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--orange-deep);
}

.clients__plus,
.clients__unit {
  font-size: 0.48em;
  line-height: 1;
  margin-top: 0.22em;
  letter-spacing: 0;
  opacity: 0.85;
}
.clients__plus { margin-left: 0.04em; }
.clients__unit { margin-right: 0.14em; }
.clients__count {
  /* width of the final value, set per counter in --digitos, so neighbours
     don't shift while the number gains digits during the count-up */
  min-width: var(--digitos, 2ch);
  text-align: right;
}
/* margin-top aligns its baseline with the number's, not its top. */
.clients__scale {
  font-size: 0.62em;
  line-height: 1;
  margin-top: 0.3em;
  margin-left: 0.12em;
  letter-spacing: -0.03em;
}
html[data-theme="dark"] .clients__figure { color: var(--orange-soft); }
html[data-theme="dark"] .clients__count { color: var(--orange-soft); }

.clients__label {
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.clients__sub {
  margin: clamp(1.9rem, 4vw, 2.5rem) 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* To use logos, swap each .client's content for an <img>: height and
   grayscale are already normalized below. */
.clients__logos {
  margin-top: clamp(1.6rem, 4vw, 2.2rem);
  padding-top: clamp(1.4rem, 3.5vw, 1.9rem);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem 2.6rem;
}
.client {
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  white-space: nowrap;
  transition: color 0.2s;
}
.client:hover { color: var(--ink); }
.client img {
  height: 26px;
  width: auto;
  display: block;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.2s, opacity 0.2s;
}
.client:hover img { filter: grayscale(0); opacity: 1; }
