/* ============================================================
   Raft AI4BI — Role Landing Pages Shared Styles
   Layered on raft-styles.css + raft-dark.css
   ============================================================ */

/* ── BREADCRUMB ─────────────────────────────────────────── */
.rp-breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.rp-breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rp-breadcrumb a {
  color: var(--muted);
  transition: color 180ms ease;
}
.rp-breadcrumb a:hover {
  color: var(--text);
}
.rp-bc-sep {
  color: var(--faint);
}
.rp-bc-cur {
  color: var(--text);
  font-weight: 600;
}

/* ── ROLE HERO ──────────────────────────────────────────── */
.rp-hero {
  padding: 80px 0 72px;
  background: linear-gradient(160deg, #07080f 0%, #0b0f1f 60%, #060a18 100%);
  position: relative;
  overflow: hidden;
}
.rp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(0, 195, 255, 0.06) 1px,
    transparent 0
  );
  background-size: 32px 32px;
  pointer-events: none;
}
.rp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.rp-hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00c3ff;
  padding: 7px 14px;
  background: rgba(0, 195, 255, 0.1);
  border: 1px solid rgba(0, 195, 255, 0.22);
  border-radius: 999px;
  width: fit-content;
}
.rp-h1 {
  font-size: clamp(2.2rem, 1.4rem + 2.2vw, 4rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.055em;
  color: #fff;
}
.rp-h1 em {
  font-style: normal;
  color: #00c3ff;
}
.rp-lead {
  font-size: 17px;
  color: rgba(220, 228, 255, 0.62);
  line-height: 1.72;
  max-width: 520px;
}
.rp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.rp-hero-mock {
  background: linear-gradient(180deg, #0e1525, #0a1020);
  border: 1px solid rgba(0, 195, 255, 0.15);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.55);
}

/* ── PAIN POINTS ────────────────────────────────────────── */
.rp-pain {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.rp-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.rp-pain-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rp-pain-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--soft-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rp-pain-icon svg {
  width: 22px;
  height: 22px;
  stroke: #00c3ff;
}
.rp-pain-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  font-style: italic;
}
.rp-pain-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── SOLUTION BLOCKS ────────────────────────────────────── */
.rp-solutions {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.rp-solutions-head {
  text-align: center;
  margin-bottom: 64px;
}
.rp-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}
.rp-block:last-child {
  margin-bottom: 0;
}
.rp-block.reverse .rp-block-copy {
  order: 2;
}
.rp-block.reverse .rp-block-visual {
  order: 1;
}
.rp-block-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rp-block-copy h3 {
  font-size: clamp(1.3rem, 1rem + 0.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
}
.rp-block-copy p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}
.rp-block > img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
.rp-block-visual {
  background: linear-gradient(180deg, #0e1525, #0a1020);
  border: 1px solid rgba(0, 195, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.chat-warpper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin: auto;
}
.chat-warpper img {
  width: fit-content;
}

/* ── STATS / METRICS ────────────────────────────────────── */
.rp-stats {
  padding: 80px 0;
  background: #050609;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.rp-stats-head {
  text-align: center;
  margin-bottom: 56px;
}
.rp-stats-head h2 {
  color: #fff;
  font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.rp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}
.rp-stat {
  padding: 40px 28px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  transition: background 0.25s;
}
.rp-stat:hover {
  background: rgba(0, 195, 255, 0.07);
}
.rp-stat-val {
  font-size: clamp(2rem, 1.4rem + 1.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  color: #00c3ff;
}
.rp-stat-label {
  font-size: 13px;
  color: rgba(220, 228, 255, 0.5);
  line-height: 1.5;
}

/* ── QUOTE ──────────────────────────────────────────────── */
.rp-quote-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.rp-quote-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.rp-quote-mark {
  font-size: 96px;
  font-weight: 800;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.15;
  line-height: 0.6;
  display: block;
  margin-bottom: 8px;
  user-select: none;
}
.rp-quote-text {
  font-size: 20px;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 24px;
}
.rp-quote-author {
  font-size: 14px;
  color: var(--muted);
  font-style: normal;
}
.rp-quote-author strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  font-style: normal;
}

/* ── FEATURE LIST ───────────────────────────────────────── */
.rp-features-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.rp-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.rp-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.rp-feature-item:hover {
  border-color: rgba(47, 107, 255, 0.3);
  box-shadow: var(--shadow-sm);
}
.rp-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--soft-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rp-feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: #00c3ff;
}
.rp-feature-copy h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.rp-feature-copy p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── COMPARISON TABLE ───────────────────────────────────── */
.rp-compare-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.rp-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.rp-compare-table th {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}
.rp-compare-table th:first-child {
  background: var(--surface-2);
  color: var(--muted);
}
.rp-compare-table th:last-child {
  background: var(--primary);
  color: #fff;
}
.rp-compare-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.rp-compare-table tr:nth-child(odd) td:first-child {
  background: var(--surface);
}
.rp-compare-table tr:nth-child(even) td:first-child {
  background: var(--surface-2);
}
.rp-compare-table td:first-child {
  color: var(--muted);
}
.rp-compare-table td:last-child {
  background: rgba(47, 107, 255, 0.06);
  color: var(--text);
  font-weight: 600;
}
.rp-compare-table tr:hover td {
  background: var(--soft-blue);
}

/* ── TECH SPECS GRID ────────────────────────────────────── */
.rp-tech-section {
  padding: 80px 0;
  background: #07080f;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.rp-tech-head {
  text-align: center;
  margin-bottom: 48px;
}
.rp-tech-head h2 {
  color: #fff;
}
.rp-tech-head p {
  color: rgba(220, 228, 255, 0.5);
}
.rp-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rp-tech-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 24px;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.rp-tech-card:hover {
  background: rgba(0, 195, 255, 0.08);
  border-color: rgba(0, 195, 255, 0.25);
}
.rp-tech-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.rp-tech-card p {
  font-size: 13px;
  color: rgba(220, 228, 255, 0.5);
  line-height: 1.6;
}
.rp-tech-badge {
  display: inline-flex;
  padding: 3px 10px;
  background: rgba(0, 195, 255, 0.12);
  border: 1px solid rgba(0, 195, 255, 0.22);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #00c3ff;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* ── CONTACT / CTA ──────────────────────────────────────── */
.rp-contact {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rp-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .rp-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rp-block.reverse .rp-block-copy,
  .rp-block.reverse .rp-block-visual {
    order: unset;
  }
  .rp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rp-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .rp-hero {
    padding: 48px 0 56px;
  }
  .rp-h1 {
    font-size: clamp(1.8rem, 1.2rem + 3vw, 2.8rem);
  }
  .rp-pain-grid {
    grid-template-columns: 1fr;
  }
  .rp-features-grid {
    grid-template-columns: 1fr;
  }
  .rp-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rp-tech-grid {
    grid-template-columns: 1fr;
  }
  .rp-quote-card {
    padding: 28px 24px;
  }
  .rp-quote-text {
    font-size: 16px;
  }
  .rp-compare-table {
    font-size: 13px;
  }
  .rp-compare-table th,
  .rp-compare-table td {
    padding: 12px 14px;
  }
}
