/* ========================================
   RESET & BASE
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #FFFFFF;
  --bg-gray: #F5F5F7;
  --bg-dark: #000000;
  --text-dark: #1D1D1F;
  --text-mid: #6e6e73;
  --text-light: #86868B;
  --accent: #cc0000;
  --accent-hov: #fa0505;
  --border: #d2d2d7;
  --border-dark: #2d2d2d;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-pill: 980px;
  --max-w: 980px;
  --max-w-wide: 1200px;
  --nav-h: 48px;
  --trans: 0.35s cubic-bezier(.25, .46, .45, .94);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========================================
   UTILITY
======================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* Fade-in on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--trans), transform 0.7s var(--trans);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ========================================
   NAV
======================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

nav .container {
  width: 100%;
  max-width: var(--max-w-wide);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: background var(--trans);
}

.nav-cta:hover {
  background: var(--accent-hov);
}

/* ========================================
   HERO
======================================== */
#hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 100px;
  background: var(--white);
  text-align: center;
}

.hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  max-width: 820px;
  margin: 0 auto 28px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  transition: background var(--trans), transform var(--trans);
}

.btn-primary:hover {
  background: var(--accent-hov);
  transform: scale(1.02);
}

.hero-disclaimer {
  font-size: 12px;
  color: var(--text-light);
}

.hero-clients {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.hero-clients p {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-clients img {
  max-width: 600px;
  width: 100%;
  opacity: 0.55;
  filter: grayscale(100%);
}

/* Carrossel de logos */
.logos-track-wrap {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: logos-scroll 22s linear infinite;
}

.logos-track:hover {
  animation-play-state: paused;
}

.logos-track img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(100%);
  flex-shrink: 0;
  transition: opacity var(--trans), filter var(--trans);
}

.logos-track img:hover {
  opacity: 0.85;
  filter: grayscale(0%);
}

@keyframes logos-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ========================================
   SECTION COMMONS
======================================== */
section {
  padding: 96px 0;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-mid);
  max-width: 620px;
  line-height: 1.6;
}

/* ========================================
   PAIN SECTION
======================================== */
#pain {
  background: var(--bg-gray);
}

#pain .section-title {
  max-width: 640px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.pain-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: box-shadow var(--trans), transform var(--trans);
}

.pain-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.pain-card .icon {
  width: 48px;
  height: 48px;
  background: #f0f6ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.pain-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pain-card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

.pain-conclusion {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--accent);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
}

/* ========================================
   SYSTEM (layers)
======================================== */
#system {
  background: var(--bg-dark);
  color: var(--white);
}

#system .section-tag {
  color: #ff8787;
}

#system .section-title {
  color: var(--white);
}

#system .section-sub {
  color: #a1a1a6;
}

.layers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.layer-item {
  padding: 44px 40px;
  background: #111111;
  border: 1px solid #222;
  transition: background var(--trans);
}

.layer-item:hover {
  background: #1a1a1a;
}

.layer-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.layer-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.layer-desc {
  font-size: 15px;
  color: #86868B;
  line-height: 1.65;
}

/* ========================================
   AQEI
======================================== */
#aqei {
  background: var(--white);
}

.aqei-intro {
  max-width: 640px;
  margin-bottom: 60px;
}

.aqei-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.aqei-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--trans);
}

.aqei-card:hover {
  box-shadow: 0 8px 30px rgba(0, 102, 204, 0.1);
}

.aqei-letter {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  color: #f0f6ff;
  position: absolute;
  right: 24px;
  top: 16px;
  letter-spacing: -0.04em;
}

.aqei-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  position: relative;
}

.aqei-card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
  position: relative;
}

/* ========================================
   CASES
======================================== */
#cases {
  background: var(--bg-gray);
}

.cases-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}

.cases-intro {
  max-width: 560px;
}

.cases-img {
  flex-shrink: 0;
}

.cases-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 44px 40px;
  border: 1px solid var(--border);
}

.case-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.case-context {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.5;
}

.case-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.case-problem {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 20px;
}

.case-problem strong {
  color: var(--text-dark);
}

.case-results {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-results li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
}

.case-results li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.case-quote {
  margin-top: 20px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--bg-gray);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ========================================
   INCLUDES
======================================== */
#includes {
  background: var(--bg-dark);
  color: var(--white);
}

#includes .section-tag {
  color: #ff8787;
}

#includes .section-title {
  color: var(--white);
}

#includes .section-sub {
  color: #a1a1a6;
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 56px;
}

.include-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-dark);
}

.include-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.include-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.include-item p {
  font-size: 16px;
  color: #e8e8ed;
  line-height: 1.5;
}

/* ========================================
   TEAM
======================================== */
#team {
  background: var(--white);
}

.team-intro {
  max-width: 560px;
  margin-bottom: 56px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--trans), transform var(--trans);
}

.team-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.team-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.team-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.team-role {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ========================================
   FORM / CTA SECTION
======================================== */
#cta {
  background: var(--bg-gray);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.cta-left .section-title {
  margin-bottom: 16px;
}

.cta-left p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.cta-criteria {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.cta-criteria li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dark);
}

.cta-criteria li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Imagem empresaria no CTA */
.cta-img {
  margin-top: 36px;
  width: 100%;
}

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 36px;
}

.form-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-card .form-sub {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group select:focus,
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--accent-hov);
  transform: scale(1.02);
}

.form-note {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* ========================================
   FOOTER
======================================== */
footer {
  background: var(--bg-dark);
  color: #a1a1a6;
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo img {
  height: 30px;
  opacity: 0.7;
  filter: brightness(0) invert(1);
}

footer p {
  font-size: 13px;
  line-height: 1.6;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 860px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }

  .layers-grid {
    grid-template-columns: 1fr;
  }

  .aqei-grid {
    grid-template-columns: 1fr;
  }

  .cases-wrap {
    grid-template-columns: 1fr;
  }

  .includes-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cases-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cases-img {
    width: 100%;

  }

  .cta-img {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  section {
    padding: 72px 0;
  }

  .hero-title {
    font-size: 34px;
  }

  .btn-primary {
    font-size: 15px;
    padding: 14px 28px;
  }

  .layer-item {
    padding: 32px 24px;
  }

  .case-card {
    padding: 32px 24px;
  }

  .form-card {
    padding: 28px 20px;
  }
}