:root {
  --ptp-primary: #286498;
  --ptp-primary-dark: #1a4a73;
  --ptp-primary-light: #3a7cb8;
  --ptp-primary-bg: rgba(40, 100, 152, 0.04);
  --ptp-primary-bg-medium: rgba(40, 100, 152, 0.08);
  --ptp-accent: #198754;
  --ptp-dark: #1a2332;
  --ptp-text: #374151;
  --ptp-text-light: #6b7280;
  --ptp-border: #e5e7eb;
  --ptp-section-alt: #f8f9fa;
}

/* ===== TYPOGRAPHY ===== */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ptp-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ptp-dark);
  line-height: 1.3;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ptp-primary);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.section-subheading {
  font-size: 1.125rem;
  color: var(--ptp-text-light);
  max-width: 640px;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 2.75rem;
  }
}

/* ===== BUTTONS ===== */

.btn-ptp-primary {
  background-color: var(--ptp-primary);
  border-color: var(--ptp-primary);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-ptp-primary:hover,
.btn-ptp-primary:focus {
  background-color: var(--ptp-primary-dark);
  border-color: var(--ptp-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 100, 152, 0.3);
}

.btn-ptp-outline {
  background-color: transparent;
  border: 2px solid var(--ptp-primary);
  color: var(--ptp-primary);
  font-weight: 600;
  padding: 0.6875rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-ptp-outline:hover,
.btn-ptp-outline:focus {
  background-color: var(--ptp-primary);
  border-color: var(--ptp-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 100, 152, 0.3);
}

.btn-ptp-white {
  background-color: #fff;
  border-color: #fff;
  color: var(--ptp-primary);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-ptp-white:hover,
.btn-ptp-white:focus {
  background-color: #f0f4f8;
  border-color: #f0f4f8;
  color: var(--ptp-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-ptp-secondary {
  background-color: #4a5568;
  border-color: #4a5568;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-ptp-secondary:hover,
.btn-ptp-secondary:focus {
  background-color: #2d3748;
  border-color: #2d3748;
  color: #fff;
  transform: translateY(-1px);
}

/* ===== NAVBAR ===== */

.ptp-navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ptp-navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ptp-navbar .nav-link {
  font-weight: 500;
  color: var(--ptp-text) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.ptp-navbar .nav-link:hover {
  color: var(--ptp-primary) !important;
}

/* ===== HERO ===== */

.hero-section {
  padding: 7rem 0 5rem;
  background: linear-gradient(135deg, var(--ptp-primary-bg) 0%, #fff 50%, rgba(25, 135, 84, 0.02) 100%);
  overflow: hidden;
}

.hero-section h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 9rem 0 6rem;
  }
  .hero-section h1 {
    font-size: 3.5rem;
  }
}

/* ===== STATS BAR ===== */

.stats-bar {
  background: #fff;
  border-top: 1px solid var(--ptp-border);
  border-bottom: 1px solid var(--ptp-border);
  padding: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ptp-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--ptp-text-light);
  font-weight: 500;
}

/* ===== FEATURE CARDS ===== */

.feature-card {
  background: #fff;
  border: 1px solid var(--ptp-border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  border-color: var(--ptp-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(40, 100, 152, 0.12);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: var(--ptp-primary-bg-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--ptp-primary);
}

.feature-card h5 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--ptp-text-light);
  margin-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ===== SCREENSHOT SECTION ===== */

.screenshot-section {
  background: var(--ptp-section-alt);
}

.screenshot-mockup {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--ptp-border);
}

.screenshot-mockup-bar {
  background: #f1f3f5;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--ptp-border);
}

.screenshot-mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dee2e6;
}

.screenshot-mockup-body {
  padding: 0;
  min-height: 300px;
  background: linear-gradient(135deg, var(--ptp-primary-bg) 0%, #f8f9fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ptp-text-light);
  font-size: 0.875rem;
}

/* ===== HOW IT WORKS ===== */

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ptp-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-connector {
  position: absolute;
  top: 48px;
  left: 23px;
  width: 2px;
  height: calc(100% - 48px);
  background: var(--ptp-primary-bg-medium);
}

/* ===== COUNTY GRID ===== */

.county-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 576px) {
  .county-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .county-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) {
  .county-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.county-tag {
  background: #fff;
  border: 1px solid var(--ptp-border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ptp-text);
  text-align: center;
  transition: all 0.2s ease;
}

.county-tag:hover {
  border-color: var(--ptp-primary);
  color: var(--ptp-primary);
  background: var(--ptp-primary-bg);
}

/* ===== TESTIMONIAL CARDS ===== */

.testimonial-card {
  background: #fff;
  border: 1px solid var(--ptp-border);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
}

.testimonial-card .quote-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--ptp-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-card .quote-author {
  font-weight: 600;
  color: var(--ptp-dark);
  font-size: 0.9375rem;
}

.testimonial-card .quote-role {
  font-size: 0.8125rem;
  color: var(--ptp-text-light);
}

/* ===== PRICING CTA ===== */

.pricing-cta-section {
  background: var(--ptp-section-alt);
}

.pricing-cta-card {
  background: #fff;
  border: 1px solid var(--ptp-border);
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== CLIENT PORTAL ===== */

.portal-card {
  background: #fff;
  border: 1px solid var(--ptp-border);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ===== CHANGELOG ===== */

.changelog-item {
  border-left: 3px solid var(--ptp-primary);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.changelog-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ptp-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.changelog-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ptp-dark);
  margin: 0.25rem 0 0.5rem;
}

.changelog-desc {
  font-size: 0.9375rem;
  color: var(--ptp-text-light);
  margin-bottom: 0;
}

/* ===== CONTACT FORM ===== */

.contact-form .form-control {
  border: 2px solid var(--ptp-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .form-control:focus {
  border-color: var(--ptp-primary);
  box-shadow: 0 0 0 0.2rem rgba(40, 100, 152, 0.15);
}

/* ===== FINAL CTA ===== */

.final-cta {
  background: linear-gradient(135deg, var(--ptp-primary) 0%, var(--ptp-primary-dark) 100%);
  color: #fff;
  padding: 5rem 0;
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== FOOTER ===== */

.ptp-footer {
  background: var(--ptp-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
}

.ptp-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ptp-footer a:hover {
  color: #fff;
}

/* ===== SCROLL ANIMATIONS ===== */

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTION SPACING ===== */

.section-padding {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 0;
  }
}

/* ===== MISC ===== */

a {
  color: var(--ptp-primary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ptp-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.bg-section-alt {
  background-color: var(--ptp-section-alt);
}
