:root {
  --navy: #062859;
  --navy-2: #021c3f;
  --blue: #0b5dff;
  --ink: #07111f;
  --muted: #5d697a;
  --line: #d8e2f1;
  --soft: #f4f8fd;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(4, 30, 66, .12);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(11, 93, 255, .12), transparent 32rem),
    linear-gradient(180deg, #f8fbff 0%, #fff 44%, #f5f9ff 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 66px;
  padding: 6px clamp(20px, 3.2vw, 54px);
  border-bottom: 1px solid rgba(6, 40, 89, .12);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand__mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(6, 40, 89, .18);
  border-radius: 50%;
}

.brand svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(13px, 1.5vw, 24px);
  color: #142033;
  font-size: .9rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 7px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transition: width .22s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 100%;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.header-cta,
.button--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 18px 34px rgba(11, 93, 255, .22);
}

.button--ghost {
  color: var(--navy);
  border-color: rgba(6, 40, 89, .28);
  background: rgba(255, 255, 255, .82);
}

.button--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .08);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(6, 40, 89, .18);
}

.nav-toggle {
  display: none;
}

main {
  overflow: clip;
}

.hero,
.value-strip,
.split-section,
.services,
.solution-band,
.cases,
.content-hub,
.contact-section,
.site-footer {
  width: min(1480px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: 400px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 2vw, 32px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: .98;
  letter-spacing: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 2.45vw, 2.98rem);
  color: var(--navy-2);
}

h2 {
  max-width: 850px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.2vw, 4.5rem);
  color: var(--navy-2);
}

h3 {
  color: var(--navy-2);
  font-size: clamp(1.2rem, 1.4vw, 1.65rem);
  line-height: 1.15;
}

.hero__lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(.92rem, 1vw, 1rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.hero__visual,
.image-panel {
  min-height: 520px;
  background-color: #dfe9f5;
  background-position: center;
  background-size: cover;
}

.hero__visual {
  position: relative;
  min-height: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .18) 38%, rgba(6, 40, 89, .08) 100%),
    url("../images/demo-institucional-hero-desktop.webp"),
    linear-gradient(135deg, #f7fbff 0%, #dfe9f5 52%, #b6cbea 100%);
}

.hero__visual::after {
  display: none;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 0;
  position: relative;
  z-index: 3;
}

.value-card,
.service-card,
.article-card,
.case-card,
.contact-form,
.solution-band,
.contact-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}

.value-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-height: 102px;
  padding: 14px 16px;
  transition: transform .22s ease, border-color .22s ease;
}

.value-card:hover,
.service-card:hover,
.article-card:hover,
.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 93, 255, .34);
}

.icon-circle {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #074caa);
  box-shadow: 0 12px 22px rgba(6, 40, 89, .16);
}

.icon-circle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.value-card h2 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.value-card p {
  margin-bottom: 0;
  font-size: .78rem;
  line-height: 1.34;
}

.value-card p,
.service-card p,
.case-card p,
.article-card p,
.section-copy p,
.section-heading p,
.solution-steps p,
.contact-copy p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: center;
  padding: clamp(34px, 4vw, 56px) 0 clamp(62px, 7vw, 96px);
}

.image-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.image-panel--building {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(6, 40, 89, .15)),
    url("../images/demo-institucional-predio.webp"),
    linear-gradient(135deg, #eff6ff, #b8cce8);
}

.image-panel--dashboard {
  min-height: 620px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(6, 40, 89, .18)),
    url("../images/demo-institucional-case-dashboard.webp"),
    linear-gradient(135deg, #edf4ff, #c5d6ed);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.metrics strong {
  display: block;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
  background: #fff;
}

.metrics svg {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.metrics b {
  display: block;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.services,
.cases,
.content-hub {
  padding: clamp(70px, 8vw, 116px) 0;
}

.section-heading {
  max-width: 960px;
  margin-bottom: 34px;
}

.section-heading--row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 290px;
  padding: 30px;
  transition: transform .22s ease, border-color .22s ease;
}

.service-card span,
.case-card span,
.article-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.solution-band {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 44px;
  padding: clamp(34px, 5vw, 64px);
  color: #fff;
  border-color: rgba(255, 255, 255, .16);
  background:
    radial-gradient(circle at 90% 20%, rgba(11, 93, 255, .35), transparent 24rem),
    linear-gradient(135deg, var(--navy-2), #062b5e);
}

.solution-band h2,
.solution-band .eyebrow,
.solution-band p {
  color: #fff;
}

.solution-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.solution-steps article {
  min-height: 170px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}

.solution-steps strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-filters button {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.case-filters button.is-active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(0, 1fr);
  gap: 22px;
}

.case-list {
  display: grid;
  gap: 16px;
}

.case-card {
  padding: 28px;
  transition: opacity .2s ease, transform .22s ease, border-color .22s ease;
}

.case-card.is-hidden {
  display: none;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  min-height: 260px;
  padding: 30px;
  transition: transform .22s ease, border-color .22s ease;
}

.contact-section {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 34px;
  padding: clamp(34px, 5vw, 64px);
  margin-bottom: 70px;
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
  background:
    radial-gradient(circle at 90% 20%, rgba(11, 93, 255, .34), transparent 24rem),
    linear-gradient(135deg, #06152d, #062b5e);
}

.contact-section h2,
.contact-section .eyebrow {
  color: #fff;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 24px;
  color: var(--ink);
  box-shadow: none;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 93, 255, .12);
}

.contact-form__wide,
.form-message {
  grid-column: 1 / -1;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.form-message.is-error {
  color: #9b1c1c;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 44px;
  color: var(--muted);
}

.brand--footer strong {
  font-size: 1.1rem;
}

.site-footer a:last-child {
  color: var(--blue);
  font-weight: 900;
}

@media (min-width: 1181px) {
  .hero {
    width: 100%;
    min-height: 360px;
  }

  .hero__content {
    padding-inline: clamp(36px, 4.5vw, 88px);
  }

  .value-card {
    min-height: 92px;
    padding: 12px 16px;
  }

  .split-section {
    grid-template-columns: minmax(270px, .82fr) minmax(340px, 1.06fr) minmax(360px, 1.12fr);
    grid-template-rows: auto auto auto;
    gap: clamp(18px, 2vw, 30px);
    padding: 26px 0 68px;
  }

  .image-panel--building {
    grid-column: 1;
    grid-row: 1 / span 3;
    min-height: 300px;
  }

  .split-section .section-copy {
    display: contents;
  }

  .split-section .section-copy > .eyebrow {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-bottom: 0;
  }

  .split-section .section-copy > h2 {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin-bottom: 0;
    font-size: clamp(1.8rem, 2.1vw, 2.45rem);
    line-height: 1.04;
  }

  .split-section .section-copy > p:not(.eyebrow) {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    margin-bottom: 0;
    font-size: .88rem;
    line-height: 1.55;
  }

  .metrics {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
    gap: 0;
    margin-top: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .metrics strong {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 18px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
  }

  .metrics strong + strong {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    transition: transform .2s ease, opacity .2s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 66px 16px auto;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__visual {
    min-height: 520px;
    order: -1;
  }

  .value-strip,
  .service-grid,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .case-layout,
  .contact-section,
  .solution-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero,
  .value-strip,
  .split-section,
  .services,
  .solution-band,
  .cases,
  .content-hub,
  .contact-section,
  .site-footer {
    width: min(100% - 28px, 1480px);
  }

  .site-header {
    min-height: 74px;
    padding: 12px 16px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 1.08rem;
  }

  .site-nav {
    top: 74px;
  }

  .hero {
    min-height: auto;
    border-radius: 0 0 18px 18px;
  }

  .hero__content {
    padding: 30px 22px 34px;
  }

  .hero__visual {
    min-height: 430px;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .88) 100%),
      url("../images/demo-institucional-hero-mobile.webp"),
      url("../images/demo-institucional-hero-desktop.webp"),
      linear-gradient(135deg, #f7fbff 0%, #dfe9f5 52%, #b6cbea 100%);
  }

  .hero__visual::after {
    display: none;
  }

  h1 {
    font-size: clamp(2.45rem, 10.5vw, 3.3rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero__actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .value-strip {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .value-card,
  .service-card,
  .article-card,
  .case-card {
    min-height: auto;
    padding: 22px;
  }

  .split-section {
    padding: 58px 0;
  }

  .image-panel,
  .image-panel--dashboard {
    min-height: 360px;
  }

  .metrics,
  .service-grid,
  .solution-steps,
  .article-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .section-heading--row {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
