/* tablu. — site styles (design: "Página inicial · v2 preto e branco") */

:root {
  --ink: #0a0a0a;
  --ink-2: #262626;
  --text: #4a4a4a;
  --muted: #5c5c5c;
  --label: #737373;
  --line: #e5e5e5;
  --surface: #f5f5f5;
  --chip: #f0f0f0;
  --white: #ffffff;
  --dark-card: #1a1a1a;
  --dark-line: #333333;
  --on-dark: #c7c7c7;
  --on-dark-muted: #9e9e9e;
  --accent: #72b84a;
  --navy: #081830;
  --radius: 14px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Montserrat, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; }

a { color: var(--ink); }
a:hover { color: var(--ink-2); }

h1, h2, p { margin: 0; }

.container {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- Shared bits ---------- */

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  vertical-align: 2px;
  background: var(--accent);
}
.on-dark .eyebrow { color: #a3a3a3; }

.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--label);
}

.h2 {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -1px;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}
.on-dark .lead { color: var(--on-dark); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
}

.chip {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--chip);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip--outline { background: var(--white); border: 1px solid #bdbdbd; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #e6e6e6; color: var(--ink); }
.btn--ghost { border: 1.5px solid var(--muted); color: var(--white); font-weight: 600; }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn--dark:hover { background: var(--ink-2); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { font-weight: 700; font-size: 16px; }

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
a.card:hover { color: var(--ink); border-color: #bdbdbd; box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
.card__title { font-size: 19px; font-weight: 800; }
.card__body { font-size: 15px; line-height: 1.6; color: var(--text); }
.card__more { margin-top: auto; font-weight: 700; color: var(--ink); }

.grid { display: grid; gap: 20px; }

/* Section shells + decorative brand pattern */
.section { position: relative; overflow: hidden; }
.section--white { background: var(--white); }
.section--grey { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--white); }
.section > .container {
  padding-block: 104px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.section__pattern {
  position: absolute;
  top: 48px;
  width: 1180px;
  max-width: none;
  height: auto;
  opacity: .06;
  pointer-events: none;
}
.section--dark .section__pattern { opacity: .12; }
.section__pattern--right { right: -260px; }
.section__pattern--left { left: -260px; }

/* ---------- Header ---------- */

.site-header { background: var(--ink); border-bottom: 1px solid var(--ink-2); }
.site-header .container {
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 36px; width: auto; display: block; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.main-nav a { color: #e6e6e6; text-decoration: none; }
.main-nav a:hover { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang { font-size: 14px; color: #b3b3b3; }
.lang b { color: var(--white); }
.lang a { color: #b3b3b3; text-decoration: none; }
.lang a:hover { color: var(--white); }
.header-actions .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.hero .section__pattern { top: 40px; opacity: .14; }
.hero .container {
  padding-block: 96px 112px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 64px;
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero .eyebrow { font-weight: 600; }
.hero h1 {
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -1.5px;
}
.hero h1 span { display: block; }
.hero h1 .dim { color: #8c8c8c; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--on-dark); max-width: 560px; }

.stack { display: flex; flex-direction: column; gap: 10px; }
.stack__row {
  padding: 16px 20px;
  border-radius: 10px;
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
}
.stack__row .label { color: inherit; }
.stack__row--products { margin-inline: 32px; background: #003020; }
.stack__row--products .label { color: #7cc683; }
.stack__row--products strong { font-weight: 700; }
.stack__row--six { margin-inline: 16px; background: var(--navy); }
.stack__row--six .label { color: #58c818; }
.stack__row--six strong { font-weight: 800; font-size: 18px; font-style: italic; }
.stack__base {
  padding: 20px;
  border-radius: 12px;
  background: #68a840;
  color: #101028;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stack__base-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.stack__base-head .label { color: inherit; }
.stack__base-head strong { font-weight: 800; font-size: 22px; font-style: italic; }
.stack__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stack__tiles span { padding: 10px 12px; border-radius: 8px; background: var(--white); font-size: 14px; font-weight: 700; }

/* ---------- Stat strip ---------- */

.stat-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.stat-strip .container {
  padding-block: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
}
.stat-strip__num { font-size: 64px; font-weight: 800; font-style: italic; letter-spacing: -1.5px; }
.stat-strip__text { font-size: 22px; font-weight: 600; line-height: 1.4; color: var(--ink-2); }

/* ---------- Platforms (MoDI + SiX) ---------- */

.panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.panel__intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.powered { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.powered img { height: 44px; width: auto; }
.panel__intro .body { font-size: 17px; line-height: 1.6; color: var(--text); }

.modi-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.modi-grid .card { gap: 10px; padding: 24px; border-radius: 12px; }
.modi-grid .logo { height: 24px; width: auto; align-self: flex-start; }
.modi-grid .card__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.modi-grid .card__top .logo { align-self: auto; }

.six {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: 16px;
}
.six__copy { display: flex; flex-direction: column; gap: 16px; }
.six__logo { height: 38px; width: auto; align-self: flex-start; }
.six__copy .body { font-size: 17px; line-height: 1.6; color: var(--text); }
.six__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-size: 40px; font-weight: 800; font-style: italic; letter-spacing: -1px; color: var(--navy); }
.stat__label { font-size: 14px; color: var(--text); }
.six video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface);
  display: block;
}

/* ---------- Products ---------- */

.products-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.products-grid .card { gap: 16px; padding: 32px; }
.product__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product__head img { width: auto; }
.product__wordmark { font-size: 28px; font-weight: 800; font-style: italic; color: #063523; }
.products-grid .card__body { font-size: 16px; }
.product__partner { font-size: 14px; font-weight: 600; color: var(--muted); }

.spinoff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1.5px dashed #c7c7c7;
}
.spinoff__copy { display: flex; flex-direction: column; gap: 12px; flex: 1 1 320px; }
.spinoff__copy .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.spinoff__copy .tags img { height: 40px; width: auto; }
.spinoff__copy p { font-size: 16px; line-height: 1.6; color: var(--text); }
.spinoff__stats { display: flex; flex-wrap: wrap; gap: 32px; flex: 1 1 380px; }
.spinoff__stats .stat__num { font-size: 32px; letter-spacing: 0; color: var(--ink); }

/* ---------- Sectors ---------- */

.sectors-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.sectors-grid .card { gap: 12px; padding: 28px; }
.sectors-grid svg { width: 32px; height: 32px; }
.sectors-grid .card__title { font-size: 20px; }

/* ---------- Trust ---------- */

.awards-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.award { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--dark-card); }
.award__meta { font-size: 13px; font-weight: 600; color: var(--on-dark-muted); }
.award__title { font-size: 20px; font-weight: 800; }

.regulators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: 2px solid var(--dark-line);
}
.regulator { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 0 0; }
.regulator__name { font-size: 22px; font-weight: 800; }
.regulator p { font-size: 16px; line-height: 1.6; color: var(--on-dark); }

/* ---------- About / team ---------- */

#equipa > .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: start;
}
.team-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.person { gap: 12px; padding: 28px; }
.person__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink-2);
}
.person__name { font-size: 18px; font-weight: 800; }
.person__role { font-size: 14px; font-weight: 600; }

/* ---------- News ---------- */

#noticias > .container { gap: 40px; }
.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.news-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.news-grid .card { gap: 14px; padding: 32px; }
.news__meta { font-size: 14px; font-weight: 600; color: var(--muted); }
.news__title { font-size: 21px; line-height: 1.35; font-weight: 800; }

/* ---------- Contact CTA ---------- */

#contacto > .container {
  padding-block: 96px;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
#contacto .section-head { max-width: 640px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #b3b3b3; border-top: 1px solid var(--ink-2); }
.site-footer .container { padding-block: 64px 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 32px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col:first-child { gap: 14px; line-height: 1.6; }
.footer-col:first-child img { height: 20px; width: auto; align-self: flex-start; }
.footer-col h3 { margin: 0; font-size: inherit; font-weight: 700; color: var(--white); }
.footer-col a { color: #b3b3b3; text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--on-dark-muted);
  border-top: 1px solid var(--ink-2);
  padding-top: 24px;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .section > .container { padding-block: 72px; gap: 36px; }
  .hero .container { padding-block: 64px 80px; gap: 48px; }
  .panel, .six { padding: 24px; }
  .stack__row--products { margin-inline: 16px; }
  .stack__row--six { margin-inline: 8px; }
  .stat-strip__num { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
