:root {
  --bg: #f5f7fb;
  --ink: #162033;
  --muted: #657188;
  --line: #dbe4f1;
  --panel: #ffffff;
  --navy: #102449;
  --header: #071b3f;
  --blue: #315bdc;
  --sky: #59b9d0;
  --green: #27b67a;
  --shadow: 0 18px 42px rgba(20, 39, 73, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  background: rgba(7, 27, 63, 0.96);
  border-bottom: 1px solid rgba(89, 185, 208, 0.28);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.nav-wrap {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 14px 22px;
  position: relative;
}

.brand {
  flex: 0 1 auto;
}

.brand img {
  display: block;
  height: auto;
  width: min(210px, 48vw);
}

.menu-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  color: #ffffff;
  cursor: pointer;
  display: none;
  font: inherit;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.menu-toggle i,
.menu-toggle i::before,
.menu-toggle i::after {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 18px;
}

.menu-toggle i {
  position: relative;
}

.menu-toggle i::before,
.menu-toggle i::after {
  content: "";
  left: 0;
  position: absolute;
}

.menu-toggle i::before {
  top: -6px;
}

.menu-toggle i::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] i {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] i::before {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] i::after {
  transform: rotate(90deg) translateX(-6px);
}

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

.main-nav a {
  border-radius: 7px;
  color: #edf6ff;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 9px 12px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: rgba(89, 185, 208, 0.16);
  color: #9ee7f2;
}

.hero {
  background:
    linear-gradient(135deg, rgba(16, 36, 73, 0.96), rgba(31, 84, 145, 0.9)),
    radial-gradient(circle at 18% 24%, rgba(89, 185, 208, 0.42), transparent 34%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  opacity: 0.28;
  position: absolute;
}

.hero-inner {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 82px);
  padding: 46px 22px 72px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  color: #a9eaf2;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 16px;
  text-transform: uppercase;
}

h1 {
  font-family: "Sora", "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4.15vw, 4.35rem);
  letter-spacing: 0;
  line-height: 1.06;
  margin-bottom: 22px;
  max-width: 700px;
}

.hero-copy p {
  color: #dce8ff;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 650px;
}

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

.btn {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  color: var(--navy);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.hero-panel {
  align-self: end;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
  padding: 24px;
}

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

.metric {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  min-height: 138px;
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1;
  margin-bottom: 12px;
}

.metric span {
  color: #d7e6fb;
  display: block;
  font-weight: 650;
  line-height: 1.35;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 76px 22px;
}

.section-kicker {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-head {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  margin-bottom: 34px;
}

h2 {
  color: var(--navy);
  font-family: "Sora", "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: 0;
  line-height: 1.08;
}

.section-head p,
.about-text p,
.service-card p,
.project-card p,
.process-step p,
.contact-copy p {
  color: var(--muted);
}

.about-grid {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
}

.logo-showcase {
  align-items: center;
  background: #0c1730;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  min-height: 320px;
  padding: 42px;
}

.logo-showcase img {
  display: block;
  height: auto;
  width: 100%;
}

.about-text {
  display: grid;
  gap: 18px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pill-list span {
  background: #e9f7f8;
  border: 1px solid #cdebf0;
  border-radius: 999px;
  color: #1e6978;
  font-weight: 750;
  padding: 8px 12px;
}

.services-grid,
.projects-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.project-card,
.process-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 36, 73, 0.06);
}

.service-card {
  min-height: 245px;
  padding: 26px;
}

.service-icon {
  align-items: center;
  background: #edf5ff;
  border-radius: 8px;
  color: var(--blue);
  display: inline-flex;
  font-size: 1.45rem;
  height: 46px;
  justify-content: center;
  margin-bottom: 20px;
  width: 46px;
}

h3 {
  color: var(--navy);
  font-family: "Sora", "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 1.24rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.work-band {
  background: #eaf0f8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.projects-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 290px;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  border-color: rgba(49, 91, 220, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project-logo {
  align-items: center;
  background:
    linear-gradient(135deg, #ffffff, #f3f8ff),
    linear-gradient(90deg, rgba(49, 91, 220, 0.08) 1px, transparent 1px);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 112px;
  justify-content: center;
  padding: 22px;
}

.project-logo img {
  display: block;
  max-height: 68px;
  max-width: 100%;
  object-fit: contain;
}

.project-logo-text {
  background: linear-gradient(135deg, rgba(16, 36, 73, 0.96), rgba(49, 91, 220, 0.86));
  color: #ffffff;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.project-logo-text b {
  font-family: "Sora", "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 1.38rem;
  line-height: 1.1;
}

.project-logo-text small {
  color: #a9eaf2;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-card > strong {
  color: var(--navy);
  display: block;
  font-family: "Sora", "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.25;
  padding: 20px 20px 0;
  word-break: break-word;
}

.project-card p {
  flex: 1;
  padding: 12px 20px 10px;
}

.project-card span {
  color: var(--blue);
  display: block;
  font-weight: 850;
  padding: 0 20px 20px;
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-step {
  min-height: 205px;
  padding: 24px;
}

.process-step b {
  align-items: center;
  background: var(--navy);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  margin-bottom: 18px;
  width: 34px;
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(16, 36, 73, 0.97), rgba(27, 105, 122, 0.93)),
    radial-gradient(circle at 90% 18%, rgba(39, 182, 122, 0.32), transparent 30%);
  color: #ffffff;
}

.contact-inner {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.5fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 76px 22px;
}

.contact-copy h2 {
  color: #ffffff;
}

.contact-copy p {
  color: #d9e9f4;
  font-size: 1.08rem;
  margin-top: 16px;
  max-width: 720px;
}

.contact-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 26px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  color: #ffffff;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 12px 14px;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #a9eaf2;
  box-shadow: 0 0 0 3px rgba(169, 234, 242, 0.25);
}

.contact-form button {
  border: 0;
  cursor: pointer;
  margin-top: 6px;
  width: 100%;
}

.form-status {
  border-radius: 7px;
  display: none;
  font-weight: 800;
  padding: 12px 14px;
}

.form-status-success {
  background: rgba(39, 182, 122, 0.18);
  border: 1px solid rgba(151, 250, 127, 0.5);
  color: #d9ffd2;
}

.form-status-error {
  background: rgba(255, 84, 84, 0.16);
  border: 1px solid rgba(255, 174, 174, 0.5);
  color: #ffe1e1;
}

html[data-form-status="sucesso"] .form-status-success,
html[data-form-status="erro"] .form-status-error {
  display: block;
}

footer {
  background: #071127;
  color: #aab8ce;
  font-size: 0.92rem;
  padding: 24px 22px;
  text-align: center;
}

footer p + p {
  margin-top: 6px;
}

@media (max-width: 980px) {
  .hero-inner,
  .section-head,
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .services-grid,
  .projects-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    gap: 16px;
    padding: 12px 18px;
  }

  .brand img {
    width: min(178px, 58vw);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    background: #071b3f;
    border-top: 1px solid rgba(89, 185, 208, 0.24);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
    display: grid;
    gap: 6px;
    left: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 18px;
    position: absolute;
    right: 0;
    top: 100%;
    transform: translateY(-8px);
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease, transform 0.25s ease;
    visibility: hidden;
  }

  .main-nav.is-open {
    max-height: 260px;
    opacity: 1;
    padding: 12px 18px 16px;
    transform: translateY(0);
    visibility: visible;
  }

  .main-nav a {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    text-align: left;
  }

  .hero-inner,
  .section,
  .contact-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-inner {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.85rem);
  }

  .metric-grid,
  .services-grid,
  .projects-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .logo-showcase,
  .contact-box {
    padding: 20px;
  }

  .logo-showcase {
    min-height: 230px;
  }
}
