/* ============================================================
   NAVALBRANDS — DESIGN SYSTEM v2.0
   Koto/Hardcuore Inspired | Mobile-First | High-Ticket CRO
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
  --bg:         #000000;
  --surface:    #080808;
  --surface-2:  #111111;
  --border:     #1E1E1E;
  --border-2:   #2A2A2A;
  --text:       #FFFFFF;
  --muted:      #8A8A8A;
  --muted-2:    #5A5A5A;
  --accent:     #15BA38;
  --accent-dim: rgba(21, 186, 56, 0.10);
  --accent-glow:rgba(21, 186, 56, 0.28);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-h:      68px;
  --r:          2px;
  --ease-expo:  cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in:    cubic-bezier(0.55, 0.06, 0.68, 0.19);
  --t:          0.3s var(--ease-out);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #000; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════ */
.hero-title {
  font-size: clamp(2.4rem, 8.5vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
}

.h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.h2 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 6rem 0; }
.section--lg { padding: 8rem 0; }
.section--sm { padding: 4rem 0; }

.section__header { margin-bottom: 4rem; }
.section__header .label { margin-bottom: 1rem; }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.95rem 2.25rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #000000;
  border: 1.5px solid var(--accent);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.95rem 0;
  letter-spacing: 0.06em;
}
.btn-ghost:hover { color: var(--text); }

/* Workana static button (no pointer, no hover) */
.btn-workana {
  background: var(--surface-2);
  color: var(--muted);
  border: 1.5px solid var(--border-2);
  cursor: default;
  user-select: none;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo img { height: 26px; width: auto; }

.nav__menu {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--t);
  letter-spacing: 0.04em;
}
.nav__link:hover, .nav__link.active { color: var(--text); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__cta { display: none; }

/* Toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  cursor: pointer;
  padding: 2px;
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.35s var(--ease-expo), opacity 0.25s ease, width 0.3s ease;
}
.nav__toggle span:nth-child(2) { width: 65%; }
.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Drawer */
.nav__drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateX(105%);
  transition: transform 0.45s var(--ease-expo);
  z-index: 8999;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.nav__drawer.open { transform: translateX(0); }
.nav__drawer-link {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t);
}
.nav__drawer-link:hover { color: var(--accent); }
.nav__drawer-cta {
  margin-top: 2rem;
  align-self: flex-start;
}

/* ═══════════════════════════════════════════════
   AUTHORITY STRIP
   ═══════════════════════════════════════════════ */
.authority-strip {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-2);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
}
.authority-strip__dot {
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1;
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL SYSTEM
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.52s; }

/* ═══════════════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.stat-item {
  background: var(--bg);
  padding: 2rem 1.5rem;
  text-align: center;
}
.stat-item__value {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-item__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════
   PRICING CARDS
   ═══════════════════════════════════════════════ */
.pricing { padding: 7rem 0; background: var(--bg); }

.pricing__header { margin-bottom: 4rem; }

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pricing-card {
  position: relative;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-2);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  transition: border-color var(--t), transform var(--t);
}
.pricing-card:hover { border-color: var(--border-2); transform: translateY(-4px); }

.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(21,186,56,0.06) 0%, var(--surface) 60%);
}
.pricing-card--featured:hover { border-color: var(--accent); }

.pricing-card__badge {
  position: absolute;
  top: -1px; right: 1.75rem;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.875rem;
}

.pricing-card__plan {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.pricing-card__name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.pricing-card__tagline {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.375rem;
  line-height: 1.5;
}

.pricing-card__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}
.pricing-card--featured .pricing-card__divider {
  background: rgba(21, 186, 56, 0.2);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}
.pricing-card--featured .pricing-card__feature { color: rgba(255,255,255,0.8); }

.pricing-card__feature-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--accent);
}

.pricing-card__cta {
  width: 100%;
  justify-content: center;
  /* Permite quebra de linha no texto longo da versão Workana
     sem alterar a estrutura DOM nem o design visual dos cards */
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  min-height: 3rem;
  align-items: center;
}

/* ═══════════════════════════════════════════════
   LEAD GATE MODAL
   ═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  padding: 2.5rem 2rem 2rem;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.45s var(--ease-expo), opacity 0.35s ease;
  opacity: 0;
  max-height: 92svh;
  overflow-y: auto;
}
.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Accent line top */
.modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--muted);
  background: none;
  cursor: pointer;
  transition: color var(--t), border-color var(--t);
}
.modal-close:hover { color: var(--text); border-color: var(--text); }

.modal__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.modal__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.modal__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

/* Form fields */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-input, .form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.925rem;
  border-radius: var(--r);
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235A5A5A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-select option { background: #111; color: var(--text); }
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder { color: var(--border-2); }

.modal-submit {
  width: 100%;
  padding: 1.125rem 2rem;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), opacity var(--t);
  margin-top: 0.5rem;
}
.modal-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 36px var(--accent-glow); }
.modal-submit:disabled { opacity: 0.6; pointer-events: none; }

.form-error {
  font-size: 0.78rem;
  color: #ff5a5a;
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__brand img { height: 22px; margin-bottom: 1rem; }
.footer__brand p {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.65;
}
.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--muted);
  transition: border-color var(--t), color var(--t);
}
.footer__social-link:hover { border-color: var(--accent); color: var(--accent); }
.footer__nav-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.25rem;
}
.footer__nav-link {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  transition: color var(--t);
}
.footer__nav-link:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer__copy { font-size: 0.78rem; color: var(--muted-2); }

/* Workana footer — no social */
.footer--workana .footer__social { display: none; }

/* ═══════════════════════════════════════════════
   MISC UTILITIES
   ═══════════════════════════════════════════════ */
.divider {
  width: 40px; height: 2px;
  background: var(--accent);
  margin: 1.25rem 0;
}
.tag {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  background: var(--accent-dim);
  border: 1px solid rgba(21,186,56,0.3);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.hr { border: none; border-top: 1px solid var(--border); margin: 3.5rem 0; }

/* Workana Banner */
.workana-notice {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  text-align: center;
}
.workana-notice__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.workana-notice__dot { color: var(--accent); }

/* ═══════════════════════════════════════════════
   RESPONSIVE — ≥768px (Tablet)
   ═══════════════════════════════════════════════ */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .nav__menu { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .pricing__grid { grid-template-columns: repeat(3, 1fr); }
  .modal-card { padding: 3rem 2.75rem 2.5rem; }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — ≥1024px (Desktop)
   ═══════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .container { padding: 0 3rem; }
  .section { padding: 8rem 0; }
  .section--lg { padding: 10rem 0; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — ≤767px (Mobile) — BUG FIXES
   ═══════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* ── 1. HERO TITLE — corrige sobreposição de linhas ── */
  .hero-title {
    font-size: 2.5rem !important;       /* tamanho seguro para mobile */
    line-height: 1.1 !important;        /* ≥1 evita sobreposição garantidamente */
    letter-spacing: -0.03em;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* ── 2. BOTÃO — corrige overflow / vazamento horizontal ── */
  .btn {
    white-space: normal !important;     /* permite quebra de linha */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 1.3 !important;
    font-size: 0.82rem !important;
    padding: 1rem 1.25rem !important;
  }

  /* ── 3. btn-ghost mantém largura automática (link "ver como fazemos") ── */
  .btn-ghost {
    width: auto !important;
    max-width: none !important;
    padding: 0.75rem 0 !important;
  }

  /* ── 4. CTA GROUP da hero — respiro vertical entre elementos ── */
  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 100%;
  }
  .hero__cta-group .btn {
    margin-top: 1.5rem;
    margin-bottom: 0;
  }
  .hero__cta-group .btn-ghost {
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  /* ── 5. Scroll horizontal global — garante que nada vaza ── */
  .hero__content,
  .hero__scroll-text-inner,
  .hero__scroll-text,
  .service-hero .container {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* ── 6. Hero Workana second panel ── */
  .hero__scroll-text-inner .btn {
    margin-top: 1.5rem !important;
    margin-bottom: 2rem !important;
  }
}

