.payroll-page {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-accent));
  z-index: 80;
  transition: width 0.08s linear;
}

.payroll-hero {
  padding: 64px 0 34px;
  position: relative;
}

.payroll-hero::before {
  content: "";
  position: absolute;
  left: -120px;
  top: -70px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.14), transparent 70%);
  pointer-events: none;
}

.payroll-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(400px, 0.97fr);
  gap: 40px;
  align-items: center;
}

.payroll-hero-copy h1 {
  margin-top: 18px;
  max-width: 720px;
  font-size: clamp(2.2rem, 3.3vw, 3.45rem);
  line-height: 1.04;
}

.payroll-hero-copy .lead {
  margin-top: 22px;
  max-width: 680px;
  line-height: 1.72;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-note-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-note-row span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.12);
  color: var(--brand-600);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-highlights-band {
  padding: 18px 0 8px;
}

.hero-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero-highlight-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  min-height: 138px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.hero-highlight-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.05);
  border-color: rgba(59, 130, 246, 0.18);
}

.hero-highlight-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.24;
  color: var(--surface-fg);
}

.hero-highlight-item p {
  font-size: 0.95rem;
  line-height: 1.58;
  color: var(--text-muted);
}

.vision-band {
  padding: 88px 0 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0));
}

.vision-band-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: start;
}

.vision-band-copy h2 {
  margin-top: 18px;
  max-width: 640px;
  line-height: 1.06;
}

.vision-band-copy p {
  margin-top: 18px;
  max-width: 600px;
  line-height: 1.72;
}

.vision-band-points {
  display: grid;
  gap: 16px;
}

.vision-point {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.vision-point:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.05);
  border-color: rgba(59, 130, 246, 0.18);
}

.vision-point strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.24;
  color: var(--surface-fg);
}

.vision-point span {
  display: block;
  line-height: 1.58;
  color: var(--text-muted);
}

.process-section {
  padding: 88px 0 24px;
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-item {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-top: 4px solid var(--brand-600);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  min-height: 208px;
}

.process-item-accent {
  border-top-color: #d97706;
}

.process-item-muted {
  border-top-color: #64748b;
}

.process-item-head {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.process-item-head .icon-badge {
  margin-bottom: 0;
}

.process-item h3 {
  font-size: 1.02rem;
  line-height: 1.28;
  margin-bottom: 10px;
}

.process-item p {
  font-size: 0.96rem;
  line-height: 1.62;
}

.process-band {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(248,251,255,0.9));
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: center;
}

.process-band-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.28;
  color: var(--surface-fg);
}

.process-band-copy p {
  line-height: 1.62;
}

.process-band-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.process-band-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.1);
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
}

.architecture-section {
  padding: 88px 0 24px;
}

.output-composition {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.output-main-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(248,251,255,0.94));
  border: 1px solid var(--surface-border);
  border-top: 4px solid var(--brand-600);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.output-main-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.output-main-head .icon-badge {
  margin-bottom: 0;
}

.output-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.14);
  color: var(--brand-600);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.output-main-card h3 {
  margin-top: 12px;
  margin-bottom: 10px;
  max-width: 660px;
  font-size: 1.28rem;
  line-height: 1.24;
}

.output-main-card p {
  line-height: 1.68;
}

.output-main-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.output-main-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.1);
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
}

.output-secondary-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.output-secondary-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-top: 4px solid var(--brand-600);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.output-secondary-card-primary {
  border-top-color: var(--brand-600);
}

.output-secondary-card-accent {
  border-top-color: #d97706;
}

.output-secondary-card-muted {
  border-top-color: #64748b;
}

.output-secondary-card h3 {
  font-size: 1.02rem;
  line-height: 1.24;
  margin-bottom: 10px;
}

.output-secondary-card p {
  line-height: 1.62;
}

.output-module-placeholder {
  min-height: 560px;
}

.capabilities-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 20px;
  align-items: start;
}

.capabilities-feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(248,251,255,0.94));
  border: 1px solid var(--surface-border);
  border-top: 4px solid var(--brand-600);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.capabilities-feature-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.capabilities-feature-head .icon-badge {
  margin-bottom: 0;
}

.capabilities-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.14);
  color: var(--brand-600);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.capabilities-feature h3 {
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.24;
}

.capabilities-feature p {
  line-height: 1.68;
}

.capabilities-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.capabilities-feature-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.1);
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
}

.capabilities-side {
  display: grid;
  gap: 16px;
}

.capability-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-left: 4px solid var(--brand-600);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.capability-row-accent {
  border-left-color: #d97706;
}

.capability-row-muted {
  border-left-color: #64748b;
}

.capability-row-primary {
  border-left-color: var(--brand-600);
}

.capability-row .icon-badge {
  margin-bottom: 0;
}

.capability-row h3 {
  font-size: 1.02rem;
  line-height: 1.24;
  margin-bottom: 8px;
}

.capability-row p {
  line-height: 1.6;
}

.capabilities-insight {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  color: #ffffff;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
}

.capabilities-insight .icon-badge {
  margin-bottom: 0;
}

.capabilities-insight strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.24;
  color: #ffffff;
}

.capabilities-insight p {
  color: rgba(255,255,255,0.9);
  line-height: 1.62;
}

.showcase-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1.2fr);
  gap: 34px;
  align-items: center;
}

.showcase-copy h2 {
  margin-top: 18px;
  max-width: 540px;
  line-height: 1.06;
}

.showcase-copy p {
  margin-top: 18px;
  max-width: 560px;
  line-height: 1.7;
}

.showcase-copy .btn {
  margin-top: 24px;
}

/* ICONS */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-badge svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-standard {
  width: 42px;
  height: 42px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--brand-600);
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.icon-standard svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.icon-accent {
  width: 40px;
  height: 40px;
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.icon-accent svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.icon-muted {
  width: 38px;
  height: 38px;
  background: rgba(15, 23, 42, 0.05);
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.icon-muted svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.icon-prominent {
  width: 44px;
  height: 44px;
}

.icon-inverted {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
}

.icon-inverted svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-stagger.reveal-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.reveal-visible > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.reveal-visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.reveal-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.reveal-visible > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger.reveal-visible > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.reveal-visible > *:nth-child(6) { transition-delay: 0.34s; }

.floating-mockup {
  animation: mockupFloat 8s ease-in-out infinite;
}

.floating-mockup-slow {
  animation: mockupFloatSlow 10s ease-in-out infinite;
}

@keyframes mockupFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes mockupFloatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.01);
}

.btn:active {
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .payroll-hero-grid,
  .vision-band-shell,
  .showcase-shell,
  .output-composition,
  .capabilities-layout,
  .process-band {
    grid-template-columns: 1fr;
  }

  .hero-highlights-grid,
  .output-secondary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-rail {
    grid-template-columns: 1fr 1fr;
  }

  .process-band-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .payroll-hero {
    padding: 48px 0 24px;
  }

  .hero-highlights-grid,
  .process-rail,
  .output-secondary-grid {
    grid-template-columns: 1fr;
  }

  .vision-point {
    grid-template-columns: 1fr;
  }

  .output-main-head,
  .capabilities-feature-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .capability-row,
  .capabilities-insight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .payroll-hero-copy h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-highlight-item,
  .vision-point,
  .process-item,
  .process-band,
  .output-main-card,
  .output-secondary-card,
  .capabilities-feature,
  .capability-row,
  .capabilities-insight {
    padding: 18px;
  }

  .output-module-placeholder {
    min-height: 460px;
  }
}