
:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #f0f2f4;
  --text: #1e242b;
  --muted: #66707c;
  --brand: #d83b3b;
  --brand-dark: #a92828;
  --dark: #15191f;
  --line: #e3e6ea;
  --success: #1f9d62;
  --shadow: 0 18px 45px rgba(21, 25, 31, 0.12);
  --radius: 20px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--dark);
  color: #fff;
  font-size: 0.92rem;
}

.topbar .container {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 230, 234, 0.9);
}

.header__inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.logo img {
  width: 150px;
  height: auto;
}

.logo__text {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a {
  color: #2d333b;
}

.nav a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--surface-2);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(216, 59, 59, 0.25);
}

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--dark {
  background: var(--dark);
  color: #fff;
}

.btn--ghost {
  border-color: rgba(255,255,255,0.48);
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.btn--whatsapp {
  background: var(--success);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 157, 98, 0.22);
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21,25,31,0.92) 0%, rgba(21,25,31,0.76) 46%, rgba(21,25,31,0.40) 100%),
    url("../img/hero-contabilidade-2.png") center/cover no-repeat;
  filter: grayscale(1);
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 790px;
  padding: 90px 0 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: rgba(216, 59, 59, 0.18);
  border: 1px solid rgba(216, 59, 59, 0.45);
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 680px;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: rgba(255,255,255,0.86);
  margin: 0 0 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 880px;
}

.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 18px;
}

.hero-card strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
}

.hero-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.93rem;
}

.section {
  padding: 92px 0;
}

.section--white {
  background: #fff;
}

.section__head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section__head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section__head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 16px 0 0;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 24px rgba(21,25,31,0.04);
}

.card__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: #fff0f0;
  color: var(--brand);
  border-radius: 16px;
  font-weight: 900;
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
}

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

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 44px;
}

.panel {
  background: var(--dark);
  color: #fff;
  border-radius: 28px;
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -80px;
  top: -80px;
  border-radius: 999px;
  background: rgba(216, 59, 59, 0.28);
}

.panel h2,
.panel p,
.panel ul {
  position: relative;
  z-index: 1;
}

.panel p {
  color: rgba(255,255,255,0.76);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 10px;
  color: rgba(255,255,255,0.86);
}

.checklist li::before {
  content: "✓";
  color: #fff;
  background: var(--brand);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  font-weight: 900;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
}

.step h3 {
  margin: 0 0 5px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.cta {
  background:
    linear-gradient(90deg, rgba(21,25,31,0.94), rgba(21,25,31,0.82)),
    url("../img/footer-bg.png") center/cover no-repeat;
  color: #fff;
  border-radius: 32px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.cta p {
  margin: 0;
  color: rgba(255,255,255,0.76);
}

.form-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.form-info {
  background: var(--dark);
  color: #fff;
  border-radius: 28px;
  padding: 38px;
}

.form-info p {
  color: rgba(255,255,255,0.76);
}

.form-info .mini {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mini-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px;
}

.lead-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

label {
  font-weight: 800;
  font-size: 0.92rem;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #d7dbe0;
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(216, 59, 59, 0.12);
}

.form-note {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note a {
  color: var(--brand);
  font-weight: 800;
}

.footer {
  background: #101318;
  color: #fff;
  padding: 54px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}

.footer p,
.footer a {
  color: rgba(255,255,255,0.74);
}

.footer h3 {
  margin: 0 0 14px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer__bottom {
  margin-top: 34px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.6);
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--success);
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 16px 34px rgba(31,157,98,0.35);
}

.status-message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #edf9f3;
  color: #14633f;
  font-weight: 700;
}

.status-message.is-visible {
  display: block;
}

@media (max-width: 920px) {
  .topbar .container {
    justify-content: center;
    text-align: center;
  }

  .header__inner {
    height: auto;
    min-height: 74px;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 11px 0;
  }

  .header .btn {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 70px 0 95px;
  }

  .hero__cards,
  .grid--3,
  .grid--2,
  .split,
  .form-wrap,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 26px, var(--container));
  }

  .logo img {
    width: 130px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }

  .card,
  .lead-form,
  .form-info,
  .panel {
    padding: 24px;
  }
}
