.contractor-page {
  background: #0b111e;
  color: #f8fafc;
  overflow-x: hidden;
}

.contractor-page .cp-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.contractor-page section {
  padding: 56px 0;
  position: relative;
}

/* Hero */
.cp-hero {
  padding: 100px 0 40px;
  background:
    linear-gradient(135deg, rgba(11, 17, 30, 0.94) 0%, rgba(7, 11, 20, 0.97) 100%),
    url('/images/modules/contractor-selection.png') center/cover no-repeat;
  overflow: hidden;
}

.cp-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 115, 58, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.cp-hero .cp-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(232, 115, 58, 0.1);
  border: 1px solid rgba(232, 115, 58, 0.35);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-glow);
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.cp-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.cp-hero-visual {
  align-self: start;
}

.cp-hero h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
}

.cp-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cp-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 24px;
  line-height: 1.4;
  text-transform: none;
}

.cp-hero p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 20px;
  text-transform: none;
}

.cp-hero-highlight {
  font-weight: 600;
  color: #6ee7b7 !important;
  margin-top: -8px !important;
}

.cp-hero-note {
  font-style: italic;
  color: var(--brand-glow) !important;
  margin-top: -8px !important;
  margin-bottom: 0 !important;
}

.cp-hero-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.cp-hero-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #e2e8f0;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-transform: none;
}

.cp-hero-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand-glow);
  font-weight: 700;
}

.cp-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cp-btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cp-btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(232, 115, 58, 0.35);
}

.cp-btn-primary:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 14px 40px rgba(232, 115, 58, 0.45);
}

.cp-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.cp-btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cp-hero-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(11, 17, 30, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: default;
}

.cp-hero-card:hover {
  transform: scale(1.04);
  border-color: rgba(232, 115, 58, 0.45);
  box-shadow:
    0 0 32px rgba(232, 115, 58, 0.35),
    0 0 64px rgba(232, 115, 58, 0.15),
    0 28px 70px rgba(0, 0, 0, 0.5);
}

.cp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cp-dots {
  display: flex;
  gap: 8px;
}

.cp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.cp-live {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6ee7b7;
  text-transform: uppercase;
}

.cp-report-preview {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  color: #0f172a;
}

.cp-report-preview h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0b111e;
  text-transform: none;
}

.cp-report-box {
  margin-bottom: 18px;
}

.cp-report-box span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cp-fake-line {
  height: 8px;
  background: #e2e8f0;
  border-radius: 20px;
  margin-bottom: 6px;
}

.cp-fake-line.short { width: 45%; }
.cp-fake-line.mid { width: 75%; }
.cp-fake-line.long { width: 95%; }

/* Stats */
.contractor-page .cp-stats-section {
  padding: 32px 0;
  background: #070d18;
}

.cp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cp-stat-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(232, 115, 58, 0.55);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.28),
    0 4px 14px rgba(232, 115, 58, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cp-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-glow);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.32),
    0 6px 20px rgba(232, 115, 58, 0.18);
}

.cp-stat-card h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-glow);
  margin-bottom: 10px;
  text-transform: none;
}

.cp-stat-card h3 .counter {
  display: inline-block;
}

.cp-stat-card p {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.5;
  text-transform: none;
}

/* Section titles */
.cp-section-title {
  text-align: center;
  margin-bottom: 36px;
}

.cp-section-title h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.cp-section-title p {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.75;
  text-transform: none;
}

.cp-section-title .cp-warn {
  margin-top: 16px;
  font-weight: 600;
  color: #f87171;
}

.cp-section-title .cp-success {
  margin-top: 16px;
  color: #6ee7b7;
}

/* Tags */
.cp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cp-tag {
  padding: 10px 16px;
  border-radius: 100px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #cbd5e1;
}

/* Problem + workflow — tighter vertical rhythm */
.contractor-page section:has(.cp-section-title) {
  padding-top: 48px;
  padding-bottom: 48px;
}

.contractor-page .cp-workflow {
  background: #070d18;
  padding-top: 48px;
  padding-bottom: 56px;
}

.cp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.cp-step {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cp-step:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 115, 58, 0.4);
}

.cp-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-glow));
}

.cp-step-number {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-glow);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.cp-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f8fafc;
  text-transform: none;
}

.cp-step p {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.65;
  text-transform: none;
}

/* Why choose */
.cp-ai-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.cp-ai-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(232, 115, 58, 0.55);
  border-radius: 20px;
  padding: 36px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.28),
    0 4px 14px rgba(232, 115, 58, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cp-ai-box:hover {
  transform: translateY(-4px);
  border-color: var(--brand-glow);
  box-shadow:
    0 0 28px rgba(232, 115, 58, 0.3),
    0 0 56px rgba(232, 115, 58, 0.12),
    0 14px 40px rgba(0, 0, 0, 0.35);
}

.cp-ai-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  text-transform: none;
}

.cp-ai-box > p {
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: none;
}

.cp-ai-list {
  list-style: none;
  margin-top: 20px;
  padding: 0;
}

.cp-ai-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.6;
  text-transform: none;
}

.cp-ai-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #6ee7b7;
  font-weight: 700;
}

.cp-compliance-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(7, 11, 20, 0.95));
  border: 1.5px solid rgba(232, 115, 58, 0.55);
  border-radius: 20px;
  padding: 36px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.28),
    0 4px 14px rgba(232, 115, 58, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cp-compliance-panel:hover {
  transform: translateY(-4px);
  border-color: var(--brand-glow);
  box-shadow:
    0 0 28px rgba(232, 115, 58, 0.3),
    0 0 56px rgba(232, 115, 58, 0.12),
    0 14px 40px rgba(0, 0, 0, 0.35);
}

.cp-compliance-panel h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  text-transform: none;
}

.cp-compliance-panel > p {
  color: #94a3b8;
  margin-bottom: 24px;
  text-transform: none;
}

/* Integrations */
.contractor-page .cp-integrations {
  background: #070d18;
  padding-top: 48px;
  padding-bottom: 56px;
}

.cp-integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cp-integration-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cp-integration-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 115, 58, 0.35);
}

.cp-integration-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-glow));
}

.cp-integration-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
  text-transform: none;
}

.cp-integration-card p {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.65;
  text-transform: none;
}

/* Preview */
.cp-preview {
  background: #060a12;
}

.cp-preview-wrapper {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  color: #111827;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.cp-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e7edf5;
  margin-bottom: 32px;
}

.cp-preview-top h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b111e;
  text-transform: none;
}

.cp-preview-badge {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--brand);
  background: rgba(232, 115, 58, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
}

.cp-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cp-preview-card {
  background: #f5f8fc;
  border-radius: 16px;
  padding: 28px;
}

.cp-preview-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0c1827;
  text-transform: none;
}

.cp-preview-card ul {
  padding-left: 18px;
  color: #4a5565;
}

.cp-preview-card li {
  margin-bottom: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Compare */
.contractor-page .cp-comparison {
  background: #070d18;
  padding-top: 48px;
  padding-bottom: 56px;
}

.cp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cp-compare-card {
  padding: 36px;
  border-radius: 18px;
  border: 1.5px solid rgba(232, 115, 58, 0.55);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.28),
    0 4px 14px rgba(232, 115, 58, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cp-compare-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-glow);
  box-shadow:
    0 0 28px rgba(232, 115, 58, 0.3),
    0 0 56px rgba(232, 115, 58, 0.12),
    0 14px 40px rgba(0, 0, 0, 0.35);
}

.cp-compare-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: none;
}

.cp-compare-card ul {
  list-style: none;
  padding: 0;
}

.cp-compare-card li {
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: #e2e8f0;
  line-height: 1.6;
  text-transform: none;
}

.cp-compare-old {
  background: rgba(127, 29, 29, 0.15);
}

.cp-compare-old h3 { color: #f87171; }

.cp-compare-new {
  background: rgba(6, 78, 59, 0.15);
}

.cp-compare-new h3 { color: #6ee7b7; }

/* CTA */
.cp-cta {
  text-align: center;
  padding: 64px 0;
  background:
    linear-gradient(135deg, rgba(11, 17, 30, 0.92) 0%, rgba(7, 11, 20, 0.96) 100%),
    url('/images/modules/contractor-selection.png') center/cover no-repeat;
}

.cp-cta h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 20px;
  color: #fff;
}

.cp-cta p {
  max-width: 780px;
  margin: 0 auto 36px;
  font-size: 1rem;
  color: #94a3b8;
  text-transform: none;
}

.cp-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cp-seo-keywords {
  background: #050810;
  padding: 28px 0;
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-transform: none;
}

/* Animations */
.contractor-page .animate-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.1, 1, 0.1, 1),
              transform 0.7s cubic-bezier(0.1, 1, 0.1, 1);
}

.contractor-page .animate-appear {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .cp-hero-grid,
  .cp-ai-section,
  .cp-preview-grid,
  .cp-steps,
  .cp-stats,
  .cp-compare,
  .cp-integrations-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .contractor-page section { padding: 40px 0; }
  .contractor-page .cp-stats-section { padding: 24px 0; }
  .contractor-page section:has(.cp-section-title) {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .cp-hero { padding: 88px 0 32px; }
  .cp-cta { padding: 48px 0; }
  .cp-hero-grid,
  .cp-ai-section,
  .cp-preview-grid,
  .cp-steps,
  .cp-stats,
  .cp-compare,
  .cp-integrations-grid {
    grid-template-columns: 1fr;
  }
  .cp-preview-top { flex-direction: column; align-items: flex-start; }
}
