/* Felipe Alvim — landing tech */

:root {
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --brand: #00c896;
  --brand-deep: #12182a;
  --brand-ink: #0e1524;
  --ink: #12202a;
  --muted: #4a5d6a;
  --surface: #f3f7fa;
  --surface-2: #e7eef3;
  --card: #ffffff;
  --line: rgba(11, 31, 42, 0.12);
  --hero-glow: rgba(0, 200, 150, 0.22);
  --hero-mesh: radial-gradient(ellipse 80% 60% at 70% 10%, rgba(0, 200, 150, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(18, 40, 80, 0.14), transparent 50%),
    linear-gradient(165deg, #eef5f9 0%, #dce8f0 45%, #c5d8e6 100%);
  --shadow: 0 18px 40px rgba(11, 31, 42, 0.08);
  --radius: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --ink: #e8eef3;
  --muted: #9aafbc;
  --surface: #0b141a;
  --surface-2: #121e27;
  --card: #15232d;
  --line: rgba(232, 238, 243, 0.12);
  --hero-glow: rgba(0, 200, 150, 0.28);
  --hero-mesh: radial-gradient(ellipse 70% 55% at 75% 0%, rgba(0, 200, 150, 0.28), transparent 55%),
    radial-gradient(ellipse 45% 35% at 5% 90%, rgba(0, 40, 70, 0.45), transparent 50%),
    linear-gradient(165deg, #071018 0%, #0b1f2a 50%, #102a38 100%);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

html.theme-animating *,
html.theme-animating *::before,
html.theme-animating *::after {
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease) !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(11, 31, 42, 0.08);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand-deep);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .brand-mark {
  background: var(--brand);
}

.brand-name {
  font-size: 0.95rem;
}

.nav {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.15rem;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}

.lang-btn {
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
}

.lang-btn.is-active {
  background: var(--brand);
  color: #fff;
}

.lang-btn:hover:not(.is-active) {
  color: var(--ink);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 0.85rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.faq-item[open] summary::after {
  content: "–";
  background: color-mix(in srgb, var(--brand) 14%, var(--card));
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  position: relative;
}

.theme-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.theme-icon-sun {
  background: radial-gradient(circle at 30% 30%, #ffd56a, #f0a202 70%);
  box-shadow: 0 0 0 2px color-mix(in srgb, #f0a202 30%, transparent);
}

.theme-icon-moon {
  background: #c9d7e2;
  box-shadow: inset -3px -2px 0 0 #0b1f2a;
}

[data-theme="light"] .theme-icon-moon,
[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.6);
}

[data-theme="light"] .theme-icon-sun,
[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--brand) 86%, #000);
  color: #fff;
}

.btn-whatsapp {
  background: #1f9e57;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #178a49;
  color: #fff;
}

.btn-pulse {
  animation: ctaPulse 2.8s var(--ease) infinite;
}

@keyframes ctaPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent);
  }
  50% {
    box-shadow: 0 0 0 12px transparent;
  }
}

.availability-pill {
  margin: 1.35rem 0 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  color: var(--muted);
  font-size: 0.88rem;
}

.availability-pill strong {
  color: var(--ink);
}

.pulse-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #1f9e57;
  box-shadow: 0 0 0 0 rgba(31, 158, 87, 0.55);
  animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 158, 87, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-mesh);
  animation: meshShift 14s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.35;
}

@keyframes meshShift {
  from {
    filter: hue-rotate(0deg) saturate(1);
  }
  to {
    filter: hue-rotate(12deg) saturate(1.08);
  }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  color: var(--brand);
}

.hero-lead {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-aside {
  justify-self: start;
}

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow: 0 0 0 10px var(--hero-glow), var(--shadow);
  animation: avatarGlow 4.5s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
  from {
    box-shadow: 0 0 0 8px var(--hero-glow), var(--shadow);
  }
  to {
    box-shadow: 0 0 0 16px color-mix(in srgb, var(--hero-glow) 55%, transparent), var(--shadow);
  }
}

.hero-facts {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-facts strong {
  color: var(--ink);
  font-weight: 700;
  margin-right: 0.35rem;
}

/* Sections */

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--surface-2);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 40rem;
}

.about-en {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

/* Projects — outcome-first cards */

.project-list {
  display: grid;
  gap: 1rem;
}

.project {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: var(--shadow);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand);
  background: linear-gradient(145deg, var(--surface-2), color-mix(in srgb, var(--brand) 12%, var(--card)));
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.project-body .tag {
  display: inline-block;
  margin-bottom: 0.1rem;
}

.project-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.project-body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.project-result {
  margin: 0 0 0.75rem !important;
  color: var(--ink) !important;
  font-size: 0.92rem;
}

.project-stack {
  font-size: 0.92rem !important;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.35rem;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
}

.text-link:hover {
  border-bottom-color: var(--brand);
}

/* Stack */

.stack-grid {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stack-grid li {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--card);
}

.principles h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.principles-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.principles-grid li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
}

.principles-grid strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

/* Process — reduces hiring risk */

.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.process-grid li {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.process-step {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #06241c;
  background: var(--brand);
}

.process-grid h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-next-title {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.contact-next {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.contact-next li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-next li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.contact-channels a,
.contact-address {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}

.contact-address {
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 500;
}

.channel-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, var(--card));
  color: var(--brand);
}

.contact-channels a:hover {
  color: var(--ink);
}

.req {
  color: var(--brand);
  font-weight: 700;
}

.form-success {
  text-align: center;
  padding: 1.25rem 0.5rem 0.25rem;
  display: grid;
  gap: 0.65rem;
  justify-items: center;
}

.form-success[hidden] {
  display: none !important;
}

.form-success-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 18%, var(--card));
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 700;
}

.form-success h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.form-success p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}

.contact-form.is-sent .field,
.contact-form.is-sent .field-hint,
.contact-form.is-sent .form-status {
  display: none;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 1px;
  border-color: var(--brand);
}

.field-hint {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status.is-ok {
  color: #1a7f4b;
}

.form-status.is-error {
  color: #c0392b;
}

[data-theme="dark"] .form-status.is-ok {
  color: #5ddea0;
}

[data-theme="dark"] .form-status.is-error {
  color: #ff8f85;
}

.contact-form .btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* Footer */

.site-footer {
  padding: 3.25rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin: 0.85rem 0 1rem;
  color: var(--muted);
  max-width: 22rem;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-social a,
.footer-col a,
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-social a:hover,
.footer-col a:hover,
.footer-legal a:hover {
  color: var(--brand);
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.footer-col ul,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-social a,
.footer-contact a,
.footer-address {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-social .channel-icon,
.footer-contact .channel-icon {
  width: 1.6rem;
  height: 1.6rem;
}

.footer-address {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-note {
  margin: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 780px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  }
}

/* Reveal motion */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.08s;
}
.delay-2 {
  transition-delay: 0.16s;
}
.delay-3 {
  transition-delay: 0.24s;
}

.value-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.value-item {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.value-item:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: var(--shadow);
}

.value-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.value-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.trust-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.trust-strip li {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 70%, var(--card));
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.stagger.stagger-on > * {
  animation: staggerIn 0.55s var(--ease) both;
}

.stagger.stagger-on > *:nth-child(1) { animation-delay: 0.04s; }
.stagger.stagger-on > *:nth-child(2) { animation-delay: 0.1s; }
.stagger.stagger-on > *:nth-child(3) { animation-delay: 0.16s; }
.stagger.stagger-on > *:nth-child(4) { animation-delay: 0.22s; }
.stagger.stagger-on > *:nth-child(5) { animation-delay: 0.28s; }
.stagger.stagger-on > *:nth-child(6) { animation-delay: 0.34s; }
.stagger.stagger-on > *:nth-child(7) { animation-delay: 0.4s; }
.stagger.stagger-on > *:nth-child(8) { animation-delay: 0.46s; }
.stagger.stagger-on > *:nth-child(9) { animation-delay: 0.52s; }
.stagger.stagger-on > *:nth-child(10) { animation-delay: 0.58s; }
.stagger.stagger-on > *:nth-child(11) { animation-delay: 0.64s; }
.stagger.stagger-on > *:nth-child(12) { animation-delay: 0.7s; }

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.stack-grid li {
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.stack-grid li:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, var(--card));
}

.contact-form {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.contact-form.is-success {
  border-color: color-mix(in srgb, #1f9e57 50%, var(--line));
  box-shadow: 0 0 0 4px rgba(31, 158, 87, 0.12);
}

.contact-form.shake {
  animation: formShake 0.4s ease;
}

@keyframes formShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 60;
  display: flex;
  gap: 0.55rem;
  padding: 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
}

.sticky-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg,
  .hero-avatar,
  .reveal,
  .btn-pulse,
  .pulse-dot,
  .stagger.stagger-on > *,
  .sticky-cta,
  .contact-form.shake {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .sticky-cta.is-visible {
    transform: translateX(-50%);
  }
}

@media (min-width: 780px) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
  }

  .hero-aside {
    justify-self: end;
  }

  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .header-actions {
    margin-left: 0;
  }

  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 779px) {
  .header-actions .btn-sm {
    display: none;
  }

  body {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Brand logos */
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.brand-logo-dark {
  display: none;
}

[data-theme="dark"] .brand-logo-light {
  display: none;
}

[data-theme="dark"] .brand-logo-dark {
  display: block;
}

.brand-mark {
  background: var(--brand-deep);
}

[data-theme="dark"] .brand-mark {
  background: var(--brand);
  color: #0b141a;
}

.btn-primary {
  background: var(--brand);
  color: #0b141a;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--brand) 86%, #000);
  color: #0b141a;
}

.hero-role {
  color: var(--brand);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.path-grid,
.service-grid,
.portfolio-grid {
  display: grid;
  gap: 1rem;
}

.path-card,
.service-card,
.portfolio-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.path-card:hover,
.service-card:hover,
.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: var(--shadow);
}

.path-card h3,
.service-card h3,
.portfolio-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.path-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.path-card-hire {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand) 10%, var(--card)), var(--card));
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-cta .btn {
  min-height: 2.75rem;
}

.portfolio-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-form .btn-primary {
  width: 100%;
  min-height: 3rem;
  font-size: 1rem;
}

.section-title {
  position: relative;
}

.muted-strong {
  color: var(--ink);
  font-weight: 700;
}

.path-card p,
.service-card p,
.portfolio-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.portfolio-media {
  margin: -1.35rem -1.35rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  background: linear-gradient(145deg, var(--surface-2), color-mix(in srgb, var(--brand) 12%, var(--card)));
}

.about-layout,
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-photo {
  width: min(320px, 100%);
  aspect-ratio: 1;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 3px solid color-mix(in srgb, var(--brand) 35%, transparent);
}

.about-points {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.about-points li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.proof-item {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.testimonials-carousel {
  position: relative;
  padding: 0.5rem 0 1rem;
  max-width: 720px;
  margin-inline: auto;
}

.testimonials-track {
  position: relative;
  min-height: 200px;
}

.testimonial-card {
  display: none;
  padding: 1.5rem 1.6rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  animation: fadeSlide 0.45s var(--ease);
}

.testimonial-card.is-active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.testimonial-card blockquote {
  margin: 0;
}

.testimonial-card p {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.55;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.testimonial-prev,
.testimonial-next {
  position: absolute;
  top: 42%;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow);
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.testimonial-prev { left: -0.2rem; }
.testimonial-next { right: -0.2rem; }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.testimonial-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 0;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  cursor: pointer;
  padding: 0;
}

.testimonial-dot.is-active {
  background: var(--brand);
  transform: scale(1.15);
}

.principles {
  margin-top: 2rem;
}

.project-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 780px) {
  .about-layout,
  .about-grid {
    grid-template-columns: 0.9fr 1.2fr;
  }

  .proof-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .project-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .principles-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-prev { left: -1rem; }
  .testimonial-next { right: -1rem; }
}

@media (min-width: 1100px) {
  .project-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.services-actions,
.path-card .text-link {
  margin-top: 0.25rem;
}

.services-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--brand);
}

@media (min-width: 780px) {
  .path-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid,
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-layout {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .testimonial-prev { left: -0.8rem; }
  .testimonial-next { right: -0.8rem; }
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.25rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: min(70vh, 28rem);
    overflow-y: auto;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .brand-logo {
    height: 32px;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .lang-switch a {
    min-width: 2.2rem;
    padding: 0.35rem 0.45rem;
  }
}

@media (max-width: 779px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    gap: 1.75rem;
    padding-block: 2.25rem 2.75rem;
  }

  .hero-brand {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 2.85rem;
  }

  .hero-cta .btn-whatsapp {
    grid-column: 1 / -1;
  }

  .availability-pill {
    flex-wrap: wrap;
  }

  .contact-form {
    padding: 1.15rem;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
    min-height: 2.85rem;
  }

  .field textarea {
    min-height: 8rem;
  }

  .contact-form .btn-primary {
    width: 100%;
    min-height: 3rem;
  }

  .sticky-cta {
    width: min(100% - 1.25rem, 22rem);
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    padding: 0.45rem;
    gap: 0.4rem;
  }

  .sticky-cta .btn {
    flex: 1;
    justify-content: center;
    min-height: 2.6rem;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-carousel {
    padding-inline: 0.25rem;
  }

  .testimonial-card {
    padding: 1.25rem 1.1rem 3.5rem;
  }

  .testimonial-prev,
  .testimonial-next {
    top: auto;
    bottom: 0.85rem;
    width: 2.4rem;
    height: 2.4rem;
  }

  .testimonial-prev { left: 0.65rem; }
  .testimonial-next { right: 0.65rem; }

  .project-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    gap: 0.85rem;
    text-align: center;
  }

  .float-actions {
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }
}

/* Floating actions: back-to-top + WhatsApp */
.float-actions {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.float-btn {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(11, 31, 42, 0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s;
  text-decoration: none;
}

.float-btn:hover {
  transform: translateY(-3px);
}

.float-top {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

.float-top[hidden] {
  display: none !important;
}

.float-wa {
  background: #25d366;
  color: #fff;
}

.float-wa:hover {
  color: #fff;
}

@media (max-width: 420px) {
  .hero-cta {
    grid-template-columns: 1fr;
  }

  .hero-cta .btn-whatsapp {
    grid-column: auto;
  }

  .lang-switch {
    display: none;
  }
}

/* Hero: atalho para o caminho de contratação técnica */
.hero-micro {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-micro .text-link {
  margin-left: 0.35rem;
  white-space: nowrap;
}

/* Case em destaque */
.highlight-band {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, var(--surface)), var(--surface));
  border-block: 1px solid var(--line);
}

.highlight-inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.highlight-copy .section-title {
  margin-top: 0.45rem;
}

.highlight-problem {
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.highlight-result {
  position: relative;
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--brand);
  font-weight: 600;
}

.highlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.highlight-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Para quem faz sentido */
.fit-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.fit-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.fit-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.fit-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.fit-card li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink);
  font-size: 0.97rem;
}

.fit-card li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.fit-yes {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
}

.fit-yes li::before {
  content: "✓";
  color: var(--brand);
}

.fit-no li::before {
  content: "—";
  color: var(--muted);
}

.fit-no li {
  color: var(--muted);
}

.fit-note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Prazos típicos no processo */
.process-note {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Serviço contratado no depoimento */
.testimonial-service {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

@media (min-width: 860px) {
  .highlight-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .fit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
