/* PayrollX Marketing — Premium theme */
:root {
  --px-primary: #1b2838;
  --px-primary-light: #2d3e50;
  --px-accent: #c9a227;
  --px-accent-light: #e8d5a3;
  --px-surface: #faf9f7;
  --px-white: #ffffff;
  --px-text: #1a1a1a;
  --px-muted: #6b7280;
  --px-border: #e5e7eb;
  --px-success: #10b981;
  --px-radius: 1rem;
  --px-radius-lg: 1.5rem;
  --px-radius-pill: 50rem;
  --px-shadow: 0 4px 24px rgba(27, 40, 56, 0.08);
  --px-shadow-lg: 0 20px 50px rgba(27, 40, 56, 0.12);
  --px-font: "DM Sans", system-ui, sans-serif;
  --px-font-display: "Plus Jakarta Sans", var(--px-font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--px-font);
  color: var(--px-text);
  background: var(--px-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--px-font-display);
  font-weight: 700;
  color: var(--px-primary);
}

.text-accent {
  color: var(--px-accent) !important;
}

.bg-primary-custom {
  background-color: var(--px-primary) !important;
}

.bg-surface {
  background-color: var(--px-surface) !important;
}

/* Navbar */
.navbar-payrollx {
  padding: 1rem 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.navbar-payrollx.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: var(--px-shadow);
  padding: 0.6rem 0;
}

.navbar-brand-payrollx {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--px-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--px-primary) !important;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--px-primary) 0%, var(--px-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--px-accent);
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.text-primary-custom {
  color: var(--px-primary) !important;
}

.page-hero {
  padding: 7rem 0 3rem;
  background: linear-gradient(160deg, var(--px-surface) 0%, #fff 60%);
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.screenshot-card {
  border-radius: var(--px-radius-lg);
  overflow: hidden;
  border: 1px solid var(--px-border);
  background: var(--px-white);
  box-shadow: var(--px-shadow);
  transition: transform 0.25s;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--px-shadow-lg);
}

.screenshot-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--px-surface);
}

.screenshot-card img.app-gallery-phone {
  height: 200px;
  object-fit: contain;
  object-position: center top;
  padding: 0.75rem;
  background: var(--px-surface);
}

/* Mobile app screenshots (employer / employee) */
.app-shot-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
}

.app-phone-shot {
  display: block;
  width: auto;
  max-width: 240px;
  max-height: 420px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center top;
}

.app-dashboard-shot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.hero-visual .app-phone-shot {
  max-width: 220px;
  max-height: 380px;
}

.screenshot-card .caption {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--px-primary);
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--px-muted);
}

.alert-contact {
  border-radius: 12px;
}

.nav-link-payrollx {
  color: var(--px-primary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--px-radius-pill);
  transition: background 0.2s, color 0.2s;
}

.nav-link-payrollx:hover,
.nav-link-payrollx.active {
  background: rgba(201, 162, 39, 0.15);
  color: var(--px-primary) !important;
}

.btn-accent {
  background: linear-gradient(135deg, var(--px-accent) 0%, #b8921f 100%);
  border: none;
  color: var(--px-primary) !important;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--px-radius-pill);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
  color: var(--px-primary) !important;
}

.btn-outline-primary-custom {
  border: 2px solid var(--px-primary);
  color: var(--px-primary);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--px-radius-pill);
  background: transparent;
}

.btn-outline-primary-custom:hover {
  background: var(--px-primary);
  color: var(--px-white);
}

.btn-primary-custom {
  background: var(--px-primary);
  border: none;
  color: var(--px-white);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--px-radius-pill);
}

.btn-primary-custom:hover {
  background: var(--px-primary-light);
  color: var(--px-white);
}

/* Hero */
.hero-section {
  padding: 7rem 0 5rem;
  background: linear-gradient(160deg, var(--px-surface) 0%, #fff 45%, rgba(201, 162, 39, 0.06) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--px-white);
  border: 1px solid var(--px-border);
  padding: 0.4rem 1rem;
  border-radius: var(--px-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--px-muted);
  box-shadow: var(--px-shadow);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--px-success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-visual {
  position: relative;
  border-radius: var(--px-radius-lg);
  overflow: hidden;
  box-shadow: var(--px-shadow-lg);
  background: linear-gradient(145deg, var(--px-primary) 0%, var(--px-primary-light) 100%);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-mockup {
  width: 100%;
  max-width: 280px;
  background: var(--px-white);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.mockup-bar {
  height: 8px;
  width: 40%;
  background: var(--px-border);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.mockup-card {
  background: var(--px-surface);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mockup-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--px-accent-light), var(--px-accent));
}

.mockup-line {
  flex: 1;
  height: 8px;
  background: var(--px-border);
  border-radius: 4px;
}

.mockup-line.short {
  width: 60%;
}

/* Stats */
.stat-card {
  background: var(--px-white);
  border: 1px solid var(--px-border);
  border-radius: var(--px-radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--px-shadow);
}

.stat-card.dark {
  background: var(--px-primary);
  border-color: var(--px-primary);
  color: var(--px-white);
}

.stat-card.dark h3,
.stat-card.dark .stat-label {
  color: var(--px-white);
}

.stat-card h3 {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--px-muted);
  margin: 0;
}

.stat-card.dark .stat-label {
  color: rgba(255, 255, 255, 0.75);
}

/* Section */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--px-accent);
  background: rgba(201, 162, 39, 0.12);
  padding: 0.35rem 0.9rem;
  border-radius: var(--px-radius-pill);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

/* Feature cards */
.feature-card {
  background: var(--px-white);
  border: 1px solid var(--px-border);
  border-radius: var(--px-radius-lg);
  padding: 2rem;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--px-shadow-lg);
  border-color: rgba(201, 162, 39, 0.35);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-icon.gold {
  background: rgba(201, 162, 39, 0.15);
  color: var(--px-accent);
}

.feature-icon.navy {
  background: rgba(27, 40, 56, 0.08);
  color: var(--px-primary);
}

.feature-icon.teal {
  background: rgba(16, 185, 129, 0.12);
  color: var(--px-success);
}

/* App showcase */
.app-card {
  border-radius: var(--px-radius-lg);
  overflow: hidden;
  border: 1px solid var(--px-border);
  background: var(--px-white);
  height: 100%;
}

.app-card-header {
  padding: 2rem;
  background: linear-gradient(135deg, var(--px-primary) 0%, var(--px-primary-light) 100%);
  color: var(--px-white);
}

.app-card-body {
  padding: 2rem;
}

.app-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--px-muted);
  font-size: 0.95rem;
}

.app-list li::before {
  content: "\F26B";
  font-family: bootstrap-icons;
  position: absolute;
  left: 0;
  color: var(--px-accent);
  font-weight: 700;
}

/* Steps */
.step-card {
  text-align: center;
  padding: 1.5rem;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--px-primary);
  color: var(--px-accent);
  font-weight: 800;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Testimonial */
.testimonial-card {
  background: var(--px-white);
  border: 1px solid var(--px-border);
  border-radius: var(--px-radius-lg);
  padding: 2rem;
  height: 100%;
}

.testimonial-card .stars {
  color: var(--px-accent);
  margin-bottom: 1rem;
}

/* Pricing */
.pricing-card {
  border: 1px solid var(--px-border);
  border-radius: var(--px-radius-lg);
  padding: 2.5rem 2rem;
  height: 100%;
  background: var(--px-white);
  transition: transform 0.25s, box-shadow 0.25s;
}

.pricing-card.featured {
  border: 2px solid var(--px-accent);
  box-shadow: var(--px-shadow-lg);
  position: relative;
}

.pricing-card.featured .badge-featured,
.pricing-card .plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 1rem;
  border-radius: var(--px-radius-pill);
}

.pricing-card.featured .badge-featured {
  background: var(--px-accent);
  color: var(--px-primary);
}

.plan-badge-free {
  background: var(--px-success);
  color: #fff;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--px-primary);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--px-muted);
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--px-primary) 0%, var(--px-primary-light) 100%);
  border-radius: var(--px-radius-lg);
  padding: 4rem 2rem;
  color: var(--px-white);
  text-align: center;
}

.cta-section h2 {
  color: var(--px-white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer-payrollx {
  background: var(--px-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.footer-payrollx .footer-brand {
  display: block;
  font-family: var(--px-font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--px-white) !important;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-payrollx .footer-brand:hover {
  color: var(--px-accent) !important;
}

.footer-payrollx .footer-tagline {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.6;
}

.footer-payrollx h6 {
  color: var(--px-white);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-payrollx a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-payrollx a:hover {
  color: var(--px-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

/* Contact form */
.form-control-custom {
  border: 1px solid var(--px-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.form-control-custom:focus {
  border-color: var(--px-accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 6rem;
  }

  .hero-visual {
    margin-top: 2rem;
    min-height: 320px;
  }
}
