/* ===== Variables ===== */
:root {
  --blue-dark: #004aad;
  --blue: #0078d4;
  --blue-light: #009dff;
  --green-dark: #43a047;
  --green: #66bb6a;
  --green-light: #7cb342;
  --gradient-brand: linear-gradient(135deg,
      var(--blue-dark) 0%,
      var(--blue-light) 50%,
      var(--green-light) 100%);
  --gradient-text: linear-gradient(90deg, var(--blue-light), var(--green-light));
  /* Base unificada — gradiente suave do hero antigo (sem glows/grid) */
  --bg: #f0f5fb;
  --bg-mid: #ffffff;
  --bg-end: #eef8f0;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --text: #1a2332;
  --text-muted: #5a6478;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0, 74, 173, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 74, 173, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 76px;
  --container-max: 1320px;
  --container-padding: clamp(20px, 4vw, 48px);
  --text-base: 1.125rem;
  --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 17px;
}

body {
  font-family: 'Nunito', sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(
    160deg,
    var(--bg) 0%,
    var(--bg-mid) 45%,
    var(--bg-end) 100%
  );
  background-attachment: fixed;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--green-light);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(67, 160, 71, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
  box-shadow: 0 8px 24px rgba(67, 160, 71, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: rgba(0, 74, 173, 0.35);
}

.btn--outline:hover {
  background: rgba(0, 74, 173, 0.06);
  border-color: var(--blue);
  color: var(--blue-dark);
}

.btn--sm {
  padding: 9px 22px;
  font-size: 0.95rem;
}

.btn--lg {
  padding: 17px 42px;
  font-size: 1.1rem;
}

/* ===== Header — full bleed, logo large ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  width: 100%;
  background: rgba(240, 245, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.96);
}

.header__inner {
  height: 100%;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(20px, 3.5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  height: 72px;
  width: auto;
  max-width: min(58vw, 280px);
  object-fit: contain;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.header__nav a:not(.btn) {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition);
  white-space: nowrap;
}

.header__nav a:not(.btn):hover {
  color: var(--blue);
}

.header__nav .btn {
  flex-shrink: 0;
  background: var(--green-light);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(67, 160, 71, 0.3);
}

.header__nav .btn:hover {
  transform: translateY(-1px);
  background: var(--green-dark);
  color: #fff;
}

.header__toggle {
  display: none;
  position: relative;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.header__toggle span {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    top 0.25s ease,
    transform 0.25s ease,
    opacity 0.2s ease;
}

.header__toggle span:nth-child(1) {
  top: 3px;
}

.header__toggle span:nth-child(2) {
  top: 9px;
}

.header__toggle span:nth-child(3) {
  top: 15px;
}

.header__toggle.active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__toggle.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* ===== Hero — text + art ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 56px;
  overflow: hidden;
  background: transparent;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  width: 100%;
}

.hero__content {
  min-width: 0;
}

.hero__brand {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.4rem, 4.8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 34rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__visual {
  position: relative;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 4px 20px rgba(0, 74, 173, 0.06);
}

.hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== Sections ===== */
.section {
  padding: 96px 0;
  background: transparent;
}

.section--alt {
  background: transparent;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section__desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ===== Pain cards ===== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 120, 212, 0.25);
}

.pain-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.pain-card p {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 120, 212, 0.2);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(0, 120, 212, 0.06);
  border-radius: 12px;
  transition: background var(--transition);
}

.service-card:hover .service-card__icon {
  background: rgba(124, 179, 66, 0.12);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: none;
}

.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.process-card:hover::before {
  opacity: 1;
}

.process-card__num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1;
}

.process-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-card p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Use cases ===== */
.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.use-case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 179, 66, 0.35);
}

.use-case-card__area {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(124, 179, 66, 0.12);
  padding: 6px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.use-case-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.25;
}

.use-case-card__result {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 18px;
  line-height: 1.45;
}

.use-case-card__flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.use-case-card__flow li {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 14px;
  transition:
    border-color var(--transition),
    color var(--transition),
    background var(--transition);
}

.use-case-card:hover .use-case-card__flow li {
  border-color: rgba(0, 120, 212, 0.2);
  color: var(--blue-dark);
}

/* ===== Diferenciais ===== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.diff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.diff-card:nth-child(even) {
  border-left-color: var(--green-light);
}

.diff-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.diff-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.diff-card p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Clients ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.clients-grid .client-logo:last-child:nth-child(4n + 1) {
  grid-column: 2;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  min-height: 130px;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.client-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.client-logo img {
  height: 64px;
  width: auto;
  max-width: min(100%, 200px);
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.88;
  transition: all var(--transition);
}

.client-logo--lg img {
  height: 84px;
  max-width: min(100%, 240px);
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===== Stack ===== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.stack-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stack-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tags span {
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.stack-card:hover .tags span {
  border-color: rgba(0, 157, 255, 0.35);
  color: var(--blue);
  background: rgba(0, 157, 255, 0.06);
}

.stack-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  padding: 18px 22px;
  position: relative;
  padding-right: 48px;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  color: var(--blue-dark);
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

/* ===== CTA ===== */
.cta {
  background: transparent;
  padding: 96px 0;
  text-align: center;
  position: relative;
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta__tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.cta__inner h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
}

.cta__highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta__inner>p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.55;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.cta .btn--primary {
  background: var(--green-light);
  color: #fff;
  box-shadow: 0 4px 16px rgba(67, 160, 71, 0.35);
}

.cta .btn--primary:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 24px rgba(67, 160, 71, 0.45);
}

.cta .btn--outline {
  color: var(--blue-dark);
  border-color: rgba(0, 74, 173, 0.35);
}

.cta .btn--outline:hover {
  background: rgba(0, 74, 173, 0.06);
  border-color: var(--blue);
  color: var(--blue-dark);
}

/* ===== Footer ===== */
.footer {
  background: #0a1628;
  padding: 48px 0 28px;
  color: #dce4f0;
}

.footer a {
  color: #dce4f0;
}

.footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.footer__logo {
  height: 80px;
  width: auto;
  max-width: min(70vw, 300px);
  object-fit: contain;
  opacity: 1;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
  flex: 1 1 auto;
}

.footer__nav a {
  font-size: 0.98rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: #fff;
}

.footer__wa {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff !important;
  background: #25d366;
  transition:
    background var(--transition),
    transform var(--transition);
}

.footer__wa:hover {
  background: #1fba58;
  transform: translateY(-1px);
}

.footer__copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 8px;
  text-align: center;
  line-height: 1.5;
}

/* ===== WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease,
    box-shadow var(--transition);
}

.whatsapp-float.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float.is-visible:hover {
  transform: scale(1.08);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ===== Scroll animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body {
    background-attachment: scroll;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .service-card:hover,
  .pain-card:hover,
  .process-card:hover,
  .use-case-card:hover,
  .diff-card:hover,
  .stack-card:hover,
  .client-logo:hover {
    transform: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {

  .pain-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid,
  .diff-grid,
  .stack-grid {
    grid-template-columns: 1fr 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .clients-grid .client-logo:last-child:nth-child(4n + 1) {
    grid-column: auto;
  }
}

@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 32px) 0 48px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  .hero__content {
    max-width: 36rem;
    margin: 0 auto;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

  .footer {
    padding: 44px 0 32px;
  }

  .footer__main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    margin-bottom: 24px;
  }

  .footer__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 100%;
    max-width: none;
    gap: 14px;
  }

  .footer__nav a {
    white-space: normal;
    line-height: 1.3;
  }

  .footer__wa {
    width: auto;
    min-width: 220px;
  }
}

@media (max-width: 860px) {
  .header__toggle {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--container-padding) 1.25rem;
    gap: 0.35rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .header__nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav a {
    padding: 0.7rem 0.4rem;
  }

  .header__nav a:not(.btn) {
    font-size: 1.05rem;
  }

  .header__nav .btn {
    width: 100%;
    margin-top: 0.5rem;
    justify-content: center;
  }

  .header__logo img {
    height: 64px;
    max-width: min(64vw, 250px);
  }
}

/* Mobile: fixed backgrounds are costly/buggy on iOS */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .section {
    padding: 64px 0;
  }

  .pain-grid,
  .services-grid,
  .process-grid,
  .use-cases-grid,
  .diff-grid,
  .stack-grid,
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta__actions .btn {
    width: 100%;
  }

  .footer__logo {
    height: 68px;
  }

  .footer__nav {
    gap: 12px;
  }

  .footer__nav a {
    font-size: 1rem;
  }

  .footer__wa {
    width: 100%;
    max-width: 300px;
  }

  .footer__copy {
    padding-top: 4px;
    padding-inline: 48px 56px; /* room so float WA doesn't clip text */
    font-size: 0.85rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .header__logo img {
    height: 56px;
  }
}