:root {
  --bg: #070a12;
  --bg-2: #0d1426;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --muted: #aab5cc;
  --muted-2: #7f8ba6;
  --accent: #7c5cff;
  --accent-2: #19d3c5;
  --gold: #f0c36a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 18% 12%, rgba(124, 92, 255, 0.28), transparent 28%),
              radial-gradient(circle at 82% 10%, rgba(25, 211, 197, 0.16), transparent 30%),
              radial-gradient(circle at 60% 90%, rgba(240, 195, 106, 0.12), transparent 34%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img, svg {
  max-width: 100%;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.26;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,.15));
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section-pad {
  padding: 110px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--container), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.26);
}

.brand,
.main-nav,
.hero-actions,
.hero-meta,
.profile-card,
.project-topline,
.contact-actions,
.footer-grid,
.tag-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.3);
}

.brand-text {
  font-size: 0.98rem;
}

.main-nav {
  gap: 6px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

.menu-toggle {
  display: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
}

.hero {
  position: relative;
  padding-top: 95px;
  min-height: calc(100vh - 80px);
  display: grid;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: -90px 0 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 22%),
              radial-gradient(circle at 58% 44%, rgba(124, 92, 255, 0.22), transparent 38%);
  pointer-events: none;
}

.hero-grid,
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.align-start {
  align-items: start;
}

.eyebrow {
  color: var(--accent-2);
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
}

h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  margin-bottom: 22px;
}

h3 {
  font-size: 1.28rem;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.hero-lead,
.section-heading p,
.text-stack p,
.project-card p,
.timeline-item p,
.contact-card p,
.service-card p,
.process-item p {
  color: var(--muted);
}

.hero-lead {
  max-width: 700px;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions,
.contact-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 18px 42px rgba(124, 92, 255, 0.32);
}

.btn-secondary,
.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
}

.btn-ghost {
  color: var(--muted);
}

.hero-meta {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.hero-meta span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  padding: 8px 12px;
}

.hero-card,
.contact-card,
.project-card,
.service-card,
.metric-card,
.timeline,
.process-list {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  transform: rotate(1.2deg);
}

.profile-card {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(0,0,0,.18);
}

.profile-photo {
  width: 120px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .95), rgba(25, 211, 197, .7)), radial-gradient(circle at 30% 10%, rgba(255,255,255,.4), transparent 40%);
  color: white;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.profile-name {
  margin-bottom: 2px;
  font-weight: 900;
  font-size: 1.15rem;
}

.profile-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.metric-card {
  border-radius: 22px;
  padding: 20px;
  background: rgba(0,0,0,.2);
  box-shadow: none;
}

.metric-card strong {
  display: block;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.07em;
  margin-bottom: 12px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-heading {
  max-width: 760px;
}

.section-heading.center {
  text-align: center;
  margin-inline: auto;
}

.text-stack {
  font-size: 1.04rem;
}

.tag-row {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.tag-row span,
.tool-marquee span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.soft-section {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.035), transparent);
}

.services-grid,
.projects-grid {
  display: grid;
  gap: 20px;
  margin-top: 54px;
}

.services-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-md);
  padding: 26px;
  overflow: hidden;
  box-shadow: none;
}

.service-card::after,
.project-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -64px;
  bottom: -74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.36), transparent 70%);
  pointer-events: none;
}

.card-index {
  display: inline-block;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 68px;
}

.process-section {
  padding-top: 40px;
}

.process-list {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
}

.process-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.process-item:last-child {
  border-bottom: 0;
}

.process-item span {
  font-weight: 900;
  font-size: 1.1rem;
}

.process-item p {
  margin: 0;
}

.projects-grid {
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 330px;
  overflow: hidden;
}

.project-card.featured {
  grid-row: span 2;
  background: linear-gradient(160deg, rgba(124,92,255,.22), rgba(255,255,255,.075));
}

.project-topline {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}

.project-topline span {
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-topline a {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.project-card ul {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.dark-band {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,.12));
}

.timeline {
  border-radius: var(--radius-lg);
  padding: 10px;
}

.timeline-item {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.time {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-section {
  padding-bottom: 70px;
}

.tool-marquee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

.contact-section {
  padding-top: 70px;
}

.contact-card {
  border-radius: 40px;
  padding: clamp(32px, 5vw, 58px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(25,211,197,.12));
}

.contact-card h2 {
  max-width: 800px;
}

.contact-card p {
  max-width: 680px;
  margin-bottom: 0;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  padding: 26px 0 46px;
  color: var(--muted-2);
}

.footer-grid {
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-grid a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@media (max-width: 1020px) {
  .section-pad {
    padding: 86px 0;
  }

  .hero-grid,
  .two-col,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-card {
    transform: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .site-header {
    width: calc(100% - 22px);
    margin-top: 10px;
  }

  .brand-text {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    left: 11px;
    right: 11px;
    top: 82px;
    display: grid;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(7, 10, 18, 0.95);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .2s ease;
  }

  body.menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero {
    padding-top: 70px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.35rem, 10vw, 3.6rem);
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .metric-grid,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-row: auto;
  }

  .process-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}


.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
}

.carousel-hint {
  margin: 0;
  color: var(--muted-2);
}

.carousel-controls {
  display: flex;
  gap: 12px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.carousel-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.13);
}

.projects-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 380px);
  gap: 22px;
  margin-top: 24px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.projects-carousel::-webkit-scrollbar {
  height: 10px;
}

.projects-carousel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}

.projects-carousel::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}

.project-slide {
  position: relative;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.055));
  box-shadow: var(--shadow);
}

.project-slide::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -50px;
  bottom: -64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.28), transparent 72%);
  pointer-events: none;
}

.project-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0,0,0,.22);
  border-bottom: 1px solid var(--line);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}

.project-slide:hover .project-thumb img {
  transform: scale(1.025);
}

.project-slide-body {
  padding: 22px 22px 24px;
}

.project-slide .project-topline {
  margin-bottom: 18px;
}

.project-slide p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 780px) {
  .carousel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .projects-carousel {
    grid-auto-columns: minmax(84vw, 84vw);
  }
}


/* Ajuste: mantém os botões "Ver site" e "Ver projeto" em uma única linha dentro do carrossel */
.project-topline a {
  white-space: nowrap;
  flex: 0 0 auto;
}

.project-slide .project-topline {
  align-items: center;
}


/* Empresa / portfólio visual */
.project-topline a,
.btn {
  white-space: nowrap;
}

.visual-section {
  padding-top: 70px;
  background: linear-gradient(180deg, transparent, rgba(25,211,197,.04), transparent);
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 18px;
  margin-top: 44px;
}

.visual-card {
  position: relative;
  min-height: 245px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.055)),
    radial-gradient(circle at 85% 18%, rgba(25,211,197,.22), transparent 34%);
  box-shadow: var(--shadow);
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  pointer-events: none;
}

.visual-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.38), transparent 70%);
  pointer-events: none;
}

.visual-card-large {
  min-height: 330px;
  grid-row: span 2;
}

.visual-card-wide {
  grid-column: span 2;
}

.visual-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 72px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 900;
  background: rgba(0,0,0,.18);
}

.visual-card h3 {
  position: relative;
  z-index: 1;
}

.visual-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 1020px) {
  .visual-grid {
    grid-template-columns: 1fr 1fr;
  }

  .visual-card-large,
  .visual-card-wide {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 780px) {
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .visual-card-large,
  .visual-card-wide {
    grid-column: auto;
  }
}


/* Scroll animation: site sendo construído */
.build-story {
  position: relative;
  min-height: 360vh;
  padding: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(124,92,255,.18), transparent 32%),
    radial-gradient(circle at 88% 52%, rgba(25,211,197,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.055), rgba(255,255,255,.02));
}

.build-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 92px 0 70px;
}

.build-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.build-copy h2 {
  max-width: 680px;
}

.build-intro {
  max-width: 600px;
  color: var(--muted);
  margin-bottom: 28px;
}

.build-steps {
  display: grid;
  gap: 12px;
  max-width: 620px;
}

.build-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  opacity: .48;
  transform: translateX(-10px);
  transition: opacity .35s ease, transform .35s ease, background .35s ease, border-color .35s ease;
}

.build-step.active {
  opacity: 1;
  transform: translateX(0);
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(25,211,197,.09));
  border-color: rgba(255,255,255,.22);
}

.build-step span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,.2);
  color: var(--gold);
  font-weight: 900;
  border: 1px solid var(--line);
}

.build-step strong {
  display: block;
  margin-bottom: 4px;
  letter-spacing: -.035em;
}

.build-step p {
  grid-column: 2;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: .94rem;
}

.site-builder {
  position: relative;
  transform: translateY(calc((1 - var(--build-progress, 0)) * 24px)) scale(calc(.96 + (var(--build-progress, 0) * .04)));
  transition: transform .08s linear;
}

.builder-glow {
  position: absolute;
  inset: -40px;
  z-index: -1;
  border-radius: 46px;
  background:
    radial-gradient(circle at 35% 20%, rgba(124,92,255,.34), transparent 36%),
    radial-gradient(circle at 80% 70%, rgba(25,211,197,.18), transparent 36%);
  filter: blur(10px);
  opacity: .9;
}

.builder-browser {
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.06));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.34);
}

.browser-address {
  flex: 1;
  min-height: 28px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-size: .86rem;
}

.builder-canvas {
  min-height: 590px;
  padding: 24px;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    rgba(5,8,16,.34);
  background-size: 34px 34px;
}

.build-piece {
  opacity: 0;
  transform: translateY(28px) scale(.98);
  transition: opacity .5s ease, transform .5s ease, filter .5s ease;
  filter: blur(6px);
}

.build-piece.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.piece-nav {
  display: grid;
  grid-template-columns: 46px 1fr 1fr 1fr 92px;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.piece-nav span,
.piece-nav button {
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.piece-nav .mini-logo {
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.piece-nav button {
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.piece-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.07);
}

.kicker-line,
.headline-line,
.text-line,
.cta-line,
.hero-image-card span {
  display: block;
  border-radius: 999px;
}

.kicker-line {
  width: 130px;
  height: 14px;
  margin-bottom: 22px;
  background: var(--accent-2);
}

.headline-line {
  width: 72%;
  height: 30px;
  margin-bottom: 12px;
  background: rgba(255,255,255,.9);
}

.headline-line.long {
  width: 94%;
}

.text-line {
  width: 88%;
  height: 12px;
  margin-top: 20px;
  background: rgba(255,255,255,.25);
}

.text-line.short {
  width: 60%;
  margin-top: 10px;
}

.cta-line {
  width: 142px;
  height: 44px;
  margin-top: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero-image-card {
  min-height: 230px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.24), transparent 26%),
    linear-gradient(135deg, rgba(124,92,255,.42), rgba(25,211,197,.16));
  border: 1px solid rgba(255,255,255,.16);
}

.hero-image-card span {
  height: 14px;
  margin-left: auto;
  margin-bottom: 12px;
  background: rgba(255,255,255,.34);
}

.hero-image-card span:nth-child(1) { width: 70%; margin-top: 120px; }
.hero-image-card span:nth-child(2) { width: 54%; }
.hero-image-card span:nth-child(3) { width: 38%; }

.piece-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.piece-cards div,
.product-card {
  min-height: 96px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
}

.piece-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.product-card {
  min-height: 112px;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
}

.product-card::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 62%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
}

.piece-ops {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 14px;
}

.ops-panel,
.ops-flow {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(0,0,0,.2);
  padding: 18px;
}

.ops-panel strong {
  display: block;
  margin-bottom: 14px;
}

.ops-panel span,
.ops-flow span {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-size: .9rem;
}

.ops-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: center;
}

.ops-flow span {
  margin: 0;
  text-align: center;
  color: var(--text);
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(25,211,197,.12));
}

.build-progress {
  height: 8px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.build-progress span {
  display: block;
  width: calc(var(--build-progress, 0) * 100%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

@media (max-width: 1020px) {
  .build-story {
    min-height: auto;
  }

  .build-sticky {
    position: relative;
    min-height: auto;
  }

  .build-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .build-sticky {
    padding: 80px 0;
  }

  .piece-hero,
  .piece-ops,
  .piece-products,
  .piece-cards {
    grid-template-columns: 1fr;
  }

  .piece-products {
    display: none;
  }

  .builder-canvas {
    min-height: auto;
  }

  .ops-flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .build-story {
    min-height: auto;
  }

  .build-sticky {
    position: relative;
  }

  .build-piece {
    opacity: 1;
    transform: none;
    filter: none;
  }
}


/* Mobile: transforma a animação em timeline guiada com setas */
@media (max-width: 780px) {
  .build-story {
    min-height: auto;
    padding: 30px 0 10px;
  }

  .build-sticky {
    position: relative;
    min-height: auto;
    padding: 72px 0 76px;
    overflow: visible;
  }

  .build-grid {
    gap: 34px;
  }

  .build-copy h2 {
    font-size: clamp(2.25rem, 10vw, 3.2rem);
  }

  .build-intro {
    margin-bottom: 26px;
  }

  .build-steps {
    position: relative;
    gap: 18px;
    padding-left: 34px;
    margin-top: 30px;
  }

  .build-steps::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--gold));
    opacity: .75;
  }

  .build-step,
  .build-step.active {
    position: relative;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 18px 18px 34px;
    margin-left: 10px;
    opacity: 1;
    transform: none;
    background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
    border-color: rgba(255,255,255,.18);
  }

  .build-step::before {
    content: "";
    position: absolute;
    left: -42px;
    top: 35px;
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-2), rgba(255,255,255,.65));
  }

  .build-step::after {
    content: "";
    position: absolute;
    left: -4px;
    top: 30px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(255,255,255,.75);
    border-right: 2px solid rgba(255,255,255,.75);
    transform: rotate(45deg);
  }

  .build-step span {
    position: absolute;
    left: -64px;
    top: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 14px 34px rgba(124,92,255,.28);
  }

  .build-step strong {
    font-size: 1.05rem;
    padding-left: 0;
  }

  .build-step p {
    grid-column: auto;
    margin: 0;
    font-size: .92rem;
  }

  .site-builder {
    transform: none !important;
  }

  .builder-browser {
    border-radius: 26px;
  }

  .browser-bar {
    height: 54px;
    padding: 0 14px;
  }

  .browser-address {
    font-size: .74rem;
    overflow: hidden;
    white-space: nowrap;
  }

  .builder-canvas {
    padding: 16px;
    min-height: auto;
    background-size: 26px 26px;
  }

  .piece-nav {
    grid-template-columns: 38px 1fr 1fr;
    gap: 9px;
    margin-bottom: 18px;
  }

  .piece-nav span:nth-of-type(4),
  .piece-nav button {
    display: none;
  }

  .piece-nav .mini-logo {
    height: 38px;
    border-radius: 12px;
  }

  .piece-hero {
    padding: 18px;
    gap: 18px;
  }

  .hero-image-card {
    min-height: 150px;
  }

  .hero-image-card span:nth-child(1) {
    margin-top: 68px;
  }

  .headline-line {
    height: 22px;
  }

  .piece-cards div,
  .product-card {
    min-height: 82px;
  }

  .piece-ops {
    gap: 12px;
  }

  .ops-panel,
  .ops-flow {
    padding: 14px;
  }

  .build-progress {
    display: none;
  }
}



/* Mobile priority fixes */
.scroll-anchor {
  position: relative;
  top: -92px;
  height: 0;
}

.mobile-process {
  display: none;
}

@media (max-width: 780px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    line-height: 1.55;
  }

  .noise {
    background-size: 34px 34px;
    opacity: .18;
  }

  .container {
    width: calc(100% - 32px);
  }

  .section-pad {
    padding: 62px 0;
  }

  .site-header {
    width: calc(100% - 24px);
    padding: 10px 12px;
    margin-top: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .main-nav {
    left: 12px;
    right: 12px;
    top: 76px;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 62px;
  }

  .hero-grid,
  .two-col {
    gap: 32px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.85rem);
    line-height: .96;
    letter-spacing: -.07em;
    margin-bottom: 20px;
  }

  h2 {
    font-size: clamp(2rem, 9.4vw, 3.05rem);
    line-height: 1;
    letter-spacing: -.065em;
  }

  h3 {
    font-size: 1.12rem;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: .7rem;
    letter-spacing: .13em;
  }

  .hero-lead,
  .text-stack,
  .section-heading p {
    font-size: .98rem;
  }

  .hero-actions,
  .contact-actions {
    gap: 10px;
    margin-top: 26px;
  }

  .btn {
    min-height: 48px;
    padding: 0 16px;
  }

  .hero-meta {
    margin-top: 24px;
  }

  .hero-meta span,
  .tag-row span,
  .tool-marquee span {
    font-size: .82rem;
    padding: 8px 10px;
  }

  .hero-card {
    padding: 16px;
    border-radius: 26px;
  }

  .profile-card {
    padding: 14px;
    border-radius: 20px;
  }

  .profile-photo {
    width: 100%;
    aspect-ratio: 16 / 8.5;
    border-radius: 20px;
  }

  .metric-grid,
  .services-grid,
  .projects-grid {
    gap: 14px;
  }

  .metric-card,
  .service-card {
    min-height: auto;
    padding: 20px;
    border-radius: 20px;
  }

  .metric-card strong {
    font-size: 1.35rem;
  }

  .card-index {
    margin-bottom: 42px;
  }

  .process-section {
    padding-top: 28px;
  }

  .process-list {
    margin-top: 28px;
    border-radius: 24px;
  }

  .process-item {
    padding: 20px;
  }

  .visual-section {
    padding-top: 56px;
  }

  .visual-grid {
    gap: 14px;
    margin-top: 28px;
  }

  .visual-card,
  .visual-card-large {
    min-height: auto;
    padding: 22px;
    border-radius: 22px;
  }

  .visual-card span {
    width: 42px;
    height: 42px;
    margin-bottom: 42px;
  }

  /* Remove a animação grande no celular. Ela fica só no desktop. */
  .build-story {
    display: none !important;
  }

  .mobile-process {
    display: block;
    padding-top: 58px;
    padding-bottom: 58px;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(124,92,255,.045), rgba(255,255,255,.02));
  }

  .mobile-process .section-heading {
    max-width: 100%;
  }

  .mobile-process-list {
    position: relative;
    display: grid;
    gap: 16px;
    margin-top: 30px;
    padding-left: 18px;
  }

  .mobile-process-list::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--gold));
    opacity: .72;
  }

  .mobile-process-item {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    margin-left: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.055));
    box-shadow: 0 18px 54px rgba(0,0,0,.22);
  }

  .mobile-process-item::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 39px;
    width: 36px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-2), rgba(255,255,255,.65));
  }

  .mobile-process-item::after {
    content: "";
    position: absolute;
    left: -6px;
    top: 34px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(255,255,255,.72);
    border-right: 2px solid rgba(255,255,255,.72);
    transform: rotate(45deg);
  }

  .mobile-process-item span {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(124,92,255,.28);
  }

  .mobile-process-item h3 {
    margin-bottom: 6px;
  }

  .mobile-process-item p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
  }

  .carousel-header {
    gap: 14px;
    margin-top: 28px;
  }

  .carousel-controls {
    width: 100%;
    justify-content: space-between;
  }

  .carousel-btn {
    width: 46px;
    height: 46px;
  }

  .projects-carousel {
    grid-auto-columns: minmax(82vw, 82vw);
    gap: 14px;
    margin-top: 18px;
    padding-bottom: 12px;
  }

  .project-slide {
    border-radius: 22px;
  }

  .project-slide-body {
    padding: 18px;
  }

  .project-topline {
    gap: 10px;
    margin-bottom: 16px;
  }

  .project-topline span {
    font-size: .66rem;
    letter-spacing: .08em;
    line-height: 1.25;
  }

  .project-topline a {
    padding: 7px 9px;
    font-size: .76rem;
  }

  .project-thumb {
    aspect-ratio: 16 / 9.5;
  }

  .tool-marquee {
    gap: 8px;
    justify-content: flex-start;
    margin-top: 28px;
  }

  .contact-section {
    padding-top: 48px;
  }

  .contact-card {
    padding: 24px;
    border-radius: 26px;
    gap: 24px;
  }

  .footer-grid {
    gap: 14px;
    padding-top: 20px;
  }

  .site-footer {
    padding-bottom: 34px;
  }
}

@media (min-width: 781px) {
  .mobile-process {
    display: none !important;
  }
}


/* Paleta ampliada e seção otimizada para portfólio mobile-first */
:root {
  --bg: #070a12;
  --bg-2: #10172a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7f8fc;
  --muted: #b2bdd3;
  --muted-2: #8995ad;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --blue: #3b82f6;
  --green: #34d399;
  --amber: #f59e0b;
  --coral: #ff6b6b;
  --pink: #ec4899;
  --gold: #f8c76a;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.34), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(34, 211, 238, 0.20), transparent 30%),
    radial-gradient(circle at 12% 78%, rgba(255, 107, 107, 0.14), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(52, 211, 153, 0.13), transparent 30%),
    radial-gradient(circle at 50% 105%, rgba(245, 158, 11, 0.12), transparent 34%),
    var(--bg);
}

.brand-mark,
.btn-primary,
.piece-nav .mini-logo,
.piece-nav button,
.cta-line,
.mobile-process-item span {
  background: linear-gradient(135deg, var(--accent), var(--blue) 48%, var(--accent-2));
}

.delivery-section {
  position: relative;
  padding-top: 88px;
  padding-bottom: 88px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.045), rgba(255,255,255,.02));
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.delivery-card {
  position: relative;
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  box-shadow: 0 20px 70px rgba(0,0,0,.28);
}

.delivery-card::before {
  content: "";
  position: absolute;
  inset: auto -34px -54px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  opacity: .55;
  pointer-events: none;
}

.delivery-card span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 70px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
}

.delivery-card h3 {
  margin-bottom: 10px;
}

.delivery-card p {
  margin: 0;
  color: var(--muted);
}

.delivery-card-purple { background: linear-gradient(160deg, rgba(139,92,246,.24), rgba(255,255,255,.07)); }
.delivery-card-cyan { background: linear-gradient(160deg, rgba(34,211,238,.18), rgba(255,255,255,.07)); }
.delivery-card-amber { background: linear-gradient(160deg, rgba(245,158,11,.18), rgba(255,255,255,.07)); }
.delivery-card-green { background: linear-gradient(160deg, rgba(52,211,153,.18), rgba(255,255,255,.07)); }
.delivery-card-purple::before { background: radial-gradient(circle, rgba(139,92,246,.65), transparent 70%); }
.delivery-card-cyan::before { background: radial-gradient(circle, rgba(34,211,238,.55), transparent 70%); }
.delivery-card-amber::before { background: radial-gradient(circle, rgba(245,158,11,.55), transparent 70%); }
.delivery-card-green::before { background: radial-gradient(circle, rgba(52,211,153,.55), transparent 70%); }

.services-grid .service-card:nth-child(1) { background: linear-gradient(160deg, rgba(139,92,246,.18), rgba(255,255,255,.06)); }
.services-grid .service-card:nth-child(2) { background: linear-gradient(160deg, rgba(34,211,238,.15), rgba(255,255,255,.06)); }
.services-grid .service-card:nth-child(3) { background: linear-gradient(160deg, rgba(245,158,11,.14), rgba(255,255,255,.06)); }
.services-grid .service-card:nth-child(4) { background: linear-gradient(160deg, rgba(52,211,153,.14), rgba(255,255,255,.06)); }

.visual-card:nth-child(1) { background: linear-gradient(160deg, rgba(59,130,246,.16), rgba(255,255,255,.055)); }
.visual-card:nth-child(2) { background: linear-gradient(160deg, rgba(139,92,246,.16), rgba(255,255,255,.055)); }
.visual-card:nth-child(3) { background: linear-gradient(160deg, rgba(236,72,153,.13), rgba(255,255,255,.055)); }
.visual-card:nth-child(4) { background: linear-gradient(160deg, rgba(245,158,11,.14), rgba(255,255,255,.055)); }

.project-slide:nth-child(1)::after { background: radial-gradient(circle, rgba(34,211,238,.35), transparent 72%); }
.project-slide:nth-child(2)::after { background: radial-gradient(circle, rgba(236,72,153,.30), transparent 72%); }
.project-slide:nth-child(3)::after { background: radial-gradient(circle, rgba(245,158,11,.30), transparent 72%); }
.project-slide:nth-child(4)::after { background: radial-gradient(circle, rgba(52,211,153,.30), transparent 72%); }

.tool-marquee span:nth-child(3n+1) { border-color: rgba(139,92,246,.34); }
.tool-marquee span:nth-child(3n+2) { border-color: rgba(34,211,238,.34); }
.tool-marquee span:nth-child(3n+3) { border-color: rgba(245,158,11,.30); }

@media (max-width: 1020px) {
  .delivery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: calc(100% - 28px);
  }

  .section-pad,
  .delivery-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hero.section-pad {
    padding-top: 54px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(2.72rem, 13.2vw, 4.55rem);
    letter-spacing: -.078em;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3.05rem);
    letter-spacing: -.065em;
  }

  .hero-lead,
  .text-stack,
  .section-heading p {
    font-size: .98rem;
  }

  .build-story,
  .mobile-process {
    display: none !important;
  }

  .delivery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .delivery-card {
    min-height: auto;
    padding: 20px;
    border-radius: 22px;
  }

  .delivery-card span {
    width: 42px;
    height: 42px;
    margin-bottom: 38px;
  }

  .delivery-card h3 {
    font-size: 1.14rem;
  }

  .site-header {
    max-width: calc(100% - 18px);
  }

  .hero-grid,
  .two-col {
    gap: 34px;
  }

  .hero-actions,
  .contact-actions {
    gap: 10px;
  }

  .project-topline {
    align-items: flex-start;
  }

  .project-topline a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .projects-carousel {
    grid-auto-columns: minmax(84vw, 84vw);
  }
}
