:root {
  --white: #ffffff;
  --paper: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: #d2d2d7;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --dark: #1d1d1f;
  --dark-soft: #86868b;
  --font-display: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --font-brand: 'Space Grotesk', var(--font-display);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { max-width: 100%; }

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

.font-brand { font-family: var(--font-brand); }

/* Nav — hidden until the hero section scrolls out of view */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.nav.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.nav-inner {
  width: 100%;
  max-width: 1040px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img { max-height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; font-size: 12.5px; }
.nav-links a { color: var(--ink); text-decoration: none; opacity: 0.85; transition: opacity 0.15s ease; }
.nav-links a:hover { opacity: 1; }
.nav-links a.nav-cta {
  background: var(--ink);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 980px;
  font-weight: 600;
  opacity: 1;
  transition: background 0.15s ease;
}
.nav-links a.nav-cta:hover { background: #34343a; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 90px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(-14px) scale(0.9);
  animation: heroLogoIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards,
    heroLogoFloat 8s ease-in-out 1.6s infinite;
}
/* Faixa de luz que atravessa as letras do logo, recortada pelo próprio SVG */
.hero-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, #2563eb 46%, #22d3ee 54%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 130% 0;
  -webkit-mask: url(logo.svg) center / contain no-repeat;
  mask: url(logo.svg) center / contain no-repeat;
  animation: heroLogoShine 7s ease-in-out 1.4s infinite;
  pointer-events: none;
}
.hero-logo img { max-height: clamp(56px, 11vw, 120px); width: auto; display: block; }
.hero-logo .brand-mark {
  display: none;
  position: relative;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 58px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-logo .brand-mark::before,
.hero-logo .brand-mark::after {
  content: "vc design & ti";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}
.hero-logo .brand-mark::before { color: #2563eb; animation: brandGlitch 8s ease-in-out infinite; }
.hero-logo .brand-mark::after { color: #22d3ee; animation: brandGlitch 8s ease-in-out infinite; animation-delay: 0.06s; }
@keyframes heroLogoIn {
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}
@keyframes heroLogoFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
@keyframes heroLogoShine {
  0% { background-position: 130% 0; }
  45%, 100% { background-position: -30% 0; }
}
@keyframes brandGlitch {
  0%, 95%, 100% { opacity: 0; transform: translate(0, 0); }
  96% { opacity: 0.75; transform: translate(-2px, 1px); }
  97.5% { opacity: 0.75; transform: translate(2px, -1px); }
  99% { opacity: 0; transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { opacity: 1; filter: none; transform: none; animation: none; }
  .hero-logo::after { animation: none; opacity: 0; }
  .hero-logo .brand-mark::before, .hero-logo .brand-mark::after { animation: none; opacity: 0; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
h1 {
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
/* Ao rolar, o script define --p (0 a 1): o logo encolhe e acompanha a descida até os números */
.hero-stage {
  transform: translateY(calc(var(--p, 0) * 34vh)) scale(calc(1 - var(--p, 0) * 0.5));
  transform-origin: center bottom;
  will-change: transform;
}
.hero h1, .hero .cta-row, .scroll-cue { opacity: calc(1 - var(--p, 0) * 1.8); }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.scroll-cue svg { width: 22px; height: 22px; color: var(--accent); animation: cueBounce 2.6s ease-in-out infinite; }
.scroll-cue:hover { color: var(--accent); }
@keyframes cueBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.hero h1 {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
.hero .lede {
  margin: 28px auto 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  font-weight: 400;
}
.hero .cta-row {
  margin-top: 36px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.btn-pill {
  font-size: 17px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 980px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-pill.primary { background: var(--accent); color: var(--white); }
.btn-pill.primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28); }
.btn-pill.text { color: var(--accent); padding: 12px 4px; }
.btn-pill.text:hover { text-decoration: underline; }
.btn-pill.text .chev { transition: transform 0.15s ease; }
.btn-pill.text:hover .chev { transform: translateX(3px); }

.btn-pill.on-dark.primary { background: var(--white); color: var(--ink); }
.btn-pill.on-dark.primary:hover { background: #f0f0f0; box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15); }
.btn-pill.on-dark.text { color: #a9c8ff; }

/* Credentials strip */
.credentials {
  background: var(--paper);
  padding: 64px 24px;
}
.credentials-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 0 96px;
}
.cred-item {
  padding: 0 20px;
  border-left: 1px solid var(--line);
  text-align: left;
}
.cred-item:first-child { border-left: none; }
.cred-number {
  font-size: clamp(88px, 13vw, 160px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  background: linear-gradient(105deg, #2563eb 20%, #22d3ee 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cred-word {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 2px;
}
.cred-desc {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.cred-item::after {
  content: '';
  display: block;
  margin-top: 14px;
  height: 2px;
  width: 100%;
  max-width: 220px;
  background: var(--accent);
  opacity: 0.55;
}

/* Entrada em sequência: números, ícones e blocos de serviço */
.credentials.reveal .cred-item,
.credentials.reveal .tech-item,
.service-row.reveal .service-copy > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.1s ease, transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.credentials.in-view .cred-item,
.credentials.in-view .tech-item,
.service-row.in-view .service-copy > * { opacity: 1; transform: none; }
.credentials.in-view .cred-item:nth-child(2) { transition-delay: 0.45s; }
/* Os números crescem enquanto contam */
.credentials.reveal .cred-number { scale: 0.7; transform-origin: left bottom; transition: scale 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.credentials.in-view .cred-number { scale: 1; }
.credentials.in-view .cred-item:nth-child(2) .cred-number { transition-delay: 0.45s; }
.credentials.in-view .tech-item { transition-delay: calc(0.8s + var(--i, 0) * 0.07s); }
.service-row.in-view .service-copy > :nth-child(2) { transition-delay: 0.18s; }
.service-row.in-view .service-copy > :nth-child(3) { transition-delay: 0.36s; }
.service-row.in-view .service-copy > :nth-child(4) { transition-delay: 0.54s; }
.service-row.in-view .service-copy > :nth-child(5) { transition-delay: 0.72s; }
.service-row.reveal .float-icon { scale: 0.6; opacity: 0; transition: scale 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease; }
.service-row.in-view .float-icon { scale: 1; opacity: 1; }
.service-row.in-view .float-1 { transition-delay: 0.6s; }
.service-row.in-view .float-2 { transition-delay: 0.8s; }
.service-row.in-view .float-3 { transition-delay: 1s; }
.service-row.in-view .float-4 { transition-delay: 1.2s; }
.service-row.in-view .float-5 { transition-delay: 1.4s; }

/* Services — full width alternating rows */
.services { max-width: 1040px; margin: 0 auto; }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 96px 24px;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.service-row:nth-child(even) { direction: rtl; }
.service-row:nth-child(even) > * { direction: ltr; }

.service-copy .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.service-copy h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.service-copy p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 420px;
}

.service-visual {
  aspect-ratio: 4/3;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.service-visual svg { width: 42%; height: 42%; position: relative; z-index: 1; transition: transform 0.4s ease; }
.service-row:hover .service-visual svg { transform: scale(1.1); }
.visual-dev { background: radial-gradient(circle at 30% 20%, #dbe8ff 0%, #eff3fb 45%, #f5f5f7 100%); }
.visual-infra { background: radial-gradient(circle at 70% 30%, #1d1d1f 0%, #33353b 55%, #1d1d1f 100%); }
.visual-ai { background: radial-gradient(circle at 40% 70%, #eff6ff 0%, #dbe8ff 50%, #c7dbff 100%); }
.visual-prod { background: radial-gradient(circle at 60% 40%, #1d1d1f 0%, #26282d 60%, #1d1d1f 100%); }
.visual-merge { background: radial-gradient(circle at 30% 20%, #dbe8ff 0%, #eff3fb 45%, #f5f5f7 100%); }

.service-visual .float-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatY 4.4s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-icon svg { width: 26px; height: 26px; }
.float-icon:hover {
  animation-play-state: paused;
  transform: scale(1.14) translateY(-6px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
  z-index: 2;
}
.float-1 { top: 16%; left: 14%; animation-delay: 0s; }
.float-2 { top: 12%; right: 16%; animation-delay: 0.6s; animation-duration: 5s; }
.float-3 { bottom: 16%; left: 18%; animation-delay: 1.2s; animation-duration: 3.9s; }
.float-4 { bottom: 14%; right: 14%; animation-delay: 0.3s; animation-duration: 4.6s; }
.float-5 { top: 44%; left: 44%; animation-delay: 0.9s; animation-duration: 5.2s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .float-icon { animation: none; }
  .hero-stage { transform: none; }
  .hero h1, .hero .cta-row, .scroll-cue { opacity: 1; }
  .scroll-cue svg { animation: none; }
  .credentials.reveal .cred-item, .credentials.reveal .tech-item,
  .service-row.reveal .service-copy > * { opacity: 1; transform: none; transition: none; }
  .service-row.reveal .float-icon { scale: 1; opacity: 1; transition: none; }
  .credentials.reveal .cred-number { scale: 1; transition: none; }
  .ai-net .edge, .ai-net .node { animation: none; opacity: 1; }
}

/* IA aplicada — lista e rede neural animada */
.ai-list { list-style: none; margin: 20px 0 0; padding: 0; max-width: 440px; }
.ai-list li { position: relative; padding: 8px 0 8px 22px; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.ai-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(105deg, #2563eb, #22d3ee); }
.ai-list strong { color: var(--ink); font-weight: 600; }
.service-copy .pitch-tags { margin-top: 20px; }
.service-visual.ai-net svg { width: 72%; height: 72%; }
.ai-net .edge { stroke: #2563eb; stroke-width: 1.4; stroke-opacity: 0.25; stroke-dasharray: 6 10; }
.ai-net .node { fill: var(--white); stroke: #2563eb; stroke-width: 2.5; opacity: 0; }
.service-row.in-view .ai-net .node {
  animation: nodeIn 1s ease forwards, nodePulse 4s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.12s), calc(1.2s + var(--d) * 0.3s);
}
.service-row.in-view .ai-net .edge { animation: edgeFlow 3s linear infinite; animation-delay: calc(var(--d) * -0.4s); }
@keyframes nodeIn { to { opacity: 1; } }
@keyframes nodePulse {
  0%, 100% { fill: var(--white); }
  50% { fill: #22d3ee; }
}
@keyframes edgeFlow { to { stroke-dashoffset: -32; } }
@media (max-width: 860px) {
  .float-icon { width: 46px; height: 46px; }
  .float-icon svg { width: 22px; height: 22px; }
}

/* Shared tooltip for anything with data-tip */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}
[data-tip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
[data-tip]:hover::before, [data-tip]:focus-visible::before { opacity: 1; }

.pitch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.pitch-tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 980px;
}

.tech-stack {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 24px 96px;
  text-align: center;
}
.tech-stack .tech-group + .tech-group { margin-top: 48px; }
.tech-stack .tech-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
}
.tech-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-color: var(--ink-soft);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.tech-row .tech-item:hover .tech-icon { background-color: var(--accent); transform: translateY(-3px); }

.i-react { -webkit-mask-image: url('assets/icons/react.svg'); mask-image: url('assets/icons/react.svg'); }
.i-nextjs { -webkit-mask-image: url('assets/icons/nextdotjs.svg'); mask-image: url('assets/icons/nextdotjs.svg'); }
.i-typescript { -webkit-mask-image: url('assets/icons/typescript.svg'); mask-image: url('assets/icons/typescript.svg'); }
.i-node { -webkit-mask-image: url('assets/icons/nodedotjs.svg'); mask-image: url('assets/icons/nodedotjs.svg'); }
.i-php { -webkit-mask-image: url('assets/icons/php.svg'); mask-image: url('assets/icons/php.svg'); }
.i-postgresql { -webkit-mask-image: url('assets/icons/postgresql.svg'); mask-image: url('assets/icons/postgresql.svg'); }
.i-supabase { -webkit-mask-image: url('assets/icons/supabase.svg'); mask-image: url('assets/icons/supabase.svg'); }
.i-docker { -webkit-mask-image: url('assets/icons/docker.svg'); mask-image: url('assets/icons/docker.svg'); }
.i-gitlab { -webkit-mask-image: url('assets/icons/gitlab.svg'); mask-image: url('assets/icons/gitlab.svg'); }
.i-python { -webkit-mask-image: url('assets/icons/python.svg'); mask-image: url('assets/icons/python.svg'); }
.i-illustrator { -webkit-mask-image: url('assets/icons/adobeillustrator.svg'); mask-image: url('assets/icons/adobeillustrator.svg'); }
.i-photoshop { -webkit-mask-image: url('assets/icons/adobephotoshop.svg'); mask-image: url('assets/icons/adobephotoshop.svg'); }
.i-figma { -webkit-mask-image: url('assets/icons/figma.svg'); mask-image: url('assets/icons/figma.svg'); }
.i-premiere { -webkit-mask-image: url('assets/icons/adobepremierepro.svg'); mask-image: url('assets/icons/adobepremierepro.svg'); }
.i-aftereffects { -webkit-mask-image: url('assets/icons/adobeaftereffects.svg'); mask-image: url('assets/icons/adobeaftereffects.svg'); }
.i-blender { -webkit-mask-image: url('assets/icons/blender.svg'); mask-image: url('assets/icons/blender.svg'); }
.i-obs { -webkit-mask-image: url('assets/icons/obsstudio.svg'); mask-image: url('assets/icons/obsstudio.svg'); }
.i-canva { -webkit-mask-image: url('assets/icons/canva.svg'); mask-image: url('assets/icons/canva.svg'); }

/* Orçamento — dark section with WhatsApp call to action */
.orcamento-section {
  background: var(--dark);
  color: var(--white);
  padding: 120px 24px;
}
.orcamento-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  text-align: left;
}
.orcamento-copy .eyebrow { color: #a9c8ff; margin-bottom: 20px; }
.orcamento-copy h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.orcamento-copy p {
  color: var(--dark-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 32px;
}
.orcamento-contact {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dark-soft);
  line-height: 2;
}

.orcamento-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 20px;
  padding: 36px;
}
.wa-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.wa-lead { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 16px; }
.wa-steps { list-style: none; margin: 0 0 28px; padding: 0; }
.wa-steps li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.wa-steps li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.wa-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 980px;
  background: var(--accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.wa-btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.form-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }

@media (max-width: 860px) {
  .orcamento-inner { grid-template-columns: 1fr; text-align: center; }
  .orcamento-copy p { margin-left: auto; margin-right: auto; }
  .orcamento-card { text-align: left; }
}

footer {
  padding: 28px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  background: var(--white);
  max-width: 1040px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
footer .footer-brand { font-weight: 600; color: var(--ink); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1.1s ease, transform 1.3s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Number count-up */
.count { font-variant-numeric: tabular-nums; }

/* ===== Portfolio page ===== */
.nav-links a.active { opacity: 1; color: var(--accent); }

.content-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 96px 24px;
  border-bottom: 1px solid var(--line);
}
.content-section:last-of-type { border-bottom: none; }
.content-section h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-sub { color: var(--ink-soft); font-size: 15px; max-width: 640px; margin-bottom: 40px; line-height: 1.6; }
.h2-count { font-family: var(--font-mono); font-weight: 400; font-size: 13px; color: var(--ink-soft); margin-left: 8px; }
.subhead { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 48px 0 20px; }

/* Tab sub-nav */
.tab-nav {
  position: sticky;
  top: 52px;
  z-index: 40;
  display: flex;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.tab-nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 18px 4px;
  margin-right: 28px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-nav a:hover, .tab-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--accent); }
.tab-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* Repo stat chips */
.repo-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.repo-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.repo-stat strong { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.repo-stat span { font-size: 12.5px; color: var(--ink-soft); }
.repo-stat .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 2px; }
.dot-labtec { background: var(--accent); }
.dot-pessoal { background: #d97706; }
.dot-academico { background: #16a34a; }
.dot-fork { background: #9ca3af; }

/* Colored type/status badges inside tables */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-labtec { color: var(--accent); }
.badge-pessoal { color: #d97706; }
.badge-academico { color: #16a34a; }
.badge-fork { color: #9ca3af; }
.badge-concluido { color: #16a34a; }
.badge-andamento { color: var(--accent); }

/* Collapsible repo table */
.repo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 48px 0 20px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.repo-toggle::-webkit-details-marker { display: none; }
.repo-toggle .chevron { transition: transform 0.2s ease; color: var(--ink-soft); font-family: var(--font-mono); font-size: 13px; }
details[open] .repo-toggle .chevron { transform: rotate(90deg); }
.repo-toggle:hover { color: var(--accent); }

/* Design gallery filters */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.filter-pill.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.gallery-item.hidden { display: none; }

/* Project cards (TI / Academia) */
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proj-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.proj-card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07); transform: translateY(-2px); }
.proj-thumb { margin: -24px -24px 16px; border-bottom: 1px solid var(--line); overflow: hidden; aspect-ratio: 16/9; background: #e5e5ea; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 0.3s ease; }
.proj-card:hover .proj-thumb img { transform: scale(1.04); }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.proj-card h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 980px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status.live { background: #dcfce7; color: #15803d; }
.status.institutional { background: var(--accent-soft); color: var(--accent); }
.proj-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; flex-grow: 1; }
.proj-link {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.proj-link:hover { text-decoration: underline; }

.other-projects { margin-top: 28px; padding: 22px 24px; background: var(--accent-soft); border-radius: 16px; font-size: 13.5px; }
.other-projects strong.title { display: block; margin-bottom: 10px; color: var(--accent); font-weight: 700; }
.other-projects ul { list-style: none; }
.other-projects li { padding: 6px 0 6px 18px; position: relative; color: var(--ink-soft); }
.other-projects li::before { content: "—"; position: absolute; left: 0; color: #93a3c9; }
.other-projects li strong { color: var(--ink); font-weight: 600; }

/* Data tables */
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data-table td:first-child { font-family: var(--font-mono); font-size: 12.5px; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: var(--accent-soft); }

/* Design gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.gallery-item:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07); transform: translateY(-2px); }
.gallery-item .thumb { aspect-ratio: 4/5; overflow: hidden; background: #e5e5ea; }
.gallery-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item:hover .thumb img { transform: scale(1.05); }
.gallery-item .cap { padding: 14px 16px; }
.gallery-item .cap .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  display: inline-block;
  padding: 3px 9px;
  border-radius: 980px;
  margin-bottom: 8px;
}
.gallery-item .cap h4 { font-size: 13.5px; font-weight: 500; line-height: 1.4; }

/* Closing CTA */
.closing-cta { background: var(--dark); color: var(--white); padding: 120px 24px; text-align: center; }
.closing-cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 32px; }
.closing-cta .cta-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; padding: 64px 24px; gap: 32px; }
  .service-row:nth-child(even) { direction: ltr; }
  .service-visual { order: -1; aspect-ratio: 16/9; }
  .proj-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .content-section { padding: 64px 24px; }
}
@media (max-width: 480px) {
  .credentials-inner { grid-template-columns: 1fr; gap: 32px 0; justify-items: center; }
  .cred-item { border-left: none; text-align: center; }
  .cred-item::after { margin-left: auto; margin-right: auto; }
  .credentials.reveal .cred-number { transform-origin: center bottom; }
  .nav-links { gap: 14px; }
  .nav-links a[href$="#servicos"] { display: none; }
  .nav-links a.nav-cta { padding: 7px 14px; }
  .brand img { max-height: 18px; }
  footer { text-align: center; }
  .hero { padding: 96px 20px 64px; }
  .tech-row { gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tab-nav { overflow-x: auto; scrollbar-width: none; }
  .tab-nav::-webkit-scrollbar { display: none; }
  .tab-nav a { margin-right: 20px; white-space: nowrap; }
}

/* Telas de erro (403 e 404) */
.error-page .error-logo img { height: 28px; width: auto; display: block; margin-bottom: 40px; }
.error-page .error-code {
  font-size: clamp(88px, 16vw, 160px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(105deg, #2563eb 20%, #22d3ee 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.error-page h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; color: var(--ink); }

/* Central de propostas */
.central-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.central-page .error-logo img { height: 28px; width: auto; display: block; margin-bottom: 40px; }
.central-page h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.central-page .lede { margin-top: 16px; font-size: clamp(16px, 2vw, 19px); line-height: 1.5; color: var(--ink-soft); }
.central-page .comprovante {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.central-page .comprovante > div { padding: 14px 20px; border-top: 1px solid var(--line); }
.central-page .comprovante > div:first-child { border-top: 0; }
.central-page .comprovante dt { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.central-page .comprovante dd { margin-top: 2px; font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.central-page .comprovante .comprovante-hash { font-family: var(--font-mono); font-size: 14px; word-break: break-all; }
.central-page .cta-row { margin-top: 32px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.central-page button.btn-pill { border: 0; cursor: pointer; font-family: inherit; }
.central-page button.btn-pill.text { background: transparent; }
.central-page .copia-oculta { position: fixed; top: 0; left: -9999px; opacity: 0; }
.central-page .central-aviso {
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.45;
  border: 1px solid var(--line);
}
.central-page .central-aviso-erro { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.central-page .central-aviso-ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.central-page .central-form { margin-top: 24px; }
.central-page .central-form label,
.central-page .abrir label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }
.central-page input[type="password"],
.central-page input[type="date"] {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 44px;
}
.central-page .central-form input[type="password"] { width: 100%; }
.central-page.central-wide { max-width: 960px; }
.central-page .central-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.central-page .central-topo .error-logo img { margin-bottom: 24px; }
.central-page .proposta {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.central-page .proposta-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.central-page .proposta h2 { font-size: 20px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.central-page .proposta-num { margin-top: 2px; font-size: 14px; color: var(--ink-soft); }
.central-page .selo {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.central-page .selo-aberta { background: #dcfce7; color: #14532d; }
.central-page .selo-assinada { background: #dbeafe; color: #1e3a8a; }
.central-page .selo-expirada { background: #e5e7eb; color: #374151; }
.central-page .selo-fechada { background: #fee2e2; color: #7f1d1d; }
.central-page .proposta-dados {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 20px;
}
.central-page .proposta-dados dt { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.central-page .proposta-dados dd { margin-top: 2px; font-size: 15px; overflow-wrap: anywhere; }
.central-page .proposta-dados a { color: var(--accent); }
.central-page .proposta-link { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.central-page .link-texto {
  flex: 1 1 260px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
  user-select: all;
}
.central-page .btn-pill.ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 18px;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  list-style: none;
}
.central-page .btn-pill.ghost:hover { background: var(--paper); }
.central-page .btn-pill.danger { background: #b91c1c; color: var(--white); padding: 8px 18px; font-size: 15px; }
.central-page .btn-pill.danger:hover { background: #991b1b; }
.central-page .proposta-acoes { margin-top: 16px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.central-page .proposta-acoes .btn-pill.text { padding: 8px 4px; font-size: 15px; }
.central-page .proposta-acoes .btn-pill.primary { padding: 8px 18px; font-size: 15px; }
.central-page .confirmar summary { cursor: pointer; }
.central-page .confirmar summary::-webkit-details-marker { display: none; }
.central-page .confirmar form { margin-top: 12px; padding: 12px 16px; border: 1px solid #fecaca; background: #fef2f2; border-radius: 10px; }
.central-page .confirmar form p { margin-bottom: 10px; font-size: 14px; color: #7f1d1d; }
.central-page .abrir { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.central-page .abrir > div,
.central-page .abrir label { margin-bottom: 0; }
.central-page .abrir label { align-self: center; }
@media (max-width: 600px) {
  .central-page { padding: 32px 16px 56px; }
  .central-page .proposta { padding: 16px; }
}
@media print {
  .central-page .no-print { display: none; }
  .central-page { padding-top: 0; }
}
