/* ==========================================================================
   03 — COMPONENTES
   Peças reutilizáveis, cada uma independente da seção onde aparece.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Marca
   -------------------------------------------------------------------------- */
.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .14em;
  color: #fff;
}

.brand__dot { color: var(--color-blue-lit); }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: var(--radius-sm);
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
}

.btn .icon {
  width: 19px;
  height: 19px;
}

.btn--primary {
  background: linear-gradient(140deg, var(--color-blue-lit), var(--color-blue));
  color: #fff;
  box-shadow: 0 10px 28px -12px rgba(37, 99, 235, .9);
}

.btn--primary:hover { box-shadow: 0 18px 40px -14px rgba(59, 130, 246, 1); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn--ghost:hover {
  box-shadow: inset 0 0 0 1px var(--color-blue-lit);
  color: #fff;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* Onda que sai do ponto clicado */
.btn__ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: ripple .6s ease-out forwards;
}

/* --------------------------------------------------------------------------
   Selo de disponibilidade
   -------------------------------------------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, .03);
  color: #A8B7C9;
  font-size: .86rem;
}

.status-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(55, 214, 122, .16);
}

/* --------------------------------------------------------------------------
   Palco do logo 3D
   O <canvas> é criado pelo JavaScript; sem WebGL, aparece o SVG de reserva.
   -------------------------------------------------------------------------- */
.logo-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  touch-action: pan-y;
  cursor: grab;
}

.logo-stage:active { cursor: grabbing; }

.logo-stage::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .30), rgba(124, 58, 237, .18) 55%, transparent 72%);
  filter: blur(26px);
}

.logo-stage canvas {
  position: relative;
  width: 100%;
  height: 100%;
}

.logo-stage__fallback {
  position: absolute;
  inset: 12%;
}

.logo-stage.is-3d .logo-stage__fallback { display: none; }

.logo-stage__hint {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  color: #6E7D90;
  font-size: .8rem;
  white-space: nowrap;
  transition: opacity .5s;
}

.logo-stage.is-touched .logo-stage__hint { opacity: 0; }

/* --------------------------------------------------------------------------
   Faixa de tecnologias
   -------------------------------------------------------------------------- */
.tech-strip {
  padding-block: 16px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(8, 12, 22, .45);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.tech-strip__track {
  display: flex;
  width: max-content;
  animation: tech-slide 38s linear infinite;
}

/* O JavaScript assume o movimento para reagir ao scroll */
.tech-strip__track.is-scripted { animation: none; }

.tech-strip__list {
  display: flex;
  align-items: center;
  gap: 38px;
  margin: 0;
  padding: 0 19px;
  list-style: none;
}

.tech-strip__item {
  display: flex;
  align-items: center;
  gap: 38px;
  color: #8E9DB1;
  font-family: var(--font-display);
  font-size: .94rem;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .3s;
}

.tech-strip__item::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-blue-lit);
  opacity: .55;
}

.tech-strip__item:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  height: 100%;
  padding: 30px 28px 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(11, 16, 27, .72); /* escuro o bastante para o texto, translúcido o bastante para o fundo */
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}

.card:hover {
  border-color: rgba(59, 130, 246, .5);
  box-shadow: 0 26px 60px -34px rgba(10, 25, 60, .45);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--color-blue-lit), var(--color-blue));
  color: #fff;
}

.card__icon .icon {
  width: 23px;
  height: 23px;
}

.card__title { margin-bottom: 10px; }

.card__text {
  color: var(--fg-dim);
  font-size: .97rem;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.card__tag {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--fg-dim);
  font-size: .8rem;
  transition: border-color .35s, color .35s;
}

/* Luz que segue o cursor dentro do card */
.card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
              rgba(59, 130, 246, .20), transparent 62%);
  transition: opacity .45s;
}

.card:hover .card__glow { opacity: 1; }

/* --------------------------------------------------------------------------
   Trilho de progresso do processo
   -------------------------------------------------------------------------- */
.progress-rail {
  height: 2px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.progress-rail__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-blue), var(--color-blue-glow));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* --------------------------------------------------------------------------
   Canais de contato
   -------------------------------------------------------------------------- */
.channels {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}

.channel:hover {
  border-color: rgba(96, 165, 250, .55);
  background: rgba(255, 255, 255, .03);
  transform: translateX(5px);
}

.channel__icon {
  width: 21px;
  height: 21px;
  color: var(--color-blue-lit);
}

.channel__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .98rem;
}

.channel__value {
  color: var(--fg-dim);
  font-size: .86rem;
}

/* --------------------------------------------------------------------------
   Formulário
   -------------------------------------------------------------------------- */
.contact-form {
  padding: clamp(22px, 3.5vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(11, 16, 27, .78);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.form-field {
  position: relative;
  margin-bottom: 18px;
}

.form-field__label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  color: #A8B7C9;
  font-size: .88rem;
  transition: color .3s;
}

.form-field:focus-within .form-field__label { color: var(--color-blue-glow); }

.form-field__control {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  transition: border-color .3s, background .3s, box-shadow .3s;
}

textarea.form-field__control {
  min-height: 112px;
  resize: vertical;
}

.form-field__control:focus {
  outline: 0;
  border-color: var(--color-blue-lit);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .14);
}

.form-field__control.has-error {
  border-color: #F87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, .14);
}

/* Grupo de opções em forma de etiqueta.
   O input fica escondido mas continua acessível pelo teclado. */
.choice-group__options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.choice { display: inline-flex; }

.choice__label {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  font-size: .92rem;
  transition: all .3s var(--ease);
}

.choice__label:hover { border-color: rgba(96, 165, 250, .6); }

.choice__input:checked + .choice__label {
  border-color: var(--color-blue);
  background: var(--color-blue);
  color: #fff;
  animation: choice-pop .45s var(--ease);
}

.choice__input:focus-visible + .choice__label {
  outline: 2px solid var(--color-blue-glow);
  outline-offset: 3px;
}

.form-status {
  margin-top: 14px;
  color: #78879A;
  font-size: .84rem;
  text-align: center;
}

.form-status.is-error { color: #FCA5A5; }

/* --------------------------------------------------------------------------
   Botão flutuante do WhatsApp
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-success);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 34px -12px rgba(34, 197, 94, .9);
  opacity: 0;
  transform: translateY(90px) scale(.8);
  transition: transform .5s var(--ease), opacity .4s;
}

.wa-float.is-visible {
  opacity: 1;
  transform: none;
}

.wa-float:hover { transform: scale(1.07); }

.wa-float .icon {
  width: 28px;
  height: 28px;
}

@supports (padding: max(0px)) {
  .wa-float { bottom: max(18px, env(safe-area-inset-bottom)); }
}

/* --------------------------------------------------------------------------
   Cursor que acompanha o ponteiro (apenas em telas grandes com mouse)
   O elemento é criado pelo JavaScript.
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 1px solid rgba(120, 170, 255, .7);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity .35s, width .35s var(--ease), height .35s var(--ease),
              margin .35s var(--ease), background .35s, border-color .35s;
}

.cursor.is-visible { opacity: 1; }

.cursor.is-over-target {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-color: rgba(140, 185, 255, .95);
  background: rgba(59, 130, 246, .13);
}

.cursor__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #D6E6FF;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .62rem;
  font-style: normal;
  letter-spacing: .08em;
  opacity: 0;
  transition: opacity .25s;
}

.cursor.has-label .cursor__label { opacity: 1; }

@media (max-width: 900px) {
  .cursor { display: none; }
}
