:root {
  --ink: #092033;
  --muted: #52677a;
  --line: #d7e2ea;
  --paper: #ffffff;
  --soft: #f3f7f7;
  --green: #0b766a;
  --green-2: #2b9a88;
  --blue: #24527a;
  --amber: #d59722;
  --danger: #b74b4b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
  letter-spacing: 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(215, 226, 234, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(9, 32, 51, 0.12);
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  color: var(--green);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(11, 118, 106, 0.24);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vw, 104px) clamp(22px, 5vw, 72px);
  background-image: linear-gradient(90deg, rgba(246, 250, 249, 0.98) 0%, rgba(246, 250, 249, 0.9) 34%, rgba(246, 250, 249, 0.2) 65%, rgba(246, 250, 249, 0.0) 100%), url("assets/hero-nfse-contabil.png");
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 610px;
  margin: 22px 0 0;
  color: #365469;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.section {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 72px);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.card {
  min-height: 178px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(9, 32, 51, 0.05);
}

.card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

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

.stripe {
  background: #0b2c3d;
  color: #fff;
}

.stripe .section-head p,
.stripe .card p {
  color: rgba(255, 255, 255, 0.72);
}

.stripe .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.trust-item {
  padding: 18px 20px;
  border-left: 4px solid var(--green-2);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.trust-item span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(9, 32, 51, 0.08);
}

.download-panel h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.download-panel p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.page-hero {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.page-hero .section-inner {
  max-width: 980px;
}

.page-hero h1 {
  max-width: 840px;
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.footer {
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .topbar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
    background-image: linear-gradient(180deg, rgba(246, 250, 249, 1) 0%, rgba(246, 250, 249, 0.9) 45%, rgba(246, 250, 249, 0.42) 100%), url("assets/hero-nfse-contabil.png");
    background-position: center right;
  }

  .grid,
  .trust-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 10px;
    font-size: 13px;
  }

  .hero-actions .button,
  .download-panel .button {
    width: 100%;
  }
}
