/* ═══════════════════════════════════════════════════════════════
   XIPE — Compliance Page
   Shared by /compliance (ES) and /compliance-en (EN)
   ═══════════════════════════════════════════════════════════════ */

/* ─── HERO OVERRIDES ─── */
.compliance-hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-hero-secondary:hover {
  border-color: rgba(107,132,255,0.6);
  color: var(--blue-light);
  transform: translateY(-2px);
}

/* ─── SHARED SECTION BASE ─── */
.cp-section {
  padding: 96px 64px;
}

.cp-section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.cp-section-inner--wide {
  max-width: 1200px;
  margin: 0 auto;
}

.cp-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 20px;
}

.cp-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.cp-section-title em {
  font-style: italic;
  color: var(--blue-light);
}

.cp-lead {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  max-width: 800px;
}

/* ─── PROBLEM SECTION ─── */
.cp-problem {
  background: linear-gradient(180deg, #060810 0%, #0a0c14 100%);
}

.cp-problem-intro {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: 48px;
  max-width: 800px;
}

.cp-problem-list {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
}

.cp-problem-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
}

.cp-problem-item:hover {
  border-color: rgba(79,110,247,0.3);
}

.cp-problem-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-light);
  opacity: 0.7;
  padding-top: 2px;
}

.cp-problem-text {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
}

.cp-problem-note {
  margin-top: 40px;
  padding: 24px 28px;
  background: rgba(79,110,247,0.08);
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
}

/* ─── DEEP AGENTS SECTION ─── */
.cp-agents {
  background: #0a0c14;
}

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

.cp-agent-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s, background 0.2s;
}

.cp-agent-card:hover {
  border-color: rgba(79,110,247,0.35);
  background: rgba(79,110,247,0.05);
}

.cp-agent-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: rgba(79,110,247,0.25);
  line-height: 1;
  margin-bottom: 16px;
}

.cp-agent-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.cp-agent-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
}

.cp-agents-stack {
  margin-top: 40px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
}

.cp-agents-stack strong {
  color: rgba(255,255,255,0.9);
}

.cp-code {
  display: inline-block;
  background: rgba(79,110,247,0.12);
  border: 1px solid rgba(79,110,247,0.2);
  border-radius: 5px;
  padding: 1px 8px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--blue-light);
}

/* ─── COMPARISON TABLE SECTION ─── */
.cp-comparison {
  background: #060810;
  padding: 96px 40px;
}

.cp-table-wrap {
  margin-top: 48px;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
}

.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cp-table thead tr {
  background: rgba(79,110,247,0.1);
  border-bottom: 1px solid rgba(79,110,247,0.2);
}

.cp-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.cp-table th:first-child {
  color: rgba(255,255,255,0.7);
  width: 22%;
}

.cp-table th.col-new {
  color: var(--blue-light);
}

.cp-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}

.cp-table tbody tr:last-child {
  border-bottom: none;
}

.cp-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.cp-table td {
  padding: 18px 20px;
  vertical-align: top;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}

.cp-table td:first-child {
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}

.cp-table td.col-new {
  color: rgba(255,255,255,0.75);
}

/* ─── CASES SECTION ─── */
.cp-cases {
  background: #0a0c14;
}

.cp-cases-list {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.cp-case {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 36px 36px;
  transition: border-color 0.2s;
}

.cp-case:hover {
  border-color: rgba(79,110,247,0.25);
}

.cp-case-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.cp-case-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(79,110,247,0.12);
  border: 1px solid rgba(79,110,247,0.2);
  border-radius: 6px;
  padding: 4px 10px;
  margin-top: 3px;
  white-space: nowrap;
}

.cp-case-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.cp-case-body {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  padding-left: 0;
}

/* ─── ARCHITECTURE SECTION ─── */
.cp-arch {
  background: #060810;
}

.cp-arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.cp-arch-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 32px;
}

.cp-arch-block h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.cp-arch-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.cp-arch-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.cp-arch-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 8px;
}

.cp-arch-phases {
  margin-top: 32px;
}

.cp-arch-phases h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.cp-phases-timeline {
  display: grid;
  gap: 0;
}

.cp-phase {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 20px;
  position: relative;
}

.cp-phase-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cp-phase-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--blue-light);
  flex-shrink: 0;
  margin-top: 4px;
  z-index: 1;
}

.cp-phase-line {
  width: 2px;
  flex: 1;
  background: rgba(79,110,247,0.2);
  min-height: 24px;
}

.cp-phase:last-child .cp-phase-line {
  display: none;
}

.cp-phase-content {
  padding-bottom: 28px;
}

.cp-phase-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.cp-phase-detail {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

/* ─── WHY XIPE SECTION ─── */
.cp-why {
  background: #0a0c14;
}

.cp-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.cp-why-statement {
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}

.cp-why-statement strong {
  color: var(--white);
}

.cp-why-points {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}

.cp-why-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.cp-why-points li::before {
  content: '\2713';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(79,110,247,0.15);
  border: 1px solid rgba(79,110,247,0.3);
  color: var(--blue-light);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ─── CTA FINAL SECTION ─── */
.cp-cta-final {
  background: linear-gradient(180deg, #060810 0%, #070914 100%);
  padding: 96px 64px;
  text-align: center;
}

.cp-cta-final-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cp-cta-final h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.cp-cta-final p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
}

.cp-cta-final-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .cp-section {
    padding: 64px 28px;
  }

  .cp-comparison {
    padding: 64px 12px;
  }

  .cp-agents-grid {
    grid-template-columns: 1fr;
  }

  .cp-arch-grid {
    grid-template-columns: 1fr;
  }

  .cp-why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cp-cta-final {
    padding: 64px 24px;
  }

  #hero {
    padding: 120px 28px 80px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .cp-case {
    padding: 24px 20px;
  }

  .cp-case-header {
    flex-direction: column;
    gap: 10px;
  }

  .cp-arch-block {
    padding: 24px 20px;
  }

  .compliance-hero-ctas {
    flex-direction: column;
  }

  .cp-cta-final-actions {
    flex-direction: column;
    align-items: center;
  }
}
