:root {
  color-scheme: dark;
  --bg: #01030b;
  --bg-soft: #040a17;
  --panel: rgba(6, 10, 22, 0.9);
  --panel-strong: rgba(9, 13, 28, 0.95);
  --border: rgba(80, 129, 255, 0.35);
  --border-strong: rgba(129, 196, 255, 0.65);
  --text: #f3f6ff;
  --muted: #9cb0d7;
  --muted-strong: #c7d3ff;
  --primary: #5ab0ff;
  --primary-strong: #82f7ff;
  --accent: #3ef0c5;
  --shadow: 0 25px 90px rgba(0, 0, 0, 0.65);
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* evita qualquer borda/scroll lateral */
}

a {
  color: var(--primary);
  text-decoration: none;
}

ul { list-style: none; }

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

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 24px; /* margens apenas para o conteúdo */
}

.container.narrow {
  max-width: 760px;
}

.section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.section.hero {
  padding: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.lead {
  font-size: 1.3rem;
  color: var(--muted-strong);
  max-width: 640px;
}

.lead-sub {
  color: var(--muted);
  max-width: 620px;
  margin-top: 12px;
}

.cyber-background {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: radial-gradient(circle at 25% 20%, rgba(52, 110, 255, 0.35), transparent 45%),
              radial-gradient(circle at 85% 0%, rgba(70, 255, 248, 0.2), transparent 40%),
              #01030b;
}

.cyber-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
}

.cyber-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(1, 3, 11, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(90, 176, 255, 0.2);
}

.cyber-header.scrolled {
  background: rgba(1, 3, 11, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding-inline: 16px; /* leve respiro apenas no header */
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-height: 48px;

}

.brand-logo {
  height: auto;
  width: 300px;
  display: block;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--muted-strong);
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:is(:hover, .active)::after {
  width: 100%;
}

.nav-cta { display: flex; gap: 12px; }

.btn {
  border-radius: 999px;
  padding: 12px 26px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: #05080f;
  box-shadow: 0 10px 30px rgba(90, 176, 255, 0.35);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--muted-strong);
}

.btn.outline {
  border-color: var(--border-strong);
  color: var(--primary-strong);
}

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

.mobile-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
}

.section-media {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(56, 122, 255, 0.4), transparent 50%),
              linear-gradient(160deg, rgba(2, 5, 12, 0.95), rgba(2, 6, 18, 0.85));
}

/* Remove gradients behind the hero video to evitar halos nas laterais */
.section-media .bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;      /* cobre sem distorcer */
  object-position: center;
  pointer-events: none;
}

.section-media[data-video="ear"] {
  background: radial-gradient(circle at 70% 30%, rgba(62, 240, 197, 0.35), transparent 40%),
              radial-gradient(circle at 30% 70%, rgba(82, 176, 255, 0.4), transparent 45%),
              linear-gradient(170deg, rgba(1, 3, 10, 0.95), rgba(4, 8, 20, 0.85));
}

.section-media[data-video="vision"] {
  background: radial-gradient(circle at 40% 20%, rgba(130, 247, 255, 0.4), transparent 40%),
              radial-gradient(circle at 60% 75%, rgba(87, 118, 255, 0.35), transparent 45%),
              linear-gradient(140deg, rgba(2, 4, 12, 0.95), rgba(5, 10, 25, 0.85));
}

.section-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 3, 10, 0.7), rgba(1, 3, 10, 0.7));
}

.blur-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mix-blend-mode: screen;
  opacity: 0.4;
}

.media-note {
  position: absolute;
  bottom: 32px;
  left: 32px;
  max-width: 320px;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: rgba(2, 6, 18, 0.6);
  color: var(--muted-strong);
  font-size: 0.9rem;
  z-index: 2;
}

.media-note .tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  min-width: 100vw;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 14, var(--hero-overlay-opacity, 0.7));
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 160px 24px 80px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.65);
}

.hero-overlay {
  background: transparent;
  border-radius: 0;
  padding: 32px 24px;
}

.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-copy .lead, .hero-copy .lead-sub { margin-left: auto; margin-right: auto; }

.hero-copy h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 16px;
  color: #f8fbff;
  text-shadow: 0 0 25px rgba(0, 0, 0, 0.8), 0 5px 20px rgba(0, 0, 0, 0.6);
}

.hero-copy .eyebrow,
.hero-copy .lead-sub {
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.75);
}

.hero-copy .lead-sub {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: #fbfcff;
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 16px;
  color: #f8fbff;
  text-shadow: 0 0 25px rgba(0, 0, 0, 0.8), 0 5px 20px rgba(0, 0, 0, 0.6);
}

.section-lead {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: #fbfcff;
  margin-top: 12px;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.75);
}

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .hero-copy .lead-sub {
    font-size: clamp(1rem, 3.8vw, 1.2rem);
  }

  .section-title {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .section-lead {
    font-size: clamp(1rem, 3.8vw, 1.2rem);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
  justify-content: center;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  position: relative;
  z-index: 2;
}

.data-fusion {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.data-fusion .container {
  position: relative;
  z-index: 2;
}

.data-fusion-grid {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(320px, 1fr);
  gap: 48px;
  align-items: center;
}

.data-fusion-copy {
  max-width: 420px;
  background: transparent;
}

.data-fusion-visual {
  justify-self: end;
  max-width: 660px;
  width: 100%;
}

.data-fusion-visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.55));
}

.data-fusion-video {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  pointer-events: none;
  overflow: hidden;
}

.data-fusion-video-media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.data-fusion-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 3, 11, 0.7);
}

@media (max-width: 900px) {
  .data-fusion {
    min-height: auto;
    padding: 100px 0;
  }

  .data-fusion-video {
    opacity: 0.35;
  }

  .data-fusion-copy {
    max-width: none;
  }

  .data-fusion-grid {
    grid-template-columns: 1fr;
  }

  .data-fusion-visual {
    justify-self: center;
    max-width: min(480px, 100%);
  }
}

.copy-block h2 {
  margin-bottom: 16px;
}

.copy-block p {
  margin-top: 12px;
}

.trust-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 12px;
  margin: 0 auto;
  width: 100vw; /* iguala à viewport para sumir com qualquer borda */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.trust-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}

.trust-label::before,
.trust-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.trust-carousel {
  overflow: hidden;
  margin-top: 12px;
}

.carousel-track {
  display: flex;
  gap: 48px;
  animation: logo-marquee 28s linear infinite;
}

.logo-item {
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-strong);
  white-space: nowrap;
}

@keyframes logo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .trust-bar {
    padding: 14px 0 8px;
  }

  .trust-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .trust-carousel::-webkit-scrollbar {
    display: none;
  }

  .carousel-track {
    animation: none;
    min-width: max-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
  }
}

.insights {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
}

.insights .container {
  width: 100%;
  padding: 0 24px;
}

.insights .section-heading {
  max-width: 700px;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  background: transparent;
  margin-bottom: 0;
  padding-right: 100px;
}

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

.legal-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 120px;
}

.legal-content {
  background: rgba(2, 4, 12, 0.92);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
}

.legal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(5, 9, 22, 0.85);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.legal-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.legal-card p {
  color: var(--muted-strong);
}

.legal-updated {
  margin-top: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.legal-contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  background: var(--panel-strong);
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.section-heading p:not(.section-lead) {
  color: var(--muted-strong);
}

.section-heading {
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
}

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

.section-heading.centered p {
  margin: 0 auto;
}

@media (max-width: 900px) {
  .insights {
    min-height: auto;
    padding: 100px 0;
  }

  .insights .section-heading,
  .insights .section-heading.align-right {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    padding-right: 0;
  }

  .section-heading.align-right {
    margin-left: 0;
  }

  .legal-hero {
    padding: 120px 0 80px;
  }

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

  .legal-contact-card {
    padding: 36px;
  }
}

.cta {
  background: linear-gradient(120deg, rgba(68, 123, 255, 0.2), rgba(12, 19, 36, 0.95));
}

.cta-card {
  position: relative;
  z-index: 2;
  border-radius: 40px;
  border: 1px solid var(--border);
  padding: 48px;
  background: var(--panel-strong);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

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

.footer {
  background: #01030b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 2;
  align-items: flex-start;
}

.footer ul li { margin-bottom: 8px; }

.footer ul a,
.footer p {
  color: var(--muted-strong);
}

.link { color: var(--primary-strong); }

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.footer-column:last-child {
  align-items: flex-end;
  text-align: right;
}

.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

.footer-column:last-child .footer-contact-row {
  justify-content: flex-end;
}

.footer-contact-row span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-meta {
  margin-top: 15px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer-language-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-language-switcher select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--text);
  font-size: 1.2rem;
}

.footer-language-switcher select:focus {
  outline: 2px solid var(--primary);
}

@media (max-width: 980px) {
  .nav-links,
  .nav-cta { display: none; }

  .mobile-toggle { display: flex; }

  .cyber-header.open .nav-group {
    position: absolute;
    top: 100%;
    right: 24px;
    left: 24px;
    flex-direction: column;
    background: rgba(2, 4, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 24px;
    gap: 24px;
  }

  .cyber-header.open .nav-links,
  .cyber-header.open .nav-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .cyber-header.open .nav-links a { padding: 8px 0; }

  .hero { padding-top: 140px; }
}

@media (max-width: 640px) {
  .section { padding: 90px 0; }
  .hero-logs { padding: 20px; }
  .cta-card { padding: 32px; }
  .footer-meta { flex-direction: column; gap: 8px; }
  .footer-column:last-child {
    align-items: flex-start;
    text-align: left;
  }
  .footer-column:last-child .footer-contact-row {
    justify-content: flex-start;
  }
}
