/* ═══════════════════════════════════════════════════════════════
   MSM Aventra — Inner Pages Shared Stylesheet v2
═══════════════════════════════════════════════════════════════ */

/* ─── PAGE HERO ──────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #060a14 0%, #090512 50%, #06080f 100%);
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(229,28,35,0.12);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 20% 50%, rgba(229,28,35,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 40%, rgba(14,165,233,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.page-breadcrumb a {
  color: var(--red-light);
  text-decoration: none;
  transition: color 0.2s;
}

.page-breadcrumb a:hover { color: #ff8a8a; }
.page-breadcrumb i { font-size: 10px; }

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red-light);
  background: rgba(229,28,35,0.1);
  border: 1px solid rgba(229,28,35,0.2);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 18px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 18px;
}

.page-title span {
  background: linear-gradient(135deg, #ff4757, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 32px;
}

.page-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── SHARED CONTENT SECTIONS ────────────────────────────────── */
.page-section {
  padding: 80px 0;
}

.page-section:nth-child(even) { background: var(--bg-secondary); }
.page-section:nth-child(odd) { background: var(--bg-primary); }

.page-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.page-section-header .section-tag { margin-bottom: 16px; }

.page-section-header .section-title { font-size: clamp(24px, 3.5vw, 44px); }

/* ─── TWO-COL GRID ───────────────────────────────────────────── */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col-grid.reverse { direction: rtl; }
.two-col-grid.reverse > * { direction: ltr; }

@media (max-width: 900px) {
  .two-col-grid { grid-template-columns: 1fr; gap: 40px; }
  .two-col-grid.reverse { direction: ltr; }
}

/* ─── FEATURE GRID ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-red);
  transform: translateY(-3px);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(229,28,35,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--red-light);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── STATS ROW ──────────────────────────────────────────────── */
.page-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 48px 0;
}

@media (max-width: 768px) {
  .page-stats-row { grid-template-columns: repeat(2, 1fr); }
}

.page-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.page-stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.page-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red-light), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.page-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── CONTENT PROSE ──────────────────────────────────────────── */
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 14px;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  margin-top: 28px;
}

.prose p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.prose strong { color: var(--text-primary); }

.prose ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.prose ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.prose ul li:last-child { border-bottom: none; }

.prose ul li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 9px;
}

/* ─── HIGHLIGHT BOX ──────────────────────────────────────────── */
.highlight-box {
  background: linear-gradient(135deg, rgba(229,28,35,0.06), rgba(14,165,233,0.04));
  border: 1px solid rgba(229,28,35,0.14);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
}

.highlight-box p {
  color: var(--text-primary) !important;
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  margin: 0 0 10px;
}

.highlight-box cite {
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
}

/* ─── ACTIVE NAV LINK ────────────────────────────────────────── */
.active-nav {
  color: var(--red-light) !important;
  font-weight: 600 !important;
}

.nav-highlight {
  color: var(--red-light) !important;
  font-weight: 600 !important;
}

/* ─── PAGE INNER CTA ─────────────────────────────────────────── */
.page-inner-cta {
  background: linear-gradient(135deg, #06090f 0%, #050810 100%);
  border-top: 1px solid rgba(229,28,35,0.12);
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.page-inner-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(229,28,35,0.05), transparent 70%);
  pointer-events: none;
}

.page-inner-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
}

.page-inner-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  margin: 0 auto 32px;
  position: relative;
}

.page-inner-cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

/* ─── BTN PRIMARY XL ─────────────────────────────────────────── */
.btn-primary--xl {
  padding: 16px 36px;
  font-size: 16px;
}

/* ─── SHARED FOOTER COMPACT ──────────────────────────────────── */
.footer-compact { padding: 40px 0; }

/* ─── INTEGRATION LOGOS GRID ─────────────────────────────────── */
.integration-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 40px 0;
}

@media (max-width: 900px) {
  .integration-logo-grid { grid-template-columns: repeat(3, 1fr); }
}

.integration-logo-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: all 0.3s;
}

.integration-logo-item:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.integration-logo-item i {
  font-size: 24px;
  color: var(--blue-light);
}

/* ─── AVA FEATURE GRID ───────────────────────────────────────── */
.ava-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

@media (max-width: 900px) {
  .ava-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .ava-feature-grid { grid-template-columns: 1fr; }
}

.ava-feature-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.ava-feature-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  opacity: 0;
  transition: opacity 0.3s;
}

.ava-feature-item:hover {
  border-color: rgba(229,28,35,0.2);
  background: rgba(229,28,35,0.04);
}

.ava-feature-item:hover::before { opacity: 1; }

.ava-feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(229,28,35,0.15), rgba(14,165,233,0.08));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--red-light);
  margin-bottom: 16px;
}

.ava-feature-item h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.ava-feature-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* ─── TEAM CARDS ─────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
}

.team-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-red);
  transform: translateY(-3px);
}

.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 14px;
}

.team-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--red-light);
  font-weight: 600;
}

/* ─── TIMELINE HORIZONTAL ────────────────────────────────────── */
.timeline-h {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin: 40px 0;
}

.timeline-h::before {
  content: '';
  position: absolute;
  top: 28px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  z-index: 0;
}

@media (max-width: 768px) {
  .timeline-h { grid-template-columns: 1fr; }
  .timeline-h::before { display: none; }
}

.timeline-h-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.timeline-h-dot {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: #fff;
  margin: 0 auto 14px;
  box-shadow: 0 4px 20px rgba(229,28,35,0.25);
}

.timeline-h-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 8px;
}

.timeline-h-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.timeline-h-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
