:root {
  --bg: #0e0e13;
  --surface: rgba(255, 255, 255, 0.05);
  --primary: #8ff5ff;
  --on-surface: #f9f5fd;
  --on-surface-variant: #acaba1;
  --border: rgba(255, 255, 255, 0.05);
  --font-headline: "Space Grotesk", sans-serif;
  --font-body: Inter, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--on-surface);
  font-family: var(--font-body);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.container {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
}

#bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(143, 245, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 245, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

#glow {
  position: fixed;
  top: -10%;
  left: 50%;
  translate: -50% 0;
  width: min(900px, 100vw);
  height: 520px;
  z-index: -1;
  background: radial-gradient(circle, rgba(143, 245, 255, 0.12), transparent 70%);
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(143, 245, 255, 0.2);
  background: linear-gradient(90deg, #0b6d77 0%, #0a8fa0 42%, #0b6d77 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding-block: 0.75rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.25rem;
  min-width: 0;
}

.nav-link {
  font-family: var(--font-headline);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.brand img {
  height: 2rem;
  width: auto;
  opacity: 0.95;
}

@media (max-width: 640px) {
  .header-left .brand {
    display: none;
  }
}

.cta-link {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.7rem 1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cta-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 2rem;
  max-width: 42rem;
}

.search-field {
  position: relative;
  flex: 1 1 16rem;
  display: flex;
  align-items: center;
  min-width: 0;
}

.search-field svg {
  position: absolute;
  left: 0.85rem;
  width: 1.1rem;
  height: 1.1rem;
  color: rgba(143, 245, 255, 0.85);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(143, 245, 255, 0.28);
  background: rgba(14, 14, 19, 0.72);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0.75rem 2.4rem 0.75rem 2.6rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field input::placeholder {
  color: rgba(172, 170, 177, 0.75);
}

.search-field input:focus {
  border-color: rgba(143, 245, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(143, 245, 255, 0.12);
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  position: absolute;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: rgba(249, 245, 253, 0.7);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.search-clear:hover {
  color: var(--primary);
}

.search-meta {
  margin: 0;
  color: rgba(143, 245, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.search-empty {
  color: var(--on-surface-variant);
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

.testimonial-card[hidden] {
  display: none !important;
}

.hero {
  padding: 6.5rem 0 4rem;
  text-align: center;
}

.hero-inner {
  max-width: 52rem;
  animation: fade-up 0.8s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1.5rem;
  text-shadow: 0 0 40px rgba(143, 245, 255, 0.18);
}

.hero-title span {
  color: var(--primary);
}

.hero-lead {
  color: var(--on-surface-variant);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.6;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.hero-meta span::before {
  content: "✓";
  margin-right: 0.4rem;
  opacity: 0.85;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(249, 245, 253, 0.45);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fade-up 1s ease 0.25s both;
}

.scroll-hint svg {
  width: 1.25rem;
  height: 1.25rem;
  animation: bounce 1.4s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.testimonials {
  padding: 4rem 0 6rem;
  background: rgba(0, 0, 0, 0.22);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.section-head .rule {
  width: 6rem;
  height: 1px;
  background: var(--primary);
  margin-bottom: 1.25rem;
}

.section-head p {
  color: var(--on-surface-variant);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.testimonial-card {
  animation: fade-up 0.7s ease both;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.05s;
}
.testimonial-card:nth-child(3) {
  animation-delay: 0.1s;
}
.testimonial-card:nth-child(4) {
  animation-delay: 0.15s;
}

.bg-white\/5 {
  background: var(--surface);
}
.border {
  border-width: 1px;
  border-style: solid;
}
.border-white\/5 {
  border-color: var(--border);
}
.hover\:border-primary\/25:hover {
  border-color: rgba(143, 245, 255, 0.25);
}
.hover\:bg-white\/8:hover {
  background: rgba(255, 255, 255, 0.08);
}
.transition-all {
  transition: all 0.2s ease;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-wrap {
  flex-wrap: wrap;
}
.overflow-hidden {
  overflow: hidden;
}
.shrink-0 {
  flex-shrink: 0;
}
.bg-black\/50 {
  background: rgba(0, 0, 0, 0.5);
}
.border-b {
  border-bottom-width: 1px;
}
.justify-center {
  justify-content: center;
}
.items-center {
  align-items: center;
}
.p-3 {
  padding: 0.75rem;
}
.p-8 {
  padding: 2rem;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.inset-0 {
  inset: 0;
}
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.max-w-\[260px\] {
  max-width: 260px;
}
.aspect-\[9\/16\] {
  aspect-ratio: 9 / 16;
}
.rounded-sm {
  border-radius: 0.125rem;
}
.object-cover {
  object-fit: cover;
}
.bg-black\/30 {
  background: rgba(0, 0, 0, 0.3);
}
.group:hover .group-hover\:bg-black\/40 {
  background: rgba(0, 0, 0, 0.4);
}
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}
.transition-colors {
  transition: background-color 0.2s ease, color 0.2s ease;
}
.transition-transform {
  transition: transform 0.3s ease;
}
.duration-300 {
  transition-duration: 0.3s;
}
.inline-flex {
  display: inline-flex;
}
.h-14 {
  height: 3.5rem;
}
.w-14 {
  width: 3.5rem;
}
.h-8 {
  height: 2rem;
}
.w-8 {
  width: 2rem;
}
.rounded-full {
  border-radius: 9999px;
}
.border-primary\/40 {
  border-color: rgba(143, 245, 255, 0.4);
}
.bg-primary\/20 {
  background: rgba(143, 245, 255, 0.2);
}
.text-primary {
  color: var(--primary);
}
.text-on-surface {
  color: var(--on-surface);
}
.text-on-surface-variant {
  color: var(--on-surface-variant);
}
.font-headline {
  font-family: var(--font-headline);
}
.font-label {
  font-family: var(--font-body);
}
.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 1.25;
}
.text-sm {
  font-size: 0.875rem;
}
.text-xs {
  font-size: 0.75rem;
}
.text-\[10px\] {
  font-size: 10px;
}
.uppercase {
  text-transform: uppercase;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-\[0\.18em\] {
  letter-spacing: 0.18em;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-snug {
  line-height: 1.375;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.gap-2 {
  gap: 0.5rem;
}
.border-primary\/30 {
  border-color: rgba(143, 245, 255, 0.3);
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .sm\:p-10 {
    padding: 2.5rem;
  }
  .md\:text-base {
    font-size: 1rem;
  }
}

.cta-band {
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid rgba(143, 245, 255, 0.12);
}

.cta-inner h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.cta-inner p {
  color: var(--on-surface-variant);
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #05363a;
  background: var(--primary);
  padding: 1.1rem 2rem;
  box-shadow: 0 0 40px rgba(143, 245, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: cta-pulse 2.8s ease-in-out infinite;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 55px rgba(143, 245, 255, 0.4);
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 28px rgba(143, 245, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 48px rgba(143, 245, 255, 0.45);
  }
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.75rem 0 2.5rem;
}

.footer-inner {
  text-align: center;
  color: rgba(172, 170, 177, 0.75);
  font-size: 0.85rem;
}

.footer-inner p {
  margin: 0;
}

/* ── Referências ── */
.hero-compact {
  padding: 4.5rem 0 3rem;
}

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
}

.jump-nav a {
  font-family: var(--font-headline);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(143, 245, 255, 0.3);
  padding: 0.65rem 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.jump-nav a:hover {
  background: rgba(143, 245, 255, 0.1);
  border-color: rgba(143, 245, 255, 0.6);
}

.ref-section {
  padding: 4rem 0;
}

.ref-section-alt {
  background: rgba(0, 0, 0, 0.22);
}

.ref-placeholder {
  color: var(--on-surface-variant);
  font-size: 1rem;
  margin: 0;
  padding: 1.5rem;
  border: 1px dashed rgba(143, 245, 255, 0.25);
  max-width: 42rem;
}

.ref-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .ref-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.ref-shot {
  margin: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.ref-shot:hover {
  border-color: rgba(143, 245, 255, 0.28);
}

.ref-shot button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
}

.ref-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.ref-shot:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

.ref-shot figcaption {
  padding: 0.9rem 1rem 1.1rem;
  font-size: 0.9rem;
  color: var(--on-surface-variant);
}

.ref-link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .ref-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.ref-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.4rem 1.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ref-link-card:hover {
  border-color: rgba(143, 245, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.ref-link-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.ref-link-card strong {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.25;
}

.ref-link-desc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--on-surface-variant);
}

.ref-link-cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.lightbox {
  border: 0;
  padding: 0;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  background: transparent;
  color: inherit;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid rgba(143, 245, 255, 0.2);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(14, 14, 19, 0.85);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 50;
}

.lightbox-close:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Carrossel de sistemas ── */
.sys-carousel {
  outline: none;
}

.sys-carousel:focus-visible {
  box-shadow: 0 0 0 2px rgba(143, 245, 255, 0.45);
}

.sys-carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sys-carousel-status {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.sys-carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.sys-carousel-btn {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(143, 245, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sys-carousel-btn:hover {
  background: rgba(143, 245, 255, 0.12);
  border-color: rgba(143, 245, 255, 0.65);
}

.sys-carousel-viewport {
  overflow: hidden;
}

.sys-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.sys-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  gap: 1.75rem;
  padding: 0.15rem 0.1rem 0.5rem;
}

@media (min-width: 960px) {
  .sys-slide {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}

.sys-slide-copy {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sys-slide-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.sys-slide-copy h3 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--on-surface);
}

.sys-slide-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
}

.sys-slide-copy code {
  font-size: 0.88em;
  color: var(--primary);
}

.sys-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sys-shots--single {
  grid-template-columns: 1fr;
}

.sys-shots--single .sys-shot img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top center;
}

.sys-shot {
  margin: 0;
}

.sys-shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(143, 245, 255, 0.06), transparent 55%),
    rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(143, 245, 255, 0.28);
  color: var(--on-surface-variant);
  text-align: center;
  padding: 0.75rem;
}

.sys-shot-placeholder span {
  font-family: var(--font-headline);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

.sys-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.sys-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sys-carousel-dot.is-active,
.sys-carousel-dot[aria-selected="true"] {
  background: var(--primary);
  transform: scale(1.25);
}

.sys-carousel-dot:hover {
  background: rgba(143, 245, 255, 0.7);
}
