/* ═══════════════════════════════════════════════════
   MetaGrator — Platform Page Styles
   ═══════════════════════════════════════════════════ */

/* Override page-hero for platform (different padding approach) */
.platform-hero {
  padding: 140px 64px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ═══ LAYOUT: SIDEBAR + CONTENT ═══ */
.platform-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  min-height: 100vh;
}

/* ═══ SIDEBAR ═══ */
.sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 24px 0 80px;
  border-right: 1px solid var(--line);
  padding-right: 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--text-faint) transparent;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--text-faint); border-radius: 3px; }
.sidebar-group { margin-bottom: 32px; }
.sidebar-group-label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
  padding-left: 12px;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.25s var(--ease);
  margin-bottom: 2px;
}
.sidebar a i { font-size: 16px; flex-shrink: 0; }
.sidebar a:hover { color: var(--text); background: rgba(0,0,0,0.02); }
.sidebar a.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 500;
}
.sidebar a .sidebar-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
  width: 20px;
  flex-shrink: 0;
}
.sidebar a.active .sidebar-num { color: var(--accent); }

/* ═══ CONTENT AREA ═══ */
.content {
  padding: 0 0 160px 56px;
}

/* ═══ MODULE SECTION ═══ */
.module {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.module:last-child { border-bottom: none; }
.module-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.module-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-light);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
}
.module-num {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.module h2 {
  font-family: var(--body);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 580px;
}
.module > p {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 40px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.feature-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: all 0.3s var(--ease);
}
.feature-card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 4px 24px rgba(0,0,0,0.03);
  transform: translateY(-2px);
}
.feature-card h4 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.55;
  font-weight: 300;
}

/* Key specs row */
.specs-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.spec { display: flex; flex-direction: column; gap: 2px; }
.spec-val {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.spec-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
}

/* Section divider */
.section-divider {
  padding: 64px 0 0;
  margin-bottom: 0;
}
.section-divider h3 {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.section-divider p {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 300;
}

/* ═══ PLATFORM RESPONSIVE ═══ */
@media (max-width: 900px) {
  .platform-hero { padding: 120px 28px 48px; }
  .platform-layout { grid-template-columns: 1fr; padding: 0 28px; }
  .sidebar {
    position: relative;
    top: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    gap: 4px;
    max-height: none;
    padding-right: 0;
  }
  .sidebar-group { display: flex; gap: 4px; margin-bottom: 0; flex-shrink: 0; }
  .sidebar-group-label { display: none; }
  .sidebar a { white-space: nowrap; padding: 6px 12px; font-size: 12px; }
  .content { padding: 0 0 100px; }
  .feature-grid { grid-template-columns: 1fr; }
}
