/* =========================================================
   NEXO — style.css  (estilo inspirado no site original)
   ========================================================= */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: #ffffff;
  color: #1a1a2e;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul { list-style: none; }

:root {
  --green:      #77d54a;
  --green-dim:  #5cb336;
  --green-bg:   rgba(119,213,74,0.08);
  --dark:       #1a1a2e;
  --darker:     #0f0f1a;
  --white:      #ffffff;
  --gray-bg:    #f4f5f7;
  --gray-text:  #555566;
  --muted:      #a0a0b0;
  --border:     #e8e8ee;

  --font-title: 'Bebas Neue', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --font-logo:  'Montserrat', sans-serif;

  --nav-h:      72px;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(26,26,46,0.08);
  --shadow-lg:  0 12px 48px rgba(26,26,46,0.14);
  --transition: 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green);
  color: var(--dark);
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-dim);
  border-color: var(--green-dim);
  box-shadow: 0 8px 20px rgba(119,213,74,0.3);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--dark);
  border-color: rgba(26,26,46,0.2);
}
.btn--ghost-dark:hover { border-color: var(--dark); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn--ghost:hover { border-color: var(--white); }

.btn--full { width: 100%; }

/* Section */
.section { padding-block: clamp(5rem, 10vw, 8rem); }

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dim);
  margin-bottom: 0.875rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 2rem;
}

.section-title--dark { color: var(--dark); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* =========================================================
   NAV — branco no topo, escuro ao scrollar
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.nav.scrolled-dark {
  background: rgba(15,15,26,0.97);
  border-color: rgba(255,255,255,0.06);
}

/* Logo swap */
.nav__logo-dark  { display: block; }
.nav__logo-light { display: none; }
.nav.scrolled-dark .nav__logo-dark  { display: none; }
.nav.scrolled-dark .nav__logo-light { display: block; }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo-img { height: 32px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 2.5rem; }
.nav__links { display: flex; align-items: center; gap: 2rem; }

.nav__link {
  font-size: 0.9375rem;
  color: var(--gray-text);
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--green);
  transition: width var(--transition);
}
.nav__link:hover { color: var(--dark); }
.nav__link:hover::after { width: 100%; }

.nav.scrolled-dark .nav__link { color: var(--muted); }
.nav.scrolled-dark .nav__link:hover { color: var(--white); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none;
  cursor: pointer; padding: 4px; z-index: 101;
}
.nav__hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav.scrolled-dark .nav__hamburger span { background: var(--white); }
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO — fundo branco, dois lados
   ========================================================= */
.hero {
  background: var(--white);
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: clamp(4rem, 8vw, 6rem);
}

.hero__badge {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green-dim);
  border: 1px solid rgba(119,213,74,0.25);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-family: var(--font-title);
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  line-height: 1.0;
  color: var(--dark);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.hero__line {
  display: block;
  white-space: nowrap;
}

.hero__headline-green { color: var(--green); }

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--gray-text);
  max-width: 520px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-text);
}

.hero__pill-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Imagem lado direito */
.hero__img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: visible;
}

.hero__img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: block;
}

.hero__img-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--white);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
}

.hero__img-card-dot {
  width: 12px; height: 12px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(119,213,74,0.2);
}

.hero__img-card strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--dark);
  font-weight: 600;
}

.hero__img-card span {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-text);
}

/* =========================================================
   QUEM SOMOS — fundo cinza claro
   ========================================================= */
.about { background: var(--gray-bg); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about__body {
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 1.125rem;
}

.about__emphasis {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
  border-left: 3px solid var(--green);
  padding-left: 1.125rem;
  margin-top: 1.75rem;
  line-height: 1.5;
}

.about__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about__card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.about__card-icon {
  width: 44px; height: 44px;
  background: var(--green-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dim);
  flex-shrink: 0;
}

.about__card strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.about__card span {
  font-size: 0.8125rem;
  color: var(--gray-text);
}

/* =========================================================
   SERVIÇOS — fundo branco
   ========================================================= */
.services { background: var(--white); }

.services__header {
  text-align: center;
  margin-bottom: 3rem;
}

.services__header .section-label { justify-content: center; }

.services__sub {
  font-size: 1rem;
  color: var(--gray-text);
  max-width: 500px;
  margin-inline: auto;
  margin-top: -0.5rem;
}

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

.scard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.scard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(119,213,74,0.3);
}

.scard__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.scard__icon--blue   { background: rgba(59,130,246,0.1);  color: #3b82f6; }
.scard__icon--green  { background: rgba(119,213,74,0.12); color: var(--green-dim); }
.scard__icon--purple { background: rgba(139,92,246,0.1);  color: #8b5cf6; }

.scard__title {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.scard__body {
  font-size: 0.9375rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.scard__highlight {
  font-size: 0.875rem;
  color: var(--green-dim);
  font-weight: 500;
}

/* =========================================================
   MÉTODO — gradiente azul escuro (igual ao do primo)
   ========================================================= */
.method {
  background: linear-gradient(135deg, #1a1a4e 0%, #2d2d7e 40%, #1a2a5e 70%, #0f0f2e 100%);
  position: relative;
  overflow: hidden;
}

.method::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(119,213,74,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.method__header {
  text-align: center;
  margin-bottom: 4rem;
}

.method__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin-inline: auto;
  margin-top: -0.5rem;
}

.method__steps {
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  margin-bottom: 3.5rem;
}

.method__step { flex: 1; min-width: 0; }

.method__num {
  font-family: var(--font-title);
  font-size: 4rem;
  line-height: 1;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.method__line {
  width: 32px; height: 2px;
  background: var(--green);
  margin-bottom: 1.25rem;
  border-radius: 2px;
  opacity: 0.7;
}

.method__step-title {
  font-family: var(--font-title);
  font-size: 1.625rem;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.method__step-body {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 280px;
}

.method__connector {
  flex: 0 0 auto;
  width: clamp(2rem, 5vw, 5rem);
  height: 1px;
  background: rgba(119,213,74,0.2);
  margin-top: 2.5rem;
  align-self: flex-start;
}

.method__cta { text-align: center; position: relative; z-index: 1; }

/* =========================================================
   CONTATO — fundo muito escuro
   ========================================================= */
.contact { background: #0f0f1a; }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact__sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 440px;
}

.contact__details { display: flex; flex-direction: column; gap: 1.25rem; }

.contact__details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact__details a:hover { color: var(--green); }
.contact__icon { color: var(--green); flex-shrink: 0; display: flex; }

.contact__form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.8rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(160,160,176,0.4); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(119,213,74,0.1);
}

#submit-btn .btn-loading       { display: none; }
#submit-btn.loading .btn-text  { display: none; }
#submit-btn.loading .btn-loading { display: inline; }

.form-success, .form-error {
  display: none;
  font-size: 0.9rem;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}
.form-success { background: rgba(119,213,74,0.12); color: var(--green); border: 1px solid rgba(119,213,74,0.25); }
.form-error   { background: rgba(224,85,85,0.1); color: #e08888; border: 1px solid rgba(224,85,85,0.2); }
.form-success.show, .form-error.show { display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #080810;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 3rem;
  padding-block: 3.5rem;
}

.footer__logo { height: 28px; width: auto; margin-bottom: 0.75rem; }

.footer__tagline { font-size: 0.875rem; color: var(--muted); font-style: italic; }

.footer__nav ul { display: flex; flex-direction: column; gap: 0.75rem; text-align: center; }

.footer__nav a { font-size: 0.9rem; color: var(--muted); transition: color var(--transition); }
.footer__nav a:hover { color: var(--white); }

.footer__contact { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-end; }

.footer__contact a { font-size: 0.875rem; color: var(--muted); }
.footer__contact a:hover { color: var(--green); }

.footer__linkedin { display: inline-flex; align-items: center; gap: 0.4rem; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-block: 1.25rem; }

.footer__bottom p { font-size: 0.8125rem; color: rgba(160,160,176,0.4); text-align: center; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1023px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {

  .nav__hamburger { display: flex; }

  .nav__menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(10,10,20,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav__menu.open { opacity: 1; pointer-events: all; }

  .nav__links { flex-direction: column; gap: 2rem; text-align: center; }
  .nav__link  { font-size: 1.5rem; color: var(--white) !important; }

  .hero__inner         { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual        { order: 1; }
  .hero__img           { height: 300px; }
  .hero__img-card      { bottom: -1rem; right: -0.5rem; min-width: 160px; }

  .about__inner        { grid-template-columns: 1fr; gap: 3rem; }

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

  .method__steps       { flex-direction: column; gap: 2rem; }
  .method__connector   { width: 1px; height: 2rem; margin-top: 0; margin-left: 2rem; align-self: auto; }
  .method__step-body   { max-width: 100%; }

  .contact__inner      { grid-template-columns: 1fr; gap: 3rem; }

  .footer__top         { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .footer__contact     { align-items: center; }
}

@media (max-width: 479px) {
  .hero__ctas  { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .hero__pills { gap: 0.5rem; }
}

/* =========================================================
   HERO DASHBOARD — visual abstrato lado direito
   ========================================================= */
.hero__dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.hdash__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.hdash__card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 1.25rem;
}

.hdash__funnel {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* Cada stage é um container com largura relativa */
.hdash__funnel-stage { width: 100%; }
.hdash__funnel-stage--1 .hdash__funnel-bar { width: 100%;  background: #3b82f6; }
.hdash__funnel-stage--2 .hdash__funnel-bar { width: 74%;   background: #8b5cf6; }
.hdash__funnel-stage--3 .hdash__funnel-bar { width: 50%;   background: #4f46e5; }
.hdash__funnel-stage--4 .hdash__funnel-bar { width: 28%;   background: var(--green); }

.hdash__funnel-bar {
  height: 38px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.875rem;
  min-width: 100px;
}

.hdash__funnel-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
}

.hdash__funnel-num {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}

/* Métricas */
.hdash__metrics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hdash__metric {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.hdash__metric:hover { transform: translateX(4px); }

.hdash__metric-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hdash__metric-icon--blue   { background: rgba(59,130,246,0.1);  color: #3b82f6; }
.hdash__metric-icon--purple { background: rgba(139,92,246,0.1);  color: #8b5cf6; }
.hdash__metric-icon--green  { background: rgba(119,213,74,0.12); color: var(--green-dim); }


.hdash__metric strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.1rem;
}

.hdash__metric span {
  font-size: 0.8125rem;
  color: var(--gray-text);
}

/* Pipedrive form override */
.pipedriveWebForms * { font-family: 'DM Sans', sans-serif !important; }
.pipedriveWebForms input, .pipedriveWebForms textarea, .pipedriveWebForms select { background: #1f2040 !important; border: 1px solid rgba(255,255,255,0.1) !important; border-radius: 8px !important; color: #ffffff !important; }
.pipedriveWebForms label { color: #a0a0b0 !important; font-size: 0.875rem !important; }
.pipedriveWebForms h2, .pipedriveWebForms h3, .pipedriveWebForms p { color: #ffffff !important; }
.pipedriveWebForms button[type="submit"] { background: #77d54a !important; color: #0f0f1a !important; border: none !important; border-radius: 6px !important; font-weight: 600 !important; width: 100% !important; }
.pipedriveWebForms button[type="submit"]:hover { background: #5cb336 !important; }
