/* ==========================================================================
   KRAKEN X STUDIO — design tokens
   Paleta: abismo (preto azulado) + violeta kraken + magenta sinal
   Tipografia: Space Grotesk (display) + JetBrains Mono (rótulos) + Plus Jakarta Sans (corpo)
   ========================================================================== */

:root{
  --abyss:        #07060c;
  --ink:          #100c1c;
  --surface:      #170f2b;
  --surface-2:    #1c1333;
  --border-soft:  rgba(155, 123, 240, 0.16);
  --border-mid:   rgba(155, 123, 240, 0.32);

  --kraken:       #6d3ce0;
  --kraken-light: #9b7bf0;
  --signal:       #c13ce0;

  --foam:         #ede9f7;
  --mist:         #a89fc4;
  --depth:        #6a5f92;

  --grad-brand:   linear-gradient(135deg, var(--kraken), var(--signal));
  --grad-text:    linear-gradient(135deg, #b79cf5, #e59bf5);
  --glow-soft:    0 0 50px rgba(109, 60, 224, 0.35);
  --glow-strong:  0 0 80px rgba(193, 60, 224, 0.35);

  --font-display: 'Space Grotesk', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --max-width: 1180px;
  --section-pad: clamp(72px, 10vw, 140px);
}

/* ============ RESET ============ */
*, *::before, *::after{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg{ display:block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
ul{ list-style: none; }

::selection{ background: var(--kraken); color: var(--foam); }

::-webkit-scrollbar{ width: 10px; }
::-webkit-scrollbar-track{ background: var(--abyss); }
::-webkit-scrollbar-thumb{ background: var(--surface-2); border-radius: 10px; border: 2px solid var(--abyss); }
::-webkit-scrollbar-thumb:hover{ background: var(--kraken); }

h1, h2, h3, h4{ font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }

.grad-text{
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--kraken-light);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.depth-tag{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--depth);
  text-transform: uppercase;
}

.section-header{
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
  padding: 0 24px;
}
.section-header h2{ font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 16px; }
.section-header p{ color: var(--mist); font-size: 1.05rem; }

/* ============ BOTÕES ============ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color .25s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--glow-soft);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: var(--glow-strong); }
.btn-primary:active{ transform: translateY(0); }
.btn-ghost{
  background: transparent;
  color: var(--foam);
  border: 1.5px solid var(--border-mid);
}
.btn-ghost:hover{ border-color: var(--kraken-light); background: rgba(155,123,240,0.08); }

/* ============ CAMADA DE FUNDO ANIMADA ============ */
.bg-layer{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.deep-glow{
  position: absolute;
  top: -10%;
  left: 50%;
  width: 1100px;
  height: 1100px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(109,60,224,0.28) 0%, rgba(109,60,224,0.10) 40%, transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe{
  0%, 100%{ opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%{ opacity: 1; transform: translateX(-50%) scale(1.08); }
}
#marine-snow{ position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============ NAVBAR ============ */
.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled{
  padding: 12px 0;
  background: rgba(7, 6, 12, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-soft);
}
.navbar-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand-mark{ width: 34px; height: 34px; flex-shrink: 0; }
.brand-word{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--foam);
}
.brand-word em{ font-style: normal; color: var(--signal); }

.nav-links{ display: flex; align-items: center; gap: 34px; }
.nav-links a{
  font-size: 0.95rem;
  color: var(--mist);
  transition: color 0.2s ease;
}
.nav-links a:hover{ color: var(--foam); }
.nav-cta{
  background: var(--grad-brand);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover{ opacity: 0.9; }

.hamburger{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  z-index: 101;
}
.hamburger span{
  width: 24px; height: 2px;
  background: var(--foam);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 100px;
  overflow: hidden;
  z-index: 1;
}
.tentacle{
  position: absolute;
  bottom: -40px;
  width: min(320px, 34vw);
  height: auto;
  opacity: 0.5;
  filter: blur(0.4px) drop-shadow(0 0 30px rgba(109,60,224,0.35));
  z-index: 0;
}
.tentacle-left{ left: -40px; animation: swayLeft 11s ease-in-out infinite; transform-origin: bottom left; }
.tentacle-right{ right: -40px; animation: swayRight 13s ease-in-out infinite; transform-origin: bottom right; }
@keyframes swayLeft{
  0%, 100%{ transform: rotate(-3deg) translateY(0); }
  50%{ transform: rotate(2deg) translateY(-14px); }
}
@keyframes swayRight{
  0%, 100%{ transform: rotate(3deg) translateY(0); }
  50%{ transform: rotate(-2deg) translateY(-16px); }
}

.hero-content{
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
}
.hero-title{
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  margin-bottom: 24px;
}
.hero-subtitle{
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--mist);
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-actions{
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.ink-divider{
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  line-height: 0;
  z-index: 1;
}
.ink-divider svg{ width: 100%; height: 90px; }
.ink-divider svg path{ fill: var(--ink); }
.ink-divider-alt svg path{ fill: var(--abyss); }

/* ============ ESTATÍSTICAS ============ */
.stats{
  position: relative;
  z-index: 1;
  background: var(--ink);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 24px 80px;
  gap: 24px;
}
.stat{ text-align: center; }
.stat-number, .stat-suffix{
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p{ color: var(--mist); font-size: 0.92rem; margin-top: 6px; }

/* ============ SERVIÇOS ============ */
.services{
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.services-grid{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card{
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}
.service-card.visible{ opacity: 1; transform: translateY(0); }
.service-card:hover{
  transform: translateY(-6px);
  border-color: var(--border-mid);
  box-shadow: var(--glow-soft);
}
.service-icon{
  width: 40px; height: 40px;
  color: var(--kraken-light);
  margin-bottom: 20px;
}
.service-card h3{ font-size: 1.15rem; margin-bottom: 10px; }
.service-card p{ color: var(--mist); font-size: 0.95rem; }

/* ============ PROCESSO ============ */
.process{
  position: relative;
  z-index: 1;
  background: var(--abyss);
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.process-track{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.process-track::before{
  content: '';
  position: absolute;
  top: 11px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
}
.process-step{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.process-step.visible{ opacity: 1; transform: translateY(0); }
.process-step .depth-tag{ display: block; margin-bottom: 16px; }
.process-step h3{ font-size: 1.15rem; margin-bottom: 10px; }
.process-step p{ color: var(--mist); font-size: 0.95rem; }

/* ============ DIFERENCIAIS ============ */
.why-us{
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding-top: var(--section-pad);
  padding-bottom: calc(var(--section-pad) + 60px);
}
.why-us-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.why-us-text p{ color: var(--mist); margin-top: 16px; font-size: 1.02rem; }
.why-us-list li{
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.why-us-list li.visible{ opacity: 1; transform: translateY(0); }
.why-us-list li:last-child{ border-bottom: none; }
.check{
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: #fff;
}
.why-us-list h4{ font-size: 1.02rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; }
.why-us-list p{ color: var(--mist); font-size: 0.92rem; }

/* ============ FORMULÁRIO DE CONTATO ============ */
.contact{
  position: relative;
  z-index: 1;
  background: var(--abyss);
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.form-wrapper{
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.progress-bar{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 44px;
}
.progress-bar::before{
  content: '';
  position: absolute;
  top: 15px; left: 12%; right: 12%;
  height: 2px;
  background: var(--surface-2);
  z-index: 0;
}
.progress-fill{
  position: absolute;
  top: 15px; left: 12%;
  width: 0%;
  height: 2px;
  background: var(--grad-brand);
  z-index: 1;
  transition: width 0.4s ease;
}
.progress-step{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--depth);
  text-align: center;
}
.progress-step span{
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: var(--mist);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.progress-step.active span, .progress-step.done span{
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}
.progress-step.active{ color: var(--foam); }

.form-step{ display: none; }
.form-step.active{ display: block; animation: fadeStep 0.4s ease; }
@keyframes fadeStep{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: translateY(0); } }

.form-step > .depth-tag{ display: block; margin-bottom: 26px; }

.field{ margin-bottom: 22px; }
.field label{
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 9px;
  color: var(--foam);
}
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea{
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select{ appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a89fc4' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select option{ background: var(--surface); color: var(--foam); }
textarea{ resize: vertical; min-height: 90px; font-family: var(--font-body); }
input::placeholder, textarea::placeholder{ color: var(--depth); }
input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: var(--kraken-light);
  box-shadow: 0 0 0 3px rgba(155,123,240,0.15);
}
input.input-error, select.input-error{ border-color: #e0603c; }

.error-msg{
  display: block;
  color: #f08a6c;
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 0;
}

.hidden{ display: none !important; }

.pill-group, .format-group{ display: flex; flex-wrap: wrap; gap: 10px; }
.pill{
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border-soft);
  background: var(--surface);
  color: var(--mist);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.pill:hover{ border-color: var(--border-mid); color: var(--foam); }
.pill.active{
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

.format-group{ gap: 14px; }
.format-card{
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  transition: all 0.2s ease;
}
.format-card:hover{ border-color: var(--border-mid); }
.format-card.active{ border-color: var(--kraken-light); box-shadow: var(--glow-soft); background: var(--surface-2); }
.format-card strong{ font-family: var(--font-display); font-size: 1.05rem; color: #ffffff; }
.format-card small{ color: var(--mist); font-size: 0.78rem; }
.format-shape{ background: var(--surface-2); border: 1.5px solid var(--border-mid); border-radius: 4px; display: block; }
.format-shape.wide{ width: 56px; height: 32px; }
.format-shape.tall{ width: 24px; height: 42px; }
.format-shape.both{ display: flex; gap: 6px; align-items: center; background: none; border: none; }
.format-shape.both span:nth-child(1){ width: 30px; height: 20px; background: var(--surface-2); border: 1.5px solid var(--border-mid); border-radius: 3px; }
.format-shape.both span:nth-child(2){ width: 14px; height: 26px; background: var(--surface-2); border: 1.5px solid var(--border-mid); border-radius: 3px; }

.step-actions{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 34px;
}

.summary-box{
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 8px;
}
.summary-box h4{ font-size: 0.95rem; margin-bottom: 12px; color: var(--kraken-light); }
.summary-content{ font-size: 0.88rem; color: var(--mist); display: grid; gap: 6px; }
.summary-content strong{ color: var(--foam); font-weight: 600; }

/* ============ RODAPÉ – CORRIGIDO ============ */
.footer{
  position: relative;
  z-index: 1;
  background: var(--ink);
  border-top: 1px solid var(--border-soft);
  padding: 56px 24px 28px;
}
.footer-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;        /* ← alinhamento vertical no centro */
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand p{
  color: var(--mist);
  font-size: 0.9rem;
  margin-top: 10px;
  max-width: 280px;
}
.footer-links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links a{
  color: var(--mist);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-links a:hover{ color: var(--foam); }

/* --- ÍCONES SOCIAIS – CENTRALIZAÇÃO PERFEITA --- */
.footer-social{
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mist);
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 0;          /* elimina espaços extras */
  padding: 0;
  flex-shrink: 0;
}
.footer-social a:hover{
  color: var(--foam);
  border-color: var(--kraken-light);
}
.footer-social svg{
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;      /* herda a cor do link – mantém as cores atuais */
}

.footer-copy{
  max-width: var(--max-width);
  margin: 40px auto 0;
  text-align: center;
  color: var(--depth);
  font-size: 0.82rem;
}

/* ============ BOTÃO FLUTUANTE WHATSAPP + VOLTAR AO TOPO ============ */
.float-whatsapp{
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-soft);
  z-index: 90;
  animation: pulseGlow 1.5s ease-in-out infinite;
}
.float-whatsapp svg {
  width: 30px;
  height: 28px;
  fill: #ffffff !important;   /* força a cor branca */
  stroke: #ffffff !important; /* se houver contorno, também fica branco */
}
@keyframes pulseGlow{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(193,60,224,0.45), var(--glow-soft); }
  50%{ box-shadow: 0 0 0 12px rgba(193,60,224,0), var(--glow-soft); }
}

.back-to-top{
  position: fixed;
  bottom: 26px; left: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--foam);
  font-size: 1.1rem;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.back-to-top.show{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ border-color: var(--kraken-light); }

/* ============ SCROLL REVEAL GENÉRICO ============ */
.section-header{ opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.section-header.visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 900px){
  .why-us-inner{ grid-template-columns: 1fr; gap: 36px; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .process-track{ grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .process-track::before{ display: none; }
  .stats{ grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

@media (max-width: 760px){
  .nav-links{
    position: fixed;
    top: 0; right: -100%;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
    transition: right 0.35s ease;
    border-left: 1px solid var(--border-soft);
  }
  .nav-links.open{ right: 0; }
  .hamburger{ display: flex; }
  .nav-cta{ margin-top: 10px; }

  .tentacle{ opacity: 0.28; width: 44vw; }
  .field-row{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; }
}

@media (max-width: 560px){
  .services-grid{ grid-template-columns: 1fr; }
  .process-track{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: repeat(2, 1fr); }
  .progress-step{ font-size: 0.6rem; }
  .progress-step span{ width: 26px; height: 26px; }
  .float-whatsapp{ width: 50px; height: 50px; bottom: 18px; right: 18px; }
  .float-whatsapp svg{ width: 24px; height: 24px; }
  .back-to-top{ width: 40px; height: 40px; bottom: 18px; left: 18px; }
}

/* Remove a linha entre os passos do processo */
.process-track::before {
  display: none;
}