:root {
  --bg: #09090b;
  --bg-2: #121214;
  --bg-3: #18181b;
  --bg-4: #27272a;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.15);

  --fg: #f5f5f5;
  --fg-2: #a3a3a3;
  --fg-3: #858585;

  --accent: #1a72e8;
  --accent-hover: #1560cc;
  --accent-secondary: #8b5cf6;
  --accent-subtle: rgba(26, 114, 232, 0.1);
  --accent-border: rgba(26, 114, 232, 0.25);

  --danger: rgba(220, 38, 38, 0.12);
  --danger-text: #f87171;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-hero: clamp(2rem, 8vw, 3.875rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --max-w: 1200px;
  --header-h: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --section-pad: var(--space-20);
}

@media (min-width: 768px) {
  :root {
    --section-pad: var(--space-32);
  }
}

section {
  scroll-margin-top: var(--header-h);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--fg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 600px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-4xl);
  }
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--fg-2);
  line-height: 1.65;
  max-width: 56ch;
  margin-top: var(--space-4);
}

.section-desc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-desc a:hover {
  color: var(--fg);
}

.section-header {
  margin-bottom: var(--space-16);
}

.accent {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-size: var(--text-base);
  padding: 0.875rem 1.75rem;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--fg-2);
  border-color: var(--border-hover);
  font-size: var(--text-base);
  padding: 0.875rem 1.75rem;
}

.btn-outline:hover {
  border-color: var(--fg-3);
  color: var(--fg);
}

.btn-outline:active {
  transform: translateY(1px);
}

.btn-whatsapp {
  background-color: #22c55e;
  border-color: #22c55e;
  color: #fff;
  font-size: var(--text-base);
  padding: 0.875rem 1.75rem;
}

.btn-whatsapp:hover {
  background-color: #16a34a;
  border-color: #16a34a;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: rgba(9, 9, 9, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header.scrolled {
  background-color: rgba(9, 9, 9, 0.97);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 600px) {
  .nav-inner {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .nav-inner {
    padding: 0 var(--space-8);
  }
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-icon {
  display: block;
  height: 28px;
  width: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 15px;
}

.logo-text {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-text span {
  font-weight: 400;
}

.logo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.nav-menu {
  display: none;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .nav-menu {
    display: flex;
    align-items: center;
  }
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-2);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--fg);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--fg);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.btn-cta {
  display: none;
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  background-color: var(--accent);
  color: #ffffff !important;
  border-radius: var(--radius-md);
  transition: background-color 0.2s var(--ease);
  white-space: nowrap;
}

.btn-cta:hover {
  background-color: var(--accent-hover);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 600px) {
  .btn-cta {
    display: inline-flex;
    align-items: center;
  }
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s var(--ease);
}

.hamburger:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .hamburger {
    display: none;
  }
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--fg);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background-color: rgba(9, 9, 9, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) var(--space-6) var(--space-8);
  flex-direction: column;
  gap: 0;
  z-index: 99;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  padding: var(--space-4) 0;
  font-size: var(--text-base);
  border-bottom: 1px solid var(--border);
  color: var(--fg-2);
}

.nav-mobile .nav-link:hover {
  color: var(--fg);
}

.nav-mobile .btn-cta {
  display: inline-flex;
  justify-content: center;
  margin-top: var(--space-5);
  width: 100%;
  padding: 0.875rem;
  font-size: var(--text-base);
}

/* ═══════════════════════════════════════════════════
   HERO — layout assimétrico
═══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: var(--space-24);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(26, 114, 232, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) 0;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 0.68fr;
    gap: var(--space-12);
    padding: var(--space-16) var(--space-8) 0;
    align-items: center;
  }
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.65fr;
    gap: var(--space-16);
    align-items: center;
  }
}

.hero-content {
  max-width: 580px;
}

.hero-eyebrow {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: var(--space-6);
}

@media (min-width: 900px) {
  .hero-eyebrow {
    display: inline-flex;
  }
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--fg-2);
  margin-bottom: var(--space-8);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* ─── Mockup de browser no hero ──────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-10);
}

@media (min-width: 900px) {
  .hero-visual {
    margin-top: 0;
    align-items: flex-end;
  }
}

/* ─── Posicionamento ────────────────────────────── */
.positioning-banner {
  padding: var(--space-20) 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-2);
}

.positioning-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 var(--space-4) 0;
}

.positioning-subtitle {
  font-size: var(--text-base);
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .positioning-title {
    font-size: var(--text-4xl);
  }
}

/* ─── Foto de José no Hero ─────────────────────── */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  background: radial-gradient(circle at 50% 40%, var(--accent-subtle) 0%, transparent 65%);
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-3);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

.hero-badge span {
  font-size: var(--text-xs);
  color: var(--fg-3);
}

/* ═══════════════════════════════════════════════════
   CREDIBILIDADE
═══════════════════════════════════════════════════ */
.credibilidade {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-2);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-4);
  align-items: center;
}

@media (min-width: 768px) {
  .cred-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: var(--space-8);
    align-items: center;
  }
}

.cred-item {
  text-align: center;
}

.cred-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
}

.cred-label {
  font-size: var(--text-base);
  color: var(--fg-3);
}

.cred-divider {
  display: none;
  width: 1px;
  height: 36px;
  background-color: var(--border);
}

@media (min-width: 768px) {
  .cred-divider {
    display: block;
  }
}

/* ═══════════════════════════════════════════════════
   PROBLEMA
═══════════════════════════════════════════════════ */
.problema {
  padding: var(--section-pad) 0;
}

.problema-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 900px) {
  .problema-inner {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-20);
    align-items: start;
  }
}

.problema-text .section-title {
  margin-top: var(--space-4);
}

.problema-lista {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.problema-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.problema-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--danger);
  color: var(--danger-text);
  margin-top: 2px;
}

.problema-item strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.problema-item p {
  font-size: var(--text-base);
  color: var(--fg-2);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════
   SERVIÇOS
═══════════════════════════════════════════════════ */
.servicos {
  padding: var(--section-pad) 0;
  background-color: var(--bg-2);
}

main > section.servicos:first-of-type {
  background-color: transparent;
}

.servicos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .servicos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.servico-card {
  background-color: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}

.servico-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.servico-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.servico-card:hover::before {
  transform: scaleX(1);
}

.servico-card--featured {
  border-color: var(--accent-border);
  background-color: rgba(26, 114, 232, 0.04);
}

.servico-card--featured::before {
  transform: scaleX(1);
}

.servico-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--border-hover);
  line-height: 1;
  margin-bottom: var(--space-5);
}

.servico-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: var(--space-4);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.servico-desc {
  font-size: var(--text-base);
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.servico-ideal {
  font-size: var(--text-xs);
  color: var(--fg-3);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.ideal-label {
  font-weight: 600;
  color: var(--fg-2);
  display: block;
  margin-bottom: 2px;
}

.servico-preco {
  margin-bottom: var(--space-5);
}

.preco-from {
  display: block;
  font-size: var(--text-xs);
  color: var(--fg-3);
  margin-bottom: 2px;
}

.preco-valor {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--fg);
}

.servico-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
  margin-top: auto;
}

.servico-cta:hover {
  color: var(--fg);
  gap: var(--space-3);
}

.servico-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════
   DIFERENCIAIS
═══════════════════════════════════════════════════ */
.diferenciais {
  padding: var(--section-pad) 0;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .diferenciais-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .diferenciais-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.diferencial-item {
  padding: var(--space-6) var(--space-7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--bg-2);
  transition: border-color 0.2s var(--ease);
}

@media (min-width: 768px) {
  .diferencial-item {
    padding: var(--space-7) var(--space-8);
  }
}

.diferencial-item:hover {
  border-color: var(--border-hover);
}

.diferencial-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--accent-subtle);
  color: var(--accent);
  margin-bottom: var(--space-5);
}

.diferencial-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.diferencial-item p {
  font-size: var(--text-base);
  color: var(--fg-2);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════
   PORTFÓLIO — visual
═══════════════════════════════════════════════════ */
.portfolio {
  padding: var(--section-pad) 0;
  background-color: var(--bg-2);
}

.portfolio-lista {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.portfolio-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .portfolio-item {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-16);
  }

  .portfolio-item--reverse {
    direction: rtl;
  }

  .portfolio-item--reverse > * {
    direction: ltr;
  }
}

.portfolio-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.portfolio-screenshot {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s var(--ease);
}

.portfolio-item:hover .portfolio-screenshot {
  transform: scale(1.02);
}

/* Browser mockup nos cards de portfólio */
.pv-browser {
  background-color: var(--bg-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pv-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 12px;
  background-color: var(--bg-4);
  border-bottom: 1px solid var(--border);
}

.pv-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.pv-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--border-hover);
}

.pv-dots span:nth-child(1) { background-color: rgba(255, 95, 87, 0.7); }
.pv-dots span:nth-child(2) { background-color: rgba(254, 188, 46, 0.7); }
.pv-dots span:nth-child(3) { background-color: rgba(40, 200, 64, 0.7); }

.pv-addr {
  flex: 1;
  font-size: 10px;
  color: var(--fg-3);
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-screen {
  padding: 0;
  min-height: 220px;
}

/* LP mockup */
.portfolio-visual--lp .pv-hero-bg {
  background: linear-gradient(135deg, rgba(26, 114, 232, 0.12) 0%, rgba(26, 114, 232, 0.03) 100%);
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
}

.pv-h1 {
  height: 14px;
  width: 68%;
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  margin-bottom: 10px;
}

.pv-p {
  height: 8px;
  width: 85%;
  background-color: var(--border-hover);
  border-radius: 100px;
  margin-bottom: 6px;
}

.pv-cta-row {
  margin-top: 14px;
}

.pv-cta {
  height: 26px;
  width: 100px;
  background-color: var(--accent);
  border-radius: 4px;
  opacity: 0.7;
}

.pv-section {
  padding: 14px 18px 16px;
}

.pv-feature-row {
  display: flex;
  gap: 8px;
}

.pv-feature {
  flex: 1;
  height: 50px;
  background-color: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 5px;
}

/* Site institucional mockup */
.pv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: var(--bg-4);
  border-bottom: 1px solid var(--border);
}

.pv-logo-bar {
  width: 60px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
}

.pv-nav-items {
  display: flex;
  gap: 10px;
}

.pv-nav-item {
  width: 30px;
  height: 6px;
  background-color: var(--border-hover);
  border-radius: 100px;
}

.pv-page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
}

.pv-split-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pv-cta-small {
  width: 70px;
  height: 20px;
  background-color: var(--accent);
  border-radius: 3px;
  opacity: 0.6;
  margin-top: 4px;
}

.pv-split-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-image-placeholder {
  width: 100%;
  height: 70px;
  background-color: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.pv-cards-row {
  display: flex;
  gap: 8px;
  padding: 12px;
}

.pv-mini-card {
  flex: 1;
  height: 40px;
  background-color: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Sistema web mockup */
.pv-screen--dark {
  display: flex;
  min-height: 200px;
}

.pv-sidebar {
  width: 60px;
  background-color: rgba(26, 114, 232, 0.08);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.pv-sidebar-logo {
  width: 32px;
  height: 32px;
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 5px;
  margin-bottom: 8px;
}

.pv-sidebar-item {
  height: 6px;
  background-color: var(--border-hover);
  border-radius: 100px;
}

.pv-sidebar-item--active {
  background-color: rgba(26, 114, 232, 0.5);
}

.pv-content-area {
  flex: 1;
  padding: 10px;
  overflow: hidden;
}

.pv-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pv-topbar-title {
  width: 80px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 100px;
}

.pv-topbar-btn {
  width: 55px;
  height: 20px;
  background-color: var(--accent);
  border-radius: 3px;
  opacity: 0.6;
}

.pv-stats-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.pv-stat-card {
  flex: 1;
  height: 36px;
  background-color: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.pv-table {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.pv-table-header {
  height: 20px;
  background-color: var(--bg-4);
  border-bottom: 1px solid var(--border);
}

.pv-table-row {
  height: 16px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-3);
}

.pv-table-row:last-child {
  border-bottom: none;
}

.faq-heading {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: normal;
}

/* Info do portfólio */
.portfolio-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.portfolio-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-subtle);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--accent-border);
}

.portfolio-card-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
}

.portfolio-card-desc {
  font-size: var(--text-base);
  color: var(--fg-2);
  line-height: 1.7;
}

.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.portfolio-tech {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--fg-3);
  background-color: var(--bg-3);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--space-2);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}

.portfolio-link:hover {
  color: var(--fg);
  gap: var(--space-3);
}

.portfolio-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════
   PROCESSO
═══════════════════════════════════════════════════ */
.processo {
  padding: var(--section-pad) 0;
}

.processo-lista {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 680px;
}

.processo-lista::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 4px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), rgba(26, 114, 232, 0.1));
}

.processo-item {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  padding-bottom: var(--space-10);
  position: relative;
}

.processo-item:last-child {
  padding-bottom: 0;
}

.processo-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--fg);
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background-color: var(--bg-2);
  position: relative;
  z-index: 1;
}

.processo-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: var(--space-2);
  padding-top: 11px;
}

.processo-content p {
  font-size: var(--text-base);
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 52ch;
}

/* ═══════════════════════════════════════════════════
   SOBRE JOSÉ — com card de autoridade
═══════════════════════════════════════════════════ */
.sobre {
  padding: var(--section-pad) 0;
  background-color: var(--bg-2);
}

.sobre-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 900px) {
  .sobre-inner {
    grid-template-columns: auto 1fr;
    gap: var(--space-16);
    align-items: start;
  }
}

.sobre-perfil {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .sobre-perfil {
    align-items: center;
    width: 200px;
  }
}

.sobre-avatar {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .sobre-avatar {
    width: 180px;
    height: 180px;
  }
}

.sobre-foto {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 2px solid var(--border-hover);
}

.avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #22c55e;
  border: 2px solid var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.sobre-cargo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}

.sobre-cargo strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--fg);
}

.sobre-cargo span {
  font-size: var(--text-sm);
  color: var(--fg-2);
}

.sobre-empresa {
  font-size: var(--text-xs) !important;
  color: var(--accent) !important;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sobre-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .sobre-links {
    flex-direction: column;
    width: 100%;
  }
}

.sobre-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-2);
  border: 1px solid var(--border);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
  width: fit-content;
}

@media (min-width: 900px) {
  .sobre-link {
    width: 100%;
    justify-content: center;
  }
}

.sobre-link:hover {
  border-color: var(--border-hover);
  color: var(--fg);
  background-color: rgba(255, 255, 255, 0.04);
}

.sobre-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sobre-text .section-title {
  margin-top: var(--space-4);
}

.sobre-destaque {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.5;
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--accent);
  background-color: rgba(26, 114, 232, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.sobre-bio {
  font-size: var(--text-base);
  color: var(--fg-2);
  line-height: 1.75;
  margin-top: var(--space-5);
}

.sobre-tech {
  margin-top: var(--space-8);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--bg-3);
}

.tech-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: var(--space-4);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tech-badge {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-2);
  background-color: var(--bg-4);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.tech-note {
  font-size: var(--text-xs);
  color: var(--fg-3);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}

/* ═══════════════════════════════════════════════════
   FAQ — compacto
═══════════════════════════════════════════════════ */
.faq {
  padding: var(--section-pad) 0;
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 900px) {
  .faq-inner {
    grid-template-columns: 1fr 1.8fr;
    gap: var(--space-16);
    align-items: start;
  }

  .faq-header {
    position: sticky;
    top: calc(var(--header-h) + var(--space-8));
  }
}

.faq-lista {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-pergunta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-6) 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--fg-2);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s var(--ease);
  line-height: 1.4;
}

.faq-pergunta:hover,
.faq-pergunta[aria-expanded="true"] {
  color: var(--fg);
}

.faq-pergunta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--fg-3);
  transition: transform 0.25s var(--ease), color 0.2s var(--ease);
}

.faq-pergunta[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-resposta {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--ease-out), padding 0.25s var(--ease-out);
}

.faq-resposta.open {
  max-height: 300px;
  padding-bottom: var(--space-6);
}

.faq-resposta p {
  font-size: var(--text-base);
  color: var(--fg-2);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   CONTATO
═══════════════════════════════════════════════════ */
.contato {
  padding: var(--section-pad) 0;
  background-color: var(--bg-2);
}

.contato-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

@media (min-width: 900px) {
  .contato-inner {
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-20);
    align-items: start;
  }
}

.contato-text .section-title {
  margin-bottom: var(--space-5);
}

.contato-desc {
  font-size: var(--text-lg);
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.contato-alt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--fg-3);
}

.contato-form-wrap {
  background-color: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

@media (min-width: 640px) {
  .contato-form-wrap {
    padding: var(--space-8);
  }
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-2);
}

.form-label span {
  color: var(--fg-3);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem var(--space-4);
  font-size: var(--text-sm);
  color: var(--fg);
  background-color: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease);
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--fg-3);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23636363' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--danger-text);
  min-height: 16px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
  border-color: rgba(220, 38, 38, 0.5);
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 1rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: #fff;
  background-color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.form-submit:hover {
  background-color: var(--accent-hover);
}

.form-submit:active {
  transform: translateY(1px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.form-submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.form-feedback {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.form-feedback.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  background-color: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-10);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.footer-logo-link {
  margin-bottom: var(--space-4);
  display: flex;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--fg-3);
  max-width: 28ch;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-6);
  }
}

@media (min-width: 768px) {
  .footer-nav {
    flex-direction: column;
    gap: var(--space-3);
  }
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--fg-3);
  transition: color 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--fg);
}

.footer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--fg-3);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.footer-social-link:hover {
  border-color: var(--border-hover);
  color: var(--fg);
  background-color: rgba(255, 255, 255, 0.04);
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--fg-3);
}

/* ═══════════════════════════════════════════════════
   ACESSIBILIDADE / PRINT / PREFERS-CONTRAST
═══════════════════════════════════════════════════ */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(255, 255, 255, 0.3);
    --fg-2: #d4d4d4;
    --fg-3: #a8a8a8;
  }
}

@media print {
  .header,
  .hamburger,
  .nav-mobile {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ═══════════════════════════════════════════════════
   Agent Factory Chat Widget Overrides
═══════════════════════════════════════════════════ */
#toggle-iframe-btn {
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 14px !important;
  border-radius: 12px 12px 4px 12px !important;
}

#toggle-iframe-btn span {
  font-size: 14px !important;
}

#toggle-iframe-btn svg {
  width: 18px !important;
  height: 18px !important;
}
[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f4f4f5;
  --bg-3: #e4e4e7;
  --bg-4: #d4d4d8;
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.2);

  --fg: #18181b;
  --fg-2: #3f3f46;
  --fg-3: #71717a;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.theme-toggle:hover {
  background: var(--bg-2);
  border-color: var(--accent);
  color: var(--accent);
}


.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.theme-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-3);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border);
}
.theme-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: var(--fg);
  transition: .3s;
  border-radius: 50%;
}
input:checked + .theme-slider {
  background-color: var(--accent);
  border-color: var(--accent);
}
input:checked + .theme-slider:before {
  transform: translateX(20px);
  background-color: #ffffff;
}
.theme-icon {
  width: 16px;
  height: 16px;
  color: var(--fg-3);
  transition: color 0.3s var(--ease);
}
[data-theme="light"] .theme-icon.sun { color: var(--accent); }
[data-theme="light"] .theme-icon.moon { color: var(--fg-3); }
:not([data-theme="light"]) > .floating-theme-switch .theme-icon.moon,
:not([data-theme="light"]) > .theme-switch-wrapper .theme-icon.moon,
#article-wrapper:not([data-theme="light"]) .theme-icon.moon { color: var(--accent); }


/* ═══════════════════════════════════════════════════
   REDESIGN MOBILE (Prompt 04)
═══════════════════════════════════════════════════ */
@media (max-width: 899px) {
  /* 1. Espaçamentos e Hierarquia Geral */
  main > section {
    padding: var(--space-12) 0;
  }
  .section-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
  }
  body {
    font-size: 16px; /* Melhor legibilidade */
  }

  /* 2. Hero - Priorizando Foto e Legibilidade */
  .hero {
    padding-top: calc(var(--header-h) + var(--space-12));
    padding-bottom: var(--space-12);
    min-height: auto;
  }
  .hero-grid {
    padding: 0 var(--space-6);
    gap: var(--space-6);
  }
  .hero-visual {
    order: -1; /* Foto no topo no mobile */
    margin-top: 0;
  }
  .hero-photo-wrap {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    /* removemos o border-radius, background, height fixo e border para herdar o visual transparente do desktop */
  }
  .hero-badge {
    display: none; /* Remover ruído visual no mobile */
  }
  .hero-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: var(--space-4);
  }
  .hero-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* 3. O que eu construo (Diferenciais) - Evitar cards enormes */
  .diferenciais-grid {
    gap: var(--space-4);
  }
  .diferencial-item {
    padding: var(--space-3) var(--space-4);
    background-color: var(--bg-2);
    border: none;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
  }
  .diferencial-item h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-2);
  }
  .diferencial-item p {
    font-size: 0.95rem;
    margin: 0;
  }

  /* 4. Projetos - Otimizar Mockups e CTAs */
  .project-card {
    border-radius: var(--radius-md);
  }
  .project-visual {
    height: 200px;
  }
  .project-content {
    padding: var(--space-5);
  }
  .project-title {
    font-size: 1.35rem;
  }
  .project-desc {
    font-size: 0.95rem;
  }
  .tech-tag {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  .project-cta {
    width: 100%;
    justify-content: center;
  }

  /* 5. Artigos - Compactação para Leitura Rápida */
  .article-card {
    padding: var(--space-5);
    border-radius: var(--radius-md);
  }
  .article-meta {
    font-size: 0.8rem;
    margin-bottom: var(--space-2);
  }
  .article-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }
  .article-card p {
    display: none; /* Esconder resumo no mobile para focar no título */
  }

  /* 6. Navegação e CTA Fixo (Floating) opcional, mas vamos focar no header */
  .header {
    background-color: rgba(9, 9, 9, 0.98);
    backdrop-filter: blur(10px);
  }
  .nav-inner {
    padding: 0 var(--space-6);
  }
}


/* Estilos arquiteturais para leitura (Desktop & Mobile) */
.article-container {
  max-width: 720px;
  margin: 120px auto 60px;
  padding: 0 24px;
  color: var(--fg);
}
.article-header { margin-bottom: 50px; }
.article-title { 
  font-size: clamp(2rem, 5vw, 3rem); 
  line-height: 1.2; 
  margin-bottom: 24px; 
  color: var(--fg); 
  font-family: var(--font-display); 
  font-weight: 800; 
  letter-spacing: -0.02em; 
}

.article-meta { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 16px; 
  align-items: center; 
  color: var(--fg-3); 
  font-size: 0.85rem; 
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-meta-item { display: flex; align-items: center; gap: 8px; }
.article-meta-dot { width: 4px; height: 4px; border-radius: 50%; background-color: var(--accent); }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.article-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background-color: var(--bg-2);
  color: var(--fg-2);
  text-transform: uppercase;
  border: 1px solid var(--border);
}

.article-content { 
  line-height: 1.8; 
  font-size: 1.125rem; 
  color: var(--fg-2);
}
.article-content h2 { margin-top: 56px; margin-bottom: 24px; color: var(--fg); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; font-family: var(--font-display); letter-spacing: -0.01em; }
.article-content h3 { margin-top: 40px; margin-bottom: 16px; color: var(--fg); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; font-family: var(--font-display); }
.article-content p { margin-bottom: 24px; }
.article-content a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(0, 229, 255, 0.3); text-underline-offset: 4px; transition: all 0.2s ease; }
.article-content a:hover { text-decoration-color: var(--accent); background-color: rgba(0, 229, 255, 0.1); }

.article-content img, .article-content video, .article-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 40px 0;
  display: block;
  border: 1px solid var(--border);
}

.article-content pre,
.article-content pre[class*="language-"] {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 32px 0;
  font-size: 0.85rem !important;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.article-content code,
.article-content code[class*="language-"] {
  background-color: var(--bg-3);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.article-content pre code,
.article-content pre[class*="language-"] code[class*="language-"] {
  background-color: transparent;
  border: none;
  padding: 0;
  font-size: inherit !important;
  color: var(--fg-2);
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--fg);
  background: transparent;
}
.article-content blockquote p { margin-bottom: 0; }

.article-content ul, .article-content ol { margin-bottom: 24px; padding-left: 24px; }
.article-content li { margin-bottom: 12px; }

/* Artigos Relacionados */
.related-articles {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}
.related-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-family: var(--font-display);
  color: var(--fg);
}
.related-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.related-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease);
  background-color: var(--bg-2);
}
.related-card:hover {
  border-color: var(--accent);
  background-color: var(--bg-3);
  transform: translateY(-2px);
}
.related-card h4 { font-size: 1.2rem; margin-bottom: 8px; color: var(--fg); font-family: var(--font-display); }
.related-card p { font-size: 0.95rem; color: var(--fg-2); margin: 0; }

@media (max-width: 768px) {
  .article-container { margin-top: 80px; padding: 0 20px; }
  .article-content pre,
  .article-content pre[class*="language-"] { font-size: 0.8rem !important; }
  .article-content pre { padding: 16px; }
}



/* Layout container */
.articles-page, .portfolio-page {
  padding-top: calc(var(--space-10) + var(--header-h));
  margin-top: 0;
}
@media (min-width: 900px) {
  .articles-page, .portfolio-page {
    padding-top: calc(var(--space-12) + var(--header-h));
  }
}
.portfolio-lista { display: flex; flex-direction: column; gap: 80px; margin-bottom: 60px; }

/* Lista de Artigos */
.lista {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.article-item {
  display: block;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--bg-1);
  transition: all 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.article-item:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-2);
  transform: translateY(-2px);
}

.article-item h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--fg);
  transition: color 0.3s var(--ease);
}

.article-item:hover h2 {
  color: var(--accent);
}

.article-desc {
  font-size: 1.1rem;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: 0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 24px;
}

.read-more svg {
  transition: transform 0.3s var(--ease);
}

.article-item:hover .read-more svg {
  transform: translateX(4px);
}

/* Portfolio Lista Individual (Projetos /index) */
.portfolio-item { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .portfolio-item { grid-template-columns: 1.2fr 1fr; gap: 60px; }
  .portfolio-item--reverse { grid-template-columns: 1fr 1.2fr; }
  .portfolio-item--reverse .portfolio-visual { order: 2; }
}
.portfolio-visual { border-radius: var(--radius-lg); overflow: hidden; background-color: var(--bg-2); border: 1px solid var(--border); }
/* Removed duplicate .portfolio-screenshot rule */
.portfolio-item:hover .portfolio-screenshot { transform: scale(1.02); }
.portfolio-content { padding-right: 20px; }
.portfolio-type { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 12px; }
.portfolio-title { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 16px; line-height: 1.2; color: var(--fg); }
.portfolio-desc { font-size: 1.1rem; color: var(--fg-2); line-height: 1.6; margin-bottom: 24px; }
.portfolio-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.portfolio-tech span { font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; background-color: rgba(255, 255, 255, 0.05); color: var(--fg-2); text-transform: uppercase; border: 1px solid rgba(255, 255, 255, 0.1); }
.portfolio-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background-color: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--fg); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.2s var(--ease); }
.portfolio-cta:hover { background-color: var(--bg-3); border-color: var(--accent); color: var(--accent); }

/* Separação de cor de fundo entre seções em todas as páginas */
main > section {
  padding: var(--section-pad) 0;
}

main > section:first-of-type:not(.hero) {
  padding-top: calc(var(--space-10) + var(--header-h));
}
@media (min-width: 900px) {
  main > section:first-of-type:not(.hero) {
    padding-top: calc(var(--space-12) + var(--header-h));
  }
}

main > section:nth-of-type(odd) {
  background-color: var(--bg);
}

main > section:nth-of-type(even) {
  background-color: var(--bg-2);
}

/* ═══════════════════════════════════════════════════
   HOME — SOBRE CARD
═══════════════════════════════════════════════════ */
.home-about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-8);
  gap: var(--space-8);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .home-about-card {
    flex-direction: row;
    text-align: left;
    padding: var(--space-16);
    gap: var(--space-12);
  }
}

.home-about-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
}
@media (min-width: 768px) {
  .home-about-tech { justify-content: flex-start; }
}
.home-about-tech span {
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--fg-2);
  background-color: var(--bg-4);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}


/* Ocultar artigos extras no mobile (Home) */
@media (max-width: 1023px) {
  #articles .diferenciais-grid .diferencial-item:nth-child(n+3) {
    display: none;
  }
}
@media (max-width: 767px) {
  #articles .diferenciais-grid .diferencial-item:nth-child(n+2) {
    display: none;
  }
}

/* PrismJS Light Mode Overrides */
[data-theme="light"] pre,
[data-theme="light"] pre[class*="language-"] {
  background-color: #eef0f2 !important;
  text-shadow: none !important;
  color: #24292e !important;
  border: 1px solid rgba(0,0,0,0.05) !important;
}
[data-theme="light"] code[class*="language-"],
[data-theme="light"] pre[class*="language-"] code {
  color: #24292e !important;
  text-shadow: none !important;
}
[data-theme="light"] .token.comment,
[data-theme="light"] .token.prolog,
[data-theme="light"] .token.doctype,
[data-theme="light"] .token.cdata { color: #6a737d !important; }
[data-theme="light"] .token.punctuation { color: #24292e !important; }
[data-theme="light"] .token.property,
[data-theme="light"] .token.tag,
[data-theme="light"] .token.boolean,
[data-theme="light"] .token.number,
[data-theme="light"] .token.constant,
[data-theme="light"] .token.symbol,
[data-theme="light"] .token.deleted { color: #005cc5 !important; }
[data-theme="light"] .token.selector,
[data-theme="light"] .token.attr-name,
[data-theme="light"] .token.string,
[data-theme="light"] .token.char,
[data-theme="light"] .token.builtin,
[data-theme="light"] .token.inserted { color: #032f62 !important; }
[data-theme="light"] .token.operator,
[data-theme="light"] .token.entity,
[data-theme="light"] .token.url,
[data-theme="light"] .language-css .token.string,
[data-theme="light"] .style .token.string { color: #d73a49 !important; background: transparent !important; }
[data-theme="light"] .token.atrule,
[data-theme="light"] .token.attr-value,
[data-theme="light"] .token.keyword { color: #d73a49 !important; }
[data-theme="light"] .token.function,
[data-theme="light"] .token.class-name { color: #6f42c1 !important; }
[data-theme="light"] .token.regex,
[data-theme="light"] .token.important,
[data-theme="light"] .token.variable { color: #e36209 !important; }
