/* ==========================================================================
   RAG Solution Deep-Dive Styles (css/rag.css)
   Aesthetic: Dark Minimalist, Layered Surface Contrast, 1px Glass Borders
   ========================================================================== */

.rag-page {
  padding-top: 140px;
  padding-bottom: 100px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- Hero Section --- */
.rag-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 64px auto;
}

.rag-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A3A3A3;
  margin-bottom: 24px;
}

.rag-hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22C55E;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.rag-hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.rag-hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #A3A3A3;
  max-width: 760px;
  margin: 0 auto 36px auto;
}

/* --- Hero Metrics Row --- */
.rag-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.rag-metric-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 0.88rem;
  color: #E5E5E5;
  backdrop-filter: blur(10px);
}

.rag-metric-chip strong {
  color: #FFFFFF;
  font-weight: 700;
}

.rag-hero__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Video Showcase Container --- */
.rag-video-section {
  margin-bottom: 96px;
}

.rag-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(255, 255, 255, 0.02);
}

.rag-video-wrapper::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.rag-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rag-video-meta {
  max-width: 1060px;
  margin: 16px auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #737373;
}

.rag-video-meta a {
  color: #A3A3A3;
  text-decoration: underline;
  transition: color 0.2s;
}

.rag-video-meta a:hover {
  color: #FFFFFF;
}

/* --- Section Titles --- */
.rag-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px auto;
}

.rag-section-header__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 12px;
}

.rag-section-header__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.rag-section-header__desc {
  font-size: 1rem;
  color: #A3A3A3;
  line-height: 1.6;
}

/* --- 3-Stage Engineering Pipeline (Bento Grid) --- */
.rag-pipeline {
  margin-bottom: 96px;
}

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

.rag-pipeline-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rag-pipeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

.rag-pipeline-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.rag-pipeline-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.3;
}

.rag-pipeline-card__text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #999999;
  margin-bottom: 24px;
  flex-grow: 1;
}

.rag-pipeline-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rag-pipeline-card__bullets li {
  font-size: 0.82rem;
  color: #A3A3A3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rag-pipeline-card__bullets li::before {
  content: "✓";
  color: #22C55E;
  font-weight: bold;
}

/* --- Multi-Industry Applications Grid --- */
.rag-industries {
  margin-bottom: 96px;
}

.rag-industries__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.rag-industry-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rag-industry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
}

.rag-industry-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38BDF8;
  margin-bottom: 12px;
}

.rag-industry-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.rag-industry-card__text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #999999;
  margin-bottom: 18px;
}

.rag-industry-card__outcome {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4ADE80;
}

/* --- Tech Specs Bar --- */
.rag-specs {
  margin-bottom: 96px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  text-align: center;
}

.rag-specs__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 16px;
}

.rag-specs__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.rag-spec-pill {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  font-size: 0.82rem;
  color: #CCCCCC;
}

/* --- Responsive Adjustments --- */
@media (max-width: 960px) {
  .rag-pipeline__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rag-industries__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rag-metrics {
    flex-direction: column;
    align-items: center;
  }
}
