:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef5ff;
  --navy: #071736;
  --navy-2: #0d224f;
  --brand: #236df3;
  --cyan: #12c7d9;
  --green: #14a36d;
  --amber: #f2a900;
  --red: #c62828;
  --text: #0e1b33;
  --muted: #5f6e84;
  --line: #d9e2ef;
  --shadow: 0 22px 70px rgba(8, 26, 63, .15);
  --radius: 8px;
}

* { 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);
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(35, 109, 243, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 109, 243, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 68%);
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(244, 247, 251, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 226, 239, .9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--navy);
  white-space: nowrap;
}

.brand strong { color: var(--cyan); }

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: #e9f3ff;
  border: 1px solid #d4e8ff;
}

.brand-mark svg { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 34px);
  color: #42526c;
  font-size: 14px;
  font-weight: 700;
}

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

.nav-links {
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}

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

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 26px rgba(35, 109, 243, .28);
}

.btn.primary:hover { background: #1559d0; }

.btn.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}

.btn.ghost:hover { border-color: #a9c6f5; }

.btn.light {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.24);
}

.btn.large { min-height: 50px; padding: 0 24px; }

.btn.full { width: 100%; margin-top: 18px; }

.hero {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.hero-grid {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  max-height: 840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: 54px 0 64px;
}

.hero-copy {
  display: grid;
  gap: 22px;
  align-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: #2a8cff;
  background: #e8f3ff;
  border: 1px solid #cfe4ff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #95f7ff;
  background: rgba(18, 199, 217, .12);
  border-color: rgba(18, 199, 217, .34);
}

h1, h2, h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: .96;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  color: var(--navy);
}

h3 {
  font-size: 21px;
  line-height: 1.16;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-lead {
  max-width: 640px;
  color: #c7d5ee;
  font-size: 18px;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #b9c8e3;
  font-size: 13px;
  font-weight: 800;
}

.hero-proof span {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding: 8px 10px;
  border-radius: 999px;
}

.product-preview {
  min-width: 0;
}

.preview-shell {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  border-radius: 14px;
  overflow: hidden;
}

.preview-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.08);
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ed6a5f;
}

.preview-bar span:nth-child(2) { background: #f6bd4f; }
.preview-bar span:nth-child(3) { background: #61c454; }
.preview-bar strong { margin-left: auto; color: #d8e6ff; font-size: 12px; }

.preview-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 390px;
  background: #f8fbff;
  color: var(--text);
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 12px;
  border-right: 1px solid #e2eaf5;
  background: #edf4ff;
}

.preview-sidebar b {
  font-family: "Space Grotesk", Inter, sans-serif;
  color: var(--navy);
  margin-bottom: 8px;
}

.preview-sidebar a {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #52637b;
}

.preview-sidebar a.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 6px 20px rgba(15, 38, 87, .08);
}

.preview-content {
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.preview-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-status div,
.invoice-card,
.feature-card,
.steps-grid article,
.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preview-status div {
  padding: 14px;
}

.preview-status small {
  display: block;
  min-height: 32px;
  color: #65758d;
  font-weight: 800;
  font-size: 11px;
}

.preview-status strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 27px;
  color: var(--navy);
}

.invoice-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.invoice-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf2fb;
  color: #52637b;
  font-size: 11px;
  font-weight: 900;
}

.tag.success { background: #dcfce7; color: #14734e; }
.tag.warn { background: #fff4d1; color: #8a5a00; }

.invoice-card h3 { color: var(--navy); }
.invoice-card p { font-size: 13px; }

.ledger-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  background: #f6f9fd;
  border: 1px solid #e5edf7;
  border-radius: 8px;
  font-size: 12px;
}

.ledger-row span { font-weight: 900; color: var(--brand); }
.ledger-row em { font-style: normal; color: #5f6e84; }
.ledger-row strong { color: var(--navy); }

.integration-strip {
  width: min(1180px, calc(100% - 40px));
  margin: -32px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(8, 26, 63, .11);
}

.integration-strip span {
  min-height: 56px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 8px;
  background: #f6f9fd;
  color: var(--navy);
  font-weight: 900;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 0;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head p { font-size: 17px; }
.section-head.compact { max-width: 680px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 260px;
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.feature-card h3 { color: var(--navy); }

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: inline-block;
  border: 1px solid;
  position: relative;
}

.feature-icon::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.feature-icon.dian { background: #e8f3ff; color: var(--brand); border-color: #c7dcff; }
.feature-icon.puc { background: #e8fff8; color: var(--green); border-color: #bff1dd; }
.feature-icon.ai { background: #ebfbff; color: var(--cyan); border-color: #b7eff6; }
.feature-icon.siigo { background: #fff7dc; color: var(--amber); border-color: #f8e7a6; }

.module-section {
  margin-top: 92px;
  padding: 84px max(20px, calc((100vw - 1180px) / 2));
  background: #eef5ff;
  border-block: 1px solid #dbe8f7;
}

.module-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.module-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.module-tab {
  min-height: 54px;
  text-align: left;
  border: 1px solid #d3e0f0;
  border-radius: 8px;
  background: #fff;
  color: #52637b;
  padding: 0 18px;
  font: 800 14px Inter, sans-serif;
  cursor: pointer;
}

.module-tab.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.module-panel {
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px solid #d3e0f0;
  background: #fff;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 24px 60px rgba(8, 26, 63, .1);
}

.module-copy {
  display: none;
  max-width: 760px;
}

.module-copy.active {
  display: grid;
  gap: 18px;
}

.module-copy h3 {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--navy);
}

.module-copy p { font-size: 17px; }

.module-copy ul,
.plan-card ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.module-copy li,
.plan-card li {
  position: relative;
  padding-left: 22px;
  color: #42526c;
  line-height: 1.5;
}

.module-copy li::before,
.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.stats-band {
  width: min(1180px, calc(100% - 40px));
  margin: 82px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.stats-band div {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.stats-band div:last-child { border-right: 0; }

.stats-band strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 42px;
  color: var(--brand);
}

.stats-band span {
  color: #52637b;
  font-weight: 800;
  line-height: 1.45;
}

.process { padding-top: 92px; }

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

.steps-grid article {
  padding: 24px;
  min-height: 230px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.steps-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.steps-grid h3,
.plan-card h3 { color: var(--navy); }

.pricing { padding-bottom: 0; }

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

.plan-card {
  padding: 26px;
  display: grid;
  align-content: start;
  min-height: 390px;
}

.plan-card.featured {
  border-color: #9fc4ff;
  box-shadow: 0 22px 60px rgba(35, 109, 243, .16);
}

.plan-card h3 { margin-top: 8px; }

.plan-card p { margin-top: 10px; }
.plan-card ul { margin-top: 22px; }

.cta-section {
  width: min(1180px, calc(100% - 40px));
  margin: 92px auto 0;
  padding: clamp(28px, 5vw, 54px);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}

.cta-section h2 {
  max-width: 780px;
  color: #fff;
  margin-top: 14px;
}

.cta-section p {
  max-width: 720px;
  color: #c8d6ed;
  margin-top: 12px;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #65758d;
  font-size: 14px;
}

.footer-brand { font-size: 18px; }
.site-footer p { max-width: 500px; }
.site-footer a { color: var(--brand); font-weight: 900; }

@media (max-width: 980px) {
  .site-nav { height: auto; min-height: 68px; flex-wrap: wrap; padding-block: 12px; }
  .nav-links { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .hero-grid { grid-template-columns: 1fr; max-height: none; }
  .product-preview { max-width: 680px; }
  .integration-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-grid,
  .steps-grid,
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .module-layout { grid-template-columns: 1fr; }
  .module-tabs { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band div:nth-child(2) { border-right: 0; }
  .stats-band div { border-bottom: 1px solid var(--line); }
  .stats-band div:nth-child(n+3) { border-bottom: 0; }
  .cta-section,
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero-grid {
    min-height: auto;
    padding: 36px 0 44px;
    gap: 20px;
  }

  .hero-copy { gap: 16px; }
  .hero-lead { font-size: 15px; line-height: 1.55; }
  .hero-actions .btn { flex: 1 1 150px; min-height: 44px; }
  .hero-proof { gap: 7px; }
  .hero-proof span { padding: 6px 8px; font-size: 11px; }

  .product-preview {
    max-height: 206px;
    overflow: hidden;
  }

  .preview-body {
    min-height: 160px;
    grid-template-columns: 1fr;
  }

  .preview-sidebar { display: none; }
  .preview-content { padding: 10px; gap: 9px; }
  .preview-status { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .preview-status div { padding: 9px; }
  .preview-status small { min-height: auto; font-size: 9px; }
  .preview-status strong { font-size: 19px; }
  .invoice-card { padding: 11px; gap: 8px; }
  .invoice-card p { display: none; }
  .invoice-card h3 { font-size: 17px; }
  .ledger-row { grid-template-columns: 1fr auto; padding: 8px; gap: 6px; }
  .ledger-row em { display: none; }
  .ledger-row:nth-of-type(2) { display: none; }

  .integration-strip { margin-top: -58px; }

  .nav-actions { width: 100%; }
  .nav-actions .btn { flex: 1; }
  h1 { font-size: 42px; }
  .hero-grid,
  .section,
  .integration-strip,
  .stats-band,
  .cta-section,
  .site-footer { width: min(100% - 28px, 1180px); }
  .preview-body { grid-template-columns: 1fr; }
  .preview-sidebar { grid-template-columns: repeat(4, 1fr); border-right: 0; border-bottom: 1px solid #e2eaf5; }
  .preview-sidebar b { grid-column: 1 / -1; }
  .preview-status,
  .feature-grid,
  .steps-grid,
  .plan-grid,
  .stats-band,
  .integration-strip { grid-template-columns: 1fr; }
  .module-tabs { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 1fr; }
  .stats-band div,
  .stats-band div:nth-child(2),
  .stats-band div:nth-child(n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-band div:last-child { border-bottom: 0; }
}
