:root {
  --primary: #1f6feb;
  --primary-dark: #174fa8;
  --secondary: #111827;
  --bg: #f3f4f6;
  --text: #111827;
  --muted: #6b7280;
  --white: #ffffff;
  --grey: #9ca3af;
  --grey-light: #d1d5db;
  --accent: #10b981;
  --max-width: 1120px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f9fafb;
  font-weight: 700;
  letter-spacing: 0.04em;
  height: 32px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #4f46e5, #0ea5e9);
}

.header-logo-img {
  height: 40px;
  width: auto;
  margin-top: -12px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #3b82f6, #22c55e);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

main {
    width: 100%;
  margin: 0 auto;
}

.container {
    max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 3.5rem 0;
  scroll-margin-top: 80px;
}

/* Hero */

.hero {
  padding-top: 2.5rem;
  background-color: var(--secondary);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* texto | astronauta */
  align-items: center;
  gap: 2rem;
}

.hero-kicker {
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.16em;
color: var(--primary);
font-weight: 600;
margin-bottom: 0.75rem;
}

.hero-title {
font-size: clamp(2rem, 3vw + 1rem, 2.9rem);
font-weight: 700;
color: var(--white);
margin-bottom: 1rem;
}

.hero-highlight {
background: linear-gradient(to right, #2563eb, #22c55e);
-webkit-background-clip: text;
color: transparent;
line-height: normal;
  display: block;
}

.hero-subtitle {
font-size: 1.02rem;
color: var(--grey);
margin-bottom: 1.5rem;
max-width: 32rem;
}

.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-bottom: 1.25rem;
}

.btn-primary {
padding: 0.8rem 1.4rem;
border-radius: 999px;
background: linear-gradient(to right, var(--primary), var(--accent));
color: var(--white);
font-weight: 500;
border: none;
cursor: pointer;
font-size: 0.95rem;
}

.btn-secondary {
padding: 0.8rem 1.4rem;
border-radius: 999px;
border: 1px solid var(--grey-light);
background: var(--bg);
color: var(--secondary);
font-weight: 500;
cursor: pointer;
font-size: 0.95rem;
}

/* coluna do astronauta */
.hero-astronauta {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-astronauta img {
  max-width: 360px;
  width: 100%;
  height: auto;
  display: block;
}

/* fundo radial atrás do astronauta */
.hero-astronauta::before {
content: "";
position: absolute;
inset: 0;
margin: auto;
width: 520px;
height: 520px;
border-radius: 999px;
background: radial-gradient(
  circle,
  rgba(56, 189, 248, 0.6) 0%,
  rgba(37, 99, 235, 0.3) 40%,
  transparent 70%
);
filter: blur(2px);
z-index: -1;
}

/* MOBILE */
@media (max-width: 960px) {
/* aqui é o container que é grid */
.hero .container {
  grid-template-columns: minmax(0, 1fr); /* 1 coluna */
  text-align: center;
}

.hero-content {
  order: 1;
  margin: 0 auto;
}

.hero-astronauta {
  order: 2;
  margin: .5rem auto 0; /* fica embaixo do texto */
  max-width: 160px;
  position: relative;
}

.hero-astronauta::before {
  width: 240px;
  height: 240px;
  left: -50px;
  }

  .hero-actions {
    justify-content: center;
  }

}

/* Sections */

.solutions-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.solutions-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  font-size: 0.9rem;
  color: var(--primary);
  background: rgba(255, 255, 255, 0);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.solutions-btn:hover {
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-color: transparent;
  transform: translateY(-1px);
  color: var(--white);
}

/* Mobile: deixa rolável na horizontal se faltar espaço */
@media (max-width: 768px) {
  .solutions-nav {
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .solutions-btn {
    white-space: nowrap;
  }
}


/* About Section */
    .about {
      background-color: var(--primary); 
    }

    .about .section-kicker {
        color: var(--white);
      }

    .about .section-title {
        color: var(--white);
      }
    .about .section-subtitle {
        color: var(--white);
      }



/* process Section */

    .section-process {
      background-color: var(--text); 
    }

    .section-process .section-kicker {
        color: var(--primary);
      }

    .section-process .section-title {
        color: var(--white);
      }
    .section-process .section-subtitle {
        color: var(--grey);
      }

    .section-kicker {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: var(--primary);
      font-weight: 600;
      margin-bottom: 0.5rem;
    }

    .section-title {
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--secondary);
      margin-bottom: 0.5rem;
    }

    .section-subtitle {
      font-size: 0.98rem;
      color: var(--muted);
      max-width: 34rem;
      margin-bottom: 2rem;
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.5rem;
    }

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

    .card {
      background: var(--white);
      border-radius: 1rem;
      padding: 1.4rem 1.5rem;
      border: 1px solid #e5e7eb;
      box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
    }

    .card h3 {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
      color: var(--secondary);
    }

    .card p {
      font-size: 0.95rem;
      color: var(--muted);
      margin-bottom: 0.5rem;
    }

    .card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
    }

    .card ul li {
    position: relative;
    padding-left: 1.6rem; /* espaço para o ícone */
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.95rem;
    }

    /* Ícone de check */
    .card ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.85rem;
    color: var(--accent); /* a cor verde da sua paleta */
    font-weight: 600;
    }

    .pill {
      display: inline-block;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--primary);
      background: rgba(37, 99, 235, 0.06);
      padding: 0.25rem 0.75rem;
      border-radius: 999px;
      margin-bottom: 0.5rem;
    }

    .card-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 0.75rem;
        padding: 0.55rem 1.1rem;
        border-radius: 999px;
        border: 1px solid #2563eb;
        background: transparent;
        color: #2563eb;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        text-decoration: none;
        transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease,
            box-shadow 0.15s ease;
        }

        .card-btn:hover {
        background: linear-gradient(to right, var(--primary), var(--accent));
        color: #ffffff;
        border-color: transparent;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
        }


    /* Process */

    .process-steps {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 1rem;
      font-size: 0.9rem;
    }

    .step {
      background: var(--white);
      border-radius: 0.9rem;
      padding: 1rem;
      border: 1px solid #e5e7eb;
      position: relative;
    }

    .step-number {
      width: 26px;
      height: 26px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--white);
      background: linear-gradient(to right, var(--primary), var(--accent));
      margin-bottom: 0.5rem;
    }

    .step-title {
      font-size: 0.95rem;
      font-weight: 600;
      margin-bottom: 0.25rem;
      color: var(--secondary);
    }

    .step p {
      font-size: 0.85rem;
      color: var(--muted);
    }

    /* Contact */

    .contact-wrapper {
      display: grid;
      grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
      gap: 2rem;
      align-items: flex-start;
    }

    form {
      background: var(--white);
      border-radius: 1rem;
      padding: 1.5rem;
      border: 1px solid #e5e7eb;
      box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
    }

    .form-row {
      margin-bottom: 1rem;
    
    }


.form-row select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;              /* mesmo raio dos inputs */
    border: 1px solid var(--grey-light);
    font-size: 0.95rem;
    background-color: var(--white);
    color: #111827;
    box-sizing: border-box;
}

/* tirar o “estilo nativo” do select e deixar mais clean */
.form-row select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
    padding-right: 2.5rem;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: translateY(60%) rotate(45deg);
    pointer-events: none; /* não atrapalha o clique no select */
}

    label {
      display: block;
      font-size: 0.85rem;
      font-weight: 500;
      margin-bottom: 0.25rem;
      color: var(--secondary);
    }

    input,
    textarea {
      width: 100%;
      padding: 0.7rem 0.8rem;
      border-radius: 0.6rem;
      border: 1px solid var(--grey-light);
      font-size: 0.9rem;
      font-family: inherit;
      outline: none;
    }

    input:focus,
    textarea:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
    }

    textarea {
      min-height: 120px;
      resize: vertical;
    }

    .contact-text p {
      font-size: 0.95rem;
      color: var(--muted);
      margin-bottom: 1rem;
    }

    .contact-info {
      font-size: 0.9rem;
      color: var(--muted);
    }

    .contact-info p {
      margin-bottom: 0.35rem;
    }

    footer {
      border-top: 1px solid #e5e7eb;
      padding: 1.5rem;
      font-size: 0.85rem;
      color: #9ca3af;
      background: #f9fafb;
      text-align: center;
    }

    footer a {
      color: var(--primary);
      font-weight: 500;
    }

    .alert-success {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.4);
  color: #16a34a;
  font-size: 0.9rem;
}

.alert-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #b91c1c;
  font-size: 0.9rem;
}

.alert-error ul {
  margin: 0;
  padding-left: 1.1rem;
}


    /* Responsive */

    @media (max-width: 960px) {
      .hero {
        grid-template-columns: minmax(0, 1fr);
      }

      .hero-card {
        order: -1;
      }

      .grid-3 {
        grid-template-columns: minmax(0, 1fr);
      }

      .grid-2 {
        grid-template-columns: minmax(0, 1fr);
      }

      .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .contact-wrapper {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    @media (max-width: 720px) {
      .nav {
        flex-wrap: wrap;
        justify-content: center;
      }

      .nav-links {
        display: none; /* versão simples sem menu mobile */
      }

      section {
        padding-inline: 1rem;
      }

      .hero {
        padding-top: 1.5rem;
      }

      .process-steps {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    @media (max-width: 420px) {
      .nav-cta {
        max-width: 102px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }

      section {
        padding-inline: 0;
      }

    }

    /* Seção de logos */
.logos-section {
  padding: 3rem 0;
}

.logos-section .section-title {
  margin-bottom: 1.5rem;
}

/* Container do carrossel */
.logo-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  background: #f3f4f6;
  padding: 1rem 0;
  z-index: 0;
}

/* Efeito de fade nas bordas */
.logo-fade-before, .logo-fade-after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 1;
  background: linear-gradient(to right, #f3f4f6, rgba(243, 244, 246, 0));
}
.logo-fade-before {
  left: 0;
}

.logo-fade-after {
  right: 0;
  background: linear-gradient(to left, #f3f4f6, rgba(243, 244, 246, 0));
}

/* Faixa que se movimenta */
.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 25s linear infinite;
}

/* Cada logo */
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 2.5rem; /* espaço entre as logos */
}

.logo-item img {
  max-height: 48px;      /* altura máxima da logo */
  width: auto;
  filter: grayscale(100%); /* leve estilizada, opcional */
  opacity: 0.8;
}

/* Animação contínua da esquerda para a direita */
@keyframes logo-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* anda metade porque duplicamos a lista */
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .logo-item {
    padding-inline: 1.5rem;
  }

  .logo-item img {
    max-height: 40px;
  }
}

/* budgets */
.dynamic-block {
    display: none;
    margin-top: 1rem;
    border-radius: 0.8rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.checkbox-group label {
    display: block;
    margin-bottom: 0.4rem;
    width: 0;
}


/* site */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #38bdf8, #6366f1 40%, #22c55e 100%);
}

.logo-text {
    font-weight: 700;
    color: #f9fafb;
    font-size: 1rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-nav a {
    color: #e5e7eb;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.header-nav a:hover {
    color: #ffffff;
    opacity: 0.9;
}

.header-cta {
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(to right, #2563eb, #22c55e);
    color: #ffffff !important;
    font-weight: 500;
}

/* Responsivo */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .header-nav {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
}

.site-footer {
    margin-top: 4rem;
    padding: 2.5rem 0 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: #020617;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    font-size: 0.9rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.logo-mark.small {
    width: 20px;
    height: 20px;
}

.footer-text {
    color: #9ca3af;
    max-width: 320px;
    margin-bottom: 0.5rem;
}

.footer-copy {
    color: #6b7280;
    font-size: 0.8rem;
}

.footer-right {
    display: flex;
    gap: 2.5rem;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
}

.footer-column a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 0.35rem;
    transition: color 0.15s ease;
}

.footer-column a:hover {
    color: #ffffff;
}


@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
    }

    .footer-right {
        flex-direction: column;
    }
}

/* Checkbox group */
.checkbox-group {
  border: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.checkbox-group-legend {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0 0 0.75rem 0;
  color: var(--secondary);
}

.checkbox-group-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-group .checkbox-wrapper {
  display: block;
  cursor: pointer;
  width: fit-content;
}

.checkbox-input {
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(100%);
          clip-path: inset(100%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.checkbox-input:checked + .checkbox-tile {
  border-color: var(--primary);
  color: var(--primary);
}
.checkbox-input:checked + .checkbox-tile:before {
  transform: scale(1);
  opacity: 1;
  background-color: var(--primary);
  border-color: var(--primary);
}
.checkbox-input:checked + .checkbox-tile .checkbox-icon,
.checkbox-input:checked + .checkbox-tile .checkbox-label {
  color: var(--primary);
}
.checkbox-input:focus + .checkbox-tile {
  border-color: var(--primary);
}
.checkbox-input:focus + .checkbox-tile:before {
  transform: scale(1);
  opacity: 1;
}

.checkbox-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 7rem;
  min-height: 7rem;
  border-radius: 0.5rem;
  border: 1px solid var(--grey-light);
  background-color: var(--white);
  transition: 0.15s ease;
  cursor: pointer;
  position: relative;
}
.checkbox-tile:before {
  content: "";
  position: absolute;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--grey-light);
  background-color: var(--white);
  border-radius: 50%;
  top: 0.25rem;
  left: 0.25rem;
  opacity: 0;
  transform: scale(0);
  transition: 0.25s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' fill='%23FFFFFF' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'%3E%3C/rect%3E%3Cpolyline points='216 72.005 104 184 48 128.005' fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='32'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}
.checkbox-tile:hover {
  border-color: var(--primary);
}
.checkbox-tile:hover:before {
  transform: scale(1);
  opacity: 1;
}

.checkbox-icon {
  transition: 0.375s ease;
  color: var(--muted);
}
.checkbox-icon svg {
  width: 3rem;
  height: 3rem;
}

.checkbox-label {
  color: var(--muted);
  transition: 0.375s ease;
  text-align: center;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;

  width: 46px;
  height: 46px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(to right, #2563eb, #22c55e);
  color: #fff;

  display: none; /* aparece no scroll */
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 999;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);

  transition: transform 0.25s ease, opacity 0.25s ease;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

.back-to-top:active {
  transform: translateY(-1px);
}

/* SVG */
.back-to-top__icon {
  overflow: visible;
}

/* animação de “desenhar” o traço */
.back-to-top__shaft,
.back-to-top__head {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;

  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.8s ease forwards;
}

.back-to-top__head {
  animation-delay: 0.08s;
}

/* bounce suave do ícone */
.back-to-top__icon {
  animation: floaty 1.8s ease-in-out infinite;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* acessibilidade: reduz animações */
@media (prefers-reduced-motion: reduce) {
  .back-to-top__icon,
  .back-to-top__shaft,
  .back-to-top__head {
    animation: none !important;
  }
}
