:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --bg: #0b1020;
  --bg2: #0d1733;
  --card: #0f1a3a;
  --text: #e9ecff;
  --muted: #b6bce9;
  --line: rgba(255, 255, 255, .10);

  /* NEW: Background system vars */
  --bg-dot: rgba(255, 255, 255, 0.03);
  --fog-1: #4f7cff;
  /* Primary Blue */
  --fog-2: #23d4ff;
  /* Cyan */
  --fog-3: #7e22ce;
  /* Purple */

  --primary: #4f7cff;
  --primary2: #23d4ff;

  --shadow: 0 24px 70px rgba(0, 0, 0, .40);
  --radius: 24px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --h1: clamp(2.2rem, 4.8vw, 3.6rem);
  --h2: clamp(1.6rem, 3.2vw, 2.2rem);
  --p: 1rem;
  --header-h: 72px;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg2: #f9fafb;
  --card: #ffffff;
  --text: #0b1324;
  --muted: #4a587a;
  --line: rgba(15, 25, 48, .08);

  /* NEW: Light mode background vars */
  --bg-dot: rgba(0, 0, 0, 0.04);
  /* Very soft pastel fog for light mode */
  --fog-1: #E0E7FF;
  /* Soft Blue */
  --fog-2: #D1FAE5;
  /* Soft Mint */
  --fog-3: #F3E8FF;
  /* Soft Purple */

  --shadow: 0 18px 56px rgba(11, 19, 36, .06);
}

/* Force pure white background in light mode (no gradients) */
/* Force pure white background color in light mode, but keep the dots */
html[data-theme="light"] body {
  background-color: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  /* CRITICAL: Prevent side scroll */
  position: relative;
}

/* NEW: ANIMATED BACKGROUND */
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Dot Pattern Grid */
  background-image:
    radial-gradient(var(--bg-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  /* Grid size */
  background-position: 0 0;

  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  padding-top: var(--header-h);
}



/* FLOATING FOG ANIMATION */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150vw;
  height: 150vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, var(--fog-1) 0%, transparent 50%),
    radial-gradient(circle at 0% 0%, var(--fog-2) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, var(--fog-3) 0%, transparent 40%);
  filter: blur(100px);
  opacity: 0.12;
  /* Subtle visibility */
  animation: fogFloat 20s ease-in-out infinite alternate;
}

/* Light mode specific adjustment for fog visibility */
html[data-theme="light"] body::before {
  opacity: 0.4;
  /* Slightly more visible for pastels */
  filter: blur(80px);
}

@keyframes fogFloat {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  50% {
    transform: translate(-45%, -55%) rotate(5deg) scale(1.1);
  }

  100% {
    transform: translate(-55%, -45%) rotate(-5deg) scale(1);
  }
}

/* Ensure in-page anchors account for the fixed header */
html {
  scroll-padding-top: calc(var(--header-h) + 12px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--card);
  border: 1px solid var(--line);
  padding: .6rem .8rem;
  border-radius: 999px;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid var(--primary);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* above page content */

  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(11, 16, 32, 0.7);
  /* More transparent */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Light mode header: White background */
html[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header[data-elevated="true"] {
  box-shadow: 0 10px 35px rgba(0, 0, 0, .18);
}

html[data-theme="light"] .header[data-elevated="true"] {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  gap: .85rem;
  /* tighter + cleaner */
}

/* CHANGED: remove the blob/capsule look from the left group */
.header__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;

  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;

  flex: 1;
  min-width: 0;
}

/* CHANGED: links spacing like screenshot */
.nav__capsule {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  white-space: nowrap;
}

/* CHANGED: clean text links (no pill background) */
.nav__link {
  padding: .25rem 0;
  border-radius: 0;
  font-weight: 650;
  font-size: .95rem;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
  transition: color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

/* underline hover like screenshot */
.nav__link:hover {
  background: transparent;
  transform: translateY(-1px);
  color: var(--text);
  box-shadow: inset 0 -2px 0 0 color-mix(in srgb, var(--primary) 70%, transparent);
}

.nav__link:focus-visible {
  outline: none;
  box-shadow:
    inset 0 -2px 0 0 color-mix(in srgb, var(--primary) 80%, transparent),
    0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

/* NEW: hamburger toggle is flat (no circle/blob) */
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav__toggle:hover {
  background: color-mix(in srgb, var(--card) 55%, transparent);
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}

.nav__toggle {
  display: none;
}

.nav__panel {
  display: flex;
  align-items: center;
}

/* NEW: links container to control spacing cleanly */
.nav__capsule {
  display: flex;
  align-items: center;
  gap: .2rem;
  white-space: nowrap;
}

.nav__link {
  padding: .45rem .6rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: .95rem;
  color: color-mix(in srgb, var(--text) 86%, var, --muted);
}

.nav__link:hover {
  background: color-mix(in srgb, var(--card) 82%, transparent);
  transform: translateY(-1px);
  color: var(--text);
}

.nav__tools {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex: 0 0 auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 86%, transparent);
  padding: .55rem .75rem;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var, --ease, border-color .2s var, --ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 50%, var, --line);
}

.icon-btn:active {
  transform: translateY(0px) scale(.98);
}

.icon-btn__text {
  font-weight: 650;
  font-size: .92rem;
  opacity: .95;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  cursor: pointer;
  transition: transform .2s var, --ease, border-color .2s var, --ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 45%, var, --line);
}

.pill__label {
  font-weight: 650;
  opacity: .9;
}

.pill__value {
  font-weight: 800;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
}

.pill--small {
  padding: .42rem .65rem;
}

/* NEW: SVG language icon styles */
.lang-icon {
  width: 20px;
  height: 20px;
  display: block;
  opacity: 0.8;
  transition: opacity 0.2s var(--ease);
}

.pill:hover .lang-icon {
  opacity: 1;
}

.lang {
  position: relative;
}

.menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 220px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: .4rem;
  display: none;
}

.menu[data-open="true"] {
  display: block;
  animation: pop .18s var(--ease) both;
}

.menu__item {
  width: 100%;
  text-align: left;
  padding: .6rem .7rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background .18s var(--ease);
}

.menu__item:hover {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

@keyframes pop {
  from {
    transform: translateY(-6px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var, --ease, background .2s var, --ease, border-color .2s var, --ease;
  font-weight: 750;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

.btn--primary {
  border-color: color-mix(in srgb, var(--primary) 55%, var, --line);
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #061026;
  box-shadow: 0 18px 45px rgba(79, 124, 255, .25);
}

.btn--ghost {
  background: color-mix(in srgb, var(--card) 75%, transparent);
}

.btn--glow {
  position: relative;
}

.btn--glow::after {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(35, 212, 255, .25), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  opacity: .75;
}

.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 400px at 30% 25%, rgba(79, 124, 255, .25), transparent 60%),
    radial-gradient(900px 600px at 70% 35%, rgba(35, 212, 255, .18), transparent 60%);
  opacity: .9;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .92rem;
  color: var(--muted);
  margin: 0 0 .8rem;
}

.hero__title {
  margin: 0 0 .8rem;
  font-family: var(--font-heading);
  font-size: var(--h1);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.typing-cursor::after {
  content: "|";
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--primary);
  margin-left: 4px;
  vertical-align: text-bottom;
  font-weight: 100;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero__subtitle {
  margin: 0 0 1.4rem;
  color: color-mix(in srgb, var(--text) 78%, var, --muted);
  max-width: 58ch;
  font-size: 1.04rem;
}

.hero__actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.badge {
  font-size: .88rem;
  color: color-mix(in srgb, var(--text) 76%, var, --muted);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  padding: .45rem .65rem;
  border-radius: 999px;
}

.hero__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 84%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateZ(0);
}

.preview__top {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem .9rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 90%, transparent);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot--r {
  background: #ff5b5b;
}

.dot--y {
  background: #ffcc4d;
}

.dot--g {
  background: #3ddc97;
}

.preview__url {
  margin-left: .45rem;
  font-size: .92rem;
  color: var(--muted);
}

.preview__body {
  padding: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.kpi {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 78%, transparent);
  border-radius: 16px;
  padding: .85rem;
  min-height: 92px;
}

.kpi__num {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -.5px;
}

.kpi__label {
  font-size: .88rem;
  color: var(--muted);
  margin-top: .2rem;
}

.sparkline {
  grid-column: 1/-1;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent),
    radial-gradient(60% 120% at 20% 40%, rgba(79, 124, 255, .20), transparent 65%),
    radial-gradient(55% 120% at 80% 35%, rgba(35, 212, 255, .18), transparent 65%);
  position: relative;
  overflow: hidden;
}

.sparkline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: translateX(-40%);
  animation: shimmer 3.8s var(--ease) infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-45%);
  }

  60% {
    transform: translateX(75%);
  }

  100% {
    transform: translateX(75%);
  }
}

.section {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.section--alt {
  background: transparent !important;
  border-block: 0 !important;
}

.section--alt>.container {
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .08);
}

/* Keep inner spacing consistent (avoid double padding look) */
.section--alt>.container .section__head {
  margin-bottom: 1.75rem;
}

/* 3) Soft divider between sections (fade, not a line) */
main[data-sections="soft"]>.section {
  position: relative;
}

/* NOTE: you currently have a rule disabling these pseudo-elements with !important.
   This block re-enables with higher-priority !important + a better visual. */
main[data-sections="soft"]>.section+.section::before {
  content: "" !important;
  display: block !important;

  position: absolute;
  left: 0;
  right: 0;
  top: -56px;
  height: 56px;
  pointer-events: none;

  /* subtle fade that “separates” sections without a visible border */
  background: linear-gradient(180deg,
      transparent 0%,
      color-mix(in srgb, var(--text) 6%, transparent) 55%,
      transparent 100%);
  opacity: .9;
}

/* 4) Testimonials: don’t force white section background in light (keeps consistency) */
html[data-theme="light"] #depoimentos.section--alt {
  background: transparent !important;
}

/* 5) Mobile: panel padding a bit tighter */
@media (max-width: 860px) {
  .section--alt>.container {
    padding: 1.1rem;
  }

  main[data-sections="soft"]>.section+.section::before {
    top: -44px;
    height: 44px;
  }
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Subtle glass border */
  background: rgba(15, 26, 58, 0.6);
  /* Glassy background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

html[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card--icon .card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, transparent), color-mix(in srgb, var(--primary2) 15%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var, --line);
  margin-bottom: .8rem;
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem 2rem;
  /* More vertical space for floating */
  padding: 1rem 0;
}

/* FLOAT & BREATHE ANIMATIONS */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

/* APPLE-STYLE CARD (DYNAMIC) */
.project {
  position: relative;
  border-radius: 22px;
  background: color-mix(in srgb, var(--card) 60%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transform: translateZ(0);

  /* Default animation: float */
  animation: float 6s ease-in-out infinite;
}

/* Randomized organic motion */
.project:nth-child(2n) {
  animation-duration: 7s;
  animation-delay: -2s;
}

.project:nth-child(3n) {
  animation-duration: 5.5s;
  animation-delay: -1s;
}

.project:nth-child(3n+1) {
  animation-duration: 8s;
  animation-delay: -3s;
}

/* Light mode override */
html[data-theme="light"] .project {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.05);
}

.project:hover {
  /* Pause floating on hover for focus */
  animation-play-state: paused;
  z-index: 10;
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  /* Deep lifting shadow */
  transform: translateY(-6px) scale(1.02);
  /* Lift & grow manually on hover */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html[data-theme="light"] .project:hover {
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
}

/* THUMBNAIL AREA */
.project__thumb {
  height: 280px;
  /* Taller to dominate the card */
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  transition: height 0.4s ease;
}

.project__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hover scales the image */
.project:hover .project__thumb img {
  transform: scale(1.1);
}

/* Shimmer */
.project__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 20%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  /* Ensure it doesn't block clicks */
}

.project:hover .project__thumb::after {
  transform: translateX(100%);
  transition-duration: 0.8s;
}


/* METADATA (HOVER REVEAL) */
.project__meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top,
      color-mix(in srgb, var(--bg) 95%, transparent) 0%,
      color-mix(in srgb, var(--bg) 80%, transparent) 60%,
      transparent 100%);
  backdrop-filter: blur(4px);

  /* Hidden state */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reveal on hover */
.project:hover .project__meta {
  opacity: 1;
  transform: translateY(0);
}

.project__name {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}

.project__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .project__tag {
  background: rgba(0, 0, 0, 0.6);
  color: var(--primary);
}

.quote {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 84%, transparent);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.quote blockquote {
  margin: 0;
  color: color-mix(in srgb, var(--text) 86%, var, --muted);
  font-weight: 650;
}

.quote figcaption {
  margin-top: .7rem;
  color: var(--muted);
}

/* === CONTACT SECTION IMPROVEMENTS === */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.info-card {
  /* Removed border/bg for a cleaner look, or keep subtle */
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;

  background: color-mix(in srgb, var(--card) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;

  transition: all 0.25s var(--ease);
}

.contact-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  /* for paths that fill */
  stroke: currentColor;
  /* for paths that stroke */
}

/* Specific icon tweaks */
.contact-btn--whatsapp svg {
  fill: currentColor;
  stroke: none;
}

.contact-btn--instagram svg {
  fill: none;
  stroke: currentColor;
}

.contact-btn--email svg {
  fill: none;
  stroke: currentColor;
}

.contact-btn--phone svg {
  fill: none;
  stroke: currentColor;
}

.contact-btn:hover {
  transform: translateY(-3px);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

/* WhatsApp specific brand color on hover */
.contact-btn--whatsapp:hover {
  color: #25D366;
  border-color: #25D366;
}

.contact-btn--instagram:hover {
  color: #E1306C;
  border-color: #E1306C;
}

/* PROFESSIONAL FORM STYLES */
.form {
  background: color-mix(in srgb, var(--card) 40%, transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.field__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 60%, var(--muted));
  margin-left: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 50%, var(--card));
  font-size: 1rem;
  color: var(--text);
  transition: all 0.2s var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: var(--card);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.form__note {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-buttons {
    grid-template-columns: 1fr 1fr;
    /* Keep 2x2 grid on mobile */
  }
}

.faq {
  max-width: 900px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 84%, transparent);
  padding: .3rem .9rem;
  margin-bottom: .75rem;
  overflow: hidden;
}

.faq__item>summary {
  cursor: pointer;
  padding: .8rem 0;
  font-weight: 800;
  list-style: none;
}

.faq__item>summary::-webkit-details-marker {
  display: none;
}

.faq__item p {
  margin: .1rem 0 1rem;
  color: var(--muted);
}

/* === FOOTER REDESIGN (Fixed for Light Mode) === */
.footer {
  /* Dark theme background for footer to ground the page - ALWAYS DARK */
  background: #020617;
  color: #94a3b8;
  /* Muted text */
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

/* Light mode override: keep footer dark so white text remains visible */
html[data-theme="light"] .footer {
  background: #0f172a;
  /* Slate 900 */
  color: #cbd5e1;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  /* Brand gets more space */
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand--footer .brand__logo--footer {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

.footer__desc {
  max-width: 35ch;
  line-height: 1.6;
  font-size: 0.95rem;
  color: inherit;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__socialBtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: inherit;
  transition: all 0.2s var(--ease);
}

.footer__socialBtn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer__socialBtn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__heading {
  font-family: var(--font-heading);
  color: white;
  /* Always white in dark footer */
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin: 0 0 1.5rem;
  opacity: 1;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer__links a {
  color: inherit;
  transition: color 0.2s var(--ease);
  text-decoration: none;
  display: inline-block;
}

.footer__links a:hover {
  color: white;
  transform: translateX(2px);
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  color: inherit;
  text-decoration: none;
}

.footer__legal a:hover {
  text-decoration: underline;
  color: white;
}

/* Mobile Footer */
@media (max-width: 860px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer__legal {
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
  }
}

/* ADD: noscript banner */
.noscript-banner {
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  color: color-mix(in srgb, var(--text) 82%, var, --muted);
}

/* =========================================================
   ANIMATIONS + HOVERS (0.5s, smooth, perf-friendly) — PUT LAST
   ========================================================= */

/* CHANGED: fix var() typos in transitions */
/* CHANGED: fix var() typos in transitions */
.btn {
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
}

.nav__link {
  transition: color .5s var(--ease), transform .5s var(--ease);
}

.card,
.project,
.quote {
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}

.hero__chip {
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}

/* Scroll reveal: fade-in + slide-up */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .5s var(--ease), transform .5s var, --ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Hero entrance: stagger (works because JS adds .is-visible + body[data-loaded]) */
@media (prefers-reduced-motion: no-preference) {
  body[data-loaded="true"] #top.hero--screenshot .reveal.is-visible {
    animation: heroIn .5s var(--ease) both;
  }

  body[data-loaded="true"] #top.hero--screenshot .hero__pill.reveal.is-visible {
    animation-delay: 0ms;
  }

  body[data-loaded="true"] #top.hero--screenshot .hero__headline.reveal.is-visible {
    animation-delay: 90ms;
  }

  body[data-loaded="true"] #top.hero--screenshot .hero__sub.reveal is-visible {
    animation-delay: 170ms;
  }

  body[data-loaded="true"] #top.hero--screenshot .hero__sub--muted.reveal.is-visible {
    animation-delay: 240ms;
  }

  body[data-loaded="true"] #top.hero--screenshot .hero__chips.reveal.is-visible {
    animation-delay: 320ms;
  }

  body[data-loaded="true"] #top.hero--screenshot .hero__actions.reveal.is-visible {
    animation-delay: 400ms;
  }

  body[data-loaded="true"] #top.hero--screenshot .hero__scroll.reveal.is-visible {
    animation-delay: 480ms;
  }

  @keyframes heroIn {
    from {
      opacity: 0;
      transform: translate3d(0, 18px, 0);
    }

    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }
}

/* Hover effects only for real hover pointers (perf + avoids mobile “sticky hover”) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .14);
  }

  .card:hover,
  .project:hover,
  .quote:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .14);
    border-color: color-mix(in srgb, var(--primary) 28%, var, --line);
  }

  /* nav underline: animate using ::after (no layout shift) */
  .header .nav__link {
    position: relative;
  }

  .header .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 70%, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease);
  }

  .header .nav__link:hover {
    transform: translateY(-1px);
    color: var(--text);
  }

  .header .nav__link:hover::after {
    transform: scaleX(1);
  }

  .hero__chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
    border-color: color-mix(in srgb, var(--primary) 24%, var, --line);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  #top.hero--screenshot .reveal {
    animation: none !important;
  }
}

/* ADD: client error overlay (only shown when JS detects an error) */
.debug-overlay {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 99999;
  max-width: 980px;
  margin: 0 auto;

  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 12px 14px;

  font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--text);
}

.debug-overlay__title {
  font: 800 13px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  margin: 0 0 6px;
}

.debug-overlay__msg {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: .92;
}

/* === CHATBOT WIDGET (Apple/Glassmorphism) === */
.chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  /* let clicks pass through wrapper */
}

.chatbot__toggle {
  pointer-events: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 124, 255, 0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
}

.chatbot__toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(79, 124, 255, 0.5);
}

.chatbot__toggle:active {
  transform: scale(0.95);
}

.chatbot__toggleIcon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chatbot__toggleIcon--close {
  opacity: 0;
  transform: rotate(-90deg);
}

/* Open state for toggle */
.chatbot[data-state="open"] .chatbot__toggleIcon--open {
  opacity: 0;
  transform: rotate(90deg);
}

.chatbot[data-state="open"] .chatbot__toggleIcon--close {
  opacity: 1;
  transform: rotate(0);
}

/* Chat Window */
.chatbot__window {
  pointer-events: auto;
  width: min(360px, calc(100vw - 48px));
  height: min(600px, 80vh);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Enter/Exit Animation */
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  visibility: hidden;
}

/* Dark mode window */
html[data-theme="dark"] .chatbot__window {
  background: rgba(20, 20, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.chatbot[data-state="open"] .chatbot__window {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

/* Header */
.chatbot__header {
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

html[data-theme="dark"] .chatbot__header {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot__avatar {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.chatbot__avatarArgs {
  width: 24px;
  height: 24px;
}

.chatbot__status {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #fff;
  border-radius: 50%;
}

html[data-theme="dark"] .chatbot__status {
  border-color: #1e1e1e;
}

.chatbot__info {
  flex: 1;
}

.chatbot__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.chatbot__role {
  font-size: 0.75rem;
  color: var(--muted);
}

.chatbot__close {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.chatbot__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

html[data-theme="dark"] .chatbot__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Messages Area */
.chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

/* Message Bubbles */
.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: msgPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes msgPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.msg--bot {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

html[data-theme="dark"] .msg--bot {
  background: rgba(255, 255, 255, 0.1);
}

.msg--user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Input / Options Area */
.chatbot__input {
  padding: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.3);
}

html[data-theme="dark"] .chatbot__input {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.chatbot__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chatbot__optionBtn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chatbot__optionBtn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .chatbot {
    bottom: 0;
    right: 0;
    left: 0;
    align-items: center;
    padding: 16px;
  }

  .chatbot__window {
    width: 100%;
    height: 70vh;
    border-radius: 20px;
    margin-bottom: 60px;
    /* ensure space for toggle if it overlays */
  }

  .chatbot__toggle {
    position: absolute;
    bottom: 16px;
    right: 16px;
  }
}

#sobre .about__panelTop {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--card) 98%, transparent);
}

#sobre .about__panelTop .dot {
  width: 10px;
  height: 10px;
}

/* OVERRIDE the generic .reveal transition for THIS card and use keyframes instead */
#sobre .about__panel.reveal {
  transition: none !important;
  opacity: 0;
  transform: translateY(22px) scale(.975);
  filter: blur(10px);
  will-change: transform, opacity, filter;
}

@media (prefers-reduced-motion: no-preference) {
  #sobre .about__panel.reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: none;
    animation: aboutPanelIn .70s var(--ease) both;
  }

  /* one-time sheen sweep after it lands */
  #sobre .about__panel.reveal.is-visible::after {
    content: "";
    position: absolute;
    inset: -45% -60%;
    background: linear-gradient(120deg,
        transparent 44%,
        rgba(255, 255, 255, .26) 50%,
        transparent 56%);
    transform: translateX(-55%);
    opacity: 0;
    pointer-events: none;
    animation: aboutPanelSheen 1.25s var(--ease) .10s both;
  }
}

@keyframes aboutPanelIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(.975);
    filter: blur(10px);
  }

  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.008);
    filter: blur(2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes aboutPanelSheen {
  0% {
    opacity: 0;
    transform: translateX(-55%);
  }

  15% {
    opacity: .85;
  }

  100% {
    opacity: 0;
    transform: translateX(55%);
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  #sobre .about__panel.reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  #sobre .about__panel::after {
    content: none !important;
  }
}

/* Center the top menu links (desktop) */
.header__nav .nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__nav .nav__panel {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__nav .nav__capsule {
  justify-content: center;
}

/* ===== HERO (screenshot) ===== */
.hero.hero--screenshot {
  padding: clamp(5.25rem, 10vw, 7.25rem) 0 clamp(2.25rem, 4vw, 3.25rem);
  position: relative;
}

.hero__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__pill {
  margin: 0 0 1.35rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var, --line);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: color-mix(in srgb, var(--primary) 92%, var(--text));
  font-weight: 750;
  font-size: .9rem;
}

.hero__headline {
  margin: 0 0 1.2rem;
  font-size: clamp(2.25rem, 5.2vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -1px;
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
  max-width: 26ch;
}

.hero__accent {
  color: var(--primary);
  font-weight: 900;
}

.hero__accent--block {
  display: inline-block;
}

.hero__sub {
  margin: 0;
  font-size: 1.03rem;
  color: color-mix(in srgb, var(--text) 70%, var(--muted));
}

.hero__sub--muted {
  margin-top: .75rem;
  color: var(--muted);
}

.hero__chips {
  margin: 1.35rem 0 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  color: color-mix(in srgb, var(--text) 84%, var, --muted);
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
}

.hero__chipIcon {
  width: 18px;
  display: inline-flex;
  justify-content: center;
}

.hero__actions--center {
  justify-content: center;
}

/* Scoped hero button styles to match screenshot WITHOUT touching header "Pedir Orçamento" */
.hero__btnPrimary {
  gap: .6rem;
  padding: .85rem 1.25rem;
  box-shadow: 0 16px 40px rgba(79, 124, 255, .22);
}

.hero__btnArrow {
  font-weight: 900;
}

.hero__btnSecondary {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border-radius: 999px;
  /* CHANGED: match the other pill buttons */
  padding: .85rem 1.25rem;
  font-weight: 750;
}

/* scroll circle */
.hero__scroll {
  margin-top: 1.2rem;
  margin-inline: auto;
  /* CENTERED */
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  /* ensure hard-centering */
  place-items: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  transition: transform .2s var(--ease), border-color .2s var, --ease, background .2s var, --ease;
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.hero__scroll::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;

  background: radial-gradient(60% 60% at 50% 50%, rgba(79, 124, 255, .22), transparent 70%);
  opacity: 0;
  transform: scale(.92);
  animation: scrollGlow 2.2s var(--ease) infinite;
}

.hero__scroll::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;

  border: 2px solid rgba(79, 124, 255, .30);
  opacity: 0;
  transform: scale(.90);
  animation: scrollRing 2.2s var(--ease) infinite;
}

.hero__scrollIcon {
  position: relative;
  z-index: 1;
}

.hero__scrollIcon svg {
  animation: scrollChevron 1.25s var(--ease) infinite;
  will-change: transform, opacity;
  transform-origin: 50% 50%;
}

/* scroll button icon: force visible chevron */
.hero__scrollIcon {
  color: #0b1324;
  /* screenshot: black chevron on white button */
}

html[data-theme="dark"] .hero__scrollIcon {
  color: #ffffff;
}

.hero__scrollIcon svg {
  display: block;
}

.hero__scrollIcon svg path {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__scroll:hover::before,
.hero__scroll:hover::after {
  animation-duration: 1.6s;
}

@keyframes scrollChevron {

  0%,
  100% {
    transform: translateY(0);
    opacity: .9;
  }

  45% {
    transform: translateY(2px);
    opacity: 1;
  }

  70% {
    transform: translateY(0);
    opacity: .95;
  }
}

@keyframes scrollGlow {
  0% {
    opacity: 0;
    transform: scale(.92);
  }

  35% {
    opacity: .9;
    transform: scale(1);
  }

  70% {
    opacity: 0;
    transform: scale(1.14);
  }

  100% {
    opacity: 0;
    transform: scale(1.14);
  }
}

@keyframes scrollRing {
  0% {
    opacity: 0;
    transform: scale(.90);
  }

  25% {
    opacity: .55;
  }

  65% {
    opacity: 0;
    transform: scale(1.18);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero__scroll::before,
  .hero__scroll::after,
  .hero__scrollIcon svg {
    animation: none !important;
  }
}

/* Mobile tune */
@media (max-width: 860px) {
  .hero__headline {
    max-width: 22ch;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__btnPrimary,
  .hero__btnSecondary {
    width: min(360px, 100%);
  }
}

/* NEW: visually hidden helper (for accessible labels) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* NEW: theme switch (matches screenshot) */
.theme-switch {
  position: relative;
  width: 92px;
  height: 44px;
  border-radius: 999px;

  border: 0;
  background: #efefef;
  /* light track */
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;

  transition: background .2s var(--ease), transform .2s var, --ease;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch:active {
  transform: scale(.98);
}

.theme-switch:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-switch__icon {
  font-size: 20px;
  line-height: 1;
  color: #111;
  opacity: .55;
  user-select: none;
}

.theme-switch__thumb {
  position: absolute;
  top: 6px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
  transition: transform .25s var(--ease);
}

/* Screenshot behavior:
   Light: sun visible, thumb on RIGHT
   Dark: moon visible, thumb on LEFT
*/
.theme-switch__thumb {
  transform: translateX(54px);
}

/* right by default (light) */
.theme-switch__icon--sun {
  opacity: 1;
}

.theme-switch__icon--moon {
  opacity: .35;
}

/* Dark mode state */
html[data-theme="dark"] .theme-switch {
  background: #0b0b0b;
}

html[data-theme="dark"] .theme-switch__icon {
  color: #fff;
}

html[data-theme="dark"] .theme-switch__thumb {
  transform: translateX(6px);
  /* left */
}

html[data-theme="dark"] .theme-switch__icon--sun {
  opacity: .35;
}

html[data-theme="dark"] .theme-switch__icon--moon {
  opacity: 1;
}

/* FINAL OVERRIDE (put this at the VERY END of the file):
   Minimalist monochrome theme switch like the screenshot. */
.header .theme-switch {
  width: 92px;
  height: 44px;
  border-radius: 999px;

  background: #efefef;
  /* light track */
  border: 0;
  box-shadow: none;

  position: relative;
  padding: 0;
  /* icons are positioned absolutamente */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.header .theme-switch:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .55);
  /* monochrome focus */
  outline-offset: 2px;
}

.header .theme-switch__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  user-select: none;
  color: #000;
  /* black icon in light */
  opacity: 1;
}

.header .theme-switch__icon--sun {
  left: 16px;
}

.header .theme-switch__icon--moon {
  right: 16px;
  opacity: 0;
}

/* hidden in light */

.header .theme-switch__thumb {
  position: absolute;
  top: 6px;
  left: 6px;
  /* base */
  width: 32px;
  height: 32px;
  border-radius: 999px;

  background: #fff;
  /* white knob in both modes */
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  outline: 0;

  transform: translateX(48px);
  /* RIGHT in light (6 + 48 = 54px) */
  transition: transform .22s var(--ease);
}

/* Dark mode (matches screenshot: black track, moon visible, knob LEFT) */
html[data-theme="dark"] .header .theme-switch {
  background: #000;
}

html[data-theme="dark"] .header .theme-switch:focus-visible {
  outline-color: rgba(255, 255, 255, .65);
}

html[data-theme="dark"] .header .theme-switch__icon {
  color: #fff;
  /* white icons in dark */
}

html[data-theme="dark"] .header .theme-switch__icon--sun {
  opacity: 0;
}

html[data-theme="dark"] .header .theme-switch__icon--moon {
  opacity: 1;
}

html[data-theme="dark"] .header .theme-switch__thumb {
  transform: translateX(0px);
  /* LEFT in dark */
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

/* CHANGED: theme switch icons are SVG now */
.header .theme-switch__icon {
  /* keep your existing positioning rules */
  /* ...existing code... */
  color: #000;
  /* light = black */
}

/* NEW: size/paint SVG with currentColor */
.header .theme-switch__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.header .theme-switch__icon svg * {
  vector-effect: non-scaling-stroke;
}

/* Dark mode: icons become white */
html[data-theme="dark"] .header .theme-switch__icon {
  color: #fff;
}

/* FINAL (put this at the VERY END): guarantee monochrome SVG colors */
.header .theme-switch__icon svg {
  color: inherit;
}

.header .theme-switch__icon svg * {
  fill: currentColor;
  stroke: currentColor;
}

/* Light: sun/moon black (moon is hidden by your opacity rules) */
.header .theme-switch__icon--sun {
  color: #000;
}

.header .theme-switch__icon--moon {
  color: #000;
}

/* Dark: moon MUST be white */
html[data-theme="dark"] .header .theme-switch__icon--moon {
  color: #fff;
}

html[data-theme="dark"] .header .theme-switch__icon--moon svg * {
  fill: #fff;
  stroke: #fff;
}

/* (optional symmetry) Dark: sun also white (even though you set opacity:0) */
html[data-theme="dark"] .header .theme-switch__icon--sun {
  color: #fff;
}

/* FINAL OVERRIDE (put these lines at the VERY END): moon must be white */
.header .theme-switch__icon--moon {
  color: #000;
}

.header .theme-switch__icon--moon svg path {
  stroke: none;
  fill: currentColor;
}

/* FINAL (VERY END): keep icons monochrome AND preserve outline shapes */
.header .theme-switch__icon--sun svg path {
  fill: none !important;
  stroke: currentColor !important;
}

.header .theme-switch__icon--sun svg circle {
  fill: currentColor !important;
  stroke: none !important;
}

.header .theme-switch__icon--moon svg path {
  fill: none !important;
  /* prevents "half-filled" look */
  stroke: currentColor !important;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dark: moon must be white */
html[data-theme="dark"] .header .theme-switch__icon--moon {
  color: #fff !important;
  opacity: 1;
}

/* FINAL (VERY END): make hamburger visible on mobile (avoid invalid color-mix vars) */
@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--text);
    width: 44px;
    /* Larger touch target */
    height: 44px;
    padding: 0;
  }

  /* Main line (middle) */
  .nav__toggle .hamburger {
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
    border-radius: 2px;
    transition: background 0.3s var(--ease);
  }

  /* Top and Bottom lines */
  .nav__toggle .hamburger::before,
  .nav__toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
  }

  .nav__toggle .hamburger::before {
    top: -8px;
  }

  .nav__toggle .hamburger::after {
    top: 8px;
  }

  /* Open state: X shape */
  .nav__toggle[aria-expanded="true"] .hamburger {
    background: transparent;
  }

  .nav__toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* === MOBILE MENU OVERLAY === */
@media (max-width: 860px) {
  .nav__panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    /* Better mobile support */
    background: var(--bg);
    z-index: 90;
    /* below header (100) */
    padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center vertically */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    /* ensure scroll if content overflows small screens */
  }

  /* When open */
  .nav__panel[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* The list of links */
  .nav__capsule {
    flex-direction: column;
    width: 100%;
    gap: 2rem;
    /* More spacing */
    align-items: center;
    justify-content: center;
    list-style: none;
    /* Remove bullets */
    padding: 0;
    margin: 0;
  }

  /* The links themselves */
  .nav__link {
    font-family: var(--font-heading);
    font-size: 2rem !important;
    /* Large, bold links */
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .nav__link:hover,
  .nav__link:focus-visible {
    color: var(--primary);
    transform: scale(1.05);
    /* Subtle grow */
    background: transparent;
    box-shadow: none;
  }

  /* Increase spacing for About Us cards on mobile */
  .about__cards {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    /* More breathing room */
    margin-top: 2rem;
  }
}

/* === FORM VALIDATION === */
.field {
  position: relative;
}

.field.valid input,
.field.valid select,
.field.valid textarea {
  border-color: #10b981;
  /* Green */
  background-color: rgba(16, 185, 129, 0.05);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #ef4444;
  /* Red */
  background-color: rgba(239, 68, 68, 0.05);
  animation: shake 0.4s var(--ease);
}

/* Icons via pseudo-element on .field */
/* Use absolute positioning relative to input */
.field.valid::after,
.field.invalid::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 38px;
  /* Approx center of input label + padding */
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  animation: popIn 0.3s var(--ease);
}

.field:has(textarea)::after {
  top: 44px;
}

.field.valid::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.field.invalid::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

@keyframes popIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* FINAL (VERY END): keep right-side alignment clean on mobile */
@media (max-width: 860px) {

  /* Fix Logo Overlap */
  .header__inner {
    gap: 0.5rem;
  }

  .brand img {
    max-width: 130px;
    /* Resize logo to fit */
    height: auto;
  }

  .nav__tools {
    flex-shrink: 0;
  }

  /* Fix Huge Top Gap */
  .hero {
    padding-top: 3rem !important;
    /* Reduce hero padding on mobile */
  }

  .hero__title {
    margin-top: 0;
  }
}


/* FINAL (VERY END): better hamburger button + icon (3 thin lines) */
@media (max-width: 860px) {
  .nav__toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--card) 82%, transparent);
    box-shadow: none;
    color: var(--text);
    /* drives lines via currentColor */
  }

  .nav__toggle:hover {
    background: color-mix(in srgb, var(--card) 92%, transparent);
  }

  .nav__toggle:active {
    transform: scale(.98);
  }

  /* 3-line hamburger */
  .nav__toggle .hamburger {
    width: 18px;
    height: 2px;
    /* middle line thickness */
    position: relative;
    background: currentColor;
    /* middle line */
    border-radius: 999px;
  }

  .nav__toggle .hamburger::before,
  .nav__toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform .2s var(--ease), top .2s var, --ease, opacity .2s var, --ease;
  }

  .nav__toggle .hamburger::before {
    top: -6px;
  }

  /* top line */
  .nav__toggle .hamburger::after {
    top: 6px;
  }

  /* bottom line */

  /* open state -> X */
  .nav__toggle[aria-expanded="true"] .hamburger {
    background: transparent;
  }

  .nav__toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* === HERO 8PT GRID SPACING OVERRIDES (desktop + mobile) === */
.hero.hero--screenshot {
  padding: 120px 0 100px;
  /* top/bottom */
}

.hero--screenshot .hero__pill {
  margin: 0 0 32px;
  /* Badge → Title */
}

.hero--screenshot .hero__headline {
  margin: 0 0 32px;
  /* Title → Subtitle */
}

.hero--screenshot .hero__sub {
  margin: 0;
  /* remove implicit spacing */
}

.hero--screenshot .hero__sub--muted {
  margin-top: 16px;
  /* Between subtitles */
}

.hero--screenshot .hero__chips {
  margin: 40px 0 40px;
  /* Subtitle → Features (top), Features → CTAs (bottom) */
  gap: 12px;
  /* Gap between feature badges */
}

.hero--screenshot .hero__actions {
  gap: 16px;
  /* Gap between CTA buttons */
}

/* Mobile (≤860px) */
@media (max-width: 860px) {
  .hero.hero--screenshot {
    padding: 80px 0 60px;
  }

  .hero--screenshot .hero__pill {
    margin-bottom: 24px;
  }

  .hero--screenshot .hero__headline {
    margin-bottom: 24px;
  }
}

/* === SOBRE NÓS (screenshot layout) === */
#sobre .about__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: 1.4rem;
  /* space before your 3 cards */
}

#sobre .about__title {
  margin: .35rem 0 .75rem;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  letter-spacing: -.4px;
  line-height: 1.15;
}

#sobre .about__accent {
  color: var(--primary);
  font-weight: 900;
}

#sobre .about__pills {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

#sobre .about__pill {
  display: flex;
  align-items: center;
  gap: .7rem;

  padding: .95rem 1.05rem;
  border-radius: 14px;

  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .06);

  font-weight: 750;
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
}

#sobre .about__pillIcon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  color: var(--primary);
  flex: 0 0 auto;
}

#sobre .about__pillIcon svg {
  width: 18px;
  height: 18px;
  display: block;
}

#sobre .about__pillIcon svg * {
  stroke: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  #sobre .about__pill {
    transition: transform .18s var(--ease), box-shadow .18s var, --ease, border-color .18s var, --ease;
  }

  #sobre .about__pill:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 24%, var, --line);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .10);
  }
}

#sobre .about__panel {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .10);
  overflow: hidden;
}

#sobre .about__stats {
  padding: clamp(1.35rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.9rem 2.4rem;
}

#sobre .about__statNum {
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -.8px;
  color: var(--primary);
  margin-bottom: .35rem;
}

#sobre .about__statLabel {
  font-weight: 650;
  color: color-mix(in srgb, var(--text) 62%, var, --muted);
}

/* NEW: Ensure About Us cards have proper spacing on desktop */
/* NEW: Ensure About Us cards have proper spacing on desktop */
@media (min-width: 861px) {
  .about__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    /* The requested spacing improvement */
    margin-top: 2rem;
  }
}

/* Responsive */
@media (max-width: 960px) {
  #sobre .about__grid {
    grid-template-columns: 1fr;
  }

  #sobre .about__pills {
    grid-template-columns: 1fr;
  }
}

/* === FINAL: remove header nav bullets + extra list spacing (put at VERY END) === */
.header .nav__capsule {
  list-style: none !important;
  /* removes bullets in all browsers */
  margin: 0 !important;
  /* removes default UL margin */
  padding: 0 !important;
  /* removes default UL padding/indent */
}

.header .nav__capsule>li {
  list-style: none !important;
  /* extra-safe (some browsers apply on LI) */
  margin: 0 !important;
  padding: 0 !important;
}

/* extra-safe: kill any marker rendering */
.header .nav__capsule>li::marker {
  content: "" !important;
}

/* === FINAL: HEADER NAV = NO BULLETS + PROPER ALIGN (PUT AT VERY END) === */

/* Header layout: logo | centered links | tools */
.header .header__inner {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

/* Keep logo from pushing nav weirdly */
.header .brand {
  min-width: 0;
}

.header .brand__logo {
  height: 34px;
  width: auto;
  max-width: 220px;
}

/* Center nav group */
.header .nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.header .nav__panel {
  display: block;
}

/* BULLET/INDENT RESET (this removes the black dots + extra spacing) */
.header nav ul,
.header nav li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.header nav ul {
  padding-inline-start: 0 !important;
  /* standards */
  -webkit-padding-start: 0 !important;
  /* older Safari */
}

.header nav li::marker {
  content: "" !important;
}

/* extra-safe in case any theme added pseudo bullets */
.header nav li::before,
.header nav li::after {
  content: none !important;
}

/* Desktop link layout (match “FAQs” look for ALL links) */
@media (min-width: 861px) {
  .header .nav__capsule {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 1.55rem;
    white-space: nowrap;
  }

  .header .nav__link {
    position: relative;
    padding: .25rem 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none;

    font-weight: 650;
    font-size: .95rem;
    color: color-mix(in srgb, var(--text) 78%, var, --muted);
    transition: color .2s var(--ease), transform .2s var, --ease;
  }

  .header .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 70%, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s var(--ease);
  }

  .header .nav__link:hover {
    color: var(--text);
    transform: translateY(-1px);
  }

  .header .nav__link:hover::after {
    transform: scaleX(1);
  }

  .header .nav__link:focus-visible {
    outline: none;
    color: var(--text);
  }

  .header .nav__link:focus-visible::after {
    transform: scaleX(1);
  }
}

/* Mobile: keep your drawer rules; just ensure no bullets there either */
@media (max-width: 860px) {
  .header nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* === FIX: HERO SCROLL BUTTON (VERY END) === */
/* Remove the animated rings/glow and enforce screenshot look */
.hero__scroll::before,
.hero__scroll::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

.hero__scroll {
  width: 44px;
  height: 44px;
  border-radius: 999px;

  display: flex !important;
  align-items: center;
  justify-content: center;

  border: 1px solid color-mix(in srgb, var(--line) 95%, transparent);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);

  transform: none;
  transition: transform .18s var(--ease), box-shadow .18s var, --ease, border-color .18s var, --ease;

  /* icon color */
  color: #0b1324;
}

html[data-theme="dark"] .hero__scroll {
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.hero__scroll:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 28%, var, --line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}

/* Chevron: always centered + consistent stroke */
.hero__scrollIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit !important;
}

/* === MOBILE ALIGNMENT FIXES === */
@media (max-width: 860px) {
  .hero__actions {
    justify-content: center;
  }

  .hero__scroll {
    margin-inline: auto;
  }
}

.hero__scrollIcon svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  animation: none !important;
  /* kill bounce if you want screenshot-static */
}

.hero__scrollIcon svg path {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.4 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* === ADD: HERO SCROLL BUTTON ANIMATION (VERY END) === */
@media (prefers-reduced-motion: no-preference) {

  /* bounce only the chevron */
  .hero__scrollIcon svg {
    animation: heroScrollBounce 1.15s var(--ease) infinite !important;
  }

  /* subtle attention pulse on the button (no rings) */
  .hero__scroll {
    animation: heroScrollPulse 2.2s var(--ease) infinite !important;
  }
}

@keyframes heroScrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: .95;
  }

  45% {
    transform: translateY(2.5px);
    opacity: 1;
  }

  70% {
    transform: translateY(0);
    opacity: .98;
  }
}

@keyframes heroScrollPulse {

  0%,
  100% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
    transform: translateY(-.5px);
  }
}

/* safety: disable if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {

  .hero__scroll,
  .hero__scrollIcon svg {
    animation: none !important;
  }
}

/* === Language icon (screenshot bubbles) sizing/centering === */
.pill[data-lang-toggle] .pill__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* NEW: PNG support */
.pill[data-lang-toggle] .pill__icon img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

/* keep existing svg rule if you want */
/* .pill[data-lang-toggle] .pill__icon svg{ ...existing code... } */

/* === DEPOIMENTOS (match screenshot) - PUT AT VERY END === */
#depoimentos.section--alt {
  /* screenshot look: clean white section */
  background: transparent;
  border-block: 0;
}

html[data-theme="light"] #depoimentos.section--alt {
  background: #fff;
}

#depoimentos .section__head {
  max-width: none;
  margin-bottom: 2rem;
  text-align: center;
}

#depoimentos .testimonials__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.2px;
  color: var(--text);
}

#depoimentos .testimonials__accent {
  color: var(--primary);
  font-weight: 900;
}

#depoimentos .grid-3 {
  gap: 1.25rem;
}

/* card look */
#depoimentos .quote {
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  background: color-mix(in srgb, var(--card) 100%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .08);
}

/* stars row */
#depoimentos .quote__stars {
  color: #f4b000;
  /* gold like screenshot */
  letter-spacing: 1px;
  font-size: 14px;
  margin-bottom: .85rem;
}

/* quote text */
#depoimentos .quote blockquote {
  margin: 0;
  font-weight: 500;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 70%, var, --muted);
}

/* author name */
#depoimentos .quote__author {
  margin-top: 1rem;
  font-weight: 800;
  color: var(--text);
}

/* === DEPOIMENTOS: center eyebrow title (PUT AT VERY END) === */
#depoimentos .section__head .eyebrow {
  justify-content: center;
  width: 100%;
  margin: 0 0 .85rem;
}

/* === FINAL: HAMBURGER + MOBILE DRAWER (VERY END) === */
@media (min-width: 861px) {

  /* desktop: drawer is just inline nav */
  .nav__panel {
    display: flex;
    align-items: center;
  }

  .nav__toggle {
    display: none !important;
  }
}

@media (max-width: 860px) {

  /* mobile header should NOT use the desktop grid layout */
  .header .header__inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
  }

  /* show hamburger */
  .nav__toggle {
    display: inline-flex !important;
    position: relative;
    z-index: 999;
    /* above drawer */
  }

  /* hide drawer by default */
  .nav__panel {
    display: none !important;

    position: fixed !important;
    top: calc(var(--header-h) + 10px) !important;
    left: .75rem !important;
    right: .75rem !important;

    margin: 0 !important;
    padding: .9rem !important;

    border-radius: 18px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--card) 92%, transparent);
    box-shadow: var(--shadow);

    max-height: calc(100dvh - var(--header-h) - 24px) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;

    z-index: 250 !important;
    /* above header */
  }

  .nav__panel[data-open="true"] {
    display: block !important;
  }

  /* mobile links as a vertical list */
  .nav__capsule {
    display: grid !important;
    gap: .35rem !important;
    white-space: normal !important;
  }

  .nav__link {
    width: 100% !important;
    padding: .75rem .85rem !important;
    border-radius: 14px !important;
    background: color-mix(in srgb, var(--card) 72%, transparent) !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

/* === SERVIÇOS: CARDS EXACTLY LIKE SCREENSHOT (PUT AT VERY END) === */
#servicos .services__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch;
}

#servicos .services__grid>.card {
  min-height: 220px;
  padding: 28px 26px;
  border-radius: 18px;

  /* screenshot look: subtle border + clean dark fill */
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  background: linear-gradient(180deg,
      color-mGBmix(in srgb, var(--card) 86%, transparent),
      color-mix(in srgb, var(--card) 74%, transparent));
  box-shadow: none;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#servicos .services__grid>.card h3 {
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -.2px;
}

#servicos .services__grid>.card p {
  margin: 0;
  color: color-mix(in srgb, var(--text) 72%, var(--muted));
  line-height: 1.55;
  max-width: 26ch;
  /* keeps wrapping like screenshot */
}

/* Icon tile (matches screenshot) */
#servicos .services__grid .card__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;

  background: color-mix(in srgb, var(--card) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  margin-bottom: 18px;
}

/* Hover: slight border emphasis (like screenshot focus/hover) */
@media (hover: hover) and (pointer: fine) {
  #servicos .services__grid>.card:hover {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
    transform: none;
    box-shadow: none;
  }
}

/* Responsive */
@media (max-width: 1180px) {
  #servicos .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 920px) {
  #servicos .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  #servicos .services__grid {
    grid-template-columns: 1fr !important;
  }
}

/* === SEO TEXT SECTION === */
.section--text {
  background: var(--bg);
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

.section--text .container {
  max-width: 800px;
  /* Readability focus */
  margin: 0 auto;
}

.seo-content {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.seo-content h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-family: var(--font-head);
}

.seo-content h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 2rem 0 1rem;
  font-family: var(--font-head);
}

.seo-content p {
  margin-bottom: 1.5rem;
}

.seo-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.seo-content li {
  margin-bottom: 0.5rem;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1.5rem 0;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  display: none;
}

.cookie-banner[data-open="true"] {
  transform: translateY(0);
  display: block;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner__content {
  flex: 1;
  min-width: 300px;
}

.cookie-banner__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.cookie-banner__text {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  gap: 1rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-right: 80px;
    /* Reserve space for chatbot button */
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Fix for stats card border radius on mobile */
#sobre .about__panelTop {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  /* Match expected header bg */
  padding: .8rem .9rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}