:root {
  --bg: #07111d;
  --bg-soft: #0b1726;
  --bg-card: rgba(15, 27, 43, 0.78);
  --bg-card-strong: rgba(14, 29, 46, 0.95);

  --primary: #0ea5c6;
  --primary-2: #53d5f4;
  --text: #ecf6fb;
  --muted: #9cb3c5;
  --line: rgba(120, 171, 196, 0.14);

  --title-font: "Syne", sans-serif;
  --body-font: "DM Sans", sans-serif;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

/* =========================
   02. BASE E UTILITÁRIOS
========================= */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 198, 0.12), transparent 25%),
    radial-gradient(circle at left center, rgba(83, 213, 244, 0.08), transparent 20%),
    linear-gradient(180deg, #07111d, #081522 40%, #07111d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

.section-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary-2);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.cta-card h2,
.hero h1 {
  font-family: var(--title-font);
  line-height: 1.04;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p,
.hero-description,
.cta-card p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #0a6b89);
  box-shadow: 0 12px 36px rgba(14, 165, 198, 0.22);
}

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

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* =========================
   03. HEADER
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 29, 0.65);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-content {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--title-font);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-trigger {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(7, 17, 29, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  color: var(--primary-2);
  background: rgba(14, 165, 198, 0.08);
  border-color: rgba(83, 213, 244, 0.34);
}

.language-trigger:focus-visible,
.language-option:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 3px;
}

.language-icon,
.language-option-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.language-icon .fi,
.language-option-icon .fi {
  display: block;
  overflow: hidden;
  background-size: cover;
  border-radius: 2px;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(236, 246, 251, 0.18);
}

.language-icon .fi {
  width: 18px;
  height: 13px;
}

.language-option-icon .fi {
  width: 20px;
  height: 15px;
}

.language-current {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-modal {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: grid;
  min-width: 132px;
  gap: 4px;
  padding: 8px;
  background: rgba(7, 17, 29, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.language-modal[hidden] {
  display: none;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.language-option:hover,
.language-option.is-active {
  color: var(--primary-2);
  background: rgba(14, 165, 198, 0.12);
}

/* =========================
   04. HERO
========================= */
.hero {
  display: flex;
  min-height: calc(100vh - 76px);
  align-items: center;
  padding: 80px 0;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--primary-2);
  font-size: 0.82rem;
  background: rgba(14, 165, 198, 0.08);
  border: 1px solid rgba(83, 213, 244, 0.2);
  border-radius: 999px;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 5rem);
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
  color: var(--primary-2);
}

.hero h1 .hero-title-main {
  color: var(--text);
}

.hero-description {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: 1.08rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 16px;
}

.stat-card {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.stat-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 2rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   SERVICES
========================= */

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

.service-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(83, 213, 244, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(15, 31, 49, 0.96), rgba(10, 22, 36, 0.84));
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(83, 213, 244, 0.05);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(83, 213, 244, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.service-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(83, 213, 244, 0.18);
  border-radius: 16px;
  background: rgba(7, 17, 29, 0.55);
  font-size: 1.55rem;
}

.service-icon svg,
.work-method-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.8;
}

.service-content h3 {
  margin-bottom: 12px;
  font-family: var(--title-font);
  font-size: 1.25rem;
  line-height: 1.15;
}

.service-content p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.service-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(83, 213, 244, 0.16);
  border-radius: 999px;
  background: rgba(7, 17, 29, 0.55);
  color: var(--primary-2);
  font-size: 0.75rem;
  font-weight: 700;
}

/* =========================
   SERVICE CATALOG ACCORDION
========================= */

.service-catalog {
  margin: auto;
  max-width: 1000px;
  margin-top: 42px;
}

.service-catalog-heading {
  margin-bottom: 22px;
  text-align: center;
}

.service-catalog-heading h3 {
  font-family: var(--title-font);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.service-accordion {
  display: grid;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-color: rgba(83, 213, 244, 0.42) rgba(7, 17, 29, 0.42);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.service-accordion::-webkit-scrollbar {
  width: 8px;
}

.service-accordion::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(7, 17, 29, 0.42);
}

.service-accordion::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(83, 213, 244, 0.42);
}

.service-accordion-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(15, 31, 49, 0.94), rgba(10, 22, 36, 0.82));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.20);
}

.service-accordion-trigger {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.service-accordion-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(83, 213, 244, 0.22);
  border-radius: 12px;
  background: rgba(7, 17, 29, 0.62);
  color: var(--primary-2);
  font-weight: 800;
}

.service-accordion-title strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--title-font);
  font-size: 1rem;
}

.service-accordion-title small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.service-accordion-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 165, 198, 0.10);
  color: var(--primary-2);
  font-size: 1.3rem;
  font-weight: 700;
}

.service-accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.service-accordion-content.is-open {
  grid-template-rows: 1fr;
}

.service-accordion-tags {
  display: flex;
  min-height: 0;
  flex-wrap: wrap;
  gap: 8px;
  overflow: hidden;
  padding: 0 20px;
}

.service-accordion-content.is-open .service-accordion-tags {
  padding-bottom: 20px;
}

.service-accordion-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(83, 213, 244, 0.16);
  border-radius: 999px;
  background: rgba(7, 17, 29, 0.55);
  color: var(--primary-2);
  font-size: 0.78rem;
  font-weight: 700;
}

/* =========================
   05. SEÇÕES E CARDS GERAIS
========================= */
.feature-card,
.automation-card,
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 24px;
}

.feature-card h3,
.automation-card h3,
.project-front-content h3,
.project-card-back h3 {
  font-family: var(--title-font);
}

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

.feature-card p,
.automation-card p,
.project-card-back p {
  color: var(--muted);
}

.feature-card,
.automation-card,
.stat-card {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.feature-card:hover,
.automation-card:hover,
.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(15, 27, 43, 0.92);
  border-color: rgba(83, 213, 244, 0.32);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.card-tag,
.card-status,
.automation-badge,
.tech-tags span {
  width: fit-content;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.76rem;
  background: rgba(7, 17, 29, 0.6);
  border: 1px solid rgba(83, 213, 244, 0.15);
  border-radius: 999px;
}

.project-country-flags {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 8px;
}

.project-country-flags .fi {
  width: 20px;
  height: 15px;
  flex: 0 0 auto;
  overflow: hidden;
  background-size: cover;
  border-radius: 2px;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(236, 246, 251, 0.16);
}

/* =========================
   06. EXPERIÊNCIA CORPORATIVA
========================= */
.experience-section {
  padding: 78px 0;
}

.experience-panel {
  position: relative;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(83, 213, 244, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(15, 31, 49, 0.96), rgba(10, 22, 36, 0.84));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.experience-tags span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  color: rgba(236, 246, 251, 0.9);
  font-size: 0.86rem;
  background: rgba(7, 17, 29, 0.55);
  border: 1px solid rgba(83, 213, 244, 0.16);
  border-radius: 999px;
}

.experience-tags span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary-2);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(83, 213, 244, 0.72);
}

/* =========================
   07. CARROSSEL DE PROJETOS
========================= */
.projects-carousel,
.tech-carousel {
  position: relative;
}

.projects-carousel-stage,
.tech-carousel-stage {
  position: relative;
}

.cards-grid {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 2px 2px 28px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cards-grid::-webkit-scrollbar {
  display: none;
}

.projects-carousel-arrow,
.tech-carousel-arrow {
  position: absolute;
  top: calc(50% - 14px);
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--primary-2);
  background: rgba(7, 17, 29, 0.9);
  border: 1px solid rgba(83, 213, 244, 0.48);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(7, 17, 29, 0.5),
    0 8px 24px rgba(14, 165, 198, 0.22);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease;
}

.projects-carousel-arrow:hover,
.tech-carousel-arrow:hover {
  color: #fff;
  background: rgba(14, 165, 198, 0.94);
  border-color: var(--primary-2);
  transform: translateY(-50%) scale(1.06);
}

.projects-carousel-arrow:focus-visible,
.tech-carousel-arrow:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 4px;
}

.projects-carousel-arrow:disabled,
.projects-carousel-arrow.is-hidden,
.tech-carousel-arrow:disabled,
.tech-carousel-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.82);
}

.projects-carousel-arrow-prev,
.tech-carousel-arrow-prev {
  left: -24px;
}

.projects-carousel-arrow-next,
.tech-carousel-arrow-next {
  right: -24px;
}

.projects-carousel-arrow svg,
.tech-carousel-arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.projects-carousel-nav {
  display: flex;
  min-height: 10px;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.projects-carousel-indicator {
  width: 24px;
  height: 4px;
  background: rgba(14, 165, 198, 0.3);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    width 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.projects-carousel-indicator:hover {
  background: rgba(83, 213, 244, 0.64);
}

.projects-carousel-indicator.is-active {
  width: 36px;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(14, 165, 198, 0.4);
}

/* =========================
   08. CARDS DE PROJETOS + FLIP
========================= */
.project-card {
  flex: 0 0 clamp(400px, calc((100% - 22px) / 2.75), 430px);
  min-height: 440px;
  perspective: 1200px;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  scroll-snap-align: start;
}

.project-card:last-child {
  scroll-snap-align: end;
}

.project-card-inner {
  position: relative;
  width: 100%;
  height: 440px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  will-change: transform;
}

.project-card-inner.is-flipped {
  transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg-card-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.project-card:hover .project-card-front,
.project-card:hover .project-card-back {
  border-color: rgba(83, 213, 244, 0.35);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(83, 213, 244, 0.08);
}

.project-card-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(7, 17, 29, 0.88), rgba(7, 17, 29, 0.98));
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 213, 244, 0.52) rgba(7, 17, 29, 0.42);
  scrollbar-gutter: stable;
}

.project-visual-stage {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  padding: 18px;
  overflow: hidden;
  background: #092234;
  border-radius: 16px;
}

.project-device {
  width: 78%;
  max-width: 260px;
  padding: 10px 10px 12px;
  background: #101418;
  border-radius: 14px;
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(255, 255, 255, 0.04);
  transition: transform 0.35s ease;
}

.project-card:hover .project-device {
  transform: translateY(-4px) scale(1.02);
}

.project-device-topbar {
  width: 38%;
  height: 6px;
  margin: 0 auto 10px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.project-device-screen {
  display: flex;
  aspect-ratio: 16 / 10;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
}

.project-device-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-device-placeholder .project-device-screen {
  background:
    radial-gradient(circle at 18% 22%, rgba(83, 213, 244, 0.16), transparent 28%),
    linear-gradient(145deg, #0b2334, #07111d 52%, #092234);
}

.project-placeholder-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--primary-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(7, 17, 29, 0.45);
  border: 1px solid rgba(83, 213, 244, 0.18);
  border-radius: 8px;
}

.project-placeholder-content svg {
  width: 18px;
  height: 18px;
}

.project-overlay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.project-overlay .card-tag {
  min-width: 0;
}

.project-overlay .card-status {
  flex: 0 0 auto;
}

.project-status-group {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  justify-content: flex-end;
}

.project-back-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.project-front-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-front-content h3 {
  color: var(--primary);
  min-height: 72px;
  font-size: 1.2rem;
  transition: color 0.25s ease;
}

.project-card:hover .project-front-content h3 {
  color: var(--primary-2);
}

.project-front-content p {
  max-width: 90%;
  color: rgba(236, 246, 251, 0.88);
}

.flip-btn {
  align-self: flex-start;
  padding: 6px 10px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  background: var(--primary);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.flip-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-2);
  box-shadow: 0 10px 28px rgba(83, 213, 244, 0.24);
}

.project-card-back {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(83, 213, 244, 0.08), transparent 32%),
    var(--bg-card-strong);
  transform: rotateY(180deg);
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 213, 244, 0.52) rgba(7, 17, 29, 0.42);
  scrollbar-gutter: stable;
}

.project-card-front::-webkit-scrollbar,
.project-card-back::-webkit-scrollbar {
  width: 7px;
}

.project-card-front::-webkit-scrollbar-track,
.project-card-back::-webkit-scrollbar-track {
  background: rgba(7, 17, 29, 0.42);
}

.project-card-front::-webkit-scrollbar-thumb,
.project-card-back::-webkit-scrollbar-thumb {
  background: rgba(83, 213, 244, 0.52);
  border-radius: 999px;
}

.project-back-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-details h4 {
  margin: 18px 0 10px;
  font-size: 0.95rem;
}

.project-details ul {
  padding-left: 18px;
  color: var(--text);
}

.project-details li + li {
  margin-top: 6px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tech-tags span {
  color: var(--primary-2);
  font-size: 0.82rem;
}

.back-btn {
  margin-top: 20px;
  background: transparent;
  border: 1px solid var(--line);
}

.back-btn:hover {
  background: rgba(83, 213, 244, 0.08);
}

/* =========================
   09. AUTOMAÇÕES
========================= */
.automation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.automation-card {
  display: flex;
  min-height: 184px;
  flex-direction: column;
  padding: 22px;
}

.automation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.automation-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

/* =========================
   10. TECNOLOGIAS POR CATEGORIA
========================= */
.tech-groups-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 0 24px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 213, 244, 0.54) rgba(7, 17, 29, 0.52);
}

.tech-groups-viewport::-webkit-scrollbar {
  height: 7px;
}

.tech-groups-viewport::-webkit-scrollbar-track {
  background: rgba(7, 17, 29, 0.52);
  border-radius: 999px;
}

.tech-groups-viewport::-webkit-scrollbar-thumb {
  background: rgba(83, 213, 244, 0.54);
  border-radius: 999px;
}

.tech-groups-viewport:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 8px;
}

.tech-groups {
  display: grid;
  grid-auto-columns: clamp(310px, 28vw, 336px);
  grid-auto-flow: column;
  gap: 16px;
  width: max-content;
  min-width: 100%;
}

.tech-group-card {
  display: flex;
  min-height: 248px;
  flex-direction: column;
  padding: 20px;
  background: linear-gradient(145deg, rgba(15, 31, 49, 0.96), rgba(10, 22, 36, 0.84));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.tech-group-card:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 213, 244, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.tech-group-header {
  display: grid;
  min-height: 70px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.tech-group-header h3 {
  font-family: var(--title-font);
  font-size: 1.08rem;
}

.tech-group-header span {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.tech-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.tech-badge {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  background: rgba(7, 17, 29, 0.55);
  border: 1px solid rgba(83, 213, 244, 0.16);
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.tech-badge:hover {
  transform: translateY(-2px);
  background: rgba(14, 165, 198, 0.08);
  border-color: rgba(83, 213, 244, 0.35);
}

.tech-badge i {
  flex: 0 0 auto;
  font-size: 1.08rem;
}

.tech-symbol {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--primary-2);
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(14, 165, 198, 0.14);
  border: 1px solid rgba(83, 213, 244, 0.3);
  border-radius: 6px;
}

.tech-badge > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================
   11. CYBER SECURITY
========================= */
.security-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  margin-top: 38px;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(83, 213, 244, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(15, 31, 49, 0.98), rgba(9, 21, 35, 0.9));
  border: 1px solid rgba(83, 213, 244, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.security-panel::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(83, 213, 244, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(83, 213, 244, 0.025),
    0 0 0 68px rgba(83, 213, 244, 0.015);
  pointer-events: none;
}

.security-panel-content,
.security-badges {
  position: relative;
  z-index: 1;
}

.security-panel-content .section-label {
  margin-bottom: 10px;
}

.security-panel h3 {
  margin-bottom: 12px;
  font-family: var(--title-font);
  font-size: 1.62rem;
}

.security-panel p {
  color: var(--muted);
}

.security-badges {
  display: flex;
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  color: rgba(236, 246, 251, 0.92);
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(7, 17, 29, 0.58);
  border: 1px solid rgba(83, 213, 244, 0.17);
  border-radius: 999px;
}

.security-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-2);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(83, 213, 244, 0.72);
}

/* =========================
   12. WORK METHODS
========================= */

.work-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.work-method-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top right, rgba(83, 213, 244, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(15, 31, 49, 0.96), rgba(10, 22, 36, 0.84));
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.work-method-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(83, 213, 244, 0.06);
  pointer-events: none;
}

.work-method-card:hover {
  transform: translateY(-6px);
  border-color: rgba(83, 213, 244, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.work-method-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(83, 213, 244, 0.18);
  border-radius: 14px;
  background: rgba(7, 17, 29, 0.55);
  font-size: 1.45rem;
}

.work-method-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-method-card h3 {
  margin-bottom: 10px;
  font-family: var(--title-font);
  font-size: 1.35rem;
}

.work-method-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* =========================
   DELIVERY CYCLE
========================= */

.delivery-cycle {
  margin-top: 42px;
  padding: 30px;
  border: 1px solid rgba(83, 213, 244, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(83, 213, 244, 0.10), transparent 34%),
    linear-gradient(145deg, rgba(15, 31, 49, 0.96), rgba(10, 22, 36, 0.84));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(14, 165, 198, 0.08);
}

.delivery-cycle:hover{
  transform: translateY(-4px);
  border-color: rgba(83, 213, 244, 0.34);
}

.delivery-cycle-heading {
  text-align: center;
  margin-bottom: 28px;
}

.delivery-cycle-heading h3 {
  font-family: var(--title-font);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.delivery-cycle-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
  position: relative;
}

.delivery-cycle-track::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(83, 213, 244, 0.45),
    transparent
  );
  z-index: 0;
}

.delivery-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.delivery-step-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #03111b;
  font-weight: 800;
  box-shadow:
    0 0 24px rgba(83, 213, 244, 0.38),
    0 0 0 8px rgba(7, 17, 29, 0.78);
}

.delivery-step-number:hover{
  transform: translateY(-2px);
  border-color: rgba(83, 213, 244, 0.35);
}

.delivery-step h4 {
  margin-bottom: 8px;
  font-family: var(--title-font);
  font-size: 0.95rem;
}

.delivery-step p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* =========================
   13. EQUIPE
========================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.team-card {
  position: relative;
  min-height: 218px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(83, 213, 244, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(15, 31, 49, 0.96), rgba(10, 22, 36, 0.84));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.team-card::before {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -56px;
  width: 128px;
  height: 128px;
  background: rgba(83, 213, 244, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(83, 213, 244, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.team-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.team-card-code {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--primary-2);
  font-family: var(--title-font);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(7, 17, 29, 0.55);
  border: 1px solid rgba(83, 213, 244, 0.2);
  border-radius: 12px;
}

.team-card-type {
  color: var(--primary-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.team-card h3 {
  margin-bottom: 10px;
  font-family: var(--title-font);
  font-size: 1.22rem;
}

.team-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================
   14. CTA
========================= */
.cta-section {
  padding-top: 80px;
  padding-bottom: 110px;
}

.cta-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 42px;
  text-align: center;
}

.cta-card h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.cta-card p {
  margin: 0 auto 24px;
}

/* =========================
   15. ANIMAÇÕES
========================= */
.reveal-item {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    filter 0.7s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.hero-badge.reveal-item {
  transform: translateY(14px);
}

.hero h1.reveal-item {
  transform: translateY(24px) scale(0.98);
}

.hero h1.reveal-item.is-visible {
  transform: translateY(0) scale(1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.contact-info h4{
  color: var(--primary-2);
  font-size: 20px;
  margin-bottom: 8px;
}

/* =========================
   16. RESPONSIVO
========================= */
@media (max-width: 1240px) {
  .projects-carousel-arrow-prev,
  .tech-carousel-arrow-prev {
    left: 10px;
  }

  .projects-carousel-arrow-next,
  .tech-carousel-arrow-next {
    right: 10px;
  }
}

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

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

  .project-card {
    flex-basis: calc((100% - 22px) / 2);
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 700px;
  }

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

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

  .delivery-cycle-track::before {
    display: none;
  }

  .security-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .header-content {
    gap: 12px;
  }

  .header-actions {
    margin-left: auto;
  }

  .section {
    padding: 72px 0;
  }

  .features-grid,
  .automation-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

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

  .service-accordion-trigger {
    grid-template-columns: 1fr auto;
  }

  .service-accordion-number {
    display: none;
  }

  .service-accordion-title small {
    display: none;
  }

  .project-card {
    flex-basis: 100%;
    min-height: 460px;
  }

  .project-card-inner {
    height: 460px;
  }

  .projects-carousel-arrow,
  .tech-carousel-arrow {
    width: 42px;
    height: 42px;
  }

  .tech-groups {
    grid-auto-columns: 310px;
  }

  .work-methods-grid {
    grid-template-columns: 1fr;
  }

  .delivery-cycle {
    padding: 22px;
  }

  .delivery-cycle-track {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .delivery-step {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
    align-items: start;
  }

  .delivery-step-number {
    margin: 0;
  }

  .delivery-step h4 {
    margin-bottom: 4px;
  }

  .security-panel {
    gap: 20px;
    padding: 22px;
  }

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

  .cta-card {
    padding: 28px;
  }
  
}

@media (max-width: 520px) {
  .brand {
    gap: 9px;
  }

  .brand span {
    display: none;
  }

  .language-trigger {
    width: 40px;
    justify-content: center;
    padding: 0;
  }

  .language-current {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
