:root {
  --bg-page: #020617;
  --bg-main: #020617;
  --bg-section: #020617;
  --bg-surface: #020617;
  --bg-card: #020617;
  --bg-card-elevated: radial-gradient(circle at top left, #0f172a, #020617 48%);
  --border-subtle: rgba(148, 163, 184, 0.25);
  --border-strong: rgba(148, 163, 184, 0.4);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --accent: #f47f00;
  --accent-soft: rgba(244, 127, 0, 0.14);
  --accent-hover: #ea6f00;
  --accent-alt: #f97316;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.85);
  --shadow-subtle: 0 18px 50px rgba(15, 23, 42, 0.75);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --badge-active: #22c55e;
  --badge-warning: #eab308;
  --badge-danger: #ef4444;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background:
    radial-gradient(circle at top left, rgba(244, 127, 0, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), #020617);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section {
  padding: 4.5rem 0;
}

.section:nth-of-type(odd) {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.55), transparent 60%);
}

.section-title {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.section-subtitle {
  margin: 0 0 2.1rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 34rem;
}

.hero {
  padding: 4.8rem 0 3.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3.4rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #e5e7eb;
  margin-bottom: 0.8rem;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 3.4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 1.1rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 0 1.9rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.hero-trust {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.22);
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.panel-card {
  width: 100%;
  max-width: 500px;
  padding: 1.7rem 1.7rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card-elevated);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
  position: relative;
  overflow: hidden;
}

.panel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(244, 127, 0, 0.25), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.panel-title {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.panel-text {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.benefit-chip {
  font-size: 0.74rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.field-with-button {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
}

.field-with-button .input {
  flex: 1 1 auto;
  font-size: 1rem;
}

#cnpj-input {
  max-width: 100%;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #e5e7eb;
}

.input,
.textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.96);
  padding: 0.75rem 0.95rem;
  font-size: 0.9rem;
  color: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.08s ease;
}

.textarea {
  border-radius: var(--radius-md);
  resize: vertical;
  min-height: 120px;
}

.input:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(244, 127, 0, 0.6),
    0 0 0 12px rgba(244, 127, 0, 0.09);
  background: #020617;
  transform: translateY(-1px);
}

.input::placeholder,
.textarea::placeholder {
  color: #6b7280;
}

.field-help {
  margin: 0.28rem 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #fecaca;
  min-height: 1em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease,
    opacity 0.12s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  /* box-shadow: 0 16px 40px rgba(244, 127, 0, 0.55); */
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(244, 127, 0, 0.7);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(248, 250, 252, 0.75);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: rgba(248, 250, 252, 0.75);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
}

.btn-full {
  width: 100%;
}

.btn-label {
  display: inline-block;
}

.btn-loader {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-top-color: rgba(0, 0, 0, 0.9);
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn.is-loading .btn-label {
  opacity: 0;
}

.btn.is-loading .btn-loader {
  display: inline-block;
}

.resultado-wrapper {
  margin-top: 1.6rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(30, 64, 175, 0.75);
  box-shadow: var(--shadow-subtle);
  padding: 1.5rem 1.6rem 1.6rem;
  min-height: 150px;
  position: relative;
  overflow: hidden;
}

.resultado-wrapper::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left, rgba(244, 127, 0, 0.18), transparent 64%),
    radial-gradient(circle at bottom right, rgba(30, 64, 175, 0.6), transparent 64%);
  opacity: 0.7;
  pointer-events: none;
}

.resultado-wrapper > * {
  position: relative;
  z-index: 1;
}

.resultado-wrapper--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.resultado-placeholder {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.resultado-content {
  display: grid;
  gap: 1.25rem;
}

.result-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: center;
}

.result-status-block {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.result-title-block h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.result-title-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
}

.badge-status--ativa {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.65);
}

.badge-status--alerta {
  background: rgba(234, 179, 8, 0.16);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.7);
}

.badge-status--inativa {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.75);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.74rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.result-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.2rem;
}

.result-card {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(30, 64, 175, 0.7);
}

.result-card h4 {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.result-list {
  display: grid;
  gap: 0.34rem;
  font-size: 0.86rem;
}

.result-item-label {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.result-item-value {
  color: #e5e7eb;
}

.result-address {
  font-size: 0.86rem;
  color: #e5e7eb;
}

.result-cnae-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.result-cnae-list li {
  font-size: 0.84rem;
  color: #e5e7eb;
}

.qsa-list {
  display: grid;
  gap: 0.45rem;
  font-size: 0.84rem;
}

.qsa-person {
  border-radius: var(--radius-md);
  padding: 0.48rem 0.6rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(30, 64, 175, 0.8);
}

.section-highlight {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.8), transparent 55%),
    radial-gradient(circle at bottom right, rgba(8, 47, 73, 0.9), #020617);
  border-top: 1px solid rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 2.6rem;
  align-items: center;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.4rem 0 1.3rem;
}

.service-card {
  padding: 0.9rem 0.95rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.86rem;
}

.service-card h3 {
  font-size: 0.9rem;
  margin: 0 0 0.3rem;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
}

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

.mini-metric {
  display: inline-flex;
  flex-direction: column;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
  margin-bottom: 0.85rem;
}

.metric-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.metric-value {
  font-size: 0.94rem;
  font-weight: 500;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.7rem;
}

.lead-copy h2 {
  margin-top: 0;
  letter-spacing: -0.03em;
}

.lead-copy p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.lead-benefits {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.lead-benefits li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lead-benefits li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.lead-form-card {
  padding: 1.6rem 1.7rem 1.4rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: var(--shadow-subtle);
}

.field-group {
  margin-bottom: 0.9rem;
}

.form-footnote {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hp-field {
  display: none;
}

.alert {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  margin-bottom: 0.95rem;
}

.alert-success {
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(22, 163, 74, 0.7);
  color: #bbf7d0;
}

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

.benefit-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(31, 41, 55, 0.95);
  font-size: 0.9rem;
}

.benefit-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.benefit-card p {
  margin: 0;
  color: var(--text-muted);
}

.section-content {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding-bottom: 4.5rem;
}

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

.content-main h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.content-main p {
  margin: 0 0 0.85rem;
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.8;
}

.content-main ul {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  color: #d1d5db;
}

.content-side h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.faq-list details {
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 0.75rem 0.95rem;
  font-size: 0.9rem;
}

.faq-list details + details {
  margin-top: 0.55rem;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "›";
  float: right;
  transform: rotate(90deg);
  opacity: 0.6;
}

.faq-list details[open] summary::after {
  transform: rotate(-90deg);
}

.faq-list p {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
}

.site-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(18px);
  background:
    linear-gradient(to bottom, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78));
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 0.7rem 0;
  height: 90px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 1rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.24rem 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.site-nav a:hover {
  color: #e5e7eb;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  padding: 1.35rem 0 1.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(2, 6, 23, 0.98);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #e5e7eb;
}

.muted {
  color: var(--text-muted);
}

.is-hidden {
  display: none !important;
}

.lead-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}

.lead-modal-backdrop.is-hidden {
  display: none !important;
}

.lead-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.95);
  padding: 1.8rem 1.9rem 1.6rem;
}

.lead-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.lead-modal-close:hover {
  color: #e5e7eb;
}

.lead-modal-content h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.lead-modal-subtitle {
  margin: 0 0 1.3rem;
  font-size: 0.94rem;
  color: var(--text-muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 1.4rem;
  }
}

@media (max-width: 960px) {
  .hero {
    padding-top: 3.6rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .panel-card {
    max-width: 100%;
  }

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

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

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

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

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

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

@media (max-width: 640px) {
  .container {
    padding: 0 1.1rem;
  }

  .site-header-inner {
    flex-direction: column;
    gap: 0.4rem;
    height: auto;
    padding: 16px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    padding-top: 0.4rem;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .field-with-button {
    flex-direction: column;
  }

  .section {
    padding: 3.2rem 0;
  }

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

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


