:root {
  --primary-color: #2089A2;
  --secondary-color: #0B3C49;
  --text-color: #121417;
  --muted-text: #4a5660;
  --bg-color: #f2f6f7;
  --white: #ffffff;
  --dark-bg: #0f171b;
  --dark-card: #121c21;
  --border-color: rgba(18, 20, 23, 0.08);
  --shadow-soft: 0 12px 30px rgba(11, 60, 73, 0.08);
  --shadow-strong: 0 24px 50px rgba(11, 60, 73, 0.14);
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-main: "Inter", sans-serif;
  --transition-fast: 0.25s ease;
  --transition-slow: 0.6s ease;
  --nav-height: 88px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

section {
  padding: 110px 0;
}

h1,
h2,
h3 {
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.7rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

p {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--muted-text);
  margin-bottom: 24px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 56px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary-color);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(32, 137, 162, 0.16);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
}

.text-link {
  position: relative;
  font-weight: 700;
  color: var(--secondary-color);
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0.45);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

@media (pointer: fine) and (min-width: 993px) {
  body.custom-cursor-active,
  body.custom-cursor-active * {
    cursor: none !important;
  }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(32, 137, 162, 0.28);
  border: 1px solid rgba(32, 137, 162, 0.18);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.custom-cursor.active {
  width: 52px;
  height: 52px;
  background: rgba(11, 60, 73, 0.08);
  border-color: rgba(32, 137, 162, 0.5);
}

@media (max-width: 992px), (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}

/* NAV */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.navbar.scrolled {
  box-shadow: 0 10px 26px rgba(18, 20, 23, 0.05);
  border-color: rgba(18, 20, 23, 0.06);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar .container {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text-color);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(18, 20, 23, 0.05);
  background: rgba(255, 255, 255, 0.97);
}

.mobile-nav ul {
  display: grid;
  gap: 14px;
  padding: 18px 20px 24px;
}

/* HERO */
.hero-twist {
  padding-top: calc(var(--nav-height) + 56px);
  background:
    radial-gradient(circle at 82% 20%, rgba(32, 137, 162, 0.09), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f6fafb 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100svh - var(--nav-height));
}

.hero-copy {
  max-width: 760px;
}

.hero-copy p {
  max-width: 650px;
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-image-frame {
  width: min(100%, 620px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-strong);
}

.hero-image-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
}

/* AUTHORITY */
.authority-band {
  padding: 34px 0 0;
}

.authority-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  padding: 42px 0 0;
  border-top: 1px solid rgba(18, 20, 23, 0.08);
}

.authority-intro h2 {
  max-width: 420px;
}

.authority-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.authority-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.04rem;
}

.authority-item p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* ABOUT */
.sobre-twist {
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-media img {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.about-copy {
  max-width: 560px;
}

/* CLIENTS */
.clients-showcase {
  background: var(--bg-color);
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.logo-wall-item {
  min-height: 120px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(18, 20, 23, 0.06);
}

.logo-wall-item.dark {
  background: var(--dark-card);
  box-shadow: 0 8px 20px rgba(18, 20, 23, 0.06);
}

.logo-wall-item img {
  max-width: 160px;
  max-height: 52px;
  object-fit: contain;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.client-card {
  padding: 28px 24px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid rgba(18, 20, 23, 0.06);
  box-shadow: 0 8px 20px rgba(18, 20, 23, 0.03);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(11, 60, 73, 0.08);
  border-color: rgba(32, 137, 162, 0.16);
}

.client-card-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.client-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-color);
}

.client-type {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-card p {
  margin-bottom: 0;
}

/* SERVICES */
.servicos-twist {
  background: var(--white);
}

.services-list {
  display: grid;
  gap: 18px;
}

.service-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  align-items: start;
  padding: 28px 24px;
  border-top: 1px solid rgba(18, 20, 23, 0.1);
}

.service-row:last-child {
  border-bottom: 1px solid rgba(18, 20, 23, 0.1);
}

.service-number {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color);
}

.service-body h3 {
  margin-bottom: 10px;
}

.service-body p {
  margin-bottom: 0;
  max-width: 760px;
}

/* CASES */
.cases-twist {
  background: var(--bg-color);
}

.cases-masonry {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.case-large,
.case-small {
  border-radius: 26px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(18, 20, 23, 0.06);
  box-shadow: 0 8px 20px rgba(18, 20, 23, 0.03);
}

.case-large {
  grid-row: span 2;
}

.case-image img {
  width: 100%;
  object-fit: cover;
}

.case-large .case-image img {
  aspect-ratio: 16 / 13;
}

.case-small .case-image img {
  aspect-ratio: 16 / 12;
}

.case-copy {
  padding: 24px;
}

.case-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-copy h3 {
  margin-bottom: 10px;
}

.case-copy p {
  margin-bottom: 0;
}

/* PROCESS */
.process-twist {
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-card {
  padding: 28px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  border: 1px solid rgba(18, 20, 23, 0.06);
  box-shadow: 0 8px 18px rgba(18, 20, 23, 0.03);
  min-height: 220px;
}

.process-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--primary-color);
  font-weight: 800;
}

.process-card p {
  margin-bottom: 0;
}

.process-mobile-hint {
  display: none;
}

/* CTA */
.cta-final-twist {
  background: var(--bg-color);
}

.cta-final-box {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 54px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(32, 137, 162, 0.08), rgba(11, 60, 73, 0.05));
  border: 1px solid rgba(32, 137, 162, 0.12);
}

.cta-final-box p {
  max-width: 720px;
  margin: 0 auto 24px;
}

/* CONTACT */
.contato-twist {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-direct-card {
  margin-top: 26px;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-color);
  border: 1px solid rgba(18, 20, 23, 0.06);
}

.contact-direct-card strong {
  display: block;
  margin-bottom: 10px;
}

.contact-direct-card a {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.06rem;
}

.contato-form form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 24px;
  background: var(--bg-color);
  border: 1px solid rgba(18, 20, 23, 0.06);
}

.form-group {
  display: grid;
  gap: 8px;
}

label {
  font-size: 0.95rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 20, 23, 0.1);
  border-radius: 14px;
  font: inherit;
  color: var(--text-color);
  background: var(--white);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(32, 137, 162, 0.12);
}

.form-feedback {
  min-height: 22px;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--primary-color);
}

/* WHATSAPP */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  min-width: 132px;
  min-height: 52px;
  padding: 14px 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.28);
}

/* FOOTER */
footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

/* REVEALS */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.gsap-reveal-hero,
.gsap-reveal-card {
  opacity: 0;
  visibility: hidden;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-layout,
  .about-layout,
  .contact-layout,
  .authority-grid,
  .clients-grid,
  .logo-wall {
    grid-template-columns: 1fr;
  }

  .authority-items {
    grid-template-columns: 1fr;
  }

  .cases-masonry {
    grid-template-columns: 1fr;
  }

  .case-large {
    grid-row: auto;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  section {
    padding: 86px 0;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav.active {
    display: block;
  }

  .hero-twist {
    padding-top: calc(var(--nav-height) + 24px);
  }

  .hero-layout {
    min-height: auto;
    gap: 34px;
  }

  .hero-copy,
  .about-copy,
  .contato-content,
  .cta-final-box {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .process-grid::-webkit-scrollbar {
    height: 6px;
  }

  .process-grid::-webkit-scrollbar-thumb {
    background: rgba(32, 137, 162, 0.35);
    border-radius: 999px;
  }

  .process-card {
    min-height: 220px;
    scroll-snap-align: start;
  }

  .process-mobile-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
  }

  .process-mobile-hint span {
    width: 34px;
    height: 6px;
    border-radius: 999px;
    background: rgba(32, 137, 162, 0.22);
  }

  .process-mobile-hint p {
    margin: 0;
    font-size: 0.92rem;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-width: 116px;
    min-height: 48px;
    padding: 12px 16px;
  }

  .gsap-reveal-hero,
  .gsap-reveal-card {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1240px, calc(100% - 28px));
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero-copy p,
  p {
    font-size: 1rem;
  }

  .logo-wall-item {
    min-height: 104px;
    padding: 20px;
  }

  .logo-wall-item img {
    max-width: 140px;
    max-height: 46px;
  }

  .process-grid {
    grid-auto-columns: 88%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .scroll-reveal,
  .gsap-reveal-hero,
  .gsap-reveal-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}