#hero-visual.device-showcase {
  aspect-ratio: 1.75;
  isolation: isolate;
  transform-style: preserve-3d;
  min-height: 0;
}
.device-aura {
  position: absolute;
  inset: 1% 8% 4%;
  z-index: -1;
  background: radial-gradient(ellipse at 55% 45%, #2997ff45, transparent 68%);
  filter: blur(35px);
}
.device-rig {
  position: absolute;
  inset: 4% 6%;
  perspective: 1300px;
  transform-style: preserve-3d;
}
.device-laptop {
  position: absolute;
  top: 5%;
  left: 8%;
  width: 84%;
  filter: drop-shadow(0 27px 40px #0007);
}
.device-lid {
  border-radius: 17px 17px 6px 6px;
  background: linear-gradient(130deg, #30323a, #101115 70%);
  border: 1px solid #545660;
  padding: 2% 2% 2.6%;
  box-shadow: inset 0 0 0 1px #111;
}
.device-screen {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0d1119;
  border-radius: 5px;
  position: relative;
}
.device-toolbar {
  height: 6.5%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 2%;
  background: #1e2028;
  color: #9da3b0;
  font-size: clamp(5px, 0.75vw, 10px);
  letter-spacing: 0.025em;
}
.device-toolbar i {
  width: clamp(4px, 0.6vw, 8px);
  height: clamp(4px, 0.6vw, 8px);
  border-radius: 50%;
  background: #ff5f57;
  flex-shrink: 0;
}
.device-toolbar i:nth-child(2) {
  background: #febc2e;
}
.device-toolbar i:nth-child(3) {
  background: #28c840;
}
.device-toolbar span {
  margin-left: 1%;
  opacity: 0.8;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.device-screen img {
  width: 100%;
  height: 93.5%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.device-base {
  width: 107%;
  margin-left: -3.5%;
  height: 12px;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(#444854, #16181c 78%);
  box-shadow: inset 0 1px 2px #ffffff33;
  position: relative;
}
.device-base::before {
  content: '';
  width: 16%;
  height: 4px;
  position: absolute;
  left: 42%;
  top: 0;
  background: #20242b;
  border-radius: 0 0 8px 8px;
}
.device-phone {
  position: absolute;
  bottom: 2%;
  right: 1%;
  width: 21%;
  aspect-ratio: 9/18.5;
  padding: 2.1%;
  border-radius: clamp(15px, 3vw, 31px);
  background: linear-gradient(145deg, #33363c, #09090b 72%);
  border: 2px solid #41454c;
  box-shadow: 0 25px 55px #000a;
  transform: translateZ(85px) rotate(5deg);
  overflow: hidden;
}
.device-camera {
  position: absolute;
  z-index: 2;
  top: 3.5%;
  left: 39%;
  width: 22%;
  height: 2.5%;
  border-radius: 99px;
  background: #13151a;
}
.device-phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(9px, 2.1vw, 19px);
  background: #efe9df;
}
.device-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.device-chip {
  position: absolute;
  left: 3%;
  bottom: 14%;
  transform: translateZ(60px) rotate(-4deg);
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 83%, transparent);
  padding: 12px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 18px #0004;
}
.device-chip strong {
  font-size: clamp(18px, 2.5vw, 34px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.device-chip span {
  font-size: clamp(8px, 1vw, 12px);
  color: var(--muted);
}
@media (max-width: 640px) {
  #hero-visual.device-showcase {
    aspect-ratio: 1.38;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .device-rig {
    inset: 12% 2%;
  }
  .device-laptop {
    top: 1%;
    left: 0;
    width: 95%;
  }
  .device-phone {
    right: 0%;
    bottom: -1%;
    width: 29%;
    padding: 3%;
    border-radius: 19px;
  }
  .device-chip {
    display: none;
  }
  .device-toolbar {
    gap: 3px;
  }
  .device-base {
    height: 8px;
  }
}

.case-card {
  color: var(--text);
  text-align: left;
  font: inherit;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  transform-style: flat;
  overflow: hidden;
}
.case-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, #2997ff 35%, var(--line));
}
.case-card:focus-visible {
  outline: 2px solid #2997ff;
  outline-offset: 3px;
}
.case-card .case-browser,
.case-card .case-browser-bar,
.case-card .case-browser-shot {
  display: block;
}
.case-card .case-browser-bar {
  display: flex;
}
.case-browser-shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3 !important;
  background: #13141a;
}
.case-browser-shot img.real-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-card:hover img.real-preview {
  transform: scale(1.035);
}
.case-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
  border-radius: 999px;
  padding: 5px 9px;
  margin-bottom: 11px;
}
.case-type-demo {
  color: #78cdb3;
  background: color-mix(in srgb, #24b88d 15%, transparent);
  border: 1px solid #24b88d33;
}
.case-type-concept {
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
}
.case-info {
  display: block;
}
.case-cat,
.case-name,
.case-hint {
  display: block;
}
.case-name {
  margin-top: 5px;
  font-weight: 600;
}
.case-browser-url {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.mini-site {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: var(--mini-bg);
  color: var(--mini-ink);
  container-type: inline-size;
  font-family: Inter, Arial, sans-serif;
}
.mini-nav {
  padding: 3.2cqw 5cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 2.2cqw;
  position: relative;
  z-index: 1;
}
.mini-nav strong {
  font-size: 2.9cqw;
  letter-spacing: -0.03em;
  line-height: 1;
}
.mini-nav span {
  font-size: 1.9cqw;
  opacity: 0.8;
}
.mini-nav b {
  font-size: 2.3cqw;
  margin-left: 1cqw;
}
.mini-hero {
  margin: 1cqw 4cqw 0;
  border-radius: 2.6cqw;
  background: linear-gradient(125deg, var(--mini-a), var(--mini-b));
  color: #fff;
  min-height: 37cqw;
  padding: 5cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5cqw;
  position: relative;
  overflow: hidden;
}
.mini-hero small {
  font-size: 1.7cqw;
  letter-spacing: 0.15em;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}
.mini-hero h4 {
  font-size: 8cqw;
  line-height: 0.97;
  letter-spacing: -0.055em;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.mini-hero em {
  font:
    600 2cqw/1 Inter,
    sans-serif;
  margin-top: 1.5cqw;
  background: #fff;
  color: var(--mini-b);
  padding: 2cqw 3cqw;
  border-radius: 99px;
  position: relative;
  z-index: 1;
}
.mini-hero-orb {
  position: absolute;
  right: -7%;
  top: -25%;
  width: 48%;
  aspect-ratio: 1;
  background: radial-gradient(circle, #ffffff3a, transparent 68%);
  border-radius: 50%;
  transform: rotate(20deg);
}
.mini-services {
  margin: 0 5cqw;
  padding: 3.3cqw 0;
  font-size: 2.2cqw;
}
.mini-services strong {
  display: block;
  font-size: 3.6cqw;
  letter-spacing: -0.03em;
  margin-bottom: 1.5cqw;
}
.mini-services > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid color-mix(in srgb, var(--mini-ink) 15%, transparent);
  padding: 1.1cqw 0;
}
.mini-services b {
  font-weight: 600;
}
.mini-tiles {
  display: flex;
  gap: 2cqw;
  margin: 0 5cqw 5cqw;
}
.mini-tiles i {
  background: linear-gradient(130deg, var(--mini-a), var(--mini-b));
  aspect-ratio: 1;
  flex: 1;
  border-radius: 2cqw;
  opacity: 0.9;
}
.mini-tiles i:nth-child(2) {
  opacity: 0.7;
}
.mini-tiles i:nth-child(3) {
  opacity: 0.45;
}
.case-modal-active {
  overflow: hidden !important;
}
.case-modal-panel {
  width: min(790px, 94vw);
  max-height: min(91vh, 910px);
  overflow: auto;
  overscroll-behavior: contain;
}
.case-modal-browser {
  margin: 18px 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.case-modal-browser .case-browser-bar {
  display: flex;
  padding: 10px 13px;
}
.case-modal-shot {
  margin: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: 16/9;
  background: #12151d;
  overflow: hidden;
  padding: 0 !important;
  display: block !important;
}
.case-modal-shot > img.real-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.case-modal-shot .mini-site {
  height: 100%;
}
.case-modal-close {
  z-index: 4;
  width: 38px;
  height: 38px;
  top: 24px;
  right: 24px;
  box-shadow: 0 4px 16px #0005;
}
.case-modal-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 12px;
}
.case-modal-concept {
  font-size: 13px;
  margin-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .case-modal-panel {
    max-height: 92dvh;
    border-radius: 20px;
  }
  .case-modal-browser {
    margin: 12px 12px 0;
  }
  .case-modal-body {
    padding: 18px 18px 24px;
  }
  .case-modal-shot {
    aspect-ratio: 4/3;
  }
  .case-modal-close {
    top: 18px;
    right: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .case-card,
  .case-browser-shot img.real-preview {
    transition: none !important;
  }
  .case-card:hover {
    transform: none !important;
  }
}

#whatsappCta[hidden] {
  display: none !important;
}

/* Descrições acessíveis dos projetos sem alterar a composição dos cartões. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
