:root {
  color-scheme: light;
  --header-height: 116px;
  --ink: #17202a;
  --ink-soft: #46515c;
  --muted: #f3f6f8;
  --line: #d8e0e6;
  --paper: #ffffff;
  --navy: #0f2633;
  --teal: #047a7a;
  --green: #2f7d4f;
  --amber: #b96718;
  --red: #b23a3a;
  --blue: #246b9f;
  --shadow: 0 24px 70px rgba(16, 31, 43, 0.18);
  --radius: 8px;
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 28px;
  border-bottom: 1px solid rgba(216, 224, 230, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand-logo {
  width: min(260px, 46vw);
  height: 94px;
  object-fit: contain;
}

.brand-fallback {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 800;
}

.brand-fallback[hidden] {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  background: var(--muted);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: end;
  gap: 42px;
  min-height: 86svh;
  padding: 88px max(28px, calc((100vw - var(--max)) / 2)) 72px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 44%, rgba(255, 255, 255, 0.22) 74%, rgba(255, 255, 255, 0.04) 100%),
    url("assets/hero-solucoes-tecnologia-pr.png") center right / cover no-repeat;
}

.hero-backdrop {
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--teal);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: 3.9rem;
  line-height: 1.01;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.ghost-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.button {
  padding: 12px 16px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button:hover,
.ghost-button:hover,
.link-button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: var(--teal);
  box-shadow: 0 18px 40px rgba(4, 122, 122, 0.24);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(216, 224, 230, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(16, 31, 43, 0.12);
  backdrop-filter: blur(16px);
}

.panel-label {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.intro-band {
  padding: 28px max(28px, calc((100vw - var(--max)) / 2));
  background: #101f2b;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.intro-grid article {
  min-height: 168px;
  padding: 24px;
  background: #172b38;
}

.intro-grid span {
  color: #8ee0d4;
  font-weight: 850;
}

.intro-grid h2 {
  margin: 18px 0 8px;
  color: white;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.intro-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.58;
}

.section {
  padding: 86px max(28px, calc((100vw - var(--max)) / 2));
}

.section.muted {
  background: var(--muted);
}

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

.section-heading h2,
.next-steps h2 {
  margin: 0;
  font-size: 2.85rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.next-steps p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.68;
}

code {
  padding: 0.12em 0.36em;
  border-radius: 6px;
  background: rgba(15, 38, 51, 0.08);
  font-size: 0.92em;
}

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

.map-node {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-align: left;
  background: white;
  box-shadow: 0 12px 34px rgba(23, 32, 42, 0.06);
}

.map-node::after {
  content: "";
  position: absolute;
  inset: auto 22px 18px 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--node-color, var(--teal));
  opacity: 0.88;
}

.map-node:hover,
.map-node:focus-visible {
  border-color: color-mix(in srgb, var(--node-color, var(--teal)), white 34%);
  box-shadow: 0 24px 52px rgba(23, 32, 42, 0.12);
  outline: none;
}

.map-node:nth-child(2) {
  --node-color: var(--green);
}

.map-node:nth-child(3) {
  --node-color: var(--blue);
}

.map-node:nth-child(4) {
  --node-color: var(--amber);
}

.map-node:nth-child(5) {
  --node-color: var(--blue);
}

.map-node:nth-child(6) {
  --node-color: var(--red);
}

.map-node:nth-child(7) {
  --node-color: #58666f;
}

.map-node.featured {
  grid-column: span 2;
  color: white;
  border-color: transparent;
  background:
    linear-gradient(135deg, rgba(4, 122, 122, 0.94), rgba(15, 38, 51, 0.96)),
    var(--navy);
}

.map-node.featured .node-text {
  color: rgba(255, 255, 255, 0.78);
}

.map-node.featured::after {
  background: #8ee0d4;
}

.node-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--node-color, var(--teal));
}

.featured .node-icon {
  color: var(--teal);
  background: white;
}

.node-title {
  align-self: center;
  min-width: 0;
  font-size: 1.2rem;
  font-weight: 850;
}

.node-text {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  line-height: 1.58;
}

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

.solution-card {
  display: flex;
  flex-direction: column;
  min-height: 356px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 34px rgba(23, 32, 42, 0.06);
}

.solution-card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.solution-card h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.25;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--tag-color, var(--teal));
  background: color-mix(in srgb, var(--tag-color, var(--teal)) 10%, white);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.solution-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.proof-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.proof-list li {
  display: flex;
  gap: 9px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.proof-list i {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--teal);
  margin-top: 2px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.link-button,
.ghost-button {
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
  font-weight: 800;
}

.link-button.primary-link {
  color: white;
  border-color: var(--teal);
  background: var(--teal);
}

.link-button[aria-disabled="true"] {
  color: #7a858d;
  cursor: not-allowed;
  background: #f1f4f6;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.timeline article {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 34px rgba(23, 32, 42, 0.06);
}

.time {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: #e7f5f2;
  font-size: 0.78rem;
  font-weight: 850;
}

.timeline h3 {
  margin: 18px 0 10px;
  font-size: 1.08rem;
}

.timeline p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.timeline .ghost-button {
  margin-top: auto;
}

.materials-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.material-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 34px rgba(23, 32, 42, 0.06);
}

.material-card > i {
  width: 34px;
  height: 34px;
  color: var(--teal);
}

.material-card h3 {
  margin: 16px 0 10px;
}

.material-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.material-actions {
  margin-top: 18px;
}

.next-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 68px max(28px, calc((100vw - var(--max)) / 2));
  color: white;
  background: #122633;
}

.next-steps .eyebrow {
  color: #8ee0d4;
}

.next-steps p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
}

.solution-dialog {
  width: min(860px, calc(100vw - 28px));
  max-height: min(760px, calc(100svh - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: white;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.solution-dialog::backdrop {
  background: rgba(7, 17, 25, 0.66);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.dialog-content {
  padding: 30px;
}

.dialog-hero {
  padding: 30px;
  margin: -30px -30px 26px;
  color: white;
  background:
    linear-gradient(135deg, rgba(15, 38, 51, 0.94), rgba(4, 122, 122, 0.88)),
    var(--navy);
}

.dialog-hero .eyebrow {
  color: #8ee0d4;
}

.dialog-hero h2 {
  max-width: 720px;
  margin: 0;
  padding-right: 42px;
  font-size: 2.65rem;
  line-height: 1.05;
}

.dialog-hero p {
  max-width: 710px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.dialog-columns {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.dialog-content h3 {
  margin: 0 0 12px;
}

.dialog-content ul,
.dialog-content ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.52;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  border-radius: 8px;
  color: white;
  background: #17202a;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 18px;
  }

  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 88svh;
    padding: 70px 22px 42px;
    background-position: center;
  }

  h1 {
    max-width: 620px;
    font-size: 3.35rem;
  }

  .section-heading h2,
  .next-steps h2 {
    font-size: 2.32rem;
  }

  .dialog-hero h2 {
    font-size: 2.18rem;
  }

  .hero-panel {
    max-width: 520px;
  }

  .intro-grid,
  .solution-map,
  .solution-grid,
  .materials-layout,
  .dialog-columns {
    grid-template-columns: 1fr;
  }

  .map-node.featured {
    grid-column: auto;
  }

  .section {
    padding: 64px 22px;
  }

  .next-steps {
    align-items: flex-start;
    flex-direction: column;
    padding: 56px 22px;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 96px;
  }

  .brand-logo {
    width: min(188px, 52vw);
    height: 76px;
  }

  .hero {
    min-height: 90svh;
    padding-top: 54px;
  }

  h1 {
    font-size: 2.62rem;
    line-height: 1.05;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.62;
  }

  .section-heading h2,
  .next-steps h2 {
    font-size: 2rem;
  }

  .dialog-hero h2 {
    font-size: 1.88rem;
  }

  .hero-actions,
  .card-actions,
  .dialog-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .link-button,
  .ghost-button {
    width: 100%;
  }

  .solution-card,
  .material-card,
  .timeline article,
  .map-node {
    min-height: auto;
  }

  .dialog-content {
    padding: 22px;
  }

  .dialog-hero {
    margin: -22px -22px 22px;
    padding: 24px;
  }
}

@media print {
  .site-header,
  .hero,
  .intro-band,
  .materials-layout,
  .next-steps,
  .dialog-close,
  .toast,
  .button,
  .ghost-button,
  .link-button {
    display: none !important;
  }

  .section {
    padding: 18px 0;
  }

  .timeline,
  .solution-grid {
    display: block;
  }

  .timeline article,
  .solution-card {
    break-inside: avoid;
    margin-bottom: 12px;
    box-shadow: none;
  }
}
