/* ===== Hero ===== */
.msp-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: #050810;
}

.msp-hero__bg { position: absolute; inset: 0; z-index: 0; }

.msp-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.45;
}

.msp-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5, 8, 16, 0.97) 0%,
    rgba(5, 8, 16, 0.88) 35%,
    rgba(5, 8, 16, 0.55) 60%,
    rgba(5, 8, 16, 0.15) 100%
  );
}

.msp-hero__content {
  position: relative;
  z-index: 1;
  text-align: left !important;
  padding: 7rem 4rem 10rem 6rem;
  max-width: 620px;
  animation: pi-fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.msp-hero__content .pi-hero__badge { display: inline-block; }
.msp-hero__content .pi-hero__cta { justify-content: flex-start; }

.msp-hero__stats {
  position: absolute;
  bottom: 3rem;
  right: 5%;
  z-index: 2;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 20, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem 2rem;
}

.msp-hero__stat { text-align: center; padding: 0 1.2rem; }

.msp-hero__stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.msp-hero__stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.4rem;
  letter-spacing: 0.03em;
}

.msp-hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* ===== Product Trio Grid ===== */
.msp-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.msp-prod {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.msp-prod__visual {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msp-prod__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.4s;
}
.msp-prod:hover .msp-prod__visual img { transform: scale(1.04); }
.msp-prod__info {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.msp-prod__badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: rgba(94, 196, 160, 0.12);
  border: 1px solid rgba(94, 196, 160, 0.3);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #5ec4a0;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  width: fit-content;
}
.msp-prod__badge--abs {
  background: rgba(126, 180, 240, 0.12);
  border-color: rgba(126, 180, 240, 0.3);
  color: #7eb4f0;
}
.msp-prod__info h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}
.msp-prod__en {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  font-style: italic;
  margin: 0 0 0.6rem;
}
.msp-prod__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  flex: 1;
}
.msp-prod__list li {
  position: relative;
  padding-left: 1em;
  margin-bottom: 0.35rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  line-height: 1.5;
}
.msp-prod__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #AF1739;
}
.msp-prod__sizes {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.msp-prod__sizes-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-right: 0.1rem;
}
.msp-prod__size {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: rgba(175,23,57,0.1);
  border: 1px solid rgba(175,23,57,0.22);
  border-radius: 4px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.msp-prod__link {
  color: #AF1739;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  margin-top: auto;
}
.msp-prod__link:hover { color: #d4264e; }

/* ===== Comparison Table ===== */
.msp-compare {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.msp-compare-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; background: transparent !important; }
.msp-compare-table th {
  background: rgba(175,0,54,0.12) !important;
  color: rgba(255,255,255,0.7) !important;
  font-weight: 600;
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  white-space: normal;
}
.msp-compare-table td {
  padding: 0.875rem 1rem;
  color: rgba(255,255,255,0.7) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: transparent !important;
}
.msp-compare-table tbody tr:last-child td { border-bottom: none; }
.msp-compare-table tbody tr:hover { background: rgba(255,255,255,0.08) !important; }
.msp-compare-table tbody tr:hover td { background: inherit !important; }
.msp-compare-table thead tr:hover { background: rgba(175,0,54,0.12) !important; }
.msp-compare-table thead tr:hover th { background: inherit !important; }

/* ===== SAM Deep Dive ===== */
.msp-sam-intro {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}
.msp-sam-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.msp-sam-features > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 50%;
  justify-self: center;
}
.msp-sam-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.msp-sam-card:hover {
  border-color: rgba(175,23,57,0.3);
  transform: translateY(-2px);
}
.msp-sam-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msp-sam-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.msp-sam-card__info {
  padding: 1.25rem;
}
.msp-sam-card__info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
}
.msp-sam-card__info p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin: 0;
}
.msp-sam-specs {
  text-align: center;
}
.msp-sam-specs h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.msp-sam-interfaces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.msp-sam-if {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ===== Docs Grid ===== */
.msp-docs-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.msp-docs-group-title:first-of-type { margin-top: 0; }

.msp-docs-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
.msp-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.msp-doc-card__tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(175,23,57,0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.msp-doc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s;
}
.msp-doc-card:hover {
  background: rgba(175,23,57,0.06);
  border-color: rgba(175,23,57,0.2);
  transform: translateY(-2px);
}
.msp-doc-card h3 {
  color: #fff;
  font-size: 0.9rem;
  margin: 0 0 0.2rem;
}
.msp-doc-card p {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  margin: 0;
}
.msp-doc-card {
  position: relative;
}
.msp-doc-arrow {
  color: #AF1739;
  font-size: 1.1rem;
  font-weight: 700;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .msp-trio { grid-template-columns: 1fr; }
  .msp-hero__content { padding: 5rem 2rem 8rem; }
  .msp-hero__stats {
    position: relative;
    bottom: auto;
    right: auto;
    margin: -3rem 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  .msp-sam-features { grid-template-columns: 1fr; }
  .msp-sam-features > :last-child:nth-child(odd) { max-width: 100%; }
  .msp-docs-grid, .msp-docs-grid--3col { grid-template-columns: 1fr; }
  .msp-compare-table { font-size: 0.78rem; }
  .msp-compare-table th,
  .msp-compare-table td { padding: 0.6rem 0.75rem; }
}
