:root {
  --bg: #050915;
  --bg-alt: #0b1022;
  --card: rgba(255, 255, 255, 0.04);
  --text: #e8ecf8;
  --muted: #9fb2d7;
  --accent: #62d0ff;
  --accent-2: #7c5bff;
  --accent-3: #2fffe4;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(circle at 20% 20%, rgba(124, 91, 255, 0.14), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(98, 208, 255, 0.18), transparent 32%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6vw;
  backdrop-filter: blur(12px);
  background: rgba(5, 9, 21, 0.8);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-link {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-logo {
  height: 32px;
}

.contact-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.contact-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-logo-large {
  height: 280px;
  width: auto;
  object-fit: contain;
}

.contact-form-section {
  max-width: 500px;
}

.contact-form-section .section__header {
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-logo-large {
    height: 200px;
  }
}

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

.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 18px;
}

.hero-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: blur(8px);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 48px;
  padding: 80px 6vw 40px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  display: none;
}

.hero__content h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 10px 0 16px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.lead {
  color: var(--muted);
  max-width: 640px;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin: 22px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0d1a;
  box-shadow: 0 15px 40px rgba(98, 208, 255, 0.35);
}

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

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

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.hero__visual {
  position: relative;
  min-height: 320px;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.orb {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(47, 255, 228, 0.4), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(98, 208, 255, 0.35), transparent 50%),
    linear-gradient(135deg, rgba(124, 91, 255, 0.35), rgba(5, 9, 21, 0.8));
  border-radius: 24px;
  filter: blur(8px);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card p {
  margin: 0 0 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.section {
  padding: 64px 6vw;
  background: transparent;
}

.section.alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.section.alt::before {
  content: '';
  position: absolute;
  inset: 0;
  filter: blur(10px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

#que.section.alt::before {
  background: url('../img/servidores.png') center / cover;
}

#clientes.section.alt::before {
  background: url('../img/codigo_02.png') center / cover;
  filter: blur(6px);
  opacity: 0.3;
}

.section.alt > * {
  position: relative;
  z-index: 1;
}

.section__header {
  max-width: 760px;
  margin-bottom: 32px;
}

.section h2 {
  margin: 8px 0 12px;
  font-size: clamp(26px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--accent);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.section-toggle:hover {
  background: rgba(98, 208, 255, 0.1);
  transform: rotate(90deg);
}

.section-toggle.open {
  transform: rotate(45deg);
}

.section-toggle.open:hover {
  transform: rotate(45deg) scale(1.1);
}

.section__content {
  overflow: hidden;
  transition: all 0.3s ease;
}

.section__content.hidden {
  display: none;
}

.text {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-outline {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(98, 208, 255, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.logo-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 24px 0;
}

.logo-track {
  display: flex;
  gap: 48px;
  animation: scroll 40s linear infinite;
  width: fit-content;
}

.logo-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  align-items: center;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
  min-width: 200px;
}

.logo-item:hover {
  transform: scale(1.05);
  opacity: 1;
}

.logo-item img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  filter: brightness(1) contrast(1.1);
  transition: filter 0.2s ease;
}

.logo-item:hover img {
  filter: brightness(1.15) contrast(1.2);
}

.logo-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

.featured-image-container {
  max-width: 800px;
  margin: 24px auto;
}

.featured-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--bg);
  flex-shrink: 0;
}

.team-name {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.team-role {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-bio {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

.team-focus {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.team-focus strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
}

.team-bio-extra {
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-bio-extra.hidden {
  display: none;
}

.team-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s ease, transform 0.15s ease;
  width: 100%;
}

.team-toggle:hover {
  background: rgba(98, 208, 255, 0.1);
  transform: translateY(-1px);
}

.contact .form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

label.full {
  grid-column: 1 / -1;
}

input,
textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font);
}

input:focus,
textarea:focus {
  outline: 1px solid var(--accent);
}

.form-message {
  color: var(--muted);
  min-height: 20px;
}

.footer {
  padding: 28px 6vw 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

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

.copyright {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 800px) {
  .nav {
    position: absolute;
    top: 64px;
    right: 6vw;
    background: rgba(5, 9, 21, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    min-width: 200px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

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

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(98, 208, 255, 0.4);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(98, 208, 255, 0.6);
}

.whatsapp-float svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
