:root {
  color-scheme: light;
  --navy: #081426;
  --navy-raised: #10213b;
  --ink: #122443;
  --muted: #495974;
  --blue: #174fc8;
  --light-blue: #9bc8ff;
  --line: #dbe4f1;
  --surface: #f2f6fc;
  --white: #fff;
  --radius: 1rem;
  --wrap: 76rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); line-height: 1.6; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #e28b20; outline-offset: 5px; }
.wrap { width: min(calc(100% - 2.5rem), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: .75rem; left: .75rem; padding: .625rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header, .hero, .site-footer { color: var(--white); background: var(--navy); }
.site-header { border-bottom: 1px solid #25364e; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .15em; color: var(--white); font-size: calc(1.08 * var(--brand-unit, 1rem)); font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.brand > span:last-child { color: #bdd5f8; font-weight: 650; }
.brand-mark { display: inline-grid; font-size: var(--brand-unit, 1rem); grid-template-columns: repeat(3, .28em); align-items: end; gap: .14em; margin-right: .53em; transform: skewY(-18deg); }
.brand-mark i { height: .65em; background: #87baff; border-radius: .0625em; }
.brand-mark i:nth-child(2) { height: .9em; }
.brand-mark i:nth-child(3) { height: 1.13em; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.35rem; width: 100%; }
.main-nav a, .site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; color: #dce8fa; text-decoration: none; font-size: .94rem; }
.main-nav a:hover, .site-footer nav a:hover { color: var(--white); text-decoration: underline; }
.menu-toggle { min-height: 44px; padding: .45rem .8rem; border: 1px solid #5a7191; border-radius: .5rem; background: transparent; color: var(--white); font: inherit; cursor: pointer; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: .55rem; color: var(--white); background: var(--blue); font-weight: 700; text-decoration: none; transition: background-color .18s; }
.button:hover { background: #245fdd; }
.button-small { padding: .35rem .9rem; }
.button-outline { background: transparent; border-color: #6883a8; }
.button-outline:hover { background: var(--navy-raised); }

.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 83% 48%, #132e55 0%, var(--navy) 67%); }
.hero-inner { display: grid; align-items: center; min-height: 35rem; padding-block: 4rem 2rem; }
.hero-copy { z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: .55rem; color: var(--blue); font-size: .875rem; letter-spacing: .14em; font-weight: 750; text-transform: uppercase; margin-bottom: .85rem; }
.hero .eyebrow { color: var(--light-blue); }
.eyebrow span { width: .42rem; height: .42rem; border-radius: 50%; background: #7fb9ff; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); line-height: .99; letter-spacing: -.075em; font-weight: 750; }
.hero h1 em { color: #a4caff; font-style: normal; }
.hero-description { max-width: 31rem; margin-top: 1.45rem; color: #c9d7ed; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-art { width: 100%; height: auto; display: block; max-width: 40rem; justify-self: center; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.7rem; }

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-heading { max-width: 45rem; margin-bottom: 2rem; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -.055em; }
.section p:not(.eyebrow) { color: var(--muted); }
.section h2 + p, .split p + p { margin-top: .85rem; }
.capability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .85rem; }
.capability { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: linear-gradient(150deg, var(--white), #f8faff); }
.capability svg { width: 2.5rem; height: 2.5rem; padding: .5rem; border-radius: .5rem; color: var(--blue); background: #eaf1ff; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.capability h3 { margin-block: .65rem .35rem; font-size: 1.12rem; line-height: 1.25; letter-spacing: -.025em; }
.partnership { background: var(--surface); border-block: 1px solid var(--line); }
.split { display: grid; gap: 1.5rem; align-items: center; }
.about-logo { --brand-unit: clamp(1.5rem, 5vw, 2.65rem); justify-self: center; text-align: center; }
.about-logo .brand { color: var(--navy); }
.about-logo .brand > span:last-child { color: #16469e; }
.about-logo .brand-mark i { background: var(--blue); }
.about-logo .brand-signature p { margin-top: .35rem; }
.contact { background: #123d9d; color: var(--white); padding-block: 3.25rem; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem; }
.contact h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.contact p { margin-top: .6rem; color: #e0ebff; }
.button-light { color: #123d9d; background: var(--white); }
.button-light:hover { background: #e3edff; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem 2rem; padding-block: 1.75rem; }
.site-footer p { color: #b9cce7; margin-top: .5rem; }
.footer-group h2 { font-size: 1rem; margin-bottom: .3rem; }
.footer-group ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; border-top: 1px solid #365071; padding-block: .7rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .locale-switch { width: auto; }
.footer-bottom .locale-switch ul { position: absolute; inset: auto 0 100% auto; width: max-content; max-width: min(17rem, 85vw); z-index: 2; }
.footer-bottom .locale-switch a { min-height: 44px; align-items: center; color: #dce8fa; }
@media (min-width: 36rem) { .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .footer-inner { grid-template-columns: minmax(13rem, 1.25fr) repeat(3, minmax(0, 1fr)); } }

@media (min-width: 48rem) {
  .hero-inner { grid-template-columns: 1fr 1fr; padding-block: 4.5rem; }
  .hero-art { width: 116%; max-width: 43rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (min-width: 58rem) {
  .main-nav { width: auto; }
  .menu-toggle { display: none; }
  .capability-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.site-header { position: relative; z-index: 2; }
.main-nav > .button:hover { text-decoration: none; }
.mega { width: 100%; }
.mega summary {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  width: fit-content;
  color: #dce8fa;
  cursor: pointer;
  font-size: .94rem;
  list-style: none;
}
.mega summary::-webkit-details-marker { display: none; }
.mega summary::after {
  content: "";
  width: .4rem;
  height: .4rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.1rem) rotate(45deg);
}
.mega[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.mega-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: .4rem;
  margin: 0;
  padding: .65rem;
  list-style: none;
  background: #10213b;
  border: 1px solid #304a70;
  border-radius: var(--radius);
}
.mega-panel a {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: .7rem;
  align-items: start;
  padding: .55rem;
  border-radius: .45rem;
}
.mega-panel a:hover { background: #193459; text-decoration: none; }
.mega-panel strong { display: block; color: var(--white); }
.mega-panel strong + span { display: block; color: #c2d4ef; }
.mega-panel svg { width: 1.4rem; fill: none; stroke: var(--light-blue); stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; margin-top: .2rem; }

a.capability { display: flex; align-items: flex-start; flex-direction: column; text-decoration: none; transition: background-color .18s, border-color .18s; }
a.capability:hover, a.capability:focus-visible { border-color: var(--blue); background: #eef4ff; }
.card-link { margin-top: auto; padding-top: .9rem; color: var(--blue); font-weight: 700; }
a.capability:hover .card-link { text-decoration: underline; }
.card-link span { margin-left: .2rem; }

.ecosystem { background: radial-gradient(ellipse at 78% 50%, #183861, var(--navy) 74%); color: var(--white); border: 0; }
.ecosystem .eyebrow { color: var(--light-blue); }
.ecosystem p:not(.eyebrow) { color: #d4e0f4; }
.ecosystem .button { margin-top: 1.5rem; }
.ecosystem-art { display: block; width: 100%; height: auto; }
.ecosystem-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .75rem; margin: 0; padding: .5rem 0 0 1.3rem; color: #d4e0f4; font-size: .9rem; }
.ecosystem-figure { margin: 0; min-width: 0; }

.inner-hero { padding-block: 1.25rem 3rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem .65rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; color: #c9d7ed; }
.breadcrumb li + li::before { content: "/"; margin-right: .65rem; color: #a4caff; }
.breadcrumb a { text-underline-offset: .2em; }
.inner-hero-grid { display: grid; gap: 1.5rem; align-items: center; padding-top: 2.6rem; }
.inner-hero h1 { font-size: clamp(2.35rem, 6vw, 4.85rem); letter-spacing: -.055em; overflow-wrap: anywhere; }
.inner-hero .balanced-title { text-wrap: balance; }
.inner-hero-grid img { width: 100%; height: auto; max-width: 38rem; margin-inline: auto; }
.detail-intro { align-items: start; }
.detail-intro h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.detail-surface { background: var(--surface); border-block: 1px solid var(--line); }
.detail-grid, .ecosystem-grid, .collaboration-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .8rem;
}
.detail-grid, .collaboration-flow { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.detail-grid li, .collaboration-flow li { padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--white); }
.detail-grid li { font-weight: 600; }
.benefit-list, .related-list { margin: .8rem 0 0; padding-left: 1.3rem; }
.benefit-list li + li, .related-list li + li { margin-top: .35rem; }
.related-list a { display: inline-block; padding-block: .3rem; color: var(--blue); text-underline-offset: .22em; }
.collaboration-flow { counter-reset: collaboration; }
.collaboration-flow li { counter-increment: collaboration; font-weight: 600; }
.collaboration-flow li::before { content: counter(collaboration, decimal-leading-zero); display: block; margin-bottom: .35rem; color: var(--blue); font-weight: 780; }

@media (min-width: 48rem) {
  .ecosystem-inner { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 1.5rem; }
  .inner-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 58rem) {
  .mega { width: auto; }
  .mega-panel {
    position: absolute;
    top: 100%;
    right: max(1.25rem, calc((100% - var(--wrap)) / 2));
    width: min(56rem, calc(100% - 2.5rem));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: .9rem;
    box-shadow: 0 1rem 2rem #07142766;
  }
  .ecosystem-legend { display: none; }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.section-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem 1.15rem;
  margin-top: 1.5rem;
}
.section-links a {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  min-height: 32px;
  font-size: .875rem;
  text-underline-offset: .2em;
}
.hero .section-links, .ecosystem .section-links { color: #c9d7ed; }
.hero:not(.inner-hero) .section-links { padding-bottom: 1rem; }
.floating-top {
  position: fixed;
  z-index: 3;
  right: max(.75rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #9bc8ff;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 .2rem .65rem #07142755;
}
.floating-top:hover { background: var(--blue); }
.locale-switch { position: relative; width: 100%; }
.locale-switch summary {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  min-height: 44px;
  padding-inline: .5rem;
  color: #dce8fa;
  cursor: pointer;
  list-style: none;
}
.locale-switch summary::-webkit-details-marker { display: none; }
.locale-switch summary svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.locale-switch ul {
  list-style: none;
  margin: 0;
  padding: .35rem;
  background: var(--navy-raised);
  border: 1px solid #304a70;
  border-radius: .6rem;
}
.locale-switch li a { display: flex; gap: .5rem; padding-inline: .55rem; border-radius: .35rem; }
.locale-switch li a[aria-current], .locale-switch li a:hover { background: #193459; }
.locale-switch img { flex: none; }
.client-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
}
.client-gallery:not(:empty) { margin-top: 1.5rem; }
.client-gallery .capability { display: grid; justify-items: center; gap: .6rem; text-align: center; }
.client-gallery img { width: 100%; height: 6rem; object-fit: contain; }
@media (min-width: 58rem) {
  .locale-switch { width: auto; }
  .locale-switch ul { position: absolute; right: 0; width: max-content; max-width: 17rem; }
}

.boleto-form { margin-block: 1.5rem; }
.boleto-form label { display: block; margin-bottom: .4rem; font-weight: 700; }
.boleto-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.boleto-controls input { width: min(100%, 16rem); min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .4rem; font: inherit; }
.boleto-controls input[aria-invalid="true"] { border-color: #9d2730; }
.boleto-form button:disabled, .boleto-results button:disabled { opacity: .72; cursor: default; }
.boleto-form p { margin-top: .45rem; }
.boleto-results { margin-top: 1rem; overflow-x: auto; }
.boleto-results table { width: 100%; border-collapse: collapse; }
.boleto-results caption { margin-bottom: .5rem; text-align: left; font-weight: 700; }
.boleto-results th, .boleto-results td { padding: .65rem; text-align: left; border-block-end: 1px solid var(--line); }
.boleto-results td { overflow-wrap: anywhere; }
.boleto-results button { white-space: nowrap; }

.boleto-results table { min-width: 26rem; }
.boleto-results thead { color: var(--white); background: var(--navy); }
.boleto-results tbody tr:nth-child(even) { background: var(--surface); }
.boleto-results caption { padding: .2rem .35rem; }
@media (max-width: 30rem) {
  .boleto-controls { align-items: flex-start; flex-direction: column; }
}

.boleto-form[hidden], .boleto-results[hidden], .boleto-results table[hidden] { display: none; }
.boleto-form .boleto-digito { width: 100%; min-width: 0; padding-inline: 0; text-align: center; }


.boleto-etapas { max-width: 54rem; }
.boleto-etapas h2 { font-size: clamp(1.65rem, 4vw, 2.4rem); }
.boleto-etapas .boleto-etapa-titulo { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-block-end: .65rem; }
.boleto-etapas fieldset { border: 0; padding: 0; margin: 1.25rem 0 .75rem; min-inline-size: 0; }
.boleto-etapas legend { padding: 0; margin-block-end: .6rem; font-weight: 700; }
.boleto-codigo { display: grid; grid-template-columns: repeat(6, minmax(0, 3.5rem)); gap: clamp(.25rem, 2vw, .65rem); }
.boleto-form .boleto-digito { min-height: 3.4rem; border: 1px solid #6883a8; border-radius: .6rem; color: var(--navy); font-size: clamp(1.15rem, 5vw, 1.6rem); font-weight: 700; }
.boleto-secundario { margin-block: .4rem; color: #153e9e; background: transparent; border-color: #6883a8; }
.boleto-secundario:hover { color: #153e9e; background: #e3edff; }
.boleto-tempo { font-variant-numeric: tabular-nums; }
.boleto-results table { margin-block-start: .9rem; }
@media (max-width: 36rem) {
  .boleto-results table { min-width: 0; }
  .boleto-results th, .boleto-results td { padding: .55rem .25rem; }
  .boleto-results td { overflow-wrap: normal; }
  .boleto-results td button { padding-inline: .35rem; white-space: normal; }
}

.industry-index { padding-block: 1.5rem 0; }
.industry-index ul { display: flex; flex-wrap: wrap; gap: .3rem 1.15rem; padding: 0; margin: 0; list-style: none; }
.industry-index a { display: inline-flex; align-items: center; min-height: 44px; }
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); gap: 1rem; padding-block: 1.75rem 3rem; }
.industry-card { min-width: 0; padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: .7rem; scroll-margin-top: 1rem; }
.industry-card-title { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.industry-card-title h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
.industry-card .industry-icon { flex: 0 0 2.2rem; width: 2.2rem; height: 2.2rem; padding: .35rem; border-radius: .5rem; color: var(--blue); background: #eaf1ff; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.industry-card h3 { font-size: 1rem; margin-top: 1rem; }
.industry-card p, .industry-card ul { margin-top: .25rem; }

#experiencia .industry-grid { padding-block: 1rem 0; }
#experiencia .industry-card dl { margin-block: .85rem; }
#experiencia .industry-card dt, #experiencia .industry-card h4 { font-weight: 700; margin-top: .5rem; }
#experiencia .industry-card dd { margin: .2rem 0 .65rem; }
.client-gallery figure { margin: 0; background: var(--white); }

.case-relation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.25rem; margin-block-start: 1.25rem; }
#cases-destaque .capability-grid, #projetos-proprios .capability-grid, #experiencias-tecnicas .capability-grid, #casos-de-uso .capability-grid { margin-block-start: 1.25rem; }
.case-flow { max-width: min(42rem, 100%); margin-block: 2rem 0; text-align: center; }
.case-flow figcaption { font-weight: 700; }
.case-flow svg { display: block; width: 100%; color: var(--blue); fill: currentColor; }
.case-flow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; font-size: .9rem; overflow-wrap: anywhere; }

.partnership-competency dl { margin-block: .9rem; }
.partnership-competency dt, .partnership-competency h4 { font-weight: 700; font-size: 1rem; margin-top: .55rem; }
.partnership-competency dd { margin: .2rem 0 .65rem; }
.partnership-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .4rem 1rem; }
.partnership-applications { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

.main-nav .client-portal-link { gap: .4rem; padding-inline: .65rem; border: 1px solid #6883a8; border-radius: .55rem; color: var(--white); font-weight: 700; white-space: nowrap; }
.main-nav .client-portal-link:hover, .main-nav .client-portal-link[aria-current="page"] { background: var(--navy-raised); }
.client-portal-link svg { flex: none; width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.portal-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.portal-service { display: flex; flex-direction: column; align-items: flex-start; }
.portal-service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem; margin-top: auto; padding-top: 1rem; }

#atendimento { scroll-margin-top: 6rem; }
#contato-form { max-width: 55rem; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1rem; }
.contact-fields label { display: block; font-weight: 700; margin-bottom: .35rem; }
.contact-fields input, .contact-fields select, .contact-fields textarea { width: 100%; padding: .65rem; border: 1px solid #6883a8; border-radius: .4rem; color: inherit; font: inherit; background: white; }
.contact-fields textarea { resize: vertical; }
.contact-wide { grid-column: 1 / -1; }
#contato-form button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 48rem) { .portal-services, .contact-fields { grid-template-columns: minmax(0, 1fr); } }
