:root {
  color-scheme: light;
  --ink: #13202b;
  --muted: #61717e;
  --line: #d9e2e8;
  --paper: #fbfcfd;
  --panel: #ffffff;
  --blue: #1269b0;
  --green: #0d8063;
  --yellow: #f2b84b;
  --red: #c74848;
  --teal: #24a3a1;
  --shadow: 0 18px 50px rgba(28, 48, 67, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 253, 0.92);
  border-bottom: 1px solid rgba(217, 226, 232, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: #334553;
  font-size: 0.95rem;
}

nav a {
  padding: 8px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  min-height: calc(100vh - 74px);
  padding: clamp(48px, 8vw, 92px) clamp(18px, 4vw, 56px) 42px;
  background:
    linear-gradient(135deg, rgba(18, 105, 176, 0.1), rgba(13, 128, 99, 0.06) 38%, rgba(242, 184, 75, 0.12)),
    var(--paper);
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.lead {
  max-width: 650px;
  color: #344957;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

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

.button,
.request-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.request-button:hover {
  transform: translateY(-1px);
}

.primary,
.request-button {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 105, 176, 0.24);
}

.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(74px, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 430px;
  perspective: 900px;
}

.cover,
.mini-cover {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cover::before,
.mini-cover::before {
  content: "";
  position: absolute;
  inset: 0 0 0 16%;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 18%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent 42%);
}

.cover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 22px 14px;
  color: #fff;
  transform: rotateY(-11deg);
}

.cover:nth-child(2),
.cover:nth-child(4) {
  min-height: 370px;
  transform: translateY(-28px) rotateY(-8deg);
}

.cover:nth-child(3) {
  min-height: 410px;
  transform: translateY(-48px) rotateY(-6deg);
}

.cover span,
.cover strong,
.mini-cover span {
  position: relative;
}

.cover span {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cover strong {
  font-size: 1.35rem;
  line-height: 1;
}

.cover-cloud {
  background: linear-gradient(150deg, #1269b0, #1b9ad1);
}

.cover-fiscal {
  background: linear-gradient(150deg, #0d8063, #38ad7b);
}

.cover-pdv {
  background: linear-gradient(150deg, #e1a223, #c74848);
}

.cover-suporte {
  background: linear-gradient(150deg, #27394a, #24a3a1);
}

.cover-tef {
  background: linear-gradient(150deg, #6d4bc7, #1269b0);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 22px clamp(18px, 4vw, 56px);
  background: #fff;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  color: var(--muted);
}

.section,
.process,
.contact {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

.section-heading p,
.process p,
.contact-copy p {
  color: var(--muted);
}

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

.ebook-card {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 22px;
  min-height: 316px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(28, 48, 67, 0.07);
}

.ebook-card:last-child {
  grid-column: 1 / -1;
  max-width: calc(50% - 9px);
}

.mini-cover {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 280px;
  padding: 18px;
  color: #fff;
}

.mini-cover span {
  font-size: 1.25rem;
  font-weight: 900;
}

.ebook-content {
  min-width: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(13, 128, 99, 0.11);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.ebook-content p,
.ebook-content li {
  color: #526371;
}

.ebook-content ul {
  display: grid;
  gap: 6px;
  margin: 16px 0 20px;
  padding-left: 18px;
}

.request-button {
  width: 100%;
}

.process {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 34px;
  background: #eef4f7;
}

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

.steps article {
  min-height: 210px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  display: block;
  margin-bottom: 26px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contact-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #314351;
  font-weight: 800;
}

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

textarea {
  resize: vertical;
}

.form-actions {
  margin-top: 4px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: #d6e6f1;
  background: #142433;
}

.site-footer span {
  color: #aebfcc;
}

@media (max-width: 980px) {
  .hero,
  .process,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 320px;
  }

  .cover,
  .cover:nth-child(2),
  .cover:nth-child(3),
  .cover:nth-child(4) {
    min-height: 260px;
    transform: none;
  }

  .catalog-grid,
  .steps,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .ebook-card:last-child {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-visual {
    grid-template-columns: repeat(5, 130px);
    min-height: 280px;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .cover {
    min-height: 250px;
  }

  .ebook-card {
    grid-template-columns: 1fr;
  }

  .mini-cover {
    min-height: 190px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 3rem;
  }

  nav {
    gap: 8px;
    font-size: 0.88rem;
  }

  .button,
  .request-button {
    width: 100%;
  }
}
