:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-soft: #f9fcff;
  --text: #0e1a2b;
  --text-muted: #5c6b80;
  --primary: #00bcd4;
  --primary-deep: #0f6fff;
  --secondary: #8b7dff;
  --mint: #70e3c4;
  --border: #e6edf4;
  --shadow-sm: 0 10px 24px rgba(16, 35, 72, 0.06);
  --shadow-md: 0 20px 45px rgba(17, 40, 82, 0.12);
  --radius: 18px;
  --radius-lg: 24px;
  --transition: 260ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f9fcff 0%, #f5f8fc 42%, #f7f8fb 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-sm {
  padding: 1.5rem 0 2.5rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.07rem;
  line-height: 1.35;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0f708e;
  font-weight: 700;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 0.74rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #00b7d4, #1a78ff 65%, #6f65ff);
  box-shadow: 0 12px 24px rgba(30, 97, 225, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 32px rgba(22, 92, 223, 0.34);
}

.btn-secondary {
  border-color: #cfdcf1;
  background: rgba(255, 255, 255, 0.86);
  color: #0c2040;
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: #aac6ef;
  background: #eff6ff;
}

.btn-ghost {
  border-color: transparent;
  color: #1e3356;
  background: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(250, 252, 255, 0.86);
  backdrop-filter: blur(14px);
  border-color: #e4ebf5;
  box-shadow: 0 10px 28px rgba(13, 39, 81, 0.07);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #06132a;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex: 1;
  margin-left: 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-weight: 600;
  color: #244268;
}

.nav-links a:hover {
  color: #0b6dcb;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #17345d;
  border-radius: 2px;
}

.hero {
  padding-top: 4.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.1rem;
  align-items: center;
}

.hero-copy {
  max-width: 630px;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.note {
  margin-top: 1rem;
  color: #607189;
  font-size: 0.9rem;
}

.dashboard {
  background: linear-gradient(155deg, #fcfdff, #f0f6ff);
  border: 1px solid #dce8f9;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
}

.dash-card {
  background: #fff;
  border: 1px solid #e2ebf6;
  border-radius: 16px;
  padding: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.dash-card h3 {
  font-size: 0.86rem;
  color: #1e3658;
  margin-bottom: 0.5rem;
}

.dash-card .value {
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.muted {
  color: #70829c;
  font-size: 0.82rem;
}

.overdue,
.cash,
.timeline,
.schedule {
  grid-column: span 3;
}

.status,
.sync {
  grid-column: span 2;
}

.aging {
  grid-column: span 4;
}

.schedule ul,
.timeline ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
  font-size: 0.82rem;
}

.schedule li,
.timeline li {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  color: #415676;
}

.tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.74rem;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.tag.danger {
  color: #a21b31;
  background: #fff2f4;
  border-color: #ffd5dc;
}

.tag.warning {
  color: #8a5c04;
  background: #fff8eb;
  border-color: #ffe6bb;
}

.tag.success {
  color: #1d6c45;
  background: #edfbf4;
  border-color: #beefd5;
}

.bars {
  display: grid;
  gap: 0.45rem;
}

.bars div {
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;
  font-size: 0.76rem;
  color: #567092;
  gap: 0.5rem;
}

.bars i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--primary-deep));
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #2f4d72;
  background: #f2f9ff;
  padding: 0.3rem 0.52rem;
  border-radius: 999px;
}

.sync-pill span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2dcf96;
  box-shadow: 0 0 0 4px rgba(45, 207, 150, 0.16);
}

.trust-content {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.trust-content p {
  font-size: 0.95rem;
}

.logo-pills {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.logo-pills span,
.integration-badge {
  border: 1px solid #d8e6f7;
  background: #f6fbff;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.8rem;
  color: #34557b;
  font-weight: 600;
}

.integration-badge {
  background: linear-gradient(135deg, #e9fbff, #eef1ff);
}

.section-head {
  max-width: 750px;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--text-muted);
  margin-top: 0.65rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card p {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card:hover,
.integration-card:hover,
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 34px rgba(14, 38, 79, 0.14);
  border-color: #cfe0f6;
}

.tinted {
  background: radial-gradient(circle at 0% 0%, rgba(0, 188, 212, 0.07), transparent 45%), #f8fbff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), var(--primary-deep));
  margin-bottom: 0.8rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: start;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.integration-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.integration-card.main {
  grid-column: span 2;
  background: linear-gradient(150deg, #f1fdff, #edf1ff);
}

.integration-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.55rem;
}

.testimonial span {
  font-size: 0.82rem;
  color: #6b7f9a;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pricing-card {
  position: relative;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.6rem 0 1rem;
}

.pricing-card .price span {
  font-size: 0.95rem;
  color: #587199;
}

.pricing-card ul {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.pricing-card li {
  color: #435978;
  font-size: 0.9rem;
}

.popular {
  border: 1px solid #aec9ff;
  box-shadow: 0 24px 42px rgba(18, 82, 214, 0.17);
}

.popular-badge {
    display: none;
  position: absolute;
  top: -12px;
  left: 1.2rem;
  background: linear-gradient(135deg, var(--secondary), #5d85ff);
  color: #fff;
  border-radius: 999px;
  padding: 0.23rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0.72rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font-size: 0.97rem;
  font-weight: 650;
  color: #132d53;
  cursor: pointer;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::after {
  content: "+";
  font-size: 1.2rem;
  color: #4e6588;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq-answer p {
  padding: 0 1.1rem 1rem;
  color: #5d728f;
  font-size: 0.92rem;
}

.final-cta {
  padding-top: 4rem;
}

.cta-box {
  border-radius: var(--radius-lg);
  border: 1px solid #d4e4f7;
  background: linear-gradient(135deg, #f3fbff 0%, #ecf0ff 100%);
  text-align: center;
  padding: 2.2rem 1rem;
  box-shadow: var(--shadow-md);
}

.cta-box p {
  margin-top: 0.6rem;
  color: #4f6485;
}

.cta-box .hero-actions {
  justify-content: center;
  margin-top: 1.4rem;
}

.site-footer {
  border-top: 1px solid #dde7f2;
  padding: 1.6rem 0 2rem;
  background: #f7f9fc;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin: 0;
  padding: 0;
}

.footer-grid a {
  color: #36557e;
  font-size: 0.9rem;
}

.footer-note {
  margin-top: 0.9rem;
}

.footer-note p {
  color: #6a7e99;
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .hero-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .integration-card.main {
    grid-column: span 3;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: rgba(250, 252, 255, 0.98);
    border-top: 1px solid #dce7f4;
    border-bottom: 1px solid #dce7f4;
    box-shadow: 0 18px 35px rgba(21, 43, 86, 0.12);
    padding: 1rem 4%;
    display: grid;
    gap: 0.9rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-panel.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links,
  .nav-cta {
    flex-wrap: wrap;
  }

  .dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard > * {
    grid-column: span 2;
  }

  .steps,
  .grid.three,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.2rem 0;
  }

  .grid.two,
  .grid.four,
  .integration-grid {
    grid-template-columns: 1fr;
  }

  .integration-card.main {
    grid-column: span 1;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}
